@klippa/ngx-enhancy-forms 1.0.0 → 2.1.0
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/README.md +179 -23
- package/bundles/klippa-ngx-enhancy-forms.umd.js +1206 -0
- package/bundles/klippa-ngx-enhancy-forms.umd.js.map +1 -0
- package/bundles/klippa-ngx-enhancy-forms.umd.min.js +17 -0
- package/bundles/klippa-ngx-enhancy-forms.umd.min.js.map +1 -0
- package/esm2015/klippa-ngx-enhancy-forms.js +6 -0
- package/esm2015/lib/elements/button/button.component.js +38 -0
- package/esm2015/lib/elements/checkbox/checkbox.component.js +18 -0
- package/esm2015/lib/elements/datepicker/datepicker.component.js +111 -0
- package/esm2015/lib/elements/email/email-input.component.js +21 -0
- package/esm2015/lib/elements/loading-indicator/loading-indicator.component.js +19 -0
- package/esm2015/lib/elements/number-input/number-input.component.js +17 -0
- package/esm2015/lib/elements/password-field/password-field.component.js +21 -0
- package/esm2015/lib/elements/select/select.component.js +35 -0
- package/esm2015/lib/elements/sortable-items/sortable-items.component.js +25 -0
- package/esm2015/lib/elements/text-input/text-input.component.js +22 -0
- package/esm2015/lib/elements/toggle/toggle.component.js +14 -0
- package/esm2015/lib/elements/value-accessor-base/value-accessor-base.component.js +88 -0
- package/esm2015/lib/form/form-caption/form-caption.component.js +35 -0
- package/esm2015/lib/form/form-element/form-element.component.js +100 -0
- package/esm2015/lib/form/form-error/form-error.component.js +37 -0
- package/esm2015/lib/form/form-submit-button/form-submit-button.component.js +53 -0
- package/esm2015/lib/form/form.component.js +72 -0
- package/esm2015/lib/material.module.js +17 -0
- package/esm2015/lib/ngx-enhancy-forms.module.js +75 -0
- package/esm2015/lib/types.js +2 -0
- package/esm2015/lib/util/values.js +38 -0
- package/esm2015/lib/validators/dateValidator.js +6 -0
- package/esm2015/public-api.js +24 -0
- package/fesm2015/klippa-ngx-enhancy-forms.js +804 -0
- package/fesm2015/klippa-ngx-enhancy-forms.js.map +1 -0
- package/klippa-ngx-enhancy-forms.d.ts +5 -0
- package/klippa-ngx-enhancy-forms.metadata.json +1 -0
- package/lib/elements/button/button.component.d.ts +11 -0
- package/lib/elements/checkbox/checkbox.component.d.ts +5 -0
- package/lib/elements/datepicker/datepicker.component.d.ts +26 -0
- package/lib/elements/email/email-input.component.d.ts +4 -0
- package/lib/elements/loading-indicator/loading-indicator.component.d.ts +4 -0
- package/lib/elements/number-input/number-input.component.d.ts +4 -0
- package/lib/elements/password-field/password-field.component.d.ts +4 -0
- package/lib/elements/select/select.component.d.ts +24 -0
- package/lib/elements/sortable-items/sortable-items.component.d.ts +6 -0
- package/lib/elements/text-input/text-input.component.d.ts +5 -0
- package/lib/elements/toggle/toggle.component.d.ts +3 -0
- package/lib/elements/value-accessor-base/value-accessor-base.component.d.ts +32 -0
- package/lib/form/form-caption/form-caption.component.d.ts +8 -0
- package/lib/form/form-element/form-element.component.d.ts +38 -0
- package/lib/form/form-error/form-error.component.d.ts +11 -0
- package/lib/form/form-submit-button/form-submit-button.component.d.ts +11 -0
- package/lib/form/form.component.d.ts +13 -0
- package/lib/material.module.d.ts +2 -0
- package/lib/ngx-enhancy-forms.module.d.ts +2 -0
- package/lib/types.d.ts +15 -0
- package/lib/util/values.d.ts +9 -0
- package/lib/validators/dateValidator.d.ts +3 -0
- package/package.json +16 -41
- package/public-api.d.ts +20 -0
- package/.editorconfig +0 -17
- package/.github/workflows/ci.yml +0 -18
- package/.github/workflows/release.yml +0 -22
- package/angular.json +0 -28
- package/ng-package.json +0 -7
- package/src/lib/elements/button/button.component.html +0 -18
- package/src/lib/elements/button/button.component.scss +0 -203
- package/src/lib/elements/button/button.component.ts +0 -34
- package/src/lib/elements/checkbox/checkbox.component.html +0 -15
- package/src/lib/elements/checkbox/checkbox.component.scss +0 -55
- package/src/lib/elements/checkbox/checkbox.component.ts +0 -14
- package/src/lib/elements/datepicker/datepicker.component.html +0 -20
- package/src/lib/elements/datepicker/datepicker.component.scss +0 -47
- package/src/lib/elements/datepicker/datepicker.component.ts +0 -142
- package/src/lib/elements/email/email-input.component.html +0 -8
- package/src/lib/elements/email/email-input.component.scss +0 -15
- package/src/lib/elements/email/email-input.component.ts +0 -13
- package/src/lib/elements/loading-indicator/loading-indicator.component.html +0 -40
- package/src/lib/elements/loading-indicator/loading-indicator.component.scss +0 -179
- package/src/lib/elements/loading-indicator/loading-indicator.component.ts +0 -11
- package/src/lib/elements/number-input/number-input.component.html +0 -7
- package/src/lib/elements/number-input/number-input.component.scss +0 -15
- package/src/lib/elements/number-input/number-input.component.ts +0 -13
- package/src/lib/elements/password-field/password-field.component.html +0 -10
- package/src/lib/elements/password-field/password-field.component.scss +0 -15
- package/src/lib/elements/password-field/password-field.component.ts +0 -11
- package/src/lib/elements/select/select.component.html +0 -22
- package/src/lib/elements/select/select.component.scss +0 -289
- package/src/lib/elements/select/select.component.ts +0 -44
- package/src/lib/elements/sortable-items/sortable-items.component.html +0 -23
- package/src/lib/elements/sortable-items/sortable-items.component.scss +0 -34
- package/src/lib/elements/sortable-items/sortable-items.component.ts +0 -18
- package/src/lib/elements/text-input/text-input.component.html +0 -10
- package/src/lib/elements/text-input/text-input.component.scss +0 -15
- package/src/lib/elements/text-input/text-input.component.ts +0 -14
- package/src/lib/elements/toggle/toggle.component.html +0 -9
- package/src/lib/elements/toggle/toggle.component.scss +0 -78
- package/src/lib/elements/toggle/toggle.component.ts +0 -11
- package/src/lib/elements/value-accessor-base/value-accessor-base.component.ts +0 -89
- package/src/lib/form/form-caption/form-caption.component.html +0 -3
- package/src/lib/form/form-caption/form-caption.component.scss +0 -3
- package/src/lib/form/form-caption/form-caption.component.ts +0 -28
- package/src/lib/form/form-element/form-element.component.html +0 -25
- package/src/lib/form/form-element/form-element.component.scss +0 -44
- package/src/lib/form/form-element/form-element.component.ts +0 -76
- package/src/lib/form/form-error/form-error.component.html +0 -3
- package/src/lib/form/form-error/form-error.component.scss +0 -4
- package/src/lib/form/form-error/form-error.component.ts +0 -29
- package/src/lib/form/form-submit-button/form-submit-button.component.html +0 -11
- package/src/lib/form/form-submit-button/form-submit-button.component.scss +0 -10
- package/src/lib/form/form-submit-button/form-submit-button.component.ts +0 -32
- package/src/lib/form/form.component.html +0 -5
- package/src/lib/form/form.component.scss +0 -6
- package/src/lib/form/form.component.ts +0 -67
- package/src/lib/ngx-enhancy-forms.module.ts +0 -68
- package/src/lib/util/values.ts +0 -46
- package/src/lib/validators/dateValidator.ts +0 -8
- package/src/public-api.ts +0 -5
- package/src/style/_form.scss +0 -502
- package/src/style/_klippa.scss +0 -1006
- package/src/style/_mixins.scss +0 -66
- package/src/style/_widgets.scss +0 -251
- package/src/style/app.scss +0 -1
- package/src/style/themes/default/_variables.scss +0 -156
- package/tsconfig.json +0 -37
- package/tsconfig.lib.json +0 -26
- package/tsconfig.lib.prod.json +0 -10
- package/tslint.json +0 -140
package/package.json
CHANGED
|
@@ -1,52 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klippa/ngx-enhancy-forms",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"ng": "ng",
|
|
7
|
-
"start": "ng serve",
|
|
8
|
-
"build": "ng build --prod",
|
|
9
|
-
"test": "ng test",
|
|
10
|
-
"lint": "ng lint"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"tslib": "^2.0.0"
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
14
6
|
},
|
|
15
7
|
"peerDependencies": {
|
|
16
8
|
"@angular/common": ">=10.x",
|
|
17
|
-
"@angular/material": ">=10.x",
|
|
18
9
|
"@angular/core": ">=10.x",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"@angular/forms": ">=10.x",
|
|
22
|
-
"@ng-select/ng-select": ">=5.1.x",
|
|
10
|
+
"ngx-mat-datefns-date-adapter": ">=10.x",
|
|
11
|
+
"date-fns": ">=2.26.x",
|
|
23
12
|
"lodash": ">=4.17.x",
|
|
24
13
|
"ngx-sortablejs": ">=10.x",
|
|
25
14
|
"sortablejs": ">=1.14.x"
|
|
26
15
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"@angular/platform-browser": "~10.2.5",
|
|
39
|
-
"@angular/platform-browser-dynamic": "~10.2.5",
|
|
40
|
-
"@ng-select/ng-select": "~5.1.0",
|
|
41
|
-
"@types/lodash": "^4.14.176",
|
|
42
|
-
"@types/node": "^12.11.1",
|
|
43
|
-
"lodash": "^4.17.21",
|
|
44
|
-
"ng-packagr": "~10.0.0",
|
|
45
|
-
"ngx-sortablejs": "~10.1.0",
|
|
46
|
-
"rxjs": "^6.5.3",
|
|
47
|
-
"sortablejs": "~1.14.0",
|
|
48
|
-
"ts-node": "~8.3.0",
|
|
49
|
-
"typescript": "~3.9.7",
|
|
50
|
-
"zone.js": "~0.10.3"
|
|
51
|
-
}
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"tslib": "^2.0.0"
|
|
18
|
+
},
|
|
19
|
+
"main": "bundles/klippa-ngx-enhancy-forms.umd.js",
|
|
20
|
+
"module": "fesm2015/klippa-ngx-enhancy-forms.js",
|
|
21
|
+
"es2015": "fesm2015/klippa-ngx-enhancy-forms.js",
|
|
22
|
+
"esm2015": "esm2015/klippa-ngx-enhancy-forms.js",
|
|
23
|
+
"fesm2015": "fesm2015/klippa-ngx-enhancy-forms.js",
|
|
24
|
+
"typings": "klippa-ngx-enhancy-forms.d.ts",
|
|
25
|
+
"metadata": "klippa-ngx-enhancy-forms.metadata.json",
|
|
26
|
+
"sideEffects": false
|
|
52
27
|
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './lib/ngx-enhancy-forms.module';
|
|
2
|
+
export * from './lib/elements/button/button.component';
|
|
3
|
+
export * from './lib/elements/checkbox/checkbox.component';
|
|
4
|
+
export * from './lib/elements/datepicker/datepicker.component';
|
|
5
|
+
export * from './lib/elements/email/email-input.component';
|
|
6
|
+
export * from './lib/elements/loading-indicator/loading-indicator.component';
|
|
7
|
+
export * from './lib/elements/number-input/number-input.component';
|
|
8
|
+
export * from './lib/elements/password-field/password-field.component';
|
|
9
|
+
export * from './lib/elements/select/select.component';
|
|
10
|
+
export * from './lib/elements/sortable-items/sortable-items.component';
|
|
11
|
+
export * from './lib/elements/text-input/text-input.component';
|
|
12
|
+
export * from './lib/elements/toggle/toggle.component';
|
|
13
|
+
export * from './lib/elements/value-accessor-base/value-accessor-base.component';
|
|
14
|
+
export * from './lib/form/form.component';
|
|
15
|
+
export * from './lib/form/form-caption/form-caption.component';
|
|
16
|
+
export * from './lib/form/form-element/form-element.component';
|
|
17
|
+
export * from './lib/form/form-error/form-error.component';
|
|
18
|
+
export * from './lib/form/form-submit-button/form-submit-button.component';
|
|
19
|
+
export * from './lib/validators/dateValidator';
|
|
20
|
+
export * from './lib/types';
|
package/.editorconfig
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
[*.ts]
|
|
12
|
-
indent_style = tab
|
|
13
|
-
quote_type = single
|
|
14
|
-
|
|
15
|
-
[*.md]
|
|
16
|
-
max_line_length = off
|
|
17
|
-
trim_trailing_whitespace = false
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
name: Node.js CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
- develop
|
|
8
|
-
jobs:
|
|
9
|
-
setup:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v2
|
|
13
|
-
- name: Use Node.js
|
|
14
|
-
uses: actions/setup-node@v1
|
|
15
|
-
with:
|
|
16
|
-
node-version: 14.x
|
|
17
|
-
- run: yarn install
|
|
18
|
-
- run: yarn run build
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name: NPM Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
publish:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v1
|
|
13
|
-
- uses: actions/setup-node@v1
|
|
14
|
-
with:
|
|
15
|
-
registry-url: 'https://registry.npmjs.org'
|
|
16
|
-
node-version: 14.x
|
|
17
|
-
always-auth: true
|
|
18
|
-
- run: yarn install
|
|
19
|
-
- run: yarn run build
|
|
20
|
-
- run: yarn publish --access public
|
|
21
|
-
env:
|
|
22
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/angular.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"newProjectRoot": "projects",
|
|
5
|
-
"projects": {
|
|
6
|
-
"ngx-enhancy-forms": {
|
|
7
|
-
"projectType": "library",
|
|
8
|
-
"root": "./",
|
|
9
|
-
"sourceRoot": "./src",
|
|
10
|
-
"prefix": "lib",
|
|
11
|
-
"architect": {
|
|
12
|
-
"build": {
|
|
13
|
-
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
14
|
-
"options": {
|
|
15
|
-
"tsConfig": "./tsconfig.lib.json",
|
|
16
|
-
"project": "./ng-package.json"
|
|
17
|
-
},
|
|
18
|
-
"configurations": {
|
|
19
|
-
"production": {
|
|
20
|
-
"tsConfig": "./tsconfig.lib.prod.json"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"defaultProject": "ngx-enhancy-forms"
|
|
28
|
-
}
|
package/ng-package.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<button class="buttonFundamentals"
|
|
2
|
-
[ngClass]="[
|
|
3
|
-
variant,
|
|
4
|
-
size,
|
|
5
|
-
fullWidth ? 'fullWidth' : '',
|
|
6
|
-
hasBorder ? '' : 'no-border',
|
|
7
|
-
disabled ? 'disabled' : ''
|
|
8
|
-
]"
|
|
9
|
-
[type]="type"
|
|
10
|
-
(click)="onClick($event)"
|
|
11
|
-
>
|
|
12
|
-
<div class="caption" [ngClass]="{invisible: isLoading}">
|
|
13
|
-
<ng-content></ng-content>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="loadingSpinnerContainer" *ngIf="isLoading">
|
|
16
|
-
<klp-loading-indicator variant="spinner" size="small"></klp-loading-indicator>
|
|
17
|
-
</div>
|
|
18
|
-
</button>
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
@import '../../../style/themes/default/variables';
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
&._fullWidth {
|
|
6
|
-
display: block;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
.buttonFundamentals {
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
letter-spacing: 1px;
|
|
12
|
-
font-size: 13px;
|
|
13
|
-
font-weight: bold;
|
|
14
|
-
padding: 10px 20px;
|
|
15
|
-
border: $border-default;
|
|
16
|
-
border-radius: $border-radius-default;
|
|
17
|
-
color: $default-text-color;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.fullWidth {
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.no-border {
|
|
25
|
-
border: none;
|
|
26
|
-
}
|
|
27
|
-
.caption {
|
|
28
|
-
&.invisible {
|
|
29
|
-
visibility: hidden;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
button {
|
|
33
|
-
position: relative; // for the absolute loading spinner
|
|
34
|
-
}
|
|
35
|
-
.loadingSpinnerContainer {
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: 0;
|
|
38
|
-
left: 0;
|
|
39
|
-
right: 0;
|
|
40
|
-
bottom: 0;
|
|
41
|
-
display: flex;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
align-items: center;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.small {
|
|
47
|
-
padding-top: $padding-small;
|
|
48
|
-
padding-bottom: $padding-small;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.large {
|
|
52
|
-
line-height: 2;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.white {
|
|
56
|
-
color: $default-dark;
|
|
57
|
-
background-color: $default-white;
|
|
58
|
-
border-color: darken($border-color, 5%);
|
|
59
|
-
font-weight: 500;
|
|
60
|
-
|
|
61
|
-
&:hover,
|
|
62
|
-
&:active {
|
|
63
|
-
color: $default-dark;
|
|
64
|
-
background-color: lighten($border-color, 2%);
|
|
65
|
-
border-color: lighten($border-color, 2%);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:focus {
|
|
69
|
-
text-decoration: underline;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.greenFilled {
|
|
74
|
-
background-color: $default-primary;
|
|
75
|
-
border-color: $default-primary;
|
|
76
|
-
color: $default-white;
|
|
77
|
-
|
|
78
|
-
&:hover {
|
|
79
|
-
color: $default-white;
|
|
80
|
-
background-color: lighten($default-primary, 5%);
|
|
81
|
-
border-color: lighten($default-primary, 5%);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:focus {
|
|
85
|
-
text-decoration: underline;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&:active {
|
|
89
|
-
background-color: darken($default-primary, 5%);
|
|
90
|
-
border-color: darken($default-primary, 5%);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.greenOutlined {
|
|
95
|
-
background-color: $default-white;
|
|
96
|
-
border-color: $default-primary;
|
|
97
|
-
color: $default-primary;
|
|
98
|
-
|
|
99
|
-
&:hover {
|
|
100
|
-
color: $default-white;
|
|
101
|
-
background-color: lighten($default-primary, 5%);
|
|
102
|
-
border-color: lighten($default-primary, 5%);
|
|
103
|
-
}
|
|
104
|
-
&:focus {
|
|
105
|
-
text-decoration: underline;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&:active {
|
|
109
|
-
background-color: darken($default-primary, 5%);
|
|
110
|
-
border-color: darken($default-primary, 5%);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.greenLink {
|
|
115
|
-
color: $default-primary;
|
|
116
|
-
border: none;
|
|
117
|
-
background: none;
|
|
118
|
-
padding: 0;
|
|
119
|
-
|
|
120
|
-
&:hover,
|
|
121
|
-
&:focus {
|
|
122
|
-
text-decoration: underline;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.contextMenuItem {
|
|
127
|
-
color: $default-text-color;
|
|
128
|
-
background-color: $default-white;
|
|
129
|
-
border-color: $default-white;
|
|
130
|
-
|
|
131
|
-
&:hover {
|
|
132
|
-
background-color: $default-gray;
|
|
133
|
-
border-color: $default-gray;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
&:focus,
|
|
137
|
-
&:active {
|
|
138
|
-
text-decoration: underline;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.redFilled {
|
|
143
|
-
color: $default-white;
|
|
144
|
-
background-color: $default-danger;
|
|
145
|
-
border-color: $default-danger;
|
|
146
|
-
|
|
147
|
-
&:hover {
|
|
148
|
-
color: $default-white;
|
|
149
|
-
background-color: lighten($default-danger, 5%);
|
|
150
|
-
border-color: lighten($default-danger, 5%);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&:focus {
|
|
154
|
-
text-decoration: underline;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&:active {
|
|
158
|
-
background-color: darken($default-danger, 5%);
|
|
159
|
-
border-color: darken($default-danger, 5%);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.redOutlined {
|
|
164
|
-
color: $default-danger;
|
|
165
|
-
background-color: $default-white;
|
|
166
|
-
border-color: $default-danger;
|
|
167
|
-
|
|
168
|
-
&:hover {
|
|
169
|
-
color: $default-white;
|
|
170
|
-
background-color: lighten($default-danger, 5%);
|
|
171
|
-
border-color: lighten($default-danger, 5%);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
&:focus {
|
|
175
|
-
text-decoration: underline;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&:active {
|
|
179
|
-
background-color: darken($default-danger, 5%);
|
|
180
|
-
border-color: darken($default-danger, 5%);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.orangeFilled {
|
|
185
|
-
color: $default-white;
|
|
186
|
-
background-color: $default-warning;
|
|
187
|
-
border-color: $default-warning;
|
|
188
|
-
|
|
189
|
-
&:hover {
|
|
190
|
-
color: $default-white;
|
|
191
|
-
background-color: lighten($default-warning, 5%);
|
|
192
|
-
border-color: lighten($default-warning, 5%);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&:focus {
|
|
196
|
-
text-decoration: underline;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&:active {
|
|
200
|
-
background-color: darken($default-warning, 5%);
|
|
201
|
-
border-color: darken($default-warning, 5%);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'klp-button',
|
|
5
|
-
templateUrl: './button.component.html',
|
|
6
|
-
styleUrls: ['./button.component.scss'],
|
|
7
|
-
})
|
|
8
|
-
export class ButtonComponent {
|
|
9
|
-
@Input() variant:
|
|
10
|
-
| 'white'
|
|
11
|
-
| 'greenFilled'
|
|
12
|
-
| 'greenOutlined'
|
|
13
|
-
| 'greenLink'
|
|
14
|
-
| 'contextMenuItem'
|
|
15
|
-
| 'redFilled'
|
|
16
|
-
| 'redOutlined'
|
|
17
|
-
| 'orangeFilled' = 'white';
|
|
18
|
-
@Input() size: 'small' | 'medium' | 'large' = 'medium';
|
|
19
|
-
@Input() fullWidth = false;
|
|
20
|
-
@Input() hasBorder = true;
|
|
21
|
-
@Input() disabled = false;
|
|
22
|
-
@Input() isLoading = false;
|
|
23
|
-
@Input() type: 'button' | 'submit' = 'button';
|
|
24
|
-
|
|
25
|
-
@HostBinding('class._fullWidth') get _() {
|
|
26
|
-
return this.fullWidth;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
onClick(event: Event) {
|
|
30
|
-
if (this.disabled) {
|
|
31
|
-
event.stopPropagation();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<label class="componentContainer">
|
|
2
|
-
<div class="checkboxContainer">
|
|
3
|
-
<input type="checkbox" class="checkboxNative"
|
|
4
|
-
[(ngModel)]="innerValue"
|
|
5
|
-
(change)="setInnerValueAndNotify(innerValue); touch()"
|
|
6
|
-
[disabled]="disabled"
|
|
7
|
-
/>
|
|
8
|
-
<div class="checkboxVisual">
|
|
9
|
-
<svg *ngIf="innerValue" version="1.1" viewBox="0 0 4.2333 4.2333" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
-
<path d="m0.17014 2.7065 1.3073 1.1798 2.5656-3.7404" stroke="currentColor" fill="none" stroke-width=".4646px" />
|
|
11
|
-
</svg>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
<div *ngIf="caption" class="caption">{{ caption }}</div>
|
|
15
|
-
</label>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
@import '../../../style/themes/default/variables';
|
|
2
|
-
$size: 22px;
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
.componentContainer {
|
|
7
|
-
display: flex;
|
|
8
|
-
margin-bottom: 0;
|
|
9
|
-
}
|
|
10
|
-
.checkboxContainer {
|
|
11
|
-
position: relative;
|
|
12
|
-
}
|
|
13
|
-
.caption {
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
font-weight: bold;
|
|
16
|
-
color: $default-text-color;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.checkboxNative {
|
|
20
|
-
position: absolute;
|
|
21
|
-
opacity: 0;
|
|
22
|
-
top: 0;
|
|
23
|
-
left: 0;
|
|
24
|
-
width: $size;
|
|
25
|
-
height: $size;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.checkboxVisual {
|
|
30
|
-
pointer-events: none;
|
|
31
|
-
color: $primary;
|
|
32
|
-
padding: $padding-tiny;
|
|
33
|
-
width: $size;
|
|
34
|
-
height: $size;
|
|
35
|
-
display: inline-block;
|
|
36
|
-
border: 2px solid $border-color;
|
|
37
|
-
border-radius: 3px;
|
|
38
|
-
margin-right: 10px;
|
|
39
|
-
font-size: 15px;
|
|
40
|
-
font-weight: 400;
|
|
41
|
-
line-height: 19px;
|
|
42
|
-
vertical-align: bottom;
|
|
43
|
-
text-align: center;
|
|
44
|
-
background-color: $default-white;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.checkboxNative[disabled] {
|
|
49
|
-
cursor: not-allowed;
|
|
50
|
-
+ .checkboxVisual {
|
|
51
|
-
&:before {
|
|
52
|
-
color: $default-gray-dark;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { ValueAccessorBase } from '../value-accessor-base/value-accessor-base.component';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'klp-form-checkbox',
|
|
7
|
-
templateUrl: './checkbox.component.html',
|
|
8
|
-
styleUrls: ['./checkbox.component.scss'],
|
|
9
|
-
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }],
|
|
10
|
-
})
|
|
11
|
-
export class CheckboxComponent extends ValueAccessorBase<boolean> {
|
|
12
|
-
@Input() caption: string;
|
|
13
|
-
@Input() disabled: boolean;
|
|
14
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<div class="componentContainer form-control" [ngClass]="{showErrors: isInErrorState()}">
|
|
2
|
-
<mat-form-field [floatLabel]="'never'">
|
|
3
|
-
<input
|
|
4
|
-
#nativeInput
|
|
5
|
-
matInput
|
|
6
|
-
[matDatepicker]="picker"
|
|
7
|
-
[(ngModel)]="valueForMaterialDatePicker"
|
|
8
|
-
(dateInput)="dateChanged($event)"
|
|
9
|
-
(input)="nativeValueChanged($event)"
|
|
10
|
-
[min]="minDateStartOfDay"
|
|
11
|
-
[max]="maxDateEndOfDay"
|
|
12
|
-
[placeholder]="placeholder"
|
|
13
|
-
(click)="picker.open()"
|
|
14
|
-
(blur)="touch()"
|
|
15
|
-
>
|
|
16
|
-
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
|
17
|
-
<mat-datepicker #picker
|
|
18
|
-
></mat-datepicker>
|
|
19
|
-
</mat-form-field>
|
|
20
|
-
</div>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
@import '../../../style/themes/default/variables';
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
// patching some styling in the native material date picker so it is inline with our own styling
|
|
6
|
-
::ng-deep {
|
|
7
|
-
mat-form-field {
|
|
8
|
-
display: block;
|
|
9
|
-
height: 100%;
|
|
10
|
-
.mat-form-field-label {
|
|
11
|
-
color: $default-gray-faded-dark;
|
|
12
|
-
}
|
|
13
|
-
&.mat-focused .mat-form-field-label {
|
|
14
|
-
color: $default-gray-faded-dark;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
.mat-datepicker-toggle-active {
|
|
18
|
-
color: $default-gray-dark;
|
|
19
|
-
}
|
|
20
|
-
.mat-form-field-wrapper {
|
|
21
|
-
padding-bottom: none;
|
|
22
|
-
}
|
|
23
|
-
.mat-form-field-flex {
|
|
24
|
-
flex-direction: row-reverse;
|
|
25
|
-
}
|
|
26
|
-
.mat-form-field-infix {
|
|
27
|
-
border-top: none;
|
|
28
|
-
}
|
|
29
|
-
.mat-form-field-suffix {
|
|
30
|
-
margin-right: $spacing-small;
|
|
31
|
-
&:hover {
|
|
32
|
-
.mat-button-focus-overlay {
|
|
33
|
-
opacity: 0.1;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.mat-form-field-underline {
|
|
38
|
-
display: none;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.componentContainer {
|
|
44
|
-
&.showErrors {
|
|
45
|
-
border-color: $default-warning;
|
|
46
|
-
}
|
|
47
|
-
}
|