Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit f6fa1de

Browse files
committed
Merge branch 'master' into feat/slickgrid-universal-plugins
2 parents 3f74d31 + 332a567 commit f6fa1de

File tree

14 files changed

+2462
-3990
lines changed

14 files changed

+2462
-3990
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
.chrome
2828

2929
# misc
30+
/.angular/cache
3031
/.sass-cache
3132
/connect.lock
3233
/coverage

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [3.3.2](https://github.com/ghiscoding/angular-slickgrid/compare/v3.3.1...v3.3.2) (2021-11-20)
6+
7+
8+
### Bug Fixes
9+
10+
* **build:** add DOM purify optional default import to fix rollup builds ([25091d0](https://github.com/ghiscoding/angular-slickgrid/commit/25091d03af771c9e8e5e94fbdccd6228247710c1))
11+
12+
### [3.3.1](https://github.com/ghiscoding/angular-slickgrid/compare/v3.3.0...v3.3.1) (2021-11-16)
13+
514
## [3.3.0](https://github.com/ghiscoding/angular-slickgrid/compare/v3.2.0...v3.3.0) (2021-10-28)
615

716

angular.json

Lines changed: 2 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"angular-slickgrid": {
77
"root": "",
88
"sourceRoot": "src",
9-
"projectType": "application",
9+
"projectType": "library",
1010
"architect": {
1111
"build": {
1212
"builder": "@angular-devkit/build-angular:browser",
@@ -119,84 +119,6 @@
119119
}
120120
}
121121
},
122-
"extract-i18n": {
123-
"builder": "@angular-devkit/build-angular:extract-i18n",
124-
"options": {
125-
"browserTarget": "angular-slickgrid:build"
126-
}
127-
},
128-
"test": {
129-
"builder": "@angular-devkit/build-angular:karma",
130-
"options": {
131-
"main": "src/test.ts",
132-
"karmaConfig": "./karma.conf.js",
133-
"polyfills": "src/polyfills.ts",
134-
"tsConfig": "tsconfig.spec.json",
135-
"styles": [
136-
"node_modules/bootstrap/dist/css/bootstrap.css",
137-
"node_modules/font-awesome/css/font-awesome.css",
138-
"node_modules/flatpickr/dist/flatpickr.css",
139-
"src/assets/lib/multiple-select/multiple-select.css",
140-
"node_modules/@ng-select/ng-select/themes/default.theme.css",
141-
"src/styles.scss",
142-
"src/slickgrid-styles.scss"
143-
],
144-
"scripts": [
145-
"node_modules/jquery/dist/jquery.js",
146-
"node_modules/jquery-ui-dist/jquery-ui.min.js",
147-
"node_modules/slickgrid/lib/jquery.event.drag-2.3.0.js",
148-
"node_modules/bootstrap/dist/js/bootstrap.js",
149-
"src/assets/lib/multiple-select/multiple-select.js"
150-
],
151-
"assets": [
152-
"src/assets",
153-
"src/favicon.ico",
154-
{
155-
"glob": "**/*",
156-
"input": "src/assets/i18n",
157-
"output": "/assets/i18n"
158-
},
159-
{
160-
"glob": "*",
161-
"input": "src/assets/i18n",
162-
"output": "/assets/i18n"
163-
},
164-
{
165-
"glob": "*/",
166-
"input": "src/assets/i18n",
167-
"output": "/assets/i18n"
168-
},
169-
{
170-
"glob": "**/*",
171-
"input": "src/assets/i18n",
172-
"output": "/assets/i18n"
173-
}
174-
]
175-
}
176-
},
177-
"lint": {
178-
"builder": "@angular-eslint/builder:lint",
179-
"options": {
180-
"lintFilePatterns": [
181-
"src/**/*.ts",
182-
"src/**/*.html"
183-
]
184-
}
185-
}
186-
}
187-
},
188-
"angular-slickgrid-e2e": {
189-
"root": "e2e",
190-
"sourceRoot": "e2e",
191-
"projectType": "application",
192-
"architect": {
193-
"e2e": {
194-
"builder": "@angular-devkit/build-angular:protractor",
195-
"options": {
196-
"protractorConfig": "./protractor.conf.js",
197-
"devServerTarget": "angular-slickgrid:serve"
198-
}
199-
},
200122
"lint": {
201123
"builder": "@angular-eslint/builder:lint",
202124
"options": {
@@ -220,6 +142,7 @@
220142
}
221143
},
222144
"cli": {
145+
"packageManager": "yarn",
223146
"defaultCollection": "@angular-eslint/schematics"
224147
}
225148
}

package.json

Lines changed: 53 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-slickgrid",
3-
"version": "3.3.0",
3+
"version": "3.3.2",
44
"description": "Slickgrid components made available in Angular",
55
"keywords": [
66
"angular",
@@ -10,6 +10,7 @@
1010
"slickgrid"
1111
],
1212
"license": "MIT",
13+
"author": "Ghislain B.",
1314
"homepage": "https://ghiscoding.github.io/Angular-Slickgrid/",
1415
"bugs": {
1516
"url": "https://github.com/ghiscoding/Angular-Slickgrid/issues"
@@ -49,7 +50,6 @@
4950
"release": "standard-version",
5051
"build:demo": "ng build --configuration=production"
5152
},
52-
"author": "Ghislain B.",
5353
"repository": {
5454
"type": "git",
5555
"url": "http://github.com/ghiscoding/angular-slickgrid"
@@ -66,80 +66,64 @@
6666
],
6767
"dest": "dist",
6868
"lib": {
69-
"entryFile": "src/public_api.ts",
70-
"umdModuleIds": {
71-
"@ngx-translate/core": "ngx-translate-core",
72-
"@ngx-translate/core/index": "ngx-translate-core",
73-
"assignDeep": "assign-deep",
74-
"dequal": "dequal",
75-
"dequal-lite": "dequal-lite",
76-
"dompurify": "dompurify",
77-
"excel-builder-webpacker": "excelBuilderWebpacker",
78-
"flatpickr": "flatpickr",
79-
"jquery": "jquery",
80-
"moment-mini": "moment",
81-
"text-encoding-utf-8": "textEncodingUtf8"
82-
}
69+
"entryFile": "src/public_api.ts"
8370
}
8471
},
8572
"dependencies": {
86-
"@slickgrid-universal/common": "^0.19.0",
87-
"@slickgrid-universal/custom-footer-component": "^0.19.0",
88-
"@slickgrid-universal/empty-warning-component": "^0.19.0",
89-
"@slickgrid-universal/event-pub-sub": "^0.19.0",
90-
"@slickgrid-universal/pagination-component": "^0.19.0",
91-
"@slickgrid-universal/row-detail-view-plugin": "^0.19.0",
92-
"@slickgrid-universal/rxjs-observable": "^0.19.0",
73+
"@slickgrid-universal/common": "^1.0.0",
74+
"@slickgrid-universal/custom-footer-component": "^1.0.0",
75+
"@slickgrid-universal/empty-warning-component": "^1.0.0",
76+
"@slickgrid-universal/event-pub-sub": "^1.0.0",
77+
"@slickgrid-universal/pagination-component": "^1.0.0",
78+
"@slickgrid-universal/row-detail-view-plugin": "^1.0.0",
79+
"@slickgrid-universal/rxjs-observable": "^1.0.0",
9380
"@types/dompurify": "^2.3.1",
94-
"@types/jquery": "^3.5.8",
81+
"@types/jquery": "^3.5.10",
9582
"dequal": "^2.0.2",
96-
"dompurify": "^2.3.3",
83+
"dompurify": "^2.3.4",
9784
"font-awesome": "^4.7.0",
9885
"jquery": "~3.5.1",
9986
"jquery-ui-dist": "^1.12.1",
10087
"moment-mini": "^2.24.0",
10188
"rxjs": ">=7.0.0"
10289
},
10390
"peerDependencies": {
104-
"@angular/core": ">=12.1.2",
105-
"@ngx-translate/core": ">=13.0.0",
106-
"@ngx-translate/http-loader": ">=6.0.0",
107-
"typescript": ">=4.3.5"
91+
"@ngx-translate/core": ">=14.0.0"
10892
},
10993
"devDependencies": {
110-
"@angular-devkit/build-angular": "~12.2.13",
111-
"@angular-eslint/builder": "12.6.1",
112-
"@angular-eslint/eslint-plugin": "12.6.1",
113-
"@angular-eslint/eslint-plugin-template": "12.6.1",
114-
"@angular-eslint/schematics": "12.6.1",
115-
"@angular-eslint/template-parser": "12.6.1",
116-
"@angular/animations": "^12.2.13",
117-
"@angular/cli": "^12.2.13",
118-
"@angular/common": "^12.2.13",
119-
"@angular/compiler": "^12.2.12",
120-
"@angular/compiler-cli": "^12.2.13",
121-
"@angular/core": "^12.2.13",
122-
"@angular/forms": "^12.2.13",
123-
"@angular/language-service": "^12.2.13",
124-
"@angular/platform-browser": "^12.2.13",
125-
"@angular/platform-browser-dynamic": "^12.2.13",
126-
"@angular/router": "^12.2.13",
127-
"@ng-select/ng-select": "^7.4.0",
128-
"@ngx-translate/core": "^13.0.0",
129-
"@ngx-translate/http-loader": "^6.0.0",
130-
"@slickgrid-universal/composite-editor-component": "^0.19.0",
131-
"@slickgrid-universal/custom-tooltip-plugin": "^0.19.0",
132-
"@slickgrid-universal/excel-export": "^0.19.0",
133-
"@slickgrid-universal/graphql": "^0.19.0",
134-
"@slickgrid-universal/odata": "^0.19.0",
135-
"@slickgrid-universal/text-export": "^0.19.0",
94+
"@angular-devkit/build-angular": "~13.1.0",
95+
"@angular-eslint/builder": "13.0.1",
96+
"@angular-eslint/eslint-plugin": "13.0.1",
97+
"@angular-eslint/eslint-plugin-template": "13.0.1",
98+
"@angular-eslint/schematics": "13.0.1",
99+
"@angular-eslint/template-parser": "13.0.1",
100+
"@angular/animations": "^13.1.0",
101+
"@angular/cli": "^13.1.0",
102+
"@angular/common": "^13.1.0",
103+
"@angular/compiler": "^13.1.0",
104+
"@angular/compiler-cli": "^13.1.0",
105+
"@angular/core": "^13.1.0",
106+
"@angular/forms": "^13.1.0",
107+
"@angular/language-service": "^13.1.0",
108+
"@angular/platform-browser": "^13.1.0",
109+
"@angular/platform-browser-dynamic": "^13.1.0",
110+
"@angular/router": "^13.1.0",
111+
"@ng-select/ng-select": "^8.1.1",
112+
"@ngx-translate/core": "^14.0.0",
113+
"@ngx-translate/http-loader": "^7.0.0",
114+
"@slickgrid-universal/composite-editor-component": "^1.0.0",
115+
"@slickgrid-universal/custom-tooltip-plugin": "^1.0.0",
116+
"@slickgrid-universal/excel-export": "^1.0.0",
117+
"@slickgrid-universal/graphql": "^1.0.0",
118+
"@slickgrid-universal/odata": "^1.0.0",
119+
"@slickgrid-universal/text-export": "^1.0.0",
136120
"@types/flatpickr": "^3.1.2",
137-
"@types/jest": "^27.0.2",
121+
"@types/jest": "^27.0.3",
138122
"@types/moment": "^2.13.0",
139-
"@types/node": "^16.11.7",
123+
"@types/node": "^16.11.12",
140124
"@types/text-encoding-utf-8": "^1.0.2",
141-
"@typescript-eslint/eslint-plugin": "^4.33.0",
142-
"@typescript-eslint/parser": "^4.33.0",
125+
"@typescript-eslint/eslint-plugin": "^5.6.0",
126+
"@typescript-eslint/parser": "^5.6.0",
143127
"autoprefixer": "^10.4.0",
144128
"bootstrap": "^5.1.3",
145129
"codecov": "^3.8.3",
@@ -150,29 +134,29 @@
150134
"custom-event-polyfill": "^1.0.7",
151135
"del": "^6.0.0",
152136
"del-cli": "^4.0.1",
153-
"eslint": "^7.32.0",
154-
"jest": "^27.3.1",
155-
"jest-extended": "^1.1.0",
156-
"jest-preset-angular": "^10.1.0",
157-
"ng-packagr": "^12.2.5",
137+
"eslint": "^8.4.1",
138+
"jest": "^27.4.3",
139+
"jest-extended": "^1.2.0",
140+
"jest-preset-angular": "^11.0.0",
141+
"ng-packagr": "^13.1.1",
158142
"ngx-bootstrap": "^7.1.0",
159143
"npm-run-all": "^4.1.5",
160-
"postcss": "^8.3.11",
144+
"postcss": "^8.4.4",
161145
"postcss-cli": "^9.0.2",
162146
"require-dir": "^1.2.0",
163147
"rimraf": "^3.0.2",
164148
"run-sequence": "^2.2.1",
165-
"sass": "^1.43.4",
149+
"sass": "^1.44.0",
166150
"standard-version": "^9.3.2",
167151
"stream-browserify": "^3.0.0",
168152
"ts-node": "^10.4.0",
169153
"tslib": "^2.3.1",
170-
"typescript": "~4.3.5",
171-
"yargs": "^17.2.1",
154+
"typescript": "~4.4.4",
155+
"yargs": "^17.3.0",
172156
"zone.js": "~0.11.4"
173157
},
174158
"engines": {
175-
"node": ">=14.15.0",
159+
"node": ">=14.17.0",
176160
"npm": ">=6.14.8"
177161
}
178162
}

src/app/app.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ describe('AppComponent', () => {
1010
AppComponent
1111
],
1212
providers: [],
13-
imports: [RouterTestingModule]
13+
imports: [RouterTestingModule],
14+
teardown: { destroyAfterEach: false }
1415
}).compileComponents();
1516
});
1617

src/app/examples/rowdetail-view.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h3>{{model?.title}}</h3>
33
<div class="row">
44
<div class="col-3"><label>Assignee:</label> <input class="form-control" [(ngModel)]="model.assignee" /></div>
55
<div class="col-3"><label>Reporter:</label> <span>{{model?.reporter}}</span></div>
6-
<div class="col-2"><label>Duration:</label> <span>{{model?.duration}}</span></div>
6+
<div class="col-2"><label>Duration:</label> <span>{{model?.duration | number : '1.2-2'}}</span></div>
77
<div class="col-2"><label>% Complete:</label> <span>{{model?.percentComplete}}</span></div>
88
</div>
99

src/app/modules/angular-slickgrid/components/__tests__/angular-slickgrid.component.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,9 @@ describe('Angular-Slickgrid Custom Component instantiated via Constructor', () =
353353
sharedService = new SharedService();
354354
translaterService = new TranslaterServiceStub();
355355
await TestBed.configureTestingModule({
356-
imports: [TranslateModule.forRoot()]
357-
});
356+
imports: [TranslateModule.forRoot()],
357+
teardown: { destroyAfterEach: false }
358+
});
358359
translate = TestBed.inject(TranslateService);
359360

360361
mockChangeDetectorRef = {

src/app/modules/angular-slickgrid/services/__tests__/angularUtilService.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ describe('AngularUtilService', () => {
4040
{ provide: ApplicationRef, useValue: applicationRefStub },
4141
{ provide: ComponentFactoryResolver, useValue: componentFactoryResolverStub },
4242
{ provide: Injector, useValue: injectorStub },
43-
]
43+
],
44+
teardown: { destroyAfterEach: false }
4445
});
4546
fixture = TestBed.createComponent(TestPreloadComponent);
4647
component = fixture.componentInstance;

src/app/modules/angular-slickgrid/services/__tests__/bsDropdown.service.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ describe('bsdropdown-service', () => {
4949
providers: [
5050
BsDropDownService,
5151
{ provide: AngularUtilService, useValue: angularUtilServiceStub },
52-
]
52+
],
53+
teardown: { destroyAfterEach: false }
5354
});
5455
fixture = TestBed.createComponent(TestComponent);
5556
component = fixture.componentInstance;

src/app/modules/angular-slickgrid/services/__tests__/translater.service.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ describe('Translater Service', () => {
1010

1111
beforeEach(async () => {
1212
await TestBed.configureTestingModule({
13-
imports: [TranslateModule.forRoot()]
13+
imports: [TranslateModule.forRoot()],
14+
teardown: { destroyAfterEach: false }
1415
});
1516
translate = TestBed.inject(TranslateService);
1617
service = new TranslaterService(translate);

0 commit comments

Comments
 (0)