Skip to content

Commit

Permalink
Merge branch '1.12-release' into 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Dec 19, 2022
2 parents be31300 + 7b430d4 commit 2c0962b
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 17 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/dist/styles/bundle.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions client/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
"Admin.VALIDATION_ERRORS_IN_TAB_SCREEN_READER": "(Has validation errors)",
"Admin.NONE": "None",
"Admin.EDIT": "Edit",
"Admin.EDIT_LINK": "Edit link",
"Admin.REMOVE_LINK": "Remove link",
"Admin.ANY": "Any",
"Admin.ERRORINTRANSACTION": "An error occured while fetching data from the server\n Please try again later.",
"Admin.DELETECONFIRMMESSAGE": "Are you sure you want to delete this record?",
Expand Down
6 changes: 3 additions & 3 deletions client/lang/pl.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
"Admin.CONFIRMUNSAVED": "Czy na pewno chcesz kontynuować nawigację poza tą stronę?\n\nUWAGA: Twoje zmiany nie zostały zapisane.\n\nWciśnij OK aby kontynuować, wciśnij Anuluj aby pozostać na tej stronie.",
"Admin.CONFIRMUNSAVEDSHORT": "UWAGA: Twoje zmiany nie zostały zapisane.",
"Admin.VALIDATIONERROR": "Niepoprawne dane",
"Admin.VALIDATION_ERRORS_IN_TAB": "This tab contains validation errors.",
"Admin.VALIDATION_ERRORS_ON_PAGE": "There are validation errors on this page, please fix them before saving or publishing.",
"Admin.VALIDATION_ERRORS_IN_TAB_SCREEN_READER": "(Has validation errors)",
"Admin.VALIDATION_ERRORS_IN_TAB": "Ta zakładka zawiera błędy walidacji.",
"Admin.VALIDATION_ERRORS_ON_PAGE": "Na tej stronie występują błędy walidacji, należy je poprawić przed zapisaniem lub opublikowaniem.",
"Admin.VALIDATION_ERRORS_IN_TAB_SCREEN_READER": "(błąd walidacji)",
"Admin.NONE": "Żaden",
"Admin.EDIT": "Edytuj",
"Admin.ANY": "Każdy",
Expand Down
6 changes: 3 additions & 3 deletions client/lang/src/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"Admin.CONFIRMUNSAVED": "Czy na pewno chcesz kontynuować nawigację poza tą stronę?\n\nUWAGA: Twoje zmiany nie zostały zapisane.\n\nWciśnij OK aby kontynuować, wciśnij Anuluj aby pozostać na tej stronie.",
"Admin.CONFIRMUNSAVEDSHORT": "UWAGA: Twoje zmiany nie zostały zapisane.",
"Admin.VALIDATIONERROR": "Niepoprawne dane",
"Admin.VALIDATION_ERRORS_IN_TAB": "This tab contains validation errors.",
"Admin.VALIDATION_ERRORS_ON_PAGE": "There are validation errors on this page, please fix them before saving or publishing.",
"Admin.VALIDATION_ERRORS_IN_TAB_SCREEN_READER": "(Has validation errors)",
"Admin.VALIDATION_ERRORS_IN_TAB": "Ta zakładka zawiera błędy walidacji.",
"Admin.VALIDATION_ERRORS_ON_PAGE": "Na tej stronie występują błędy walidacji, należy je poprawić przed zapisaniem lub opublikowaniem.",
"Admin.VALIDATION_ERRORS_IN_TAB_SCREEN_READER": "(błąd walidacji)",
"Admin.NONE": "Żaden",
"Admin.EDIT": "Edytuj",
"Admin.ANY": "Każdy",
Expand Down
3 changes: 2 additions & 1 deletion client/src/bundles/vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import/no-webpack-loader-syntax,
import/no-extraneous-dependencies,
import/no-unresolved,
import/extensions
import/extensions,
global-require
*/
// TODO Enable require(*.css) includes once https://github.com/webpack/extract-text-webpack-plugin/issues/179
// is resolved. Included in bundle.scss for now.
Expand Down
18 changes: 16 additions & 2 deletions client/src/components/Search/SearchBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class SearchBox extends Component {
this.getComponentWidth = this.getComponentWidth.bind(this);
this.calculateSpaceForTags = this.calculateSpaceForTags.bind(this);
this.calculateInputLeftPadding = this.calculateInputLeftPadding.bind(this);
this.calculateInputRightPadding = this.calculateInputRightPadding.bind(this);
this.onTagListResize = this.onTagListResize.bind(this);
this.focusOnLastTag = this.focusOnLastTag.bind(this);
this.focusOnInput = this.focusOnInput.bind(this);
Expand Down Expand Up @@ -90,6 +91,12 @@ class SearchBox extends Component {
return this.state.tagWidth + existingPadding;
}

calculateInputRightPadding() {
// Right padding is used to set the alignedment of the "x" that shows in chrome
// when you type in the search box
return this.state.width < 576 ? 121 : 264;
}

/**
* Calculate the max-width available for tags.
*/
Expand Down Expand Up @@ -191,7 +198,10 @@ class SearchBox extends Component {
*/
renderInput() {
const { id, searchText, onChange, placeholder, name, borders } = this.props;
const style = { paddingLeft: `${this.calculateInputLeftPadding()}px` };
const style = {
paddingLeft: `${this.calculateInputLeftPadding()}px`,
paddingRight: `${this.calculateInputRightPadding()}px`
};

const mergedBorders = Object.assign({}, SearchBox.defaultProps.borders, borders);
const classe = 'search-box__content-field';
Expand Down Expand Up @@ -268,16 +278,20 @@ class SearchBox extends Component {
'btn--icon',
'font-icon-caret-down-two',
'search-box__filter-trigger',
this.state.width < 576 ? 'search-box--no-label' : '',
{ collapsed: !expanded }
);
const spanClass = this.state.width < 576 ? 'sr-only' : '';
return (<Button
aria-expanded={expanded}
aria-controls={formId}
aria-label={i18n._t('Admin.ADVANCED', 'Advanced')}
onClick={onToggleFilter}
className={classes}
title={i18n._t('Admin.ADVANCED', 'Advanced')}
>Search options</Button>);
>
<span className={spanClass}>Search options</span>
</Button>);
}

/**
Expand Down
6 changes: 6 additions & 0 deletions client/src/components/Search/SearchBox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ $search-box-height: 53px;
&.collapsed::before {
transform: rotate(0deg) translateY(0);
}

&.search-box--no-label {
margin-right: 9px;
margin-top: 13px;
padding-right: 5px;
}
}

.search-box__hideable .search-form {
Expand Down
5 changes: 0 additions & 5 deletions client/src/styles/_chosen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
.chosen-container-multi .chosen-choices {
padding: 4px 5px;
}

// Avoid chosen dropdowns overflowing when not active
.chosen-container:not(.chosen-container-active) {
overflow: hidden;
}
2 changes: 2 additions & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
en:
LeftAndMain:
'php.Access to ''{title}'' section': 'Item in permission selection identifying the admin section. Example: Access to ''Files & Images'''
SilverStripe\Admin\CMSProfileController:
CANTEDIT: 'You don''t have permission to do that'
MENUTITLE: 'My Profile'
Expand Down
1 change: 1 addition & 0 deletions lang/eo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ eo:
SUBMIT_BUTTON_LABEL: Ek
ValidationError: 'Validiga eraro'
Version: Versio
NO_PREVIEW: 'Neniu antaŭvido disponeblas'
SilverStripe\Admin\LeftAndMain_ViewModeSelector:
Auto: Aŭtomate
ChangeViewMode: 'Ŝanĝi vidan reĝimon'
Expand Down
1 change: 1 addition & 0 deletions lang/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ it:
SUBMIT_BUTTON_LABEL: Vai
ValidationError: 'Errore di convalida'
Version: Versione
NO_PREVIEW: 'Anteprima non disponibile'
SilverStripe\Admin\LeftAndMain_ViewModeSelector:
Auto: Auto
ChangeViewMode: 'Cambia la modalità di visualizzazione'
Expand Down
1 change: 1 addition & 0 deletions lang/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ nl:
SUBMIT_BUTTON_LABEL: Ga
ValidationError: Validatiefout
Version: Versie
NO_PREVIEW: 'Geen voorbeeld beschikbaar'
SilverStripe\Admin\LeftAndMain_ViewModeSelector:
Auto: Auto
ChangeViewMode: 'Verander view modus'
Expand Down
2 changes: 2 additions & 0 deletions lang/pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pl:
ResultCreated: 'Utworzono {count} grup'
ResultDeleted: 'Usunięto {count} grup'
ResultUpdated: 'Zmieniono {count} grup'
Help2: '<div class="advanced"><h4>Zaawansowane opcje</h4><ul><li>Dozwolone kolumny: <em>{columns}</em></li><li>Istniejące grupy są dopasowywane na podstawie ich unikatowej wartości <em>Code</em> i aktualizowane o wszelkie nowe wartości z importowanego pliku</li><li>Hierarchie grup można tworzyć za pomocą kolumny <em>ParentCode</em> column.</li><li>Kody uprawnień można przypisywać za pomocą kolumny <em>PermissionCode</em> column. Istniejące kody uprawnień nie są usuwane</li></ul></div>'
SilverStripe\Admin\LeftAndMain:
ACCESSALLINTERFACES: 'Dostęp do wszystkich sekcji CMS'
ACCESSALLINTERFACESHELP: 'Zastępuje bardziej szczegółowe ustawienia dostępu.'
Expand All @@ -47,6 +48,7 @@ pl:
SUBMIT_BUTTON_LABEL: Idź
ValidationError: 'Wykryto niepoprawne dane'
Version: Wersja
NO_PREVIEW: 'Brak podglądu'
SilverStripe\Admin\LeftAndMain_ViewModeSelector:
Auto: Auto
ChangeViewMode: 'Zmień tryb widoku'
Expand Down

0 comments on commit 2c0962b

Please sign in to comment.