From e689ceb282b2d84a6e4d406530d1dbccd1a20824 Mon Sep 17 00:00:00 2001 From: endy Date: Fri, 12 Jan 2018 15:52:53 +0500 Subject: [PATCH] chore(version): Release --- CHANGELOG.md | 27 + apps/demo/src/index.html | 2 +- libs/core/src/package-lock.json | 23 - libs/core/src/package.json | 14 +- .../select-input/select-input.component.html | 6 +- .../select-input/select-input.component.ts | 12 +- .../content-type-select-input.component.html | 2 +- .../group-select-input.component.html | 7 +- .../user-select-input.component.html | 7 +- libs/web/src/package-lock.json | 48 - libs/web/src/package.json | 24 +- package-lock.json | 3653 ++++++++++------- package.json | 36 +- scripts/publish.sh | 3 + 14 files changed, 2223 insertions(+), 1641 deletions(-) delete mode 100644 libs/core/src/package-lock.json delete mode 100644 libs/web/src/package-lock.json create mode 100644 scripts/publish.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 788d546f..9576f470 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,30 @@ + +# [1.30.0](https://github.com/rucken/core/compare/1.29.1...1.30.0) (2018-01-10) + + +### Bug Fixes + +* **base:** Add @Input to title for base page and frame ([3a6bd4f](https://github.com/rucken/core/commit/3a6bd4f)) +* **base:** Remove interfaces change its to classes [#83](https://github.com/rucken/core/issues/83) ([aace802](https://github.com/rucken/core/commit/aace802)) +* **base-resource-list:** If used mock items and not set perPage, set default to 10 items on per page ([22e4405](https://github.com/rucken/core/commit/22e4405)) +* **deps:** Remove [@ngui](https://github.com/ngui)/auto-complete and angular2-ladda ([140abe6](https://github.com/rucken/core/commit/140abe6)) +* **deps:** Update dependencies ([92b7850](https://github.com/rucken/core/commit/92b7850)) +* **profile-frame:** Fix error in update profile [#82](https://github.com/rucken/core/issues/82) ([8eb1821](https://github.com/rucken/core/commit/8eb1821)) +* **select-input:** Fix work typeahead and add async loading [#81](https://github.com/rucken/core/issues/81) ([bf2d031](https://github.com/rucken/core/commit/bf2d031)) +* **styles:** Remove custom styles like "app-grid-...." and others [#101](https://github.com/rucken/core/issues/101) ([5ce1ee2](https://github.com/rucken/core/commit/5ce1ee2)) +* **text-input:** Set null if date value is invalid ([9baed6d](https://github.com/rucken/core/commit/9baed6d)) +* **user-components:** Add check userGroups before set/get values from its ([4bc7576](https://github.com/rucken/core/commit/4bc7576)) +* Add update local items on change mock items ([6b55cbf](https://github.com/rucken/core/commit/6b55cbf)) + + +### Features + +* **base:** Add interfaces for service and model and implements all from its [#83](https://github.com/rucken/core/issues/83) ([f043bec](https://github.com/rucken/core/commit/f043bec)) +* **text-input:** Change datepicker component for new ngx-bootstrap style [#81](https://github.com/rucken/core/issues/81) ([4272629](https://github.com/rucken/core/commit/4272629)) +* **user.model:** Add checkGroups method ([7849399](https://github.com/rucken/core/commit/7849399)) + + + ## [1.29.1](https://github.com/rucken/core/compare/1.29.0...1.29.1) (2017-12-14) diff --git a/apps/demo/src/index.html b/apps/demo/src/index.html index 6e610dc6..11afe349 100644 --- a/apps/demo/src/index.html +++ b/apps/demo/src/index.html @@ -2,7 +2,7 @@ Rucken: Demo - + diff --git a/libs/core/src/package-lock.json b/libs/core/src/package-lock.json deleted file mode 100644 index ffbd0309..00000000 --- a/libs/core/src/package-lock.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "@rucken/core", - "version": "1.29.1", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@types/lodash": { - "version": "4.14.92", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.92.tgz", - "integrity": "sha512-cdvY1fyUGYgG7/i07a/sR5PnD6+Z+ljUrD0CNVf0qj645VvEdLNtZPjvCp4siPy3rQ/KRXMfUATIqi3+9x57Sw==" - }, - "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" - }, - "moment": { - "version": "2.20.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.20.1.tgz", - "integrity": "sha512-Yh9y73JRljxW5QxN08Fner68eFLxM5ynNOAw2LbIB1YAGeQzZT8QFSUvkAz609Zf+IHhhaUxqZK8dG3W/+HEvg==" - } - } -} diff --git a/libs/core/src/package.json b/libs/core/src/package.json index ca6fa722..3bc85f03 100644 --- a/libs/core/src/package.json +++ b/libs/core/src/package.json @@ -1,6 +1,6 @@ { "name": "@rucken/core", - "version": "1.29.1", + "version": "1.30.0", "description": "Core with base class and admin entities for application maked on Angular5+", "keywords": [ "ngx", @@ -13,13 +13,13 @@ "core" ], "peerDependencies": { - "@angular/common": "*", - "@angular/compiler": "*", - "@angular/core": "*" + "@angular/common": "5.2.0", + "@angular/compiler": "5.2.0", + "@angular/core": "5.2.0" }, "dependencies": { - "@types/lodash": "*", - "lodash": "*", - "moment": "*" + "@types/lodash": "^4.14.92", + "lodash": "^4.17.4", + "moment": "^2.20.1" } } diff --git a/libs/web/src/controls/select-input/select-input.component.html b/libs/web/src/controls/select-input/select-input.component.html index 3fe03df7..49a7b33b 100644 --- a/libs/web/src/controls/select-input/select-input.component.html +++ b/libs/web/src/controls/select-input/select-input.component.html @@ -13,8 +13,8 @@ [triggers]="tooltipTriggers" [isDisabled]="!tooltipEnable" [tooltip]="tooltipText" #tooltip="bs-tooltip"> + (typeaheadNoResults)="onTypeaheadNoResults($event)" [ngClass]="inputClass" [disabled]="readonly" [readonly]="inputReadonly" + [attr.id]="'input'+name" [attr.name]="'input'+name" (focus)="inputFocus(textValue)" (typeaheadLoading)="loading($event)" + autocomplete="off" #typeahead="bs-typeahead" #inputElement/> \ No newline at end of file diff --git a/libs/web/src/controls/select-input/select-input.component.ts b/libs/web/src/controls/select-input/select-input.component.ts index 6f2db27b..86326fe5 100644 --- a/libs/web/src/controls/select-input/select-input.component.ts +++ b/libs/web/src/controls/select-input/select-input.component.ts @@ -40,6 +40,8 @@ export class SelectInputComponent extends BaseComponent { @Input() readonly = false; @Input() + inputReadonly = false; + @Input() name = 'select'; @Input() placeholder = ''; @@ -70,7 +72,10 @@ export class SelectInputComponent extends BaseComponent { if (this.dataSource) { return this.dataSource; } - return this._items; + return this._items.map(item => { + item[this.inputTitleField] = this.getInputTitle(item); + return item; + }); } @Input() set textValue(textValue: string) { @@ -121,9 +126,6 @@ export class SelectInputComponent extends BaseComponent { inputFocus(value: string) { this.onInputFocus.emit(value); } - get inputReadonly() { - return this.onChangeInputValue.observers && this.onChangeInputValue.observers.length === 0; - } get value() { return this.model; } @@ -133,7 +135,7 @@ export class SelectInputComponent extends BaseComponent { this.tooltipText = ''; } if (val && val[this.inputTitleField]) { - this.textValue = val[this.inputTitleField]; + this.textValue = this.getInputTitle(val); this.model = val; } else { // this.textValue = ''; diff --git a/libs/web/src/grids/content-types-grid/content-type-select-input/content-type-select-input.component.html b/libs/web/src/grids/content-types-grid/content-type-select-input/content-type-select-input.component.html index 4616cffe..936b3779 100644 --- a/libs/web/src/grids/content-types-grid/content-type-select-input/content-type-select-input.component.html +++ b/libs/web/src/grids/content-types-grid/content-type-select-input/content-type-select-input.component.html @@ -5,7 +5,7 @@