geonetwork-ui 2.2.0-dev.0f95f702 → 2.2.0-dev.3678ce55
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/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +22 -3
- package/fesm2022/geonetwork-ui.mjs +21 -2
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts +2 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/package.json +8 -6
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +26 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ButtonComponent {
|
|
4
|
-
|
|
4
|
+
private btnClass;
|
|
5
|
+
set type(value: 'primary' | 'secondary' | 'default' | 'outline' | 'light');
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
extraClass: string;
|
|
7
8
|
buttonClick: EventEmitter<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAMa,eAAe;
|
|
1
|
+
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAMa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAQ;IAGxB,IAAa,IAAI,CACf,KAAK,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,EAmBjE;IAEQ,QAAQ,UAAQ;IAChB,UAAU,SAAK;IACd,WAAW,qBAA2B;IAEhD,IAAI,SAAS,WAEZ;IAED,WAAW,CAAC,KAAK,EAAE,KAAK;yCAlCb,eAAe;2CAAf,eAAe;CAuC3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geonetwork-ui",
|
|
3
|
-
"version": "2.2.0-dev.
|
|
3
|
+
"version": "2.2.0-dev.3678ce55",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.17.0"
|
|
6
6
|
},
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"@ngrx/router-store": "16.x || 17.x",
|
|
40
40
|
"@ngrx/store": "16.x || 17.x",
|
|
41
41
|
"@ngrx/store-devtools": "16.x || 17.x",
|
|
42
|
-
"@nguniversal/express-engine": "16.x || 17.x",
|
|
43
42
|
"@ngx-translate/core": "14.x",
|
|
44
43
|
"@ngx-translate/http-loader": "7.x",
|
|
45
44
|
"rxjs": "7.x",
|
|
@@ -47,14 +46,14 @@
|
|
|
47
46
|
"tailwindcss": "3.x"
|
|
48
47
|
},
|
|
49
48
|
"dependencies": {
|
|
49
|
+
"@biesbjerg/ngx-translate-extract-marker": "^1.0.0",
|
|
50
50
|
"@camptocamp/ogc-client": "^0.4.0",
|
|
51
51
|
"@ltd/j-toml": "~1.35.2",
|
|
52
52
|
"@messageformat/core": "^3.0.1",
|
|
53
|
-
"@rgrove/parse-xml": "~4.0.1",
|
|
54
53
|
"@nx/angular": "16.6.0",
|
|
55
|
-
"@
|
|
54
|
+
"@rgrove/parse-xml": "~4.0.1",
|
|
56
55
|
"alasql": "^3.1.0",
|
|
57
|
-
"axios": "^1.
|
|
56
|
+
"axios": "^1.6.0",
|
|
58
57
|
"chart.js": "^4.2.0",
|
|
59
58
|
"chroma-js": "^2.1.2",
|
|
60
59
|
"date-fns": "^2.29.3",
|
|
@@ -62,15 +61,18 @@
|
|
|
62
61
|
"duration-relativetimeformat": "^2.0.3",
|
|
63
62
|
"embla-carousel": "^8.0.0-rc14",
|
|
64
63
|
"express": "^4.17.1",
|
|
64
|
+
"geojson-validation": "^1.0.2",
|
|
65
65
|
"moment": "^2.29.4",
|
|
66
66
|
"ng-table-virtual-scroll": "^1.4.1",
|
|
67
67
|
"ngx-chips": "3.0.0",
|
|
68
68
|
"ngx-dropzone": "^3.0.0",
|
|
69
69
|
"ngx-translate-messageformat-compiler": "~6.5.0",
|
|
70
|
-
"ol": "^
|
|
70
|
+
"ol": "^8.2.0",
|
|
71
71
|
"papaparse": "^5.3.1",
|
|
72
72
|
"pg": "^8.9.0",
|
|
73
|
+
"proj4": "^2.9.2",
|
|
73
74
|
"reflect-metadata": "^0.1.13",
|
|
75
|
+
"semver": "^7.5.4",
|
|
74
76
|
"tippy.js": "^6.3.7",
|
|
75
77
|
"tslib": "^2.3.0",
|
|
76
78
|
"typeorm": "^0.3.14",
|
|
@@ -14,14 +14,37 @@ import { propagateToDocumentOnly } from '../../../../../../libs/util/shared/src'
|
|
|
14
14
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
15
|
})
|
|
16
16
|
export class ButtonComponent {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
private btnClass: string
|
|
18
|
+
|
|
19
|
+
// btn-classes are explicited to allow tailwind recognize them and add it in css.
|
|
20
|
+
@Input() set type(
|
|
21
|
+
value: 'primary' | 'secondary' | 'default' | 'outline' | 'light'
|
|
22
|
+
) {
|
|
23
|
+
switch (value) {
|
|
24
|
+
case 'primary':
|
|
25
|
+
this.btnClass = 'btn-primary'
|
|
26
|
+
break
|
|
27
|
+
case 'secondary':
|
|
28
|
+
this.btnClass = 'btn-secondary'
|
|
29
|
+
break
|
|
30
|
+
case 'outline':
|
|
31
|
+
this.btnClass = 'btn-outline'
|
|
32
|
+
break
|
|
33
|
+
case 'light':
|
|
34
|
+
this.btnClass = 'btn-light'
|
|
35
|
+
break
|
|
36
|
+
default:
|
|
37
|
+
this.btnClass = 'btn-default'
|
|
38
|
+
break
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
19
42
|
@Input() disabled = false
|
|
20
43
|
@Input() extraClass = ''
|
|
21
44
|
@Output() buttonClick = new EventEmitter<void>()
|
|
22
45
|
|
|
23
46
|
get classList() {
|
|
24
|
-
return
|
|
47
|
+
return `${this.btnClass} ${this.extraClass}`
|
|
25
48
|
}
|
|
26
49
|
|
|
27
50
|
handleClick(event: Event) {
|