ngReorg - align module names with directory
This commit aligns module names with their directory structure. This is one step in a larger effort to restructure the Angular source. See https://review.openstack.org/#/c/176152/ for the full set of planned changes. Change-Id: I3f48ebaef23d6249983f33b1a4710cc1fe3ef789 Partial-Bug: #1454880
This commit is contained in:
parent
c76c478c00
commit
2b7b8ac93c
@ -408,7 +408,7 @@ Required
|
||||
* Write-only in controllers.
|
||||
* Since Django already uses ``{{ }}``, use ``{$ $}`` or ``{% verbatim %}``
|
||||
instead.
|
||||
* For localization in Angular files, use the Angular service hz.i18n.gettext.
|
||||
* For localization in Angular files, use the Angular service horizon.framework.util.i18n.gettext.
|
||||
For regular Javascript files, use either ``gettext`` or ``ngettext``.
|
||||
Only those two methods are recognized by our tools and will be included in
|
||||
the .po file after running ``./run_tests --makemessages``.
|
||||
@ -416,8 +416,8 @@ Required
|
||||
.. code ::
|
||||
|
||||
// Angular
|
||||
angular.module('hz.widget.modal', ['ui.bootstrap', 'hz.i18n'])
|
||||
.factory('simpleModalService', ['$modal', 'basePath', 'hz.i18n.gettext',
|
||||
angular.module('horizon.framework.widgets.modal', ['ui.bootstrap', 'horizon.framework.util.i18n'])
|
||||
.factory('simpleModalService', ['$modal', 'basePath', 'horizon.framework.util.i18n.gettext',
|
||||
function($modal, path, gettext) { gettext('translatable text'); };
|
||||
|
||||
// recognized
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.framework.bind-scope
|
||||
* @name horizon.framework.util.bind-scope
|
||||
* @description
|
||||
*
|
||||
* # hz.framework.bind-scope
|
||||
* # horizon.framework.util.bind-scope
|
||||
*
|
||||
* This utility widget supports binding the scope where the directive is
|
||||
* instantiated with the transcluded content. This is useful when trying
|
||||
@ -14,14 +14,14 @@
|
||||
*
|
||||
* | Directives |
|
||||
* |--------------------------------------------------------------------------|
|
||||
* | {@link hz.framework.bind-scope.directive:bindScope `bindScope`} |
|
||||
* | {@link horizon.framework.util.bind-scope.directive:bindScope `bindScope`} |
|
||||
*
|
||||
*/
|
||||
angular.module('hz.framework.bind-scope', [])
|
||||
angular.module('horizon.framework.util.bind-scope', [])
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.framework.bind-scope.directive:bindScope
|
||||
* @name horizon.framework.util.bind-scope.directive:bindScope
|
||||
* @element ng-repeat
|
||||
* @description
|
||||
* The `bindScope` directive injects the scope where it is
|
||||
|
@ -1,9 +1,9 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
describe('hz.framework.bind-scope module', function() {
|
||||
describe('horizon.framework.util.bind-scope module', function() {
|
||||
it('should have been defined', function() {
|
||||
expect(angular.module('hz.framework.bind-scope')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.util.bind-scope')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -13,9 +13,9 @@
|
||||
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.framework.bind-scope'));
|
||||
beforeEach(module('horizon.framework.util.bind-scope'));
|
||||
|
||||
beforeEach(module('hz.framework.bind-scope', function($compileProvider) {
|
||||
beforeEach(module('horizon.framework.util.bind-scope', function($compileProvider) {
|
||||
$compileProvider.directive('testBindScope', function() {
|
||||
return {
|
||||
restrict: 'E',
|
||||
|
@ -3,18 +3,18 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.widget.form
|
||||
* @name horizon.framework.util.form
|
||||
*
|
||||
* # hz.widget.form
|
||||
* # horizon.framework.util.form
|
||||
*
|
||||
* The `hz.widget.form` provides form directives and services.
|
||||
* The `horizon.framework.util.form` provides form directives and services.
|
||||
*
|
||||
* | Components |
|
||||
* |----------------------------------------------------------|
|
||||
* | {@link hz.widget.form.hzPasswordMatch `hzPasswordMatch`} |
|
||||
* | {@link horizon.framework.util.form.hzPasswordMatch `hzPasswordMatch`} |
|
||||
*
|
||||
*/
|
||||
var app = angular.module('hz.widget.form', []);
|
||||
var app = angular.module('horizon.framework.util.form', []);
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
@ -1,16 +1,16 @@
|
||||
(function(){
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.form module', function(){
|
||||
describe('horizon.framework.util.form module', function(){
|
||||
it('should have been defined', function(){
|
||||
expect(angular.module('hz.widget.form')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.util.form')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe('form directives', function() {
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.form'));
|
||||
beforeEach(module('horizon.framework.util.form'));
|
||||
|
||||
describe('hzPasswordMatch directive', function() {
|
||||
|
@ -17,10 +17,10 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular.module("hz.i18n", [])
|
||||
angular.module("horizon.framework.util.i18n", [])
|
||||
|
||||
/*
|
||||
* @name hz.i18n.gettext
|
||||
* @name horizon.framework.util.i18n.gettext
|
||||
* @description
|
||||
* Provides a wrapper for translation, using the global 'gettext'
|
||||
* function if it is present. Provides a method that
|
||||
@ -37,7 +37,7 @@
|
||||
* (translation) from filters, which are arguably more
|
||||
* presentation-oriented.
|
||||
*/
|
||||
.factory("hz.i18n.gettext", ['$window', function($window) {
|
||||
.factory("horizon.framework.util.i18n.gettext", ['$window', function($window) {
|
||||
|
||||
// If no global function, revert to just returning given text.
|
||||
var gettextFunc = $window.gettext || function(x) { return x; };
|
@ -17,9 +17,9 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
describe('hz.i18n', function() {
|
||||
describe('horizon.framework.util.i18n', function() {
|
||||
|
||||
beforeEach(module('hz.i18n'));
|
||||
beforeEach(module('horizon.framework.util.i18n'));
|
||||
|
||||
describe('gettext', function() {
|
||||
var factory;
|
||||
@ -27,7 +27,7 @@
|
||||
describe('Normal operation', function() {
|
||||
|
||||
beforeEach(inject(function($injector) {
|
||||
factory = $injector.get("hz.i18n.gettext");
|
||||
factory = $injector.get("horizon.framework.util.i18n.gettext");
|
||||
}));
|
||||
|
||||
it('defines the factory', function() {
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
// Get the factory by name.
|
||||
beforeEach(inject(function($injector) {
|
||||
factory = $injector.get("hz.i18n.gettext");
|
||||
factory = $injector.get("horizon.framework.util.i18n.gettext");
|
||||
}));
|
||||
|
||||
it('uses the window gettext when available', function() {
|
@ -2,9 +2,11 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('horizon.framework.util', [
|
||||
'hz.framework.bind-scope',
|
||||
'hz.framework.workflow',
|
||||
'hz.framework.validators'
|
||||
'horizon.framework.util.bind-scope',
|
||||
'horizon.framework.util.form',
|
||||
'horizon.framework.util.i18n',
|
||||
'horizon.framework.util.workflow',
|
||||
'horizon.framework.util.validators'
|
||||
])
|
||||
.constant('horizon.framework.util.basePath', '/static/framework/util/');
|
||||
|
||||
|
@ -3,25 +3,25 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.framework.validators
|
||||
* @name horizon.framework.util.validators
|
||||
* @description
|
||||
*
|
||||
* # hz.framework.validators
|
||||
* # horizon.framework.util.validators
|
||||
*
|
||||
* The `hz.framework.validators` module provides support for validating
|
||||
* The `horizon.framework.util.validators` module provides support for validating
|
||||
* forms.
|
||||
*
|
||||
* | Directives |
|
||||
* |---------------------------------------------------------------------------------|
|
||||
* | {@link hz.framework.validators.directive:validateNumberMax `validateNumberMax`} |
|
||||
* | {@link hz.framework.validators.directive:validateNumberMin `validateNumberMin`} |
|
||||
* | {@link horizon.framework.util.validators.directive:validateNumberMax `validateNumberMax`} |
|
||||
* | {@link horizon.framework.util.validators.directive:validateNumberMin `validateNumberMin`} |
|
||||
*
|
||||
*/
|
||||
angular.module('hz.framework.validators', [])
|
||||
angular.module('horizon.framework.util.validators', [])
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.framework.validators.directive:validateNumberMax
|
||||
* @name horizon.framework.util.validators.directive:validateNumberMax
|
||||
* @element ng-model
|
||||
* @description
|
||||
* The `validateNumberMax` directive provides max validation
|
||||
@ -81,7 +81,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.framework.validators.directive:validateNumberMin
|
||||
* @name horizon.framework.util.validators.directive:validateNumberMin
|
||||
* @element ng-model
|
||||
* @description
|
||||
* The `validateNumberMin` directive provides min validation
|
||||
|
@ -1,9 +1,9 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
describe('hz.framework.validators module', function() {
|
||||
describe('horizon.framework.util.validators module', function() {
|
||||
it('should have been defined', function() {
|
||||
expect(angular.module('hz.framework.validators')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.util.validators')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.framework.validators'));
|
||||
beforeEach(module('horizon.framework.util.validators'));
|
||||
|
||||
describe('validateNumberMax directive', function() {
|
||||
|
||||
|
@ -3,31 +3,31 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.framework.workflow
|
||||
* @name horizon.framework.util.workflow
|
||||
* @description
|
||||
*
|
||||
* # hz.framework.workflow
|
||||
* # horizon.framework.util.workflow
|
||||
*
|
||||
* This module provides utility function service `workflow` to allow
|
||||
* decorating a workflow object. A user (developer) friendly workflow
|
||||
* specification object can be shaped into a format that is friendly to
|
||||
* {@link hz.widget.wizard `wizard`} by utilizing this service.
|
||||
* {@link horizon.framework.widgets.wizard `wizard`} by utilizing this service.
|
||||
*
|
||||
* The service provides a mechanism of decoupling general wizard UI component
|
||||
* from business components.
|
||||
*
|
||||
* | Factories |
|
||||
* |--------------------------------------------------------------------------|
|
||||
* | {@link hz.framework.workflow.factory:workflow `workflow`} |
|
||||
* | {@link horizon.framework.util.workflow.factory:workflow `workflow`} |
|
||||
*
|
||||
*/
|
||||
|
||||
angular.module('hz.framework.workflow', [])
|
||||
angular.module('horizon.framework.util.workflow', [])
|
||||
|
||||
/**
|
||||
* @ngdoc factory
|
||||
* @name hz.framework.workflow.factory:workflow
|
||||
* @module hz.framework.workflow
|
||||
* @name horizon.framework.util.workflow.factory:workflow
|
||||
* @module horizon.framework.util.workflow
|
||||
* @kind function
|
||||
* @description
|
||||
*
|
||||
|
@ -1,9 +1,9 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
describe('hz.framework.workflow module', function () {
|
||||
describe('horizon.framework.util.workflow module', function () {
|
||||
it('should have been defined', function () {
|
||||
expect(angular.module('hz.framework.workflow')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.util.workflow')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
}
|
||||
];
|
||||
|
||||
beforeEach(module('hz.framework.workflow'));
|
||||
beforeEach(module('horizon.framework.util.workflow'));
|
||||
|
||||
beforeEach(inject(function ($injector) {
|
||||
workflow = $injector.get('workflow');
|
||||
|
@ -3,26 +3,26 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.widget.action-list
|
||||
* @name horizon.framework.widgets.action-list
|
||||
* @description
|
||||
*
|
||||
* # hz.widget.action-list
|
||||
* # horizon.framework.widgets.action-list
|
||||
*
|
||||
* The `actionList` directive supports displaying a set of buttons
|
||||
* in a Bootstrap button group or button dropdown (single or split).
|
||||
*
|
||||
* | Directives |
|
||||
* |-----------------------------------------------------------------|
|
||||
* | {@link hz.widget.action-list.directive:actionList `actionList`} |
|
||||
* | {@link hz.widget.menu.directive:menu `menu`} |
|
||||
* | {@link hz.widget.action.directive:action `action`} |
|
||||
* | {@link horizon.framework.widgets.action-list.directive:actionList `actionList`} |
|
||||
* | {@link horizon.framework.widgets.menu.directive:menu `menu`} |
|
||||
* | {@link horizon.framework.widgets.action.directive:action `action`} |
|
||||
*
|
||||
*/
|
||||
angular.module('hz.widget.action-list', [ 'ui.bootstrap' ])
|
||||
angular.module('horizon.framework.widgets.action-list', [ 'ui.bootstrap' ])
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.action-list.directive:actionList
|
||||
* @name horizon.framework.widgets.action-list.directive:actionList
|
||||
* @element
|
||||
* @description
|
||||
* The `actionList` directive is the wrapper for the set of
|
||||
@ -92,7 +92,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.action-list.directive:menu
|
||||
* @name horizon.framework.widgets.action-list.directive:menu
|
||||
* @element
|
||||
* @description
|
||||
* The `menu` directive is the wrapper for the set of
|
||||
@ -138,7 +138,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.action-list.directive:action
|
||||
* @name horizon.framework.widgets.action-list.directive:action
|
||||
* @element
|
||||
* @description
|
||||
* The `action` directive represents the actions to be
|
||||
|
@ -1,9 +1,9 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.action-list module', function() {
|
||||
describe('horizon.framework.widgets.action-list module', function() {
|
||||
it('should have been defined', function() {
|
||||
expect(angular.module('hz.widget.action-list')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.widgets.action-list')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
beforeEach(module('templates'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.action-list'));
|
||||
beforeEach(module('horizon.framework.widgets.action-list'));
|
||||
|
||||
describe('single button dropdown', function() {
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular.module('hz.widget.action-list')
|
||||
angular.module('horizon.framework.widgets.action-list')
|
||||
|
||||
/**
|
||||
* @ngdoc parameters
|
||||
* @name hz.widget.action-list.constant:tooltipConfig
|
||||
* @name horizon.framework.widgets.action-list.constant:tooltipConfig
|
||||
* @param {string} defaultTemplate Default warning tooltip template
|
||||
* @param {string} defaultMessage Default warning tooltip message
|
||||
*/
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.action-list.directive:buttonTooltip
|
||||
* @name horizon.framework.widgets.action-list.directive:buttonTooltip
|
||||
* @element action-list
|
||||
* @param {string} buttonTooltip The tooltip message
|
||||
* @param {object} btModel Custom tooltip model (optional)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular.module('hz.widget.charts')
|
||||
angular.module('horizon.framework.widgets.charts')
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.charts.directive:chartTooltip
|
||||
* @name horizon.framework.widgets.charts.directive:chartTooltip
|
||||
* @element
|
||||
* @param {object} tooltip-data The tooltip data model and styles
|
||||
* @description
|
||||
|
@ -3,12 +3,12 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.widget.charts
|
||||
* @name horizon.framework.widgets.charts
|
||||
* @description
|
||||
*
|
||||
* # hz.widget.charts
|
||||
* # horizon.framework.widgets.charts
|
||||
*
|
||||
* The `hz.widget.charts` module provides directives for simple charts
|
||||
* The `horizon.framework.widgets.charts` module provides directives for simple charts
|
||||
* used in Horizon, such as the pie and donut chart. Charts are
|
||||
* implemented using D3.
|
||||
*
|
||||
@ -16,19 +16,19 @@
|
||||
*
|
||||
* | Constants |
|
||||
* |---------------------------------------------------------------------------|
|
||||
* | {@link hz.widget.charts.constant:donutChartSettings `donutChartSettings`} |
|
||||
* | {@link hz.widget.charts.constant:quotaChartDefaults `quotaChartDefaults`} |
|
||||
* | {@link horizon.framework.widgets.charts.constant:donutChartSettings `donutChartSettings`} |
|
||||
* | {@link horizon.framework.widgets.charts.constant:quotaChartDefaults `quotaChartDefaults`} |
|
||||
*
|
||||
* | Directives |
|
||||
* |---------------------------------------------------------------------------|
|
||||
* | {@link hz.widget.charts.directive:pieChart `pieChart`} |
|
||||
* | {@link horizon.framework.widgets.charts.directive:pieChart `pieChart`} |
|
||||
*
|
||||
*/
|
||||
angular.module('hz.widget.charts', [])
|
||||
angular.module('horizon.framework.widgets.charts', [])
|
||||
|
||||
/**
|
||||
* @ngdoc parameters
|
||||
* @name hz.widget.charts.constant:donutChartSettings
|
||||
* @name horizon.framework.widgets.charts.constant:donutChartSettings
|
||||
* @param {number} innerRadius Pie chart inner radius in pixels, default: 24
|
||||
* @param {number} outerRadius Pie chart outer radius in pixels, default: 30
|
||||
* @param {object} label with properties font-size and fill (optional)
|
||||
@ -53,7 +53,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc parameters
|
||||
* @name hz.widget.charts.constant:pieChartSettings
|
||||
* @name horizon.framework.widgets.charts.constant:pieChartSettings
|
||||
* @param {number} innerRadius Pie chart inner radius in pixels, default: 0
|
||||
* @param {number} outerRadius Pie chart outer radius in pixels, default: 30
|
||||
* @param {object} label with properties font-size and fill (optional)
|
||||
@ -78,7 +78,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc parameters
|
||||
* @name hz.widget.charts.constant:quotaChartDefaults
|
||||
* @name horizon.framework.widgets.charts.constant:quotaChartDefaults
|
||||
* @param {string} usageLabel label text for Usage, default: 'Current Usage'
|
||||
* @param {string} usageColorClass css class for Usage , default: 'usage'
|
||||
* @param {string} addedLabel label text for Added, default: 'Added'
|
||||
@ -98,7 +98,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc filter
|
||||
* @name hz.widget.charts.filter:showKeyFilter
|
||||
* @name horizon.framework.widgets.charts.filter:showKeyFilter
|
||||
* @function Filter based on 'hideKey' value of each slice
|
||||
* @returns {function} A filtered list of keys to show in legend
|
||||
*
|
||||
|
@ -1,11 +1,11 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular.module('hz.widget.charts')
|
||||
angular.module('horizon.framework.widgets.charts')
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.charts.directive:pieChart
|
||||
* @name horizon.framework.widgets.charts.directive:pieChart
|
||||
* @element
|
||||
* @param {object} chart-data The chart data model
|
||||
* @param {string} chart-settings The custom chart settings (JSON), optional
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.charts module', function () {
|
||||
describe('horizon.framework.widgets.charts module', function () {
|
||||
it('should be defined', function () {
|
||||
expect(angular.module('hz.widget.charts')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.widgets.charts')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
beforeEach(module('templates'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.charts'));
|
||||
beforeEach(module('horizon.framework.widgets.charts'));
|
||||
|
||||
beforeEach(inject(function($injector) {
|
||||
var $compile = $injector.get('$compile');
|
||||
|
@ -1,7 +1,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('hz.widget.help-panel', [])
|
||||
angular.module('horizon.framework.widgets.help-panel', [])
|
||||
.directive('helpPanel', ['horizon.framework.widgets.basePath',
|
||||
function (path) {
|
||||
return {
|
||||
|
@ -1,9 +1,9 @@
|
||||
(function(){
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.help-panel module', function() {
|
||||
describe('horizon.framework.widgets.help-panel module', function() {
|
||||
it('should have been defined', function () {
|
||||
expect(angular.module('hz.widget.help-panel')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.widgets.help-panel')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
beforeEach(module('templates'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.help-panel'));
|
||||
beforeEach(module('horizon.framework.widgets.help-panel'));
|
||||
beforeEach(inject(function ($injector) {
|
||||
$scope = $injector.get('$rootScope').$new();
|
||||
$compile = $injector.get('$compile');
|
||||
|
@ -3,29 +3,29 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.widget.metadata-display
|
||||
* @name horizon.framework.widgets.metadata-display
|
||||
* @description
|
||||
*
|
||||
* # hz.widget.metadata-display
|
||||
* # horizon.framework.widgets.metadata-display
|
||||
*
|
||||
* The `hz.widget.metadata-display` provides widget displaying metadata.
|
||||
* The `horizon.framework.widgets.metadata-display` provides widget displaying metadata.
|
||||
*
|
||||
* | Directives |
|
||||
* |---------------------------------------------------------------------------------------------|
|
||||
* | {@link hz.widget.metadata-display.directive:hzMetadataDisplay `hzMetadataDisplay`} |
|
||||
* | {@link horizon.framework.widgets.metadata-display.directive:hzMetadataDisplay `hzMetadataDisplay`} |
|
||||
* |---------------------------------------------------------------------------------------------|
|
||||
* | Controllers |
|
||||
* |---------------------------------------------------------------------------------------------|
|
||||
* | {@link hz.widget.metadata-display.controller:hzMetadataDisplayCtrl `hzMetadataDisplayCtrl`} |
|
||||
* | {@link horizon.framework.widgets.metadata-display.controller:hzMetadataDisplayCtrl `hzMetadataDisplayCtrl`} |
|
||||
*
|
||||
*/
|
||||
angular.module('hz.widget.metadata-display', [
|
||||
'hz.widget.metadata-tree'
|
||||
angular.module('horizon.framework.widgets.metadata-display', [
|
||||
'horizon.framework.widgets.metadata-tree'
|
||||
])
|
||||
|
||||
/**
|
||||
* @ngdoc parameters
|
||||
* @name hz.widget.metadata-display:metadataTreeDefaults
|
||||
* @name horizon.framework.widgets.metadata-display:metadataTreeDefaults
|
||||
* @param {object} text Text constants
|
||||
*/
|
||||
.constant('metadataDisplayDefaults', {
|
||||
@ -36,7 +36,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.metadata-display.directive:hzMetadataDisplay
|
||||
* @name horizon.framework.widgets.metadata-display.directive:hzMetadataDisplay
|
||||
* @scope
|
||||
*
|
||||
* @description
|
||||
@ -62,7 +62,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc controller
|
||||
* @name hz.widget.metadata-display.controller:hzMetadataDisplayCtrl
|
||||
* @name horizon.framework.widgets.metadata-display.controller:hzMetadataDisplayCtrl
|
||||
* @description
|
||||
* Controller used by `hzMetadataDisplay`
|
||||
*/
|
||||
|
@ -1,9 +1,9 @@
|
||||
(function(){
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.metadata-display module', function() {
|
||||
describe('horizon.framework.widgets.metadata-display module', function() {
|
||||
it('should have been defined', function () {
|
||||
expect(angular.module('hz.widget.metadata-display')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.widgets.metadata-display')).toBeDefined();
|
||||
});
|
||||
|
||||
var namespaces = [
|
||||
@ -95,8 +95,8 @@
|
||||
beforeEach(module('templates'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.metadata-tree'));
|
||||
beforeEach(module('hz.widget.metadata-display'));
|
||||
beforeEach(module('horizon.framework.widgets.metadata-tree'));
|
||||
beforeEach(module('horizon.framework.widgets.metadata-display'));
|
||||
beforeEach(inject(function ($injector) {
|
||||
var $compile = $injector.get('$compile');
|
||||
$scope = $injector.get('$rootScope').$new();
|
||||
|
@ -1,11 +1,11 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('hz.widget.metadata-tree')
|
||||
angular.module('horizon.framework.widgets.metadata-tree')
|
||||
|
||||
/**
|
||||
* @ngdoc service
|
||||
* @name hz.widget.metadata-tree.metadataTreeService
|
||||
* @name horizon.framework.widgets.metadata-tree.metadataTreeService
|
||||
*/
|
||||
.factory('metadataTreeService', [function () {
|
||||
|
||||
|
@ -3,31 +3,31 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.widget.metadata-tree
|
||||
* @name horizon.framework.widgets.metadata-tree
|
||||
* @description
|
||||
*
|
||||
* # hz.widget.metadata-tree
|
||||
* # horizon.framework.widgets.metadata-tree
|
||||
*
|
||||
* The `hz.widget.metadata-tree` provides widgets and service
|
||||
* The `horizon.framework.widgets.metadata-tree` provides widgets and service
|
||||
* with logic for editing metadata.
|
||||
*
|
||||
* | Directives |
|
||||
* |--------------------------------------------------------------------------------------------|
|
||||
* | {@link hz.widget.metadata-tree.directive:hzMetadataTree `hzMetadataTree`} |
|
||||
* | {@link hz.widget.metadata-tree.directive:hzMetadataTreeItem `hzMetadataTreeItem`} |
|
||||
* | {@link hz.widget.metadata-tree.directive:hzMetadataTreeUnique `hzMetadataTreeUnique`} |
|
||||
* | {@link horizon.framework.widgets.metadata-tree.directive:hzMetadataTree `hzMetadataTree`} |
|
||||
* | {@link horizon.framework.widgets.metadata-tree.directive:hzMetadataTreeItem `hzMetadataTreeItem`} |
|
||||
* | {@link horizon.framework.widgets.metadata-tree.directive:hzMetadataTreeUnique `hzMetadataTreeUnique`} |
|
||||
* |--------------------------------------------------------------------------------------------|
|
||||
* | Controllers |
|
||||
* |--------------------------------------------------------------------------------------------|
|
||||
* | {@link hz.widget.metadata-tree.controller:hzMetadataTreeCtrl `hzMetadataTreeCtrl`} |
|
||||
* | {@link hz.widget.metadata-tree.controller:hzMetadataTreeItemCtrl `hzMetadataTreeItemCtrl`} |
|
||||
* | {@link horizon.framework.widgets.metadata-tree.controller:hzMetadataTreeCtrl `hzMetadataTreeCtrl`} |
|
||||
* | {@link horizon.framework.widgets.metadata-tree.controller:hzMetadataTreeItemCtrl `hzMetadataTreeItemCtrl`} |
|
||||
*
|
||||
*/
|
||||
angular.module('hz.widget.metadata-tree', [])
|
||||
angular.module('horizon.framework.widgets.metadata-tree', [])
|
||||
|
||||
/**
|
||||
* @ngdoc parameters
|
||||
* @name hz.widget.metadata-tree.constant:metadataTreeDefaults
|
||||
* @name horizon.framework.widgets.metadata-tree.constant:metadataTreeDefaults
|
||||
* @param {object} text Text constants
|
||||
*/
|
||||
.constant('metadataTreeDefaults', {
|
||||
@ -53,7 +53,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.metadata-tree.directive:hzMetadataTree
|
||||
* @name horizon.framework.widgets.metadata-tree.directive:hzMetadataTree
|
||||
* @scope
|
||||
*
|
||||
* @description
|
||||
@ -82,7 +82,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.metadata-tree.directive:hzMetadataTreeItem
|
||||
* @name horizon.framework.widgets.metadata-tree.directive:hzMetadataTreeItem
|
||||
* @scope
|
||||
*
|
||||
* @description
|
||||
@ -109,7 +109,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.metadata-tree.directive:hzMetadataTreeUnique
|
||||
* @name horizon.framework.widgets.metadata-tree.directive:hzMetadataTreeUnique
|
||||
* @restrict A
|
||||
*
|
||||
* @description
|
||||
@ -132,7 +132,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc controller
|
||||
* @name hz.widget.metadata-tree.controller:hzMetadataTreeCtrl
|
||||
* @name horizon.framework.widgets.metadata-tree.controller:hzMetadataTreeCtrl
|
||||
* @description
|
||||
* Controller used by `hzMetadataTree`
|
||||
*/
|
||||
@ -159,7 +159,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc controller
|
||||
* @name hz.widget.metadata-tree.controller:hzMetadataTreeItemCtrl
|
||||
* @name horizon.framework.widgets.metadata-tree.controller:hzMetadataTreeItemCtrl
|
||||
* @description
|
||||
* Controller used by `hzMetadataTreeItem`
|
||||
*/
|
||||
|
@ -1,9 +1,9 @@
|
||||
(function(){
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.metadata-tree module', function() {
|
||||
describe('horizon.framework.widgets.metadata-tree module', function() {
|
||||
it('should have been defined', function () {
|
||||
expect(angular.module('hz.widget.metadata-tree')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.widgets.metadata-tree')).toBeDefined();
|
||||
});
|
||||
|
||||
var namespaces = [
|
||||
@ -89,7 +89,7 @@
|
||||
beforeEach(module('templates'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.metadata-tree'));
|
||||
beforeEach(module('horizon.framework.widgets.metadata-tree'));
|
||||
|
||||
describe('hzMetadataTree directive', function() {
|
||||
beforeEach(inject(function ($injector) {
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
/**
|
||||
@ngdoc overview
|
||||
@name hz.widget.modal-wait-spinner
|
||||
@name horizon.framework.widgets.modal-wait-spinner
|
||||
@description
|
||||
A "global" wait spinner that displays a line of text followed by "...".
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
component.
|
||||
*/
|
||||
|
||||
angular.module('hz.widget.modal-wait-spinner', [
|
||||
angular.module('horizon.framework.widgets.modal-wait-spinner', [
|
||||
'ui.bootstrap',
|
||||
])
|
||||
.factory('modalWaitSpinnerService', [
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
var service, modal;
|
||||
|
||||
beforeEach(module('hz.widget.modal-wait-spinner'));
|
||||
beforeEach(module('horizon.framework.widgets.modal-wait-spinner'));
|
||||
|
||||
beforeEach(inject(function(modalWaitSpinnerService, $modal) {
|
||||
service = modalWaitSpinnerService;
|
||||
@ -74,7 +74,7 @@
|
||||
var $scope, $element, $timeout;
|
||||
|
||||
beforeEach(module('ui.bootstrap'));
|
||||
beforeEach(module('hz.widget.modal-wait-spinner'));
|
||||
beforeEach(module('horizon.framework.widgets.modal-wait-spinner'));
|
||||
|
||||
beforeEach(inject(function($injector) {
|
||||
var $compile = $injector.get('$compile');
|
||||
|
@ -3,21 +3,21 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.widget.modal
|
||||
* @name horizon.framework.widgets.modal
|
||||
*
|
||||
* # hz.widget.modal
|
||||
* # horizon.framework.widgets.modal
|
||||
*
|
||||
* The `hz.widget.modal` provides modal services.
|
||||
* The `horizon.framework.widgets.modal` provides modal services.
|
||||
*
|
||||
* Requires {@link http://angular-ui.github.io/bootstrap/ `Angular-bootstrap`}
|
||||
*
|
||||
* | Components |
|
||||
* |--------------------------------------------------------------------------|
|
||||
* | {@link hz.widget.modal.controller:simpleModalCtrl `simpleModalCtrl`} |
|
||||
* | {@link hz.widget.modal.factory:simpleModalService `simpleModalService`} |
|
||||
* | {@link horizon.framework.widgets.modal.controller:simpleModalCtrl `simpleModalCtrl`} |
|
||||
* | {@link horizon.framework.widgets.modal.factory:simpleModalService `simpleModalService`} |
|
||||
*
|
||||
*/
|
||||
angular.module('hz.widget.modal', ['ui.bootstrap', 'hz.i18n'])
|
||||
angular.module('horizon.framework.widgets.modal', ['ui.bootstrap', 'horizon.framework.util.i18n'])
|
||||
|
||||
/**
|
||||
* @ngdoc controller
|
||||
@ -68,7 +68,7 @@
|
||||
* }
|
||||
* ]);
|
||||
*/
|
||||
.factory('simpleModalService', ['$modal', 'horizon.framework.widgets.basePath', 'hz.i18n.gettext',
|
||||
.factory('simpleModalService', ['$modal', 'horizon.framework.widgets.basePath', 'horizon.framework.util.i18n.gettext',
|
||||
function($modal, path, gettext) {
|
||||
return function(params) {
|
||||
if (params && params.title && params.body){
|
||||
|
@ -16,9 +16,9 @@
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
describe('hz.widget.modal module', function() {
|
||||
describe('horizon.framework.widgets.modal module', function() {
|
||||
|
||||
beforeEach(module('hz.widget.modal'));
|
||||
beforeEach(module('horizon.framework.widgets.modal'));
|
||||
|
||||
describe('simpleModalCtrl', function() {
|
||||
var scope, modalInstance, context, ctrl;
|
||||
|
@ -1,12 +1,12 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular.module('hz.widget.table')
|
||||
angular.module('horizon.framework.widgets.table')
|
||||
|
||||
.constant('FILTER_PLACEHOLDER_TEXT', gettext('Filter'))
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.table.directive:searchBar
|
||||
* @name horizon.framework.widgets.table.directive:searchBar
|
||||
* @element
|
||||
* @param {string} {array} groupClasses Input group classes (optional)
|
||||
* @param {string} {array} iconClasses Icon classes (optional)
|
||||
|
@ -9,7 +9,7 @@
|
||||
beforeEach(module('smart-table'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.table'));
|
||||
beforeEach(module('horizon.framework.widgets.table'));
|
||||
|
||||
describe('search bar', function() {
|
||||
|
||||
|
@ -3,12 +3,12 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.widget.table
|
||||
* @name horizon.framework.widgets.table
|
||||
* @description
|
||||
*
|
||||
* # hz.widget.table
|
||||
* # horizon.framework.widgets.table
|
||||
*
|
||||
* The `hz.widget.table` provides support for user interactions and checkbox
|
||||
* The `horizon.framework.widgets.table` provides support for user interactions and checkbox
|
||||
* selection in tables.
|
||||
*
|
||||
* Requires {@link https://github.com/lorenzofox3/Smart-Table `Smart-Table`}
|
||||
@ -16,17 +16,17 @@
|
||||
*
|
||||
* | Directives |
|
||||
* |-------------------------------------------------------------------|
|
||||
* | {@link hz.widget.table.directive:hzTable `hzTable`} |
|
||||
* | {@link hz.widget.table.directive:hzSelect `hzSelect`} |
|
||||
* | {@link hz.widget.table.directive:hzSelectAll `hzSelectAll`} |
|
||||
* | {@link hz.widget.table.directive:hzExpandDetail `hzExpandDetail`} |
|
||||
* | {@link horizon.framework.widgets.table.directive:hzTable `hzTable`} |
|
||||
* | {@link horizon.framework.widgets.table.directive:hzSelect `hzSelect`} |
|
||||
* | {@link horizon.framework.widgets.table.directive:hzSelectAll `hzSelectAll`} |
|
||||
* | {@link horizon.framework.widgets.table.directive:hzExpandDetail `hzExpandDetail`} |
|
||||
*
|
||||
*/
|
||||
var app = angular.module('hz.widget.table', [ 'smart-table', 'lrDragNDrop' ]);
|
||||
var app = angular.module('horizon.framework.widgets.table', [ 'smart-table', 'lrDragNDrop' ]);
|
||||
|
||||
/**
|
||||
* @ngdoc parameters
|
||||
* @name hz.widget.table.constant:expandSettings
|
||||
* @name horizon.framework.widgets.table.constant:expandSettings
|
||||
* @param {string} expandIconClasses Icon classes to be used for expand icon
|
||||
* @param {number} duration The slide down animation duration/speed
|
||||
*/
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.table.directive:hzTable
|
||||
* @name horizon.framework.widgets.table.directive:hzTable
|
||||
* @element table st-table='rowCollection'
|
||||
* @description
|
||||
* The `hzTable` directive extends the Smart-Table module to provide
|
||||
@ -125,7 +125,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.table.directive:hzSelect
|
||||
* @name horizon.framework.widgets.table.directive:hzSelect
|
||||
* @element input type='checkbox'
|
||||
* @description
|
||||
* The `hzSelect` directive updates the checkbox selection state of
|
||||
@ -170,7 +170,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.table.directive:hzSelectAll
|
||||
* @name horizon.framework.widgets.table.directive:hzSelectAll
|
||||
* @element input type='checkbox'
|
||||
* @description
|
||||
* The `hzSelectAll` directive updates the checkbox selection state of
|
||||
@ -264,7 +264,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.table.directive:hzExpandDetail
|
||||
* @name horizon.framework.widgets.table.directive:hzExpandDetail
|
||||
* @element i class='fa fa-chevron-right'
|
||||
* @param {number} duration The duration for drawer slide animation
|
||||
* @description
|
||||
|
@ -2,9 +2,9 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.table module', function() {
|
||||
describe('horizon.framework.widgets.table module', function() {
|
||||
it('should have been defined', function () {
|
||||
expect(angular.module('hz.widget.table')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.widgets.table')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
beforeEach(module('smart-table'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.table'));
|
||||
beforeEach(module('horizon.framework.widgets.table'));
|
||||
|
||||
beforeEach(inject(function($injector) {
|
||||
var $compile = $injector.get('$compile');
|
||||
|
@ -18,12 +18,12 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.widget.toast
|
||||
* @name horizon.framework.widgets.toast
|
||||
* description
|
||||
*
|
||||
* # hz.widget.toast
|
||||
* # horizon.framework.widgets.toast
|
||||
*
|
||||
* The `hz.widget.toast` module provides pop-up notifications to Horizon.
|
||||
* The `horizon.framework.widgets.toast` module provides pop-up notifications to Horizon.
|
||||
* A toast is a short text message triggered by a user action to provide
|
||||
* real-time information. Toasts do not disrupt the page's behavior and
|
||||
* typically auto-expire and fade. Also, toasts do not accept any user
|
||||
@ -32,11 +32,11 @@
|
||||
*
|
||||
* | Components |
|
||||
* |--------------------------------------------------------------------------|
|
||||
* | {@link hz.widget.toast.factory:toastService `toastService`} |
|
||||
* | {@link hz.widget.toast.directive:toast `toast`} |
|
||||
* | {@link horizon.framework.widgets.toast.factory:toastService `toastService`} |
|
||||
* | {@link horizon.framework.widgets.toast.directive:toast `toast`} |
|
||||
*
|
||||
*/
|
||||
angular.module('hz.widget.toast', [])
|
||||
angular.module('horizon.framework.widgets.toast', [])
|
||||
|
||||
/**
|
||||
* @ngdoc service
|
||||
@ -137,7 +137,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.toast.directive:toast
|
||||
* @name horizon.framework.widgets.toast.directive:toast
|
||||
*
|
||||
* @description
|
||||
* The `toast` directive allows you to place the toasts wherever you
|
||||
|
@ -16,9 +16,9 @@
|
||||
(function(){
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.toast module', function() {
|
||||
describe('horizon.framework.widgets.toast module', function() {
|
||||
it('should have been defined', function () {
|
||||
expect(angular.module('hz.widget.toast')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.widgets.toast')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
beforeEach(module('templates'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.toast'));
|
||||
beforeEach(module('horizon.framework.widgets.toast'));
|
||||
beforeEach(inject(function ($injector, toastService) {
|
||||
service = toastService;
|
||||
$scope = $injector.get('$rootScope').$new();
|
||||
@ -110,7 +110,7 @@
|
||||
beforeEach(module('templates'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.toast'));
|
||||
beforeEach(module('horizon.framework.widgets.toast'));
|
||||
beforeEach(inject(function ($injector, toastService) {
|
||||
$scope = $injector.get('$rootScope').$new();
|
||||
$compile = $injector.get('$compile');
|
||||
|
@ -3,27 +3,27 @@
|
||||
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name hz.widget.transfer-table
|
||||
* @name horizon.framework.widgets.transfer-table
|
||||
* @description
|
||||
*
|
||||
* # hz.widget.transfer-table
|
||||
* # horizon.framework.widgets.transfer-table
|
||||
*
|
||||
* The `hz.widget.transfer-table` module provides support for transferring
|
||||
* The `horizon.framework.widgets.transfer-table` module provides support for transferring
|
||||
* rows between two tables (allocated and available).
|
||||
*
|
||||
* Requires {@link hz.widget.table.directive:hzTable `hzTable`} module to
|
||||
* Requires {@link horizon.framework.widgets.table.directive:hzTable `hzTable`} module to
|
||||
* be installed.
|
||||
*
|
||||
* | Directives |
|
||||
* |--------------------------------------------------------------------------|
|
||||
* | {@link hz.widget.transfer-table.directive:transferTable `transferTable`} |
|
||||
* | {@link horizon.framework.widgets.transfer-table.directive:transferTable `transferTable`} |
|
||||
*
|
||||
*/
|
||||
angular.module('hz.widget.transfer-table', [ 'ui.bootstrap' ])
|
||||
angular.module('horizon.framework.widgets.transfer-table', [ 'ui.bootstrap' ])
|
||||
|
||||
/**
|
||||
* @ngdoc parameters
|
||||
* @name hz.widget.transfer-table.constant:helpText
|
||||
* @name horizon.framework.widgets.transfer-table.constant:helpText
|
||||
* @param {string} allocTitle Title for allocation section
|
||||
* @param {string} availTitle Title for available section
|
||||
* @param {string} availHelpText Help text shown in available section
|
||||
@ -50,7 +50,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc parameters
|
||||
* @name hz.widget.transfer-table.constant:limits
|
||||
* @name horizon.framework.widgets.transfer-table.constant:limits
|
||||
* @param {number} maxAllocation Maximum allocation allowed
|
||||
*/
|
||||
.constant('limits', {
|
||||
@ -59,7 +59,7 @@
|
||||
|
||||
/*
|
||||
* @ngdoc filter
|
||||
* @name hz.widget.transfer-table.filter:warningText
|
||||
* @name horizon.framework.widgets.transfer-table.filter:warningText
|
||||
* @returns {string} Warning text if exists or empty string
|
||||
*/
|
||||
.filter('warningText', function() {
|
||||
@ -73,7 +73,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc filter
|
||||
* @name hz.widget.transfer-table.filter:rowFilter
|
||||
* @name horizon.framework.widgets.transfer-table.filter:rowFilter
|
||||
* @returns {array} List of filtered items based on field passed in
|
||||
*/
|
||||
.filter('rowFilter', function() {
|
||||
@ -90,7 +90,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc filter
|
||||
* @name hz.widget.transfer-table.filter:foundText
|
||||
* @name horizon.framework.widgets.transfer-table.filter:foundText
|
||||
* @returns {string} Help text for filter results
|
||||
*/
|
||||
.filter('foundText', function() {
|
||||
@ -104,7 +104,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc controller
|
||||
* @name hz.widget.transfer-table.controller:transferTableCtrl
|
||||
* @name horizon.framework.widgets.transfer-table.controller:transferTableCtrl
|
||||
* @description
|
||||
* The `transferTableCtrl` controller provides functions for allocating
|
||||
* and deallocating to and from the 'allocated' array, respectively.
|
||||
@ -278,7 +278,7 @@
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name hz.widget.transfer-table.directive:transferTable
|
||||
* @name horizon.framework.widgets.transfer-table.directive:transferTable
|
||||
* @element
|
||||
* @param {object} trModel Table data model (required)
|
||||
* @param {object} helpText Help text (optional)
|
||||
|
@ -16,16 +16,16 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.transfer-table module', function() {
|
||||
describe('horizon.framework.widgets.transfer-table module', function() {
|
||||
it('should have been defined', function() {
|
||||
expect(angular.module('hz.widget.transfer-table')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.widgets.transfer-table')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe("Filters", function() {
|
||||
var filter;
|
||||
|
||||
beforeEach(module('hz.widget.transfer-table'));
|
||||
beforeEach(module('horizon.framework.widgets.transfer-table'));
|
||||
|
||||
describe("warningText", function() {
|
||||
|
||||
@ -88,9 +88,9 @@
|
||||
beforeEach(module('smart-table'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.action-list'));
|
||||
beforeEach(module('hz.widget.table'));
|
||||
beforeEach(module('hz.widget.transfer-table'));
|
||||
beforeEach(module('horizon.framework.widgets.action-list'));
|
||||
beforeEach(module('horizon.framework.widgets.table'));
|
||||
beforeEach(module('horizon.framework.widgets.transfer-table'));
|
||||
|
||||
describe('max 1 allocation', function() {
|
||||
|
||||
|
@ -2,18 +2,17 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('horizon.framework.widgets', [
|
||||
'hz.widget.form',
|
||||
'hz.widget.help-panel',
|
||||
'hz.widget.wizard',
|
||||
'hz.widget.table',
|
||||
'hz.widget.modal',
|
||||
'hz.widget.modal-wait-spinner',
|
||||
'hz.widget.transfer-table',
|
||||
'hz.widget.charts',
|
||||
'hz.widget.action-list',
|
||||
'hz.widget.metadata-tree',
|
||||
'hz.widget.metadata-display',
|
||||
'hz.widget.toast'
|
||||
'horizon.framework.widgets.help-panel',
|
||||
'horizon.framework.widgets.wizard',
|
||||
'horizon.framework.widgets.table',
|
||||
'horizon.framework.widgets.modal',
|
||||
'horizon.framework.widgets.modal-wait-spinner',
|
||||
'horizon.framework.widgets.transfer-table',
|
||||
'horizon.framework.widgets.charts',
|
||||
'horizon.framework.widgets.action-list',
|
||||
'horizon.framework.widgets.metadata-tree',
|
||||
'horizon.framework.widgets.metadata-display',
|
||||
'horizon.framework.widgets.toast'
|
||||
])
|
||||
.constant('horizon.framework.widgets.basePath', '/static/framework/widgets/');
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
var extend = angular.extend,
|
||||
forEach = angular.forEach;
|
||||
|
||||
angular.module('hz.widget.wizard', ['ui.bootstrap'])
|
||||
angular.module('horizon.framework.widgets.wizard', ['ui.bootstrap'])
|
||||
|
||||
.constant('wizardLabels', {
|
||||
cancel: gettext('Cancel'),
|
||||
|
@ -1,9 +1,9 @@
|
||||
(function(){
|
||||
'use strict';
|
||||
|
||||
describe('hz.widget.wizard module', function () {
|
||||
describe('horizon.framework.widgets.wizard module', function () {
|
||||
it('should have been defined', function () {
|
||||
expect(angular.module('hz.widget.wizard')).toBeDefined();
|
||||
expect(angular.module('horizon.framework.widgets.wizard')).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
beforeEach(module('templates'));
|
||||
beforeEach(module('hz'));
|
||||
beforeEach(module('horizon.framework.widgets'));
|
||||
beforeEach(module('hz.widget.wizard'));
|
||||
beforeEach(module('horizon.framework.widgets.wizard'));
|
||||
beforeEach(inject(function ($injector) {
|
||||
$scope = $injector.get('$rootScope').$new();
|
||||
$compile = $injector.get('$compile');
|
||||
|
@ -23,7 +23,7 @@
|
||||
* hz.filters provides common filters to be used within Horizon.
|
||||
*
|
||||
*/
|
||||
angular.module('hz.filters', ['hz.i18n'])
|
||||
angular.module('hz.filters', ['horizon.framework.util.i18n'])
|
||||
|
||||
/**
|
||||
* @ngdoc filter
|
||||
@ -32,7 +32,7 @@
|
||||
* Evaluates given input as boolean and returns translation
|
||||
* of 'Yes' and 'No' for true/false respectively.
|
||||
*/
|
||||
.filter('yesno', ['hz.i18n.gettext', function(gettext) {
|
||||
.filter('yesno', ['horizon.framework.util.i18n.gettext', function(gettext) {
|
||||
return function(input) {
|
||||
return (input ? gettext("Yes") : gettext("No"));
|
||||
};
|
||||
@ -171,7 +171,7 @@
|
||||
* @description
|
||||
* Returns translated text.
|
||||
*/
|
||||
.filter('trans', ['hz.i18n.gettext', function(gettextFunc) {
|
||||
.filter('trans', ['horizon.framework.util.i18n.gettext', function(gettextFunc) {
|
||||
return function(input) {
|
||||
// NOTE: uses 'gettextFunc' to avoid message collection.
|
||||
return gettextFunc(input);
|
||||
|
@ -1,7 +1,7 @@
|
||||
describe('hz.filters', function () {
|
||||
'use strict';
|
||||
|
||||
beforeEach(module('hz.i18n'));
|
||||
beforeEach(module('horizon.framework.util.i18n'));
|
||||
beforeEach(module('hz.filters'));
|
||||
|
||||
describe('yesno', function() {
|
||||
|
@ -39,13 +39,13 @@
|
||||
|
||||
<script src='{{ STATIC_URL }}framework/util/util.module.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/util/bind-scope/bind-scope.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/util/form/form.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/util/i18n/i18n.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/util/validators/validators.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/util/workflow/workflow.js'></script>
|
||||
|
||||
<script src='{{ STATIC_URL }}framework/widgets/widgets.module.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/widgets/form/form.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/widgets/help-panel/help-panel.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/widgets/i18n/i18n.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/widgets/wizard/wizard.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/widgets/action-list/action-list.js'></script>
|
||||
<script src='{{ STATIC_URL }}framework/widgets/action-list/button-tooltip.js'></script>
|
||||
|
@ -28,6 +28,8 @@ class ServicesTests(test.JasmineTests):
|
||||
|
||||
'framework/util/util.module.js',
|
||||
'framework/util/bind-scope/bind-scope.js',
|
||||
'framework/util/form/form.js',
|
||||
'framework/util/i18n/i18n.js',
|
||||
'framework/util/validators/validators.js',
|
||||
'framework/util/workflow/workflow.js',
|
||||
|
||||
@ -37,7 +39,6 @@ class ServicesTests(test.JasmineTests):
|
||||
'framework/widgets/charts/charts.js',
|
||||
'framework/widgets/charts/chart-tooltip.js',
|
||||
'framework/widgets/charts/pie-chart.js',
|
||||
'framework/widgets/form/form.js',
|
||||
'framework/widgets/help-panel/help-panel.js',
|
||||
'framework/widgets/login/login.js',
|
||||
'framework/widgets/metadata-tree/metadata-tree.js',
|
||||
@ -50,7 +51,6 @@ class ServicesTests(test.JasmineTests):
|
||||
'framework/widgets/wizard/wizard.js',
|
||||
'framework/widgets/metadata-display/metadata-display.js',
|
||||
'framework/widgets/toast/toast.js',
|
||||
'framework/widgets/i18n/i18n.js',
|
||||
'horizon/js/angular/filters/filters.js',
|
||||
]
|
||||
specs = [
|
||||
@ -59,12 +59,13 @@ class ServicesTests(test.JasmineTests):
|
||||
'horizon/tests/jasmine/utils.spec.js',
|
||||
|
||||
'framework/util/bind-scope/bind-scope.spec.js',
|
||||
'framework/util/form/form.spec.js',
|
||||
'framework/util/i18n/i18n.spec.js',
|
||||
'framework/util/validators/validators.spec.js',
|
||||
'framework/util/workflow/workflow.spec.js',
|
||||
|
||||
'framework/widgets/action-list/action-list.spec.js',
|
||||
'framework/widgets/charts/pie-chart.spec.js',
|
||||
'framework/widgets/form/form.spec.js',
|
||||
'framework/widgets/help-panel/help-panel.spec.js',
|
||||
'framework/widgets/login/login.spec.js',
|
||||
'framework/widgets/modal/modal.spec.js',
|
||||
@ -76,7 +77,6 @@ class ServicesTests(test.JasmineTests):
|
||||
'framework/widgets/metadata-tree/metadata-tree.spec.js',
|
||||
'framework/widgets/metadata-display/metadata-display.spec.js',
|
||||
'framework/widgets/toast/toast.spec.js',
|
||||
'framework/widgets/i18n/i18n.spec.js',
|
||||
'horizon/js/angular/filters/filters.spec.js',
|
||||
]
|
||||
externalTemplates = [
|
||||
|
@ -78,7 +78,7 @@
|
||||
* @description
|
||||
*
|
||||
* Injected dependencies:
|
||||
* - workflow {@link hz.framework.workflow.factory:workflow `workflow`}
|
||||
* - workflow {@link horizon.framework.util.workflow.factory:workflow `workflow`}
|
||||
* - dashboardWorkflowDecorator {@link hz.dashboard.workflow.factory
|
||||
* :dashboardWorkflowDecorator `dashboardWorkflowDecorator`}
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user