OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/frontend/app/ui_components/index.js

117 lines
4.7 KiB

//-- copyright
// OpenProject is a project management system.
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
// Copyright (C) 2006-2013 Jean-Philippe Lang
// Copyright (C) 2010-2013 the ChiliProject Team
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// See doc/COPYRIGHT.rdoc for more details.
//++
angular.module('openproject.uiComponents')
.directive('accessibleByKeyboard', [require(
'./accessible-by-keyboard-directive')])
.directive('accessibleCheckbox', [require('./accessible-checkbox-directive')])
.directive('accessibleElement', [require('./accessible-element-directive')])
.directive('activityComment', [
'$timeout',
'I18n',
'ActivityService',
'ConfigurationService',
'AutoCompleteHelper',
require('./activity-comment-directive')
])
.directive('authoring', ['I18n', 'PathHelper', 'TimezoneService', require(
'./authoring-directive')])
.directive('backUrl', [require('./back-url-directive')])
.directive('date', ['TimezoneService', require('./date/date-directive')])
.directive('time', ['TimezoneService', require('./date/time-directive')])
.directive('dateTime', ['$compile', 'TimezoneService', require('./date/date-time-directive')])
.directive('dropdown', require('./dropdown-directive'))
.directive('emptyElement', [require('./empty-element-directive')])
.constant('ENTER_KEY', 13)
.directive('executeOnEnter', ['ENTER_KEY', require(
'./execute-on-enter-directive')])
.directive('flashMessage', [
'$rootScope',
'$timeout',
'ConfigurationService',
require('./flash-message-directive')
])
.directive('focus', ['FocusHelper', require('./focus-directive')])
.constant('FOCUSABLE_SELECTOR', 'a, button, :input, [tabindex], select')
.service('FocusHelper', ['$timeout', 'FOCUSABLE_SELECTOR', require(
'./focus-helper')])
.directive('hasDropdownMenu', [
'$injector',
'$window',
'$parse',
require('./has-dropdown-menu-directive')
])
.service('I18n', [require('./i18n')])
.directive('iconWrapper', [require('./icon-wrapper-directive')])
.directive('inaccessibleByTab', [require('./inaccessible-by-tab-directive')])
.directive('inplaceEditor', [
'$timeout',
'FocusHelper',
10 years ago
'InplaceEditorDispatcher',
require('./inplace-editor-directive')
])
.service('InplaceEditorDispatcher', require('./inplace-editor-dispatcher'))
.directive('modal', [require('./modal-directive')])
.directive('modalLoading', ['I18n', require('./modal-loading-directive')])
.directive('progressBar', ['I18n', require('./progress-bar-directive')])
.constant('LABEL_MAX_CHARS', 40)
.constant('KEY_CODES', {
enter: 13,
up: 38,
down: 40
})
.directive('selectableTitle', ['$sce', 'LABEL_MAX_CHARS', 'KEY_CODES',
require('./selectable-title-directive')
])
.constant('DOUBLE_CLICK_DELAY', 300)
// Thanks to http://stackoverflow.com/a/20445344
.directive('singleClick', [
'DOUBLE_CLICK_DELAY',
'$parse',
'$timeout',
require('./single-click')
])
.directive('slideToggle', [require('./slide-toggle')])
.directive('sortLink', ['I18n', 'SortService', require(
'./sort-link-directive')])
.directive('tablePagination', ['I18n', 'PaginationService', require(
'./table-pagination-directive')])
.directive('toggledMultiselect', ['I18n', require(
'./toggled-multiselect-directive')])
.directive('toolbar', require('./toolbar-directive'))
.constant('ESC_KEY', 27)
.directive('wikiToolbar', [require('./wiki-toolbar-directive')])
.directive('withDropdown', ['$rootScope',
'$window',
'ESC_KEY',
'FocusHelper', require('./with-dropdown-directive')
])
.directive('zoomSlider', ['I18n', require('./zoom-slider-directive')])
.filter('ancestorsExpanded', require('./filters/ancestors-expanded-filter'))
.filter('latestItems', require('./filters/latest-items-filter'));