Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
chore(version): Release
Browse files Browse the repository at this point in the history
  • Loading branch information
EndyKaufman committed Jan 12, 2018
1 parent 6b0b7a9 commit e689ceb
Show file tree
Hide file tree
Showing 14 changed files with 2,223 additions and 1,641 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
<a name="1.30.0"></a>
# [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))



<a name="1.29.1"></a>
## [1.29.1](https://github.com/rucken/core/compare/1.29.0...1.29.1) (2017-12-14)

Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<meta charset="utf-8">
<title>Rucken: Demo</title>
<base href="/">
<meta name="version" content="1.29.1">
<meta name="version" content="1.30.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="assets/css/please-wait.css" rel="stylesheet">
Expand Down
23 changes: 0 additions & 23 deletions libs/core/src/package-lock.json

This file was deleted.

14 changes: 7 additions & 7 deletions libs/core/src/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
[triggers]="tooltipTriggers" [isDisabled]="!tooltipEnable" [tooltip]="tooltipText" #tooltip="bs-tooltip">
<input [(ngModel)]="textValue" [typeahead]="items" [typeaheadOptionField]="inputTitleField" [typeaheadScrollable]="true"
[typeaheadOptionsInScrollableView]="5" [typeaheadMinLength]="0" [attr.placeholder]="placeholder" (typeaheadOnSelect)="value = $event.item"
(typeaheadNoResults)="onTypeaheadNoResults($event)" [ngClass]="inputClass" [disabled]="readonly && inputReadonly" [attr.id]="'input'+name"
[attr.name]="'input'+name" (focus)="inputFocus(textValue)" (typeaheadLoading)="loading($event)" autocomplete="off" #typeahead="bs-typeahead"
#inputElement/>
(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/>
</div>
</ng-template>
12 changes: 7 additions & 5 deletions libs/web/src/controls/select-input/select-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export class SelectInputComponent extends BaseComponent {
@Input()
readonly = false;
@Input()
inputReadonly = false;
@Input()
name = 'select';
@Input()
placeholder = '';
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
Expand All @@ -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 = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<input *ngIf="statusListMessage" value="{{statusListMessage | translate}}" [ngClass]="inputClass" readonly/>
<input *ngIf="!statusListMessage && !select" [(ngModel)]="value && value.asString" [ngClass]="inputClass" #inputElement readonly/>
<select-input *ngIf="!statusListMessage && select" [(model)]="value" [title]="title" titleField="asSelectOptionHtml" inputTitleField="asString"
[readonly]="readonly" (onChangeInputValue)="changeInputValue($event)" [dataSource]="cachedResourcesService.items$" (onInputFocus)="focusInput($event)"
[readonly]="readonly" [inputReadonly]="inputReadonly" [name]="name" (onChangeInputValue)="changeInputValue($event)" [dataSource]="cachedResourcesService.items$" (onInputFocus)="focusInput($event)"
[inFormGroup]="false" [width]="width" #inputElement></select-input>
<span class="input-group-btn" *ngIf="!readonly && !select">
<button class="btn btn-default" type="button" (click)="value=null">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
<div [ngClass]="{'input-group':!readonly && !select}" class="{{inputFrameClass}}" [containerClass]="errorMessage?'error-tooltip':'success-tooltip'"
[tooltip]="tooltipText" placement="{{tooltipPlacement}}" triggers="{{tooltipTriggers}}" [isDisabled]="!tooltipEnable" #tooltip="bs-tooltip">
<input *ngIf="statusListMessage || (select && !items.length)" value="{{statusListMessage | translate}}" [ngClass]="inputClass"
disabled/>
<input *ngIf="!statusListMessage && !select" [(ngModel)]="value && value.asString" [ngClass]="inputClass" #inputElement disabled/>
readonly/>
<input *ngIf="!statusListMessage && !select" [(ngModel)]="value && value.asString" [ngClass]="inputClass" #inputElement readonly/>
<select-input *ngIf="!statusListMessage && select && items && items.length>0" [(model)]="value" [title]="title" titleField="asSelectOptionHtml"
inputTitleField="asString" [readonly]="readonly" [items]="items" [inFormGroup]="false" [width]="width" #inputElement></select-input>
inputTitleField="asString" [readonly]="readonly" [inputReadonly]="inputReadonly" [name]="name" [items]="items" [inFormGroup]="false"
[width]="width" #inputElement></select-input>
<span class="input-group-btn" *ngIf="!readonly && !select">
<button class="btn btn-success" type="button" (click)="onLookup()" tooltip="{{lookupTooltip}}" placement="left" container="body">
<span [ngClass]="[lookupIcon]"></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
<div [ngClass]="{'input-group':!readonly && !select}" class="{{inputFrameClass}}" [containerClass]="errorMessage?'error-tooltip':'success-tooltip'"
[tooltip]="tooltipText" placement="{{tooltipPlacement}}" triggers="{{tooltipTriggers}}" [isDisabled]="!tooltipEnable" #tooltip="bs-tooltip">
<input *ngIf="statusListMessage || (select && !items.length)" value="{{statusListMessage | translate}}" [ngClass]="inputClass"
disabled/>
<input *ngIf="!statusListMessage && !select" [(ngModel)]="value && value.asString" [ngClass]="inputClass" #inputElement disabled/>
readonly/>
<input *ngIf="!statusListMessage && !select" [(ngModel)]="value && value.asString" [ngClass]="inputClass" #inputElement readonly/>
<select-input *ngIf="!statusListMessage && select && items && items.length>0" [(model)]="value" [title]="title" titleField="asSelectOptionHtml"
inputTitleField="asString" [readonly]="readonly" [items]="items" [inFormGroup]="false" [width]="width" #inputElement></select-input>
inputTitleField="asString" [readonly]="readonly" [inputReadonly]="inputReadonly" [name]="name" [items]="items" [inFormGroup]="false"
[width]="width" #inputElement></select-input>
<span class="input-group-btn" *ngIf="!readonly && !select">
<button class="btn btn-success" type="button" (click)="onLookup()" tooltip="{{lookupTooltip}}" placement="left" container="body">
<span [ngClass]="[lookupIcon]"></span>
Expand Down
48 changes: 0 additions & 48 deletions libs/web/src/package-lock.json

This file was deleted.

24 changes: 12 additions & 12 deletions libs/web/src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rucken/web",
"version": "1.29.1",
"version": "1.30.0",
"description": "Base components, services and ui for admin entities for application maked on Angular5+",
"keywords": [
"ngx",
Expand All @@ -12,19 +12,19 @@
"web"
],
"peerDependencies": {
"@angular/common": "*",
"@angular/compiler": "*",
"@angular/core": "*",
"@angular/forms": "*",
"@angular/router": "*",
"angular2-text-mask": "*"
"@angular/common": "5.2.0",
"@angular/compiler": "5.2.0",
"@angular/core": "5.2.0",
"@angular/forms": "5.2.0",
"@angular/router": "5.2.0",
"angular2-text-mask": "^8.0.4"
},
"dependencies": {
"@types/lodash": "*",
"@ngx-translate/core": "*",
"lodash": "*",
"ngx-bootstrap": "*",
"text-mask-addons": "*",
"@types/lodash": "^4.14.92",
"@ngx-translate/core": "^9.0.2",
"lodash": "^4.17.4",
"ngx-bootstrap": "^2.0.0-rc.0",
"text-mask-addons": "^3.7.1",
"@rucken/core": "*"
}
}
Loading

0 comments on commit e689ceb

Please sign in to comment.