@autotaxatiepartners/ngx-gallery 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +13 -0
- package/.eslintrc.json +51 -0
- package/.travis.yml +38 -0
- package/angular.json +108 -0
- package/package.json +64 -37
- package/projects/gallery/.eslintrc.json +55 -0
- package/projects/gallery/README.md +24 -0
- package/projects/gallery/karma.conf.js +52 -0
- package/projects/gallery/ng-package.json +7 -0
- package/projects/gallery/package.json +32 -0
- package/projects/gallery/src/lib/ngx-gallery-action/ngx-gallery-action.component.html +4 -0
- package/projects/gallery/src/lib/ngx-gallery-action/ngx-gallery-action.component.scss +21 -0
- package/projects/gallery/src/lib/ngx-gallery-action/ngx-gallery-action.component.spec.ts +25 -0
- package/projects/gallery/src/lib/ngx-gallery-action/ngx-gallery-action.component.ts +28 -0
- package/projects/gallery/src/lib/ngx-gallery-action.ts +23 -0
- package/projects/gallery/src/lib/ngx-gallery-animation.ts +6 -0
- package/projects/gallery/src/lib/ngx-gallery-arrows/ngx-gallery-arrows.component.html +27 -0
- package/projects/gallery/src/lib/ngx-gallery-arrows/ngx-gallery-arrows.component.scss +45 -0
- package/projects/gallery/src/lib/ngx-gallery-arrows/ngx-gallery-arrows.component.spec.ts +25 -0
- package/projects/gallery/src/lib/ngx-gallery-arrows/ngx-gallery-arrows.component.ts +28 -0
- package/projects/gallery/src/lib/ngx-gallery-bullets/ngx-gallery-bullets.component.html +4 -0
- package/projects/gallery/src/lib/ngx-gallery-bullets/ngx-gallery-bullets.component.scss +26 -0
- package/projects/gallery/src/lib/ngx-gallery-bullets/ngx-gallery-bullets.component.spec.ts +25 -0
- package/projects/gallery/src/lib/ngx-gallery-bullets/ngx-gallery-bullets.component.ts +25 -0
- package/projects/gallery/src/lib/ngx-gallery-image/ngx-gallery-image.component.html +49 -0
- package/projects/gallery/src/lib/ngx-gallery-image/ngx-gallery-image.component.scss +106 -0
- package/projects/gallery/src/lib/ngx-gallery-image/ngx-gallery-image.component.spec.ts +35 -0
- package/projects/gallery/src/lib/ngx-gallery-image/ngx-gallery-image.component.ts +381 -0
- package/projects/gallery/src/lib/ngx-gallery-image-size.ts +4 -0
- package/projects/gallery/src/lib/ngx-gallery-image.ts +31 -0
- package/projects/gallery/src/lib/ngx-gallery-layout.ts +4 -0
- package/projects/gallery/src/lib/ngx-gallery-options.ts +261 -0
- package/projects/gallery/src/lib/ngx-gallery-order.ts +5 -0
- package/projects/gallery/src/lib/ngx-gallery-ordered-image.ts +19 -0
- package/projects/gallery/src/lib/ngx-gallery-preview/ngx-gallery-preview.component.html +117 -0
- package/projects/gallery/src/lib/ngx-gallery-preview/ngx-gallery-preview.component.scss +121 -0
- package/projects/gallery/src/lib/ngx-gallery-preview/ngx-gallery-preview.component.spec.ts +34 -0
- package/projects/gallery/src/lib/ngx-gallery-preview/ngx-gallery-preview.component.ts +619 -0
- package/projects/gallery/src/lib/ngx-gallery-thumbnails/ngx-gallery-thumbnails.component.html +45 -0
- package/projects/gallery/src/lib/ngx-gallery-thumbnails/ngx-gallery-thumbnails.component.scss +87 -0
- package/projects/gallery/src/lib/ngx-gallery-thumbnails/ngx-gallery-thumbnails.component.spec.ts +31 -0
- package/projects/gallery/src/lib/ngx-gallery-thumbnails/ngx-gallery-thumbnails.component.ts +298 -0
- package/projects/gallery/src/lib/ngx-gallery.component.html +53 -0
- package/projects/gallery/src/lib/ngx-gallery.component.scss +77 -0
- package/projects/gallery/src/lib/ngx-gallery.component.spec.ts +37 -0
- package/projects/gallery/src/lib/ngx-gallery.component.ts +336 -0
- package/projects/gallery/src/lib/ngx-gallery.module.ts +29 -0
- package/projects/gallery/src/lib/ngx-gallery.service.spec.ts +18 -0
- package/projects/gallery/src/lib/ngx-gallery.service.ts +71 -0
- package/projects/gallery/src/public-api.ts +20 -0
- package/projects/gallery/src/test.ts +17 -0
- package/projects/gallery/tsconfig.lib.json +14 -0
- package/projects/gallery/tsconfig.lib.prod.json +9 -0
- package/projects/gallery/tsconfig.spec.json +16 -0
- package/projects/gallery-app/.browserslistrc +12 -0
- package/projects/gallery-app/.eslintrc.json +40 -0
- package/projects/gallery-app/e2e/protractor.conf.js +32 -0
- package/projects/gallery-app/e2e/src/app.e2e-spec.ts +23 -0
- package/projects/gallery-app/e2e/src/app.po.ts +11 -0
- package/projects/gallery-app/e2e/tsconfig.json +13 -0
- package/projects/gallery-app/karma.conf.js +32 -0
- package/projects/gallery-app/src/app/app-routing.module.ts +11 -0
- package/projects/gallery-app/src/app/app.component.html +4 -0
- package/projects/gallery-app/src/app/app.component.scss +9 -0
- package/projects/gallery-app/src/app/app.component.spec.ts +35 -0
- package/projects/gallery-app/src/app/app.component.ts +82 -0
- package/projects/gallery-app/src/app/app.module.ts +20 -0
- package/projects/gallery-app/src/assets/.gitkeep +0 -0
- package/projects/gallery-app/src/assets/img/gallery/1-big.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/1-medium.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/1-small.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/2-big.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/2-medium.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/2-small.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/3-big.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/3-medium.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/3-small.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/4-big.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/4-medium.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/4-small.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/5-big.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/5-medium.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/5-small.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/6-big.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/6-medium.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/6-small.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/7-big.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/7-medium.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/7-small.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/8-big.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/8-medium.jpeg +0 -0
- package/projects/gallery-app/src/assets/img/gallery/8-small.jpeg +0 -0
- package/projects/gallery-app/src/environments/environment.prod.ts +3 -0
- package/projects/gallery-app/src/environments/environment.ts +16 -0
- package/projects/gallery-app/src/favicon.ico +0 -0
- package/projects/gallery-app/src/index.html +13 -0
- package/projects/gallery-app/src/main.ts +12 -0
- package/projects/gallery-app/src/polyfills.ts +53 -0
- package/projects/gallery-app/src/styles.scss +1 -0
- package/projects/gallery-app/src/test.ts +16 -0
- package/projects/gallery-app/tsconfig.app.json +17 -0
- package/projects/gallery-app/tsconfig.spec.json +18 -0
- package/tsconfig.json +43 -0
- package/fesm2022/autotaxatiepartners-ngx-gallery.mjs +0 -1756
- package/fesm2022/autotaxatiepartners-ngx-gallery.mjs.map +0 -1
- package/index.d.ts +0 -591
package/.editorconfig
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.md]
|
|
12
|
+
max_line_length = off
|
|
13
|
+
trim_trailing_whitespace = false
|
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"projects/**/*"
|
|
5
|
+
],
|
|
6
|
+
"overrides": [
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"*.ts"
|
|
10
|
+
],
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"project": [
|
|
13
|
+
"tsconfig.json",
|
|
14
|
+
"e2e/tsconfig.json"
|
|
15
|
+
],
|
|
16
|
+
"createDefaultProgram": true
|
|
17
|
+
},
|
|
18
|
+
"extends": [
|
|
19
|
+
"plugin:@angular-eslint/recommended",
|
|
20
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
21
|
+
],
|
|
22
|
+
"rules": {
|
|
23
|
+
"@angular-eslint/component-selector": [
|
|
24
|
+
"error",
|
|
25
|
+
{
|
|
26
|
+
"prefix": "app",
|
|
27
|
+
"style": "kebab-case",
|
|
28
|
+
"type": "element"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"@angular-eslint/directive-selector": [
|
|
32
|
+
"error",
|
|
33
|
+
{
|
|
34
|
+
"prefix": "app",
|
|
35
|
+
"style": "camelCase",
|
|
36
|
+
"type": "attribute"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"files": [
|
|
43
|
+
"*.html"
|
|
44
|
+
],
|
|
45
|
+
"extends": [
|
|
46
|
+
"plugin:@angular-eslint/template/recommended"
|
|
47
|
+
],
|
|
48
|
+
"rules": {}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
package/.travis.yml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
os: linux
|
|
2
|
+
language: node_js
|
|
3
|
+
node_js:
|
|
4
|
+
- "16"
|
|
5
|
+
dist: trusty
|
|
6
|
+
addons:
|
|
7
|
+
chrome: stable
|
|
8
|
+
cache:
|
|
9
|
+
directories:
|
|
10
|
+
- node_modules
|
|
11
|
+
before_install:
|
|
12
|
+
- npm update
|
|
13
|
+
install:
|
|
14
|
+
- npm install
|
|
15
|
+
before_script:
|
|
16
|
+
- npm install -g @angular/cli
|
|
17
|
+
- npm install -g codecov
|
|
18
|
+
script:
|
|
19
|
+
- npm run lint:lib
|
|
20
|
+
- npm run test-ci
|
|
21
|
+
- codecov
|
|
22
|
+
- npm run build:lib
|
|
23
|
+
after_script:
|
|
24
|
+
- cat ./coverage/gallery/lcov.info | coveralls
|
|
25
|
+
before_deploy:
|
|
26
|
+
- npm run copy:readme
|
|
27
|
+
- npm run copy:changelog
|
|
28
|
+
- npm run copy:license
|
|
29
|
+
- cd dist/gallery
|
|
30
|
+
deploy:
|
|
31
|
+
provider: npm
|
|
32
|
+
email: a.kolkov@gmail.com
|
|
33
|
+
api_token: $NPM_TOKEN
|
|
34
|
+
tag: latest
|
|
35
|
+
edge: true
|
|
36
|
+
on:
|
|
37
|
+
tags: true
|
|
38
|
+
repo: kolkov/ngx-gallery
|
package/angular.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"@autotaxatiepartners/ngx-gallery": {
|
|
7
|
+
"projectType": "library",
|
|
8
|
+
"root": "projects/gallery",
|
|
9
|
+
"sourceRoot": "projects/gallery/src",
|
|
10
|
+
"architect": {
|
|
11
|
+
"build": {
|
|
12
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
13
|
+
"options": {
|
|
14
|
+
"tsConfig": "projects/gallery/tsconfig.lib.json",
|
|
15
|
+
"project": "projects/gallery/ng-package.json"
|
|
16
|
+
},
|
|
17
|
+
"configurations": {
|
|
18
|
+
"production": {
|
|
19
|
+
"tsConfig": "projects/gallery/tsconfig.lib.prod.json"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"test": {
|
|
24
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
25
|
+
"options": {
|
|
26
|
+
"main": "projects/gallery/src/test.ts",
|
|
27
|
+
"tsConfig": "projects/gallery/tsconfig.spec.json",
|
|
28
|
+
"karmaConfig": "projects/gallery/karma.conf.js"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"gallery-app": {
|
|
34
|
+
"projectType": "application",
|
|
35
|
+
"root": "projects/gallery-app",
|
|
36
|
+
"sourceRoot": "projects/gallery-app/src",
|
|
37
|
+
"prefix": "app",
|
|
38
|
+
"architect": {
|
|
39
|
+
"build": {
|
|
40
|
+
"builder": "@angular-devkit/build-angular:application",
|
|
41
|
+
"options": {
|
|
42
|
+
"outputPath": "dist/gallery-app",
|
|
43
|
+
"index": "projects/gallery-app/src/index.html",
|
|
44
|
+
"polyfills": [
|
|
45
|
+
"projects/gallery-app/src/polyfills.ts"
|
|
46
|
+
],
|
|
47
|
+
"tsConfig": "projects/gallery-app/tsconfig.app.json",
|
|
48
|
+
"assets": [
|
|
49
|
+
"projects/gallery-app/src/favicon.ico",
|
|
50
|
+
"projects/gallery-app/src/assets"
|
|
51
|
+
],
|
|
52
|
+
"styles": [
|
|
53
|
+
"node_modules/@fortawesome/fontawesome-free/css/all.css",
|
|
54
|
+
"projects/gallery-app/src/styles.scss"
|
|
55
|
+
],
|
|
56
|
+
"scripts": []
|
|
57
|
+
},
|
|
58
|
+
"configurations": {
|
|
59
|
+
"production": {
|
|
60
|
+
"fileReplacements": [
|
|
61
|
+
{
|
|
62
|
+
"replace": "projects/gallery-app/src/environments/environment.ts",
|
|
63
|
+
"with": "projects/gallery-app/src/environments/environment.prod.ts"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"optimization": true,
|
|
67
|
+
"outputHashing": "all",
|
|
68
|
+
"sourceMap": false,
|
|
69
|
+
"namedChunks": false,
|
|
70
|
+
"extractLicenses": true
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"serve": {
|
|
75
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
76
|
+
"options": {
|
|
77
|
+
"buildTarget": "gallery-app:build"
|
|
78
|
+
},
|
|
79
|
+
"configurations": {
|
|
80
|
+
"production": {
|
|
81
|
+
"buildTarget": "gallery-app:build:production"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"test": {
|
|
86
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
87
|
+
"options": {
|
|
88
|
+
"main": "projects/gallery-app/src/test.ts",
|
|
89
|
+
"polyfills": "projects/gallery-app/src/polyfills.ts",
|
|
90
|
+
"tsConfig": "projects/gallery-app/tsconfig.spec.json",
|
|
91
|
+
"karmaConfig": "projects/gallery-app/karma.conf.js",
|
|
92
|
+
"assets": [
|
|
93
|
+
"projects/gallery-app/src/favicon.ico",
|
|
94
|
+
"projects/gallery-app/src/assets"
|
|
95
|
+
],
|
|
96
|
+
"styles": [
|
|
97
|
+
"projects/gallery-app/src/styles.scss"
|
|
98
|
+
],
|
|
99
|
+
"scripts": []
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"cli": {
|
|
106
|
+
"analytics": false
|
|
107
|
+
}
|
|
108
|
+
}
|
package/package.json
CHANGED
|
@@ -1,44 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autotaxatiepartners/ngx-gallery",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"ng": "ng",
|
|
6
|
+
"start": "ng serve",
|
|
7
|
+
"build": "ng build",
|
|
8
|
+
"build:prod": "ng build --configuration production",
|
|
9
|
+
"test": "ng test",
|
|
10
|
+
"lint": "ng lint @autotaxatiepartners/ngx-gallery",
|
|
11
|
+
"e2e": "ng e2e",
|
|
12
|
+
"build:watch": "ng build @autotaxatiepartners/ngx-gallery --watch",
|
|
13
|
+
"build:lib": "ng build @autotaxatiepartners/ngx-gallery --configuration production",
|
|
14
|
+
"test:lib": "ng test @autotaxatiepartners/ngx-gallery",
|
|
15
|
+
"test:ci": "ng test @autotaxatiepartners/ngx-gallery --code-coverage --no-watch --no-progress --browser ChromeHeadless",
|
|
16
|
+
"publish:lib": "npm run copy:readme && npm run copy:changelog && npm run copy:license && npm publish ./dist/gallery",
|
|
17
|
+
"copy:readme": "cpx README.md dist/gallery",
|
|
18
|
+
"copy:changelog": "cpx CHANGELOG.md dist/gallery",
|
|
19
|
+
"copy:license": "cpx LICENSE dist/gallery"
|
|
9
20
|
},
|
|
10
|
-
"license": "MIT",
|
|
11
21
|
"private": false,
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://gitlab.com/autotaxatiepartners/ngx-gallery/-/issues"
|
|
14
|
-
},
|
|
15
|
-
"homepage": "https://gitlab.com/autotaxatiepartners/ngx-gallery#readme",
|
|
16
|
-
"peerDependencies": {
|
|
17
|
-
"@angular/common": ">=13.0.0 <21",
|
|
18
|
-
"@angular/core": ">=13.0.0 <21",
|
|
19
|
-
"@angular/animations": ">=13.0.0 <21"
|
|
20
|
-
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"
|
|
23
|
+
"@angular/animations": "^20.3.10",
|
|
24
|
+
"@angular/common": "^20.3.10",
|
|
25
|
+
"@angular/compiler": "^20.3.10",
|
|
26
|
+
"@angular/core": "^20.3.10",
|
|
27
|
+
"@angular/forms": "^20.3.10",
|
|
28
|
+
"@angular/platform-browser": "^20.3.10",
|
|
29
|
+
"@angular/platform-browser-dynamic": "^20.3.10",
|
|
30
|
+
"@angular/router": "^20.3.10",
|
|
31
|
+
"@fortawesome/fontawesome-free": "^6.7.2",
|
|
32
|
+
"karma-viewport": "^1.0.8",
|
|
33
|
+
"rxjs": "^6.5.4",
|
|
34
|
+
"tslib": "^2.3.1",
|
|
35
|
+
"zone.js": "~0.15.1"
|
|
23
36
|
},
|
|
24
|
-
"
|
|
25
|
-
"angular",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@angular-devkit/build-angular": "^20.3.9",
|
|
39
|
+
"@angular-eslint/builder": "20.6.0",
|
|
40
|
+
"@angular-eslint/eslint-plugin": "20.6.0",
|
|
41
|
+
"@angular-eslint/eslint-plugin-template": "20.6.0",
|
|
42
|
+
"@angular-eslint/schematics": "20.6.0",
|
|
43
|
+
"@angular-eslint/template-parser": "20.6.0",
|
|
44
|
+
"@angular/cli": "^20.3.9",
|
|
45
|
+
"@angular/compiler-cli": "^20.3.10",
|
|
46
|
+
"@angular/language-service": "^20.3.10",
|
|
47
|
+
"@types/jasmine": "~3.10.2",
|
|
48
|
+
"@types/jasminewd2": "~2.0.10",
|
|
49
|
+
"@types/node": "^12.11.2",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
51
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
52
|
+
"coveralls": "^3.1.1",
|
|
53
|
+
"cpx": "^1.5.0",
|
|
54
|
+
"eslint": "^8.57.0",
|
|
55
|
+
"jasmine-core": "~3.10.1",
|
|
56
|
+
"jasmine-spec-reporter": "~7.0.0",
|
|
57
|
+
"karma": "~6.3.8",
|
|
58
|
+
"karma-chrome-launcher": "~3.1.0",
|
|
59
|
+
"karma-coverage": "~2.0.3",
|
|
60
|
+
"karma-jasmine": "~4.0.1",
|
|
61
|
+
"karma-jasmine-html-reporter": "^1.7.0",
|
|
62
|
+
"ng-packagr": "^20.0.1",
|
|
63
|
+
"protractor": "~7.0.0",
|
|
64
|
+
"ts-node": "~10.4.0",
|
|
65
|
+
"typescript": "5.8.3"
|
|
42
66
|
},
|
|
43
|
-
"
|
|
44
|
-
|
|
67
|
+
"repository": {
|
|
68
|
+
"type": "git",
|
|
69
|
+
"url": "https://gitlab.com/autotaxatiepartners/ngx-gallery.git"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../.eslintrc.json",
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"!**/*"
|
|
5
|
+
],
|
|
6
|
+
"overrides": [
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"*.ts"
|
|
10
|
+
],
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"project": [
|
|
13
|
+
"projects/gallery/tsconfig.lib.json",
|
|
14
|
+
"projects/gallery/tsconfig.spec.json"
|
|
15
|
+
],
|
|
16
|
+
"createDefaultProgram": true
|
|
17
|
+
},
|
|
18
|
+
"rules": {
|
|
19
|
+
"@angular-eslint/component-selector": [
|
|
20
|
+
"error",
|
|
21
|
+
{
|
|
22
|
+
"type": "element",
|
|
23
|
+
"prefix": "ngx",
|
|
24
|
+
"style": "kebab-case"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"@angular-eslint/directive-selector": [
|
|
28
|
+
"error",
|
|
29
|
+
{
|
|
30
|
+
"type": "attribute",
|
|
31
|
+
"prefix": "ngx",
|
|
32
|
+
"style": "camelCase"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"@typescript-eslint/explicit-member-accessibility": [
|
|
36
|
+
"off",
|
|
37
|
+
{
|
|
38
|
+
"accessibility": "explicit"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"arrow-parens": [
|
|
42
|
+
"off",
|
|
43
|
+
"always"
|
|
44
|
+
],
|
|
45
|
+
"import/order": "off"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"files": [
|
|
50
|
+
"*.html"
|
|
51
|
+
],
|
|
52
|
+
"rules": {}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Gallery
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.0-rc.3.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project gallery` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project gallery`.
|
|
8
|
+
> Note: Don't forget to add `--project gallery` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build gallery` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build gallery`, go to the dist folder `cd dist/gallery` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test gallery` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular', 'viewport'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-coverage'),
|
|
10
|
+
require('karma-jasmine'),
|
|
11
|
+
require('karma-chrome-launcher'),
|
|
12
|
+
require('karma-jasmine-html-reporter'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma'),
|
|
14
|
+
require('karma-viewport'),
|
|
15
|
+
],
|
|
16
|
+
client: {
|
|
17
|
+
jasmine: {
|
|
18
|
+
// you can add configuration options for Jasmine here
|
|
19
|
+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
20
|
+
// for example, you can disable the random execution with `random: false`
|
|
21
|
+
// or set a specific seed with `seed: 4321`
|
|
22
|
+
},
|
|
23
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
24
|
+
},
|
|
25
|
+
jasmineHtmlReporter: {
|
|
26
|
+
suppressAll: true // removes the duplicated traces
|
|
27
|
+
},
|
|
28
|
+
coverageReporter: {
|
|
29
|
+
dir: require('path').join(__dirname, '../../coverage/gallery'),
|
|
30
|
+
subdir: '.',
|
|
31
|
+
reporters: [
|
|
32
|
+
{ type: 'html' },
|
|
33
|
+
{ type: 'text-summary' },
|
|
34
|
+
{ type: 'lcovonly' },
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
reporters: ['progress', 'kjhtml'],
|
|
38
|
+
port: 9876,
|
|
39
|
+
colors: true,
|
|
40
|
+
logLevel: config.LOG_INFO,
|
|
41
|
+
autoWatch: true,
|
|
42
|
+
browsers: ['Chrome'],
|
|
43
|
+
customLaunchers: {
|
|
44
|
+
ChromeHeadlessNoSandbox: {
|
|
45
|
+
base: 'ChromeHeadless',
|
|
46
|
+
flags: ['--no-sandbox']
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
singleRun: false,
|
|
50
|
+
restartOnFileChange: true
|
|
51
|
+
});
|
|
52
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@autotaxatiepartners/ngx-gallery",
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "A simple responsive native gallery component for Angular 13 through 20.",
|
|
5
|
+
"author": "Wouter Doornbos <your@email.com>",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://gitlab.com/autotaxatiepartners/ngx-gallery.git"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"private": false,
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://gitlab.com/autotaxatiepartners/ngx-gallery/-/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://gitlab.com/autotaxatiepartners/ngx-gallery#readme",
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"@angular/common": ">=13.0.0 <21",
|
|
18
|
+
"@angular/core": ">=13.0.0 <21",
|
|
19
|
+
"@angular/animations": ">=13.0.0 <21"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"tslib": "^2.3.0"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"angular",
|
|
26
|
+
"gallery",
|
|
27
|
+
"component",
|
|
28
|
+
"ngx-gallery",
|
|
29
|
+
"responsive",
|
|
30
|
+
"autotaxatiepartners"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.ngx-gallery-icon {
|
|
2
|
+
color: white;
|
|
3
|
+
font-size: 25px;
|
|
4
|
+
position: absolute;
|
|
5
|
+
z-index: 2000;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
}
|
|
8
|
+
//.ngx-gallery-preview-icons {
|
|
9
|
+
.ngx-gallery-icon {
|
|
10
|
+
position: relative;
|
|
11
|
+
margin-right: 10px;
|
|
12
|
+
margin-top: 10px;
|
|
13
|
+
font-size: 25px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
}
|
|
17
|
+
//}
|
|
18
|
+
|
|
19
|
+
.ngx-gallery-icon .ngx-gallery-icon-content {
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { NgxGalleryActionComponent } from './ngx-gallery-action.component';
|
|
4
|
+
|
|
5
|
+
describe('NgxGalleryActionComponent', () => {
|
|
6
|
+
let component: NgxGalleryActionComponent;
|
|
7
|
+
let fixture: ComponentFixture<NgxGalleryActionComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ NgxGalleryActionComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(NgxGalleryActionComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'ngx-gallery-action',
|
|
5
|
+
templateUrl: './ngx-gallery-action.component.html',
|
|
6
|
+
styleUrls: ['./ngx-gallery-action.component.scss'],
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
|
+
standalone: false
|
|
9
|
+
})
|
|
10
|
+
export class NgxGalleryActionComponent {
|
|
11
|
+
@Input() icon: string;
|
|
12
|
+
@Input() disabled = false;
|
|
13
|
+
@Input() titleText = '';
|
|
14
|
+
|
|
15
|
+
@Output() closeClick: EventEmitter<Event> = new EventEmitter();
|
|
16
|
+
|
|
17
|
+
constructor() {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
handleClick(event: Event) {
|
|
21
|
+
if (!this.disabled) {
|
|
22
|
+
this.closeClick.emit(event);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
event.stopPropagation();
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface INgxGalleryAction {
|
|
2
|
+
icon: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
titleText?: string;
|
|
5
|
+
|
|
6
|
+
onClick: (event: Event, index: number) => void;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class NgxGalleryAction implements INgxGalleryAction {
|
|
10
|
+
icon: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
titleText?: string;
|
|
13
|
+
|
|
14
|
+
onClick: (event: Event, index: number) => void;
|
|
15
|
+
|
|
16
|
+
constructor(action: INgxGalleryAction) {
|
|
17
|
+
this.icon = action.icon;
|
|
18
|
+
this.disabled = action.disabled ? action.disabled : false;
|
|
19
|
+
this.titleText = action.titleText ? action.titleText : '';
|
|
20
|
+
|
|
21
|
+
this.onClick = action.onClick;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<div class="ngx-gallery-arrows-wrapper ngx-gallery-arrow-left">
|
|
2
|
+
<div
|
|
3
|
+
class="ngx-gallery-icon ngx-gallery-arrow"
|
|
4
|
+
aria-hidden="true"
|
|
5
|
+
(click)="handlePrevClick()"
|
|
6
|
+
[class.ngx-gallery-disabled]="prevDisabled"
|
|
7
|
+
>
|
|
8
|
+
<i
|
|
9
|
+
[ngClass]="['ngx-gallery-icon-content', arrowPrevIcon]"
|
|
10
|
+
[style.fontSize.px]="arrowIconSize"
|
|
11
|
+
></i>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="ngx-gallery-arrows-wrapper ngx-gallery-arrow-right">
|
|
16
|
+
<div
|
|
17
|
+
class="ngx-gallery-icon ngx-gallery-arrow"
|
|
18
|
+
aria-hidden="true"
|
|
19
|
+
(click)="handleNextClick()"
|
|
20
|
+
[class.ngx-gallery-disabled]="nextDisabled"
|
|
21
|
+
>
|
|
22
|
+
<i
|
|
23
|
+
[ngClass]="['ngx-gallery-icon-content', arrowNextIcon]"
|
|
24
|
+
[style.fontSize.px]="arrowIconSize"
|
|
25
|
+
></i>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|