Skip to content

Commit

Permalink
Merge pull request #471 from qgrid/9.1.3
Browse files Browse the repository at this point in the history
9.1.3
  • Loading branch information
qgrid committed Jun 1, 2020
2 parents fe5fc67 + 5b0d139 commit b2c3072
Show file tree
Hide file tree
Showing 132 changed files with 1,252 additions and 711 deletions.
35 changes: 25 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,29 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]
* Vscroll.
* Copy/paste selection to excel.
* Live data plugin.
* Float rows navigation.
* Grouped rows navigation improvements.

## [9.1.0] - 2020-05-26
## [9.1.3] - 2020-06-01
### BREAKING
* Remove q-grid-title, use `q-grid-caption` instead.

### Fixed
* Remove auto entering to the edit mode on cell focus.
* Row options column menu item click doesn't trigger an action.
* Fixed when cell-handler go out of view port when hold page-up.
* Highlight column on mouse over even if it's sorted.
* When focus grid using tab key, also focus first focusable cell.
* Clear function on column filter expression views deactivates filter.
* Pane doesn't work when select row.
* Select all by `ctrl-a` in `multiple` and `range` modes.

## Added
* Add new option for column generation, typeDetection = 'inference' | 'raw'.
* Add shortcuts to the pager's next/prev buttons (alt+pagedown, alt+pageup).
* Introduce q-grid-row `behavior` array input to control if it's required to expand row on click or shortcut.
* Add `q-grid-focused` class to the row when one of it's cell is in focus..
* Add `q-grid-alt` plugin that automatically set pagination and selection by `alt+[0-9]` shortcuts.
* Add `timestamp` property to mouse state to handle double clicks.

## [9.1.2] - 2020-05-27
### BREAKING
- q-grid is block element by default, was inline.
- Rename edit state property from `state` to `status`.
Expand Down Expand Up @@ -520,8 +535,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
* Pager plugin.
* Progress plugin.

[unreleased]: https://github.com/qgrid/ng2/compare/v9.1.0...HEAD
[9.1.0]: https://github.com/qgrid/ng2/compare/v9.0.1...v9.1.0
[unreleased]: https://github.com/qgrid/ng2/compare/v9.1.3...HEAD
[9.1.3]: https://github.com/qgrid/ng2/compare/v9.0.1...v9.1.3
[9.0.1]: https://github.com/qgrid/ng2/compare/v9.0.0...v9.0.1
[9.0.0]: https://github.com/qgrid/ng2/compare/v7.5.2...v9.0.0
[7.5.2]: https://github.com/qgrid/ng2/compare/v7.5.1...v7.5.2
Expand Down
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ Note that now q-grid supports 2 themes out of box `@angular/material` and `basic
`
})
export class MyComponent {
rows$: Observable<[]>;

constructor(dataService: MyDataService) {
this.rows$ = dataService.getRows();
}
rows$ = this.dataService.getRows();
}
```

Expand All @@ -59,7 +55,7 @@ Note that q-grid rows should be an array of objects, any other types like array
* @angular/core
* @angular/forms

If you use `material` theme from the q-grid package, you also need to install [angular material](https://material.angular.io/)
If `material` theme is used, it's also required to install [angular material](https://material.angular.io/)

* @angular/cdk
* @angular/material
Expand All @@ -79,13 +75,19 @@ npm install
npm run build:lib
```

## Build Application
```bash
git clone https://github.com/qgrid/ng2.git
npm install
npm run build:app
```

## Browser support

* `Chrome` is supported.
* `FireFox` is supported.
* `Safari` is supported.
* `Edge` is in progress.
* `IE11` is in progress.
* `Chrome` latest is supported.
* `FireFox` latest is supported.
* `Safari` latest is supported.
* `Edge` latest is supported.

## Licence

Expand Down
2 changes: 1 addition & 1 deletion build.lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const PROJECTS_PATH = path.join(ROOT_PATH, 'projects');
const DIST_PATH = path.join(ROOT_PATH, 'dist');
const NG2_DIST_PATH = path.join(DIST_PATH, 'ng2-qgrid');

const OPTIONS = ['--prod', '--tsConfig=tsconfig.prod.json'];
const OPTIONS = ['--prod', '--tsConfig=tsconfig.lib.json'];

async function main() {
await buildLib('ngx-qgrid', OPTIONS);
Expand Down
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "ng2-qgrid",
"version": "9.1.0",
"version": "9.1.3",
"scripts": {
"build:app": "ng build --prod --output-path dist/app --base-href /ng2/",
"build:lib": "node build.lib.js",
"build:app": "npm run clean && ng build --prod --output-path dist/app --base-href /ng2/",
"build:lib": "npm run clean && node build.lib.js",
"clean": "rimraf dist",
"lint": "ng lint",
"ng": "ng",
"pretest:screenshot": "webdriver-manager update --gecko=false && if not exist e2e\\diff mkdir e2e\\diff",
"release:app": "npm run build:app && npx angular-cli-ghpages --dir=dist/app",
"release:example": "node ./build.example",
"release:lib": "npm run build:release && cd dist && npm publish",
"start:prod": "rimraf dist && node build.serve --prod",
"start": "rimraf dist && node build.serve",
"release:lib": "npm run build:lib && cd dist/ng2-qgrid && npm publish",
"start:prod": "node build.serve --prod",
"start": "node build.serve",
"test:debug": "ng test --browsers ChromeDebug",
"test:screenshot-update-goldens": "protractor ./e2e/protractor-update-goldens.conf.js",
"test:screenshot": "protractor ./e2e/protractor.conf.js",
Expand Down Expand Up @@ -58,6 +58,7 @@
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-spies": "^1.0.0",
"classlist.js": "^1.1.20150312",
"codelyzer": "^5.2.2",
"command-line-args": "^5.1.1",
"css.escape": "^1.5.1",
Expand Down
12 changes: 12 additions & 0 deletions projects/assets/cell.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ th {
@include width(250px);
}

&.q-grid-the-\$alt\.number {
@include width(48px);
}

&.q-grid-select,
&.q-grid-row-options,
&.q-grid-row-indicator,
Expand Down Expand Up @@ -108,4 +112,12 @@ tfoot {
cursor: pointer;
}
}

tr:not(.q-grid-highlighted) {
td:not(.q-grid-highlighted) {
&.q-grid-row-number {
background: $selected;
}
}
}
}
14 changes: 6 additions & 8 deletions projects/assets/highlight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ td {
}
}

tr {
&.q-grid-highlighted {
td {
tr.q-grid-highlighted {
td {

&.q-grid-sorted,
&.q-grid-selected
&.q-grid-focused {
background-color: $highlighted;
}
&.q-grid-sorted,
&.q-grid-selected,
&.q-grid-focused {
background-color: $highlighted;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion projects/assets/selection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ td {
.q-grid-select-mix,
.q-grid-select-range {
tr:not(.q-grid-highlighted) {
td {
td:not(.q-grid-highlighted) {
&.q-grid-selected {
background-color: $selected;
}
Expand Down
5 changes: 2 additions & 3 deletions projects/ng2-qgrid-theme-basic/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "ng2-qgrid/theme/basic",
"version": "9.1.0",
"version": "9.1.3",
"peerDependencies": {
"@angular/common": "^9.1.0",
"@angular/core": "^9.1.0",
"tslib": "^1.10.0",
"ng2-qgrid": "9.1.0"
"ng2-qgrid": "9.1.3"
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<ng-template key="body-cell-select-the-$select-singleOnly.tpl.html"
let-$cell
let-$view="$view">
<input type="radio"
[q-grid-dirty]="$view.selection.stateCheck | async"
[checked]="$view.selection.state($cell.row)"
[disabled]="!$view.selection.state($cell.row) && !$view.selection.toggleRow.canExecute($cell.row)"
(change)="$view.selection.toggleRow.execute($cell.row)"
tabindex="-1" />
<ng-container [q-grid-dirty]="$view.selection.stateCheck | async">
<input type="radio"
[checked]="$view.selection.state($cell.row)"
[disabled]="!$view.selection.state($cell.row) && !$view.selection.toggleRow.canExecute($cell.row)"
(change)="$view.selection.toggleRow.execute($cell.row)"
tabindex="-1" />
</ng-container>
</ng-template>
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<ng-template key="body-cell-select.tpl.html"
let-$cell
let-$view="$view">
<input type="checkbox"
[checked]="$view.selection.state($cell.row)"
[q-grid-dirty]="$view.selection.stateCheck | async"
[disabled]="!$view.selection.toggleRow.canExecute($cell.row)"
(change)="$view.selection.toggleRow.execute($cell.row)"
tabindex="-1"
class="q-grid-checkbox" />
<ng-container [q-grid-dirty]="$view.selection.stateCheck | async">
<input type="checkbox"
[checked]="$view.selection.state($cell.row)"
[disabled]="!$view.selection.toggleRow.canExecute($cell.row)"
(change)="$view.selection.toggleRow.execute($cell.row)"
tabindex="-1"
class="q-grid-checkbox" />
</ng-container>
</ng-template>
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@

<button tabindex="-1"
class="q-grid-icon-button q-grid-pager-prev"
[q-grid-command]="$pager.prev">
[q-grid-command]="$pager.prev"
[q-grid-command-use-shortcut]="true">
<i class="q-grid-icon">&#10094;</i>
</button>
<q-grid-pager-target></q-grid-pager-target>
<button tabindex="-1"
class="q-grid-icon-button q-grid-pager-next"
[q-grid-command]="$pager.next">
[q-grid-command]="$pager.next"
[q-grid-command-use-shortcut]="true">
<i class="q-grid-icon">&#10095;</i>
</button>
</div>
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions projects/ng2-qgrid-theme-basic/src/lib/theme.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,6 @@ $hidden-color: transparent;
height: 30px;
}

td.q-grid-sorted {
background-color: $cell-select-background-color;
}

th {
font-size: 12px !important;
color: $head-primary-color !important;
Expand Down
2 changes: 0 additions & 2 deletions projects/ng2-qgrid-theme-basic/src/lib/theme.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import {
TabTrapModule,
TemplateModule,
ThemeService,
TitleModule,
ValidationModule,
VisibilityModule,
} from 'ng2-qgrid';
Expand Down Expand Up @@ -101,7 +100,6 @@ import {
RestModule,
StatusBarModule,
TabTrapModule,
TitleModule,
ValidationModule,
VisibilityModule,
],
Expand Down
2 changes: 1 addition & 1 deletion projects/ng2-qgrid-theme-basic/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.prod.json",
"extends": "../../tsconfig.lib.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
Expand Down
5 changes: 2 additions & 3 deletions projects/ng2-qgrid-theme-material/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "ng2-qgrid/theme/material",
"version": "9.1.0",
"version": "9.1.3",
"peerDependencies": {
"@angular/common": "^9.1.0",
"@angular/core": "^9.1.0",
"tslib": "^1.10.0",
"ng2-qgrid": "9.1.0",
"ng2-qgrid": "9.1.3",
"@angular/cdk": "^9.2.0",
"@angular/material": "^9.2.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.q-grid-title,
.q-grid-caption {
h3 {
margin: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@include simpleSquareElement(100%);
height: 325px;

.q-grid-title,
.q-grid-caption {
h2 {
margin-bottom: 8px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
td.q-grid-row-details {
background: $white;
background: $white;
@include user-select(auto);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
td.q-grid-sorted {
background-color: $selected;
}

th {

.q-grid-desc,
Expand Down
Loading

0 comments on commit b2c3072

Please sign in to comment.