diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b5ba9b63..a06573b72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,21 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [0.10.0] - 2019-11-07 +### Added +* Add audit and authority in class settings. +* Add readonly mode. +* Add sort data by name in list. +* Add style for base modal window. +* Add share button. +* Add print diagrams. + +### Fixed +* Fix diagram toolbar hidden. +* Fix toggle sidebar button. +* Remove round buttons. +* Fix modal window styles. + ## [0.9.2] - 2019-10-08 ### Added * Add connection points for links. diff --git a/addon/components/fd-modal-message-box.js b/addon/components/fd-modal-message-box.js index 27b82d50b..d084c2430 100644 --- a/addon/components/fd-modal-message-box.js +++ b/addon/components/fd-modal-message-box.js @@ -8,7 +8,7 @@ import { computed } from '@ember/object'; export default FlexberryDialogComponent.extend({ layout, - /** + /** See [EmberJS API](https://emberjs.com/api/). @property classNames diff --git a/addon/components/fd-sheet.js b/addon/components/fd-sheet.js deleted file mode 100644 index c83510447..000000000 --- a/addon/components/fd-sheet.js +++ /dev/null @@ -1,152 +0,0 @@ -import Component from '@ember/component'; -import { inject as service } from '@ember/service'; -import layout from '../templates/components/fd-sheet'; - -export default Component.extend({ - layout, - - /** - Custom button visible. - - @property customButton - @type Bool - */ - customButtonVisible: false, - - /** - Custom button title. - - @property customButton - @type String - */ - customButtonTitle: undefined, - - /** - Sheet component name. - - @property sheetComponentName - @type String - @default '' - */ - sheetComponentName: '', - - /** - Service for managing the state of the component. - - @property fdSheetService - @type FdSheetService - */ - fdSheetService: service(), - - /** - Flag: indicates whether to show toolbar. - - @property toolbarVisible - @type Bool - */ - toolbarVisible: true, - - /** - Flag: indicates whether to not show button for new model. - - @property isNewModel - @type Bool - */ - isNewModel: false, - - /** - Flag: indicates whether to not show delete button. - - @property deleteVisible - @type Bool - */ - deleteVisible: false, - - /** - Flag: indicates whether name textbox is readonly. - - @property nameIsReadonly - @type Bool - @default false - */ - nameIsReadonly: false, - - /** - Flag: indicates whether property is readonly. - - @property readonlyMode - @type Boolean - @default false - */ - readonlyMode: false, - - init() { - this._super(...arguments); - - this.set('classNames', ['fd-sheet', `${this.get('sheetComponentName')}`]); - this.set('classNameBindings', - [ - `fdSheetService.sheetSettings.visibility.${this.get('sheetComponentName')}:visible`, - `fdSheetService.sheetSettings.expanded.${this.get('sheetComponentName')}:expand`, - ]); - }, - - actions: { - /** - Closing sheet. - - @method actions.closeSheet - */ - closeSheet() { - let sheetComponentName = this.get('sheetComponentName'); - this.get('fdSheetService').closeSheet(sheetComponentName); - }, - - /** - Expanding sheet. - - @method actions.expand - */ - expand() { - let sheetComponentName = this.get('sheetComponentName'); - this.get('fdSheetService').expand(sheetComponentName); - }, - - /** - Saving changes. - - @method actions.save - */ - save() { - this.get('saveController')(); - this.set('readonlyMode', true); - }, - - /** - Delete data. - - @method actions.delete - */ - delete() { - this.get('deleteController')(); - }, - - /** - Off readonlyMode. - - @method actions.edit - */ - edit() { - this.set('readonlyMode', false); - }, - - /** - Custom button action. - - @method actions.customButtonAction - */ - customButtonAction() { - this.get('customButtonController')(); - }, - } -}); diff --git a/addon/locales/en/components/fd-sheet.js b/addon/locales/en/components/fd-sheet.js deleted file mode 100644 index fb12fcd01..000000000 --- a/addon/locales/en/components/fd-sheet.js +++ /dev/null @@ -1,5 +0,0 @@ -export default { - 'placeholder-caption': 'Enter name', - 'save-caption': 'Save', - 'edit-caption': 'Edit' -}; diff --git a/addon/locales/en/components/fd-sheets-tool-bar.js b/addon/locales/en/components/fd-sheets-tool-bar.js index 2add6b4e0..8d06b0a70 100644 --- a/addon/locales/en/components/fd-sheets-tool-bar.js +++ b/addon/locales/en/components/fd-sheets-tool-bar.js @@ -6,5 +6,6 @@ export default { 'expand-button-title': 'Expand', 'delete-button-title': 'Delete', 'share-button-title': 'Copy link', + 'print-button-title': 'Print', 'share-button-data-content': 'Copied!' }; diff --git a/addon/locales/en/translations.js b/addon/locales/en/translations.js index 59181326d..91e2b250e 100644 --- a/addon/locales/en/translations.js +++ b/addon/locales/en/translations.js @@ -138,7 +138,6 @@ import FdGeolayerstyleFormEditingPanel from './components/fd-geolayerstyle-editi import FdCreateView from './components/fd-create-view'; import FdCreateEntity from './components/fd-create-entity'; import FdCreateDiagrams from './components/fd-create-diagrams'; -import FdSheet from './components/fd-sheet'; import FdSheetToolBar from './components/fd-sheets-tool-bar'; import FdCreateNodeEditingPanel from './components/fd-create-node-editing-panel'; import FdFolderEditingPanel from './components/fd-folder-editing-panel'; @@ -451,7 +450,6 @@ $.extend(true, translations, { 'fd-geolayer-editing-panel': FdGeolayerFormEditingPanel, 'fd-geolayerstyle-editing-panel': FdGeolayerstyleFormEditingPanel, 'fd-create-view': FdCreateView, - 'fd-sheet': FdSheet, 'fd-sheets-tool-bar': FdSheetToolBar, 'fd-create-node-editing-panel': FdCreateNodeEditingPanel, 'fd-folder-editing-panel': FdFolderEditingPanel, diff --git a/addon/locales/ru/components/fd-sheet.js b/addon/locales/ru/components/fd-sheet.js deleted file mode 100644 index dcd8421f4..000000000 --- a/addon/locales/ru/components/fd-sheet.js +++ /dev/null @@ -1,5 +0,0 @@ -export default { - 'placeholder-caption': 'Введите имя', - 'save-caption': 'Сохранить', - 'edit-caption': 'Правка' -}; diff --git a/addon/locales/ru/components/fd-sheets-tool-bar.js b/addon/locales/ru/components/fd-sheets-tool-bar.js index 3d1f5b435..f9e52890b 100644 --- a/addon/locales/ru/components/fd-sheets-tool-bar.js +++ b/addon/locales/ru/components/fd-sheets-tool-bar.js @@ -6,5 +6,6 @@ export default { 'expand-button-title': 'Развернуть', 'delete-button-title': 'Удалить', 'share-button-title': 'Копировать ссылку', + 'print-button-title': 'Печать', 'share-button-data-content': 'Скопировано!' }; diff --git a/addon/locales/ru/translations.js b/addon/locales/ru/translations.js index 686367a16..071094fc4 100644 --- a/addon/locales/ru/translations.js +++ b/addon/locales/ru/translations.js @@ -137,7 +137,6 @@ import FdGeolayerstyleFormEditingPanel from './components/fd-geolayerstyle-editi import FdCreateView from './components/fd-create-view'; import FdCreateEntity from './components/fd-create-entity'; import FdCreateDiagrams from './components/fd-create-diagrams'; -import FdSheet from './components/fd-sheet'; import FdSheetToolBar from './components/fd-sheets-tool-bar'; import FdCreateNodeEditingPanel from './components/fd-create-node-editing-panel'; import FdFolderEditingPanel from './components/fd-folder-editing-panel'; @@ -450,7 +449,6 @@ $.extend(true, translations, { 'fd-geolayer-editing-panel': FdGeolayerFormEditingPanel, 'fd-geolayerstyle-editing-panel': FdGeolayerstyleFormEditingPanel, 'fd-create-view': FdCreateView, - 'fd-sheet': FdSheet, 'fd-sheets-tool-bar': FdSheetToolBar, 'fd-create-node-editing-panel': FdCreateNodeEditingPanel, 'fd-folder-editing-panel': FdFolderEditingPanel, diff --git a/addon/templates/components/fd-sheet.hbs b/addon/templates/components/fd-sheet.hbs deleted file mode 100644 index c959b4d1c..000000000 --- a/addon/templates/components/fd-sheet.hbs +++ /dev/null @@ -1,46 +0,0 @@ -