@atlassian/aui
Version:
Atlassian User Interface Framework
570 lines (542 loc) • 15.6 kB
JavaScript
/*!!
* @atlassian/aui - Atlassian User Interface Framework
* @version v7.8.1
* @link https://docs.atlassian.com/aui/latest/
* @license SEE LICENSE IN LICENSE.md
* @author Atlassian Pty Ltd.
*/
// src/js/aui/internal/deprecation/deprecated-adg2-icons.js
(typeof window === 'undefined' ? global : window).__b7baf03d238f99ca28c3c4d9831bfb1e = (function () {
var module = {
exports: {}
};
var exports = module.exports;
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var deprecatedIcons = [{
newName: 'menu',
oldName: 'appswitcher'
}, {
newName: 'refresh',
oldName: 'build'
}, {
newName: 'cross',
oldName: 'close-dialog'
}, {
newName: 'chevron-right',
oldName: 'collapsed'
}, {
newName: 'settings',
oldName: 'configure'
}, {
newName: 'copy',
oldName: 'copy-clipboard'
}, {
newName: 'trash',
oldName: 'delete'
}, {
newName: 'detail-view',
oldName: 'details'
}, {
newName: 'arrow-left',
oldName: 'devtools-arrow-left'
}, {
newName: 'arrow-right',
oldName: 'devtools-arrow-right'
}, {
newName: 'sign-in',
oldName: 'devtools-checkout'
}, {
newName: 'import',
oldName: 'devtools-clone'
}, {
newName: 'folder-filled',
oldName: 'devtools-folder-closed'
}, {
newName: 'export',
oldName: 'devtools-pull-request'
}, {
newName: 'tag',
oldName: 'devtools-tag'
}, {
newName: 'tag',
oldName: 'devtools-tag-small'
}, {
newName: 'menu',
oldName: 'drag-vertical'
}, {
newName: 'edit-filled',
oldName: 'edit'
}, {
newName: 'edit-filled',
oldName: 'edit-small'
}, {
newName: 'chevron-up',
oldName: 'expanded'
}, {
newName: 'vid-full-screen-on',
oldName: 'focus'
}, {
newName: 'more-vertical',
oldName: 'handle-horizontal'
}, {
newName: 'question-circle',
oldName: 'help'
}, {
newName: 'home-circle',
oldName: 'homepage'
}, {
newName: 'image',
oldName: 'image-extrasmall'
}, {
newName: 'info-circle',
oldName: 'info'
}, {
newName: 'world',
oldName: 'weblink'
}, {
newName: 'add-circle',
oldName: 'list-add'
}, {
newName: 'cross-circle',
oldName: 'list-remove'
}, {
newName: 'lock-filled',
oldName: 'locked'
}, {
newName: 'lock-filled',
oldName: 'locked-small'
}, {
newName: 'document',
oldName: 'page-blank'
}, {
newName: 'document',
oldName: 'doc'
}, {
newName: 'documents',
oldName: 'pages'
}, {
newName: 'cross-circle',
oldName: 'remove'
}, {
newName: 'cross-circle',
oldName: 'remove-label'
}, {
newName: 'search',
oldName: 'search-small'
}, {
newName: 'person-circle',
oldName: 'space-personal'
}, {
newName: 'star-filled',
oldName: 'star'
}, {
newName: 'check',
oldName: 'success'
}, {
newName: 'recent',
oldName: 'time'
}, {
newName: 'vid-full-screen-off',
oldName: 'unfocus'
}, {
newName: 'unlock-filled',
oldName: 'unlocked'
}, {
newName: 'star',
oldName: 'unstar'
}, {
newName: 'watch',
oldName: 'unwatch'
}, {
newName: 'arrow-up',
oldName: 'up'
}, {
newName: 'arrow-down',
oldName: 'down'
}, {
newName: 'person',
oldName: 'user'
}, {
newName: 'watch-filled',
oldName: 'view'
}, {
newName: 'room-menu',
oldName: 'view-list'
}, {
newName: 'menu',
oldName: 'view-table'
}, {
newName: 'watch-filled',
oldName: 'watch'
}, {
newName: 'tray',
oldName: 'workbox'
}, {
newName: 'bullet-list',
oldName: 'configure-columns'
}, {
newName: 'image',
oldName: 'file-image'
}, {
newName: 'group',
oldName: 'admin-roles'
}, {
newName: 'vid-pause',
oldName: 'pause'
}, {
newName: 'refresh',
oldName: 'refresh-small'
}, {
newName: 'swap',
oldName: 'switch-small'
}, {
newName: 'arrow-down-small',
oldName: 'arrow-down'
}, {
newName: 'arrow-up-small',
oldName: 'arrow-up'
}, {
newName: 'email',
oldName: 'email-large'
}, {
newName: 'documents',
oldName: 'pages-large'
}, {
newName: 'person',
oldName: 'user-large'
}, {
newName: 'documents',
oldName: 'bp-decisions'
}, {
newName: 'documents',
oldName: 'bp-default'
}, {
newName: 'documents',
oldName: 'bp-files'
}, {
newName: 'documents',
oldName: 'bp-requirements'
}, {
newName: 'documents',
oldName: 'bp-howto'
}, {
newName: 'documents',
oldName: 'bp-jira'
}, {
newName: 'documents',
oldName: 'bp-meeting'
}, {
newName: 'documents',
oldName: 'bp-retrospective'
}, {
newName: 'documents',
oldName: 'bp-sharedlinks'
}, {
newName: 'documents',
oldName: 'bp-troubleshooting'
}, {
newName: 'upload',
oldName: 'deploy'
}, {
newName: 'file',
oldName: 'page-default'
}, {
newName: 'shortcut',
oldName: 'sidebar-link'
}, {
newName: 'shortcut',
oldName: 'sidebar-link-large'
}, {
newName: 'incomplete-build',
oldName: 'devtools-task-cancelled'
}, {
newName: 'plan-disabled',
oldName: 'devtools-task-disabled'
}, {
newName: 'queued-build',
oldName: 'devtools-task-in-progress'
}, {
newName: 'branch',
oldName: 'devtools-branch'
}, {
newName: 'branch',
oldName: 'devtools-branch-small'
}, {
newName: 'commits',
oldName: 'devtools-commit'
}, {
newName: 'create-fork',
oldName: 'devtools-for'
}, {
newName: 'bold',
oldName: 'editor-bold'
}, {
newName: 'italic',
oldName: 'editor-italic'
}, {
newName: 'underline',
oldName: 'editor-underline'
}, {
newName: 'text-color',
oldName: 'editor-color'
}, {
newName: 'left-alignment',
oldName: 'editor-align-left'
}, {
newName: 'right-alignment',
oldName: 'editor-align-right'
}, {
newName: 'center-alignment',
oldName: 'editor-align-center'
}, {
newName: 'indent-left-mall',
oldName: 'editor-indent'
}, {
newName: 'indent-right-mall',
oldName: 'editor-outdent'
}, {
newName: 'number-list-mall',
oldName: 'editor-list-number'
}, {
newName: 'bullet-list-mall',
oldName: 'editor-list-bullet'
}, {
newName: 'mention',
oldName: 'editor-mention'
}, {
newName: 'table-of-contents-mall',
oldName: 'editor-macro-toc'
}, {
newName: 'advanced',
oldName: 'editor-style'
}, {
newName: 'symbol',
oldName: 'editor-symbol'
}, {
newName: 'horizontal-rule',
oldName: 'editor-hr'
}, {
newName: 'page-layout-toggle',
oldName: 'editor-layout'
}, {
newName: 'table',
oldName: 'editor-table'
}, {
newName: 'location',
oldName: 'nav-children-large'
}, {
newName: 'location',
oldName: 'nav-children'
}, {
newName: 'single-column',
oldName: 'layout-1col-large'
}, {
newName: 'two-column',
oldName: 'layout-2col-large'
}, {
newName: 'right-side-bar',
oldName: 'layout-2col-left-large'
}, {
newName: 'left-side-bar',
oldName: 'layout-2col-right-large'
}, {
newName: 'three-column-side-bars',
oldName: 'layout-3col-center-large'
}, {
newName: 'three-column',
oldName: 'layout-3col-large'
}, {
newName: 'heading-column',
oldName: 'table-header-column'
}, {
newName: 'heading-row',
oldName: 'table-header-row'
}, {
newName: 'insert-row-after',
oldName: 'table-row-down'
}, {
newName: 'insert-row-before',
oldName: 'table-row-up'
}, {
newName: 'remove-row',
oldName: 'table-row-remove'
}, {
newName: 'remove-column',
oldName: 'table-col-remove'
}, {
newName: 'insert-column-before',
oldName: 'table-col-left'
}, {
newName: 'insert-column-after',
oldName: 'table-col-right'
}, {
newName: 'remove-table',
oldName: 'table-remove'
}, {
newName: 'merge-table-cells',
oldName: 'table-merge'
}, {
newName: 'split-merged-table-cells',
oldName: 'table-split'
}, {
newName: 'copy-table-row',
oldName: 'table-copy-row'
}, {
newName: 'paste-table-row',
oldName: 'table-paste-row'
}, {
newName: 'cut-table-row',
oldName: 'table-cut-row'
}, {
newName: 'team-calendar',
oldName: 'teamcals-large'
}, {
newName: 'team-calendar',
oldName: 'teamcals'
}, {
newName: 'emoji',
oldName: 'editor-emoticon'
}, {
newName: 'help',
oldName: 'editor-help'
}, {
newName: 'task',
oldName: 'editor-task'
}, {
newName: 'like',
oldName: 'like-small'
}, {
newName: 'submodule',
oldName: 'devtools-submodule'
}];
exports.default = deprecatedIcons;
module.exports = exports['default'];
return module.exports;
}).call(this);
// src/js/aui-css-deprecations.js
(typeof window === 'undefined' ? global : window).__ad5db922010b98cb3c9a2e4b5afbd898 = (function () {
var module = {
exports: {}
};
var exports = module.exports;
'use strict';
var _deprecation = __790480709a11d9caf89bfe72fb497800;
var _amdify = __c22195cc5d37225b372c9a8af628fc78;
var _amdify2 = _interopRequireDefault(_amdify);
var _deprecatedAdg2Icons = __b7baf03d238f99ca28c3c4d9831bfb1e;
var _deprecatedAdg2Icons2 = _interopRequireDefault(_deprecatedAdg2Icons);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
(0, _deprecation.css)('.aui-badge', {
displayName: 'AUI Badges class'
});
(0, _deprecation.css)('.aui-dropdown2-trigger.aui-style-dropdown2triggerlegacy1', {
displayName: 'Dropdown2 legacy trigger'
});
(0, _deprecation.css)('.aui-message span.aui-icon', {
displayName: 'Message icon span'
});
(0, _deprecation.css)('.aui-zebra', {
displayName: 'Zebra table rows'
});
(0, _deprecation.css)('.aui-nav-pagination > li.aui-nav-current', {
alternativeName: 'aui-nav-selected'
});
(0, _deprecation.css)('.aui-tabs.vertical-tabs', {
displayName: 'Vertical tabs'
});
(0, _deprecation.css)('form.aui span.content');
(0, _deprecation.css)(['form.aui .button', 'form.aui .buttons-container'], {
displayName: 'Unprefixed buttons',
alternativeName: 'aui-button and aui-buttons'
});
(0, _deprecation.css)(['form.aui .icon-date', 'form.aui .icon-range', 'form.aui .icon-help', 'form.aui .icon-required', 'form.aui .icon-inline-help', 'form.aui .icon-users', '.aui-icon-date', '.aui-icon-range', '.aui-icon-help', '.aui-icon-required', '.aui-icon-users', '.aui-icon-inline-help'], {
displayName: 'Form icons'
});
(0, _deprecation.css)(['.aui-icon.icon-move-d', '.aui-icon.icon-move', '.aui-icon.icon-dropdown-d', '.aui-icon.icon-dropdown', '.aui-icon.icon-dropdown-active-d', '.aui-icon.icon-dropdown-active', '.aui-icon.icon-minimize-d', '.aui-icon.icon-minimize', '.aui-icon.icon-maximize-d', '.aui-icon.icon-maximize'], {
displayName: 'Core icons'
});
(0, _deprecation.css)(['.aui-message.error', '.aui-message.warning', '.aui-message.hint', '.aui-message.info', '.aui-message.success'], {
displayName: 'Unprefixed message types AUI-2150'
});
(0, _deprecation.css)(['.aui-dropdown2 .active', '.aui-dropdown2 .checked', '.aui-dropdown2 .disabled', '.aui-dropdown2 .interactive'], {
displayName: 'Unprefixed dropdown2 css AUI-2150'
});
(0, _deprecation.css)(['.aui-page-header-marketing', '.aui-page-header-hero'], {
displayName: 'Marketing style headings',
removeVersion: '8.0.0'
});
// 5.9.0
// -----
var fiveNineZero = {
// Inline Dialog
'arrow': 'aui-inline-dialog-arrow',
'contents': 'aui-inline-dialog-contents',
// Messages
'error': 'aui-message-error',
'generic': 'aui-message-generic',
'hint': 'aui-message-hint',
'info': 'aui-message-info',
'success': 'aui-message-success',
'warning': 'aui-message-warning'
};
var name;
for (name in fiveNineZero) {
if (Object.hasOwnProperty.call(fiveNineZero, name)) {
(0, _deprecation.css)(name, {
alternativeName: fiveNineZero[name],
removeVersion: '8.0.0',
sinceVersion: '5.9.0'
});
}
}
// 6.1.0
// -----
(0, _deprecation.css)(['.aui-header-logo-atlassian', '.aui-header-logo-aui', '.aui-header-logo-bamboo', '.aui-header-logo-bitbucket', '.aui-header-logo-stash', '.aui-header-logo-clover', '.aui-header-logo-confluence', '.aui-header-logo-crowd', '.aui-header-logo-crucible', '.aui-header-logo-fecru', '.aui-header-logo-fisheye', '.aui-header-logo-hipchat', '.aui-header-logo-jira', '.aui-header-logo-jira-core', '.aui-header-logo-jira-software', '.aui-header-logo-jira-service-desk', '.aui-header-logo-answer', '.aui-header-logo-community', '.aui-header-logo-developers', '.aui-header-logo-expert', '.aui-header-logo-partner-program', '.aui-header-logo-marketplace', '.aui-header-logo-support', '.aui-header-logo-university', '.aui-header-logo-cloud'], {
displayName: 'Atlassian Brand Logos'
});
// 7.1.0
// -----
(0, _deprecation.css)('.aui-badge', {
displayName: 'AUI Badge CSS class',
alternativeName: 'aui-badge',
sinceVersion: '7.1.0',
extraInfo: 'The badge pattern is best used as a web component instead of a CSS class'
});
// 7.5.0
// -----
(0, _deprecation.css)(['.aui-iconfont-image-extrasmall'], {
displayName: 'Special size icon names',
sinceVersion: '7.5.0',
extraInfo: 'The only size variant allowed for icon names is `-small`.'
});
(0, _deprecation.css)('.aui-icon-dropdown', {
displayName: 'AUI dropdown icon element',
alternativeName: '.aui-icon-chevron-down',
sinceVersion: '7.5.0',
extraInfo: 'Use of an explicit element for the dropdown icon is part of a ' + 'deprecated markup pattern for dropdowns and should not be used. If you must ' + 'render an explicit icon element for a dropdown trigger, use the new ' + 'alternative class name.'
});
// New ADGS names for the old ADG2 icon
_deprecatedAdg2Icons2.default.forEach(function (_ref) {
var newName = _ref.newName,
oldName = _ref.oldName;
return (0, _deprecation.css)('.aui-iconfont-' + oldName, {
displayName: 'ADG2 icon',
alternativeName: '.aui-iconfont-' + newName,
sinceVersion: '7.5.0',
removeVersion: '8.0.0',
extraInfo: 'Use the new ADGS icon CSS class name'
});
});
// 7.8.0
(0, _deprecation.css)('.aui-table-interactive', {
alternativeName: '.aui-table-list',
sinceVersion: '7.8.0',
removeInVersion: '8.0.0',
extraInfo: 'The "interactive" suffix caused some confusion when contrasted with sortable tables.' + 'The name has been updated to reflect its intended purpose: displaying lists of data in a tabular format.'
});
(0, _amdify2.default)('aui/css-deprecation-warnings');
return module.exports;
}).call(this);