Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as middleEllipsisHelper from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/middle.ellipsis';

(function (global, doc, ibexa, React, ReactDOM) {
const SELECTOR_RESET_STARTING_LOCATION_BTN = '.ibexa-tag__remove-btn';
const defaultLocationContainers = doc.querySelectorAll('.ibexa-default-location');
Expand All @@ -11,7 +13,7 @@

const deleteBtn = container.querySelector(SELECTOR_RESET_STARTING_LOCATION_BTN);

ibexa.helpers.ellipsis.middle.parseAll();
middleEllipsisHelper.parse();

deleteBtn.addEventListener('click', resetStartingLocation, false);
};
Expand Down Expand Up @@ -99,6 +101,6 @@
defaultLocationContainers.forEach((defaultLocationContainer) => {
attachEvents(defaultLocationContainer);
toggleDisabledState(defaultLocationContainer);
ibexa.helpers.ellipsis.middle.parseAll();
middleEllipsisHelper.parse();
});
})(window, window.document, window.ibexa, window.React, window.ReactDOM);
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(function (global, doc, ibexa) {
ibexa.helpers.ellipsis.middle.parseAll();
})(window, window.document, window.ibexa);
import * as middleEllipsisHelper from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/middle.ellipsis';

(function () {
middleEllipsisHelper.parse();
})();
6 changes: 5 additions & 1 deletion src/bundle/Resources/public/js/scripts/core/base.chart.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { getAdminUiConfig } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/context.helper';

(function (global, doc, ibexa, Chart) {
const IBEXA_WHITE = '#fff';
const IBEXA_COLOR_BASE = '#e0e0e8';
Expand Down Expand Up @@ -32,10 +34,12 @@

class BaseChart {
constructor(data, options = {}, plugins = []) {
const { backOfficeLanguage } = getAdminUiConfig();

this.setData(data);
this.setOptions(options);
this.setPlugins(plugins);
this.lang = document.documentElement.lang.replace('_', '-'); // TODO: Get this config from settings
this.lang = backOfficeLanguage;
}

setData(data) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as middleEllipsisHelper from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/middle.ellipsis';

(function (global, doc, ibexa) {
class TagViewSelect {
constructor(config) {
Expand All @@ -24,7 +26,7 @@
this.attachDeleteEvents = this.attachDeleteEvents.bind(this);
this.adjustButtonLabel = this.adjustButtonLabel.bind(this);

ibexa.helpers.ellipsis.middle.parseAll();
middleEllipsisHelper.parse();
this.attachDeleteEvents();

this.disabledObserver = new MutationObserver((mutationsList) => {
Expand Down Expand Up @@ -78,7 +80,7 @@
});

this.inputField.dispatchEvent(new Event('change'));
ibexa.helpers.ellipsis.middle.parseAll();
middleEllipsisHelper.parse();
this.toggleDeleteButtons();
this.adjustButtonLabel();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as browser from './browser.helper';
import * as contentType from './content.type.helper';
import * as cookies from './cookies.helper';
import * as formError from './form.error.helper';
import * as formValidation from './form.validation.helper';
import * as highlight from './highlight.helper';
import * as icon from './icon.helper';
Expand All @@ -23,7 +22,6 @@ import * as user from './user.helper';
ibexa.addConfig('helpers.browser', browser);
ibexa.addConfig('helpers.contentType', contentType);
ibexa.addConfig('helpers.cookies', cookies);
ibexa.addConfig('helpers.formError', formError);
ibexa.addConfig('helpers.formValidation', formValidation);
ibexa.addConfig('helpers.highlight', highlight);
ibexa.addConfig('helpers.icon', icon);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ const parse = (baseElement = doc) => {
resizeEllipsisObserver.observe(middleEllipsisContainer);
});
};
// @deprecated, will be removed in 5.0
const parseAll = () => parse(doc);
const update = (baseElement, content) => {
const contentElements = [...baseElement.querySelectorAll('.ibexa-middle-ellipsis__name-ellipsized')];
const contentEscaped = escapeHTML(content);
Expand All @@ -53,4 +51,4 @@ const update = (baseElement, content) => {
parse(baseElement);
};

export { parse, parseAll, update };
export { parse, update };
11 changes: 0 additions & 11 deletions src/bundle/Resources/public/scss/_alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,4 @@
}
}
}

//Alert Complementary depracated. Will be removed in 5.0.
&--complementary {
color: $ibexa-color-complementary-700;
background-color: $ibexa-color-complementary-100;
border-color: $ibexa-color-complementary;

.ibexa-icon {
fill: $ibexa-color-complementary-700;
}
}
}
4 changes: 2 additions & 2 deletions src/bundle/Resources/public/scss/_content-type-edit.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.ibexa-available-field-types {
@include sidebar-drag-items();
@include toolbox-drag-items;

min-height: calculateRem(700px);
max-height: calc(100vh - #{calculateRem(200px)});
margin-left: calculateRem(32px);
}

.ibexa-available-field-type {
@include sidebar-drag-item;
@include toolbox-drag-item;
}

.ibexa-content-type-edit {
Expand Down
47 changes: 0 additions & 47 deletions src/bundle/Resources/public/scss/_footer.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/bundle/Resources/public/scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
@import 'mixins/modals';
@import 'mixins/togglers';
@import 'mixins/pagination';
@import 'mixins/font';
@import 'mixins/containers';
@import 'mixins/drag-and-drop';
@import 'mixins/spinner';
Expand Down
1 change: 0 additions & 1 deletion src/bundle/Resources/public/scss/ibexa.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
@import 'trash-search-form';
@import 'inputs';
@import 'links';
@import 'footer';
@import 'embedded-item-actions';
@import 'popup-menu';
@import 'multilevel-popup-menu';
Expand Down
Loading