ngwr 0.0.4 → 0.0.8
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/LICENSE +21 -0
- package/README.md +46 -0
- package/_core/components/base.component.d.ts +11 -0
- package/_core/constants/style-prefix.d.ts +1 -0
- package/_core/index.d.ts +5 -0
- package/_core/types/boolean-input.d.ts +1 -0
- package/_core/types/safe-any.d.ts +1 -0
- package/{core → _core}/util/convert.d.ts +2 -1
- package/button/button.component.d.ts +14 -15
- package/button/button.module.d.ts +4 -4
- package/divider/divider.component.d.ts +4 -4
- package/divider/divider.module.d.ts +4 -5
- package/esm2020/_core/components/base.component.mjs +23 -0
- package/esm2020/_core/constants/style-prefix.mjs +2 -0
- package/esm2020/_core/index.mjs +10 -0
- package/esm2020/_core/types/boolean-input.mjs +2 -0
- package/esm2020/_core/types/safe-any.mjs +2 -0
- package/esm2020/_core/util/convert.mjs +51 -0
- package/esm2020/button/button.component.mjs +16 -22
- package/esm2020/button/button.module.mjs +11 -11
- package/esm2020/button/index.mjs +1 -1
- package/esm2020/divider/divider.component.mjs +8 -9
- package/esm2020/divider/divider.module.mjs +9 -11
- package/esm2020/divider/index.mjs +1 -1
- package/esm2020/extended-input/extended-input.component.mjs +8 -7
- package/esm2020/extended-input/extended-input.module.mjs +11 -19
- package/esm2020/extended-input/index.mjs +1 -1
- package/esm2020/form/form-error.component.mjs +9 -15
- package/esm2020/form/form-item.component.mjs +14 -23
- package/esm2020/form/form.module.mjs +10 -18
- package/esm2020/form/index.mjs +1 -1
- package/esm2020/icon/index.mjs +1 -1
- package/esm2020/icon/wr-icon.component.mjs +2 -2
- package/esm2020/icon/wr-icon.module.mjs +1 -1
- package/esm2020/icon/wr-icon.service.mjs +1 -1
- package/esm2020/icon/wr-icons.mjs +99 -29
- package/esm2020/input/index.mjs +1 -1
- package/esm2020/input/input.directive.mjs +14 -19
- package/esm2020/input/input.module.mjs +9 -13
- package/esm2020/ngwr.mjs +1 -1
- package/esm2020/password-input/index.mjs +1 -1
- package/esm2020/password-input/password-input.component.mjs +11 -9
- package/esm2020/password-input/password-input.module.mjs +11 -26
- package/esm2020/public-api.mjs +1 -1
- package/esm2020/skeleton/index.mjs +1 -1
- package/esm2020/skeleton/skeleton.component.mjs +12 -19
- package/esm2020/skeleton/skeleton.module.mjs +11 -11
- package/esm2020/spinner/index.mjs +1 -1
- package/esm2020/spinner/spinner.component.mjs +7 -6
- package/esm2020/spinner/spinner.module.mjs +9 -11
- package/esm2020/tag/index.mjs +1 -1
- package/esm2020/tag/tag.component.mjs +30 -45
- package/esm2020/tag/tag.module.mjs +11 -11
- package/extended-input/extended-input.component.d.ts +9 -8
- package/extended-input/extended-input.module.d.ts +4 -4
- package/fesm2015/ngwr.mjs +332 -322
- package/fesm2015/ngwr.mjs.map +1 -1
- package/fesm2020/ngwr.mjs +333 -323
- package/fesm2020/ngwr.mjs.map +1 -1
- package/form/form-error.component.d.ts +3 -6
- package/form/form-item.component.d.ts +9 -9
- package/form/form.module.d.ts +4 -4
- package/icon/wr-icon.component.d.ts +2 -1
- package/icon/wr-icons.d.ts +121 -23
- package/input/input.directive.d.ts +5 -6
- package/input/input.module.d.ts +4 -4
- package/logo.svg +1 -0
- package/ngwr.min.css +8 -0
- package/package.json +13 -10
- package/password-input/password-input.component.d.ts +10 -9
- package/password-input/password-input.module.d.ts +4 -4
- package/skeleton/skeleton.component.d.ts +7 -9
- package/skeleton/skeleton.module.d.ts +4 -4
- package/spinner/spinner.component.d.ts +3 -3
- package/spinner/spinner.module.d.ts +4 -5
- package/tag/tag.component.d.ts +16 -15
- package/tag/tag.module.d.ts +4 -4
- package/core/util/index.d.ts +0 -1
- package/esm2020/core/util/convert.mjs +0 -50
- package/esm2020/core/util/index.mjs +0 -2
- package/styles/components/_index.scss +0 -15
- package/styles/components/alert.scss +0 -28
- package/styles/components/button.scss +0 -115
- package/styles/components/card.scss +0 -41
- package/styles/components/divider.scss +0 -19
- package/styles/components/dropdown.scss +0 -128
- package/styles/components/extended-input.scss +0 -64
- package/styles/components/form.scss +0 -85
- package/styles/components/heading.scss +0 -25
- package/styles/components/icon.scss +0 -32
- package/styles/components/input.scss +0 -43
- package/styles/components/password-input.scss +0 -31
- package/styles/components/skeleton.scss +0 -58
- package/styles/components/spinner.scss +0 -44
- package/styles/components/tag.scss +0 -70
- package/styles/components/tooltip.scss +0 -60
- package/styles/functions.scss +0 -184
- package/styles/grid.scss +0 -177
- package/styles/index.scss +0 -165
- package/styles/mixins/_index.scss +0 -22
- package/styles/mixins/alert.scss +0 -7
- package/styles/mixins/button.scss +0 -56
- package/styles/mixins/reset-component.scss +0 -13
- package/styles/mixins/tag.scss +0 -68
- package/styles/reset.scss +0 -104
- package/styles/root.scss +0 -31
- package/styles/vars.scss +0 -1075
|
@@ -1,49 +1,36 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import { InputBoolean } from '../core/util';
|
|
3
|
+
import { InputBoolean, stylePrefix } from '../_core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
import * as i1 from "@angular/common";
|
|
7
6
|
import * as i2 from "../spinner/spinner.component";
|
|
8
|
-
export class
|
|
9
|
-
constructor(
|
|
10
|
-
this.
|
|
7
|
+
export class WrTagComponent {
|
|
8
|
+
constructor(cdr, elRef, r2) {
|
|
9
|
+
this.cdr = cdr;
|
|
10
|
+
this.elRef = elRef;
|
|
11
11
|
this.r2 = r2;
|
|
12
|
-
|
|
13
|
-
this.color = 'default';
|
|
14
|
-
// Is tag transparent
|
|
12
|
+
this.color = 'primary';
|
|
15
13
|
this.transparent = false;
|
|
16
14
|
this.loading = false;
|
|
17
|
-
|
|
18
|
-
this.
|
|
19
|
-
// Is tag outlined
|
|
20
|
-
this.round = false;
|
|
21
|
-
// Is tag hoverable
|
|
15
|
+
this.outlined = false;
|
|
16
|
+
this.rounded = false;
|
|
22
17
|
this.hoverable = false;
|
|
23
|
-
this.
|
|
18
|
+
this.baseClass = `${stylePrefix}-tag`;
|
|
24
19
|
}
|
|
25
20
|
ngOnInit() {
|
|
26
21
|
this.setClasses();
|
|
27
22
|
}
|
|
28
|
-
ngOnDestroy() {
|
|
29
|
-
this.destroy$.next();
|
|
30
|
-
this.destroy$.complete();
|
|
31
|
-
}
|
|
32
23
|
ngOnChanges(changes) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
24
|
+
this.setClasses();
|
|
25
|
+
this.cdr.detectChanges();
|
|
36
26
|
}
|
|
37
27
|
setClasses() {
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const rm = (klass) => this.r2.removeClass(el, `${baseClass}-${klass}`);
|
|
42
|
-
el.classList = [];
|
|
43
|
-
this.r2.addClass(el, baseClass);
|
|
28
|
+
const el = this.elRef.nativeElement;
|
|
29
|
+
const add = (klass) => this.r2.addClass(el, `${this.baseClass}-${klass}`);
|
|
30
|
+
this.r2.addClass(el, this.baseClass);
|
|
44
31
|
add(this.color);
|
|
45
|
-
if (this.
|
|
46
|
-
add(`-
|
|
32
|
+
if (this.rounded) {
|
|
33
|
+
add(`-rounded`);
|
|
47
34
|
}
|
|
48
35
|
if (this.transparent) {
|
|
49
36
|
add(`-transparent`);
|
|
@@ -51,49 +38,47 @@ export class WalrusTagComponent {
|
|
|
51
38
|
if (this.hoverable) {
|
|
52
39
|
add(`-hoverable`);
|
|
53
40
|
}
|
|
54
|
-
if (this.
|
|
55
|
-
add(`-
|
|
41
|
+
if (this.outlined) {
|
|
42
|
+
add(`-outlined`);
|
|
56
43
|
}
|
|
57
44
|
}
|
|
58
45
|
}
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
WrTagComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrTagComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
WrTagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: WrTagComponent, selector: "wr-tag", inputs: { color: "color", transparent: "transparent", loading: "loading", outlined: "outlined", rounded: "rounded", hoverable: "hoverable" }, usesOnChanges: true, ngImport: i0, template: '<wr-spin *ngIf="loading"></wr-spin><ng-content></ng-content>', isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.WrSpinnerComponent, selector: "wr-spin" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
61
48
|
__decorate([
|
|
62
49
|
InputBoolean()
|
|
63
|
-
],
|
|
50
|
+
], WrTagComponent.prototype, "transparent", void 0);
|
|
64
51
|
__decorate([
|
|
65
52
|
InputBoolean()
|
|
66
|
-
],
|
|
53
|
+
], WrTagComponent.prototype, "loading", void 0);
|
|
67
54
|
__decorate([
|
|
68
55
|
InputBoolean()
|
|
69
|
-
],
|
|
56
|
+
], WrTagComponent.prototype, "outlined", void 0);
|
|
70
57
|
__decorate([
|
|
71
58
|
InputBoolean()
|
|
72
|
-
],
|
|
59
|
+
], WrTagComponent.prototype, "rounded", void 0);
|
|
73
60
|
__decorate([
|
|
74
61
|
InputBoolean()
|
|
75
|
-
],
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
62
|
+
], WrTagComponent.prototype, "hoverable", void 0);
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrTagComponent, decorators: [{
|
|
77
64
|
type: Component,
|
|
78
65
|
args: [{
|
|
79
66
|
selector: 'wr-tag',
|
|
80
|
-
exportAs: 'wrTag',
|
|
81
|
-
preserveWhitespaces: false,
|
|
82
67
|
template: '<wr-spin *ngIf="loading"></wr-spin><ng-content></ng-content>',
|
|
83
68
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
84
69
|
encapsulation: ViewEncapsulation.None
|
|
85
70
|
}]
|
|
86
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { color: [{
|
|
71
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { color: [{
|
|
87
72
|
type: Input
|
|
88
73
|
}], transparent: [{
|
|
89
74
|
type: Input
|
|
90
75
|
}], loading: [{
|
|
91
76
|
type: Input
|
|
92
|
-
}],
|
|
77
|
+
}], outlined: [{
|
|
93
78
|
type: Input
|
|
94
|
-
}],
|
|
79
|
+
}], rounded: [{
|
|
95
80
|
type: Input
|
|
96
81
|
}], hoverable: [{
|
|
97
82
|
type: Input
|
|
98
83
|
}] } });
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFnLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi90YWcvdGFnLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUV2QixTQUFTLEVBRVQsS0FBSyxFQUtMLGlCQUFpQixFQUNsQixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQWdCLFlBQVksRUFBRSxXQUFXLEVBQUUsTUFBTSxVQUFVLENBQUM7Ozs7QUFVbkUsTUFBTSxPQUFPLGNBQWM7SUFXekIsWUFDbUIsR0FBc0IsRUFDdEIsS0FBaUIsRUFDakIsRUFBYTtRQUZiLFFBQUcsR0FBSCxHQUFHLENBQW1CO1FBQ3RCLFVBQUssR0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ICBpZiAodGhpcy50cmFuc3BhcmVudCkge1xuICAgICAgYWRkKGAtdHJhbnNwYXJlbnRgKTtcbiAgICB9XG5cbiAgICBpZiAodGhpcy5ob3ZlcmFibGUpIHtcbiAgICAgIGFkZChgLWhvdmVyYWJsZWApO1xuICAgIH1cblxuICAgIGlmICh0aGlzLm91dGxpbmVkKSB7XG4gICAgICBhZGQoYC1vdXRsaW5lZGApO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
|
2
2
|
import { NgModule } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { WrSpinnerModule } from '../spinner';
|
|
4
|
+
import { WrTagComponent } from './tag.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export class
|
|
6
|
+
export class WrTagModule {
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
8
|
+
WrTagModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrTagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
WrTagModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WrTagModule, declarations: [WrTagComponent], imports: [CommonModule, WrSpinnerModule], exports: [WrTagComponent] });
|
|
10
|
+
WrTagModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrTagModule, imports: [CommonModule, WrSpinnerModule] });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrTagModule, decorators: [{
|
|
12
12
|
type: NgModule,
|
|
13
13
|
args: [{
|
|
14
|
-
imports: [CommonModule,
|
|
15
|
-
declarations: [
|
|
16
|
-
exports: [
|
|
14
|
+
imports: [CommonModule, WrSpinnerModule],
|
|
15
|
+
declarations: [WrTagComponent],
|
|
16
|
+
exports: [WrTagComponent]
|
|
17
17
|
}]
|
|
18
18
|
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFnLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi90YWcvdGFnLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzdDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFPakQsTUFBTSxPQUFPLFdBQVc7O3dHQUFYLFdBQVc7eUdBQVgsV0FBVyxpQkFIUCxjQUFjLGFBRG5CLFlBQVksRUFBRSxlQUFlLGFBRTdCLGNBQWM7eUdBRWIsV0FBVyxZQUpaLFlBQVksRUFBRSxlQUFlOzJGQUk1QixXQUFXO2tCQUx2QixRQUFRO21CQUFDO29CQUNSLE9BQU8sRUFBRSxDQUFDLFlBQVksRUFBRSxlQUFlLENBQUM7b0JBQ3hDLFlBQVksRUFBRSxDQUFDLGNBQWMsQ0FBQztvQkFDOUIsT0FBTyxFQUFFLENBQUMsY0FBYyxDQUFDO2lCQUMxQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBXclNwaW5uZXJNb2R1bGUgfSBmcm9tICcuLi9zcGlubmVyJztcbmltcG9ydCB7IFdyVGFnQ29tcG9uZW50IH0gZnJvbSAnLi90YWcuY29tcG9uZW50JztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSwgV3JTcGlubmVyTW9kdWxlXSxcbiAgZGVjbGFyYXRpb25zOiBbV3JUYWdDb21wb25lbnRdLFxuICBleHBvcnRzOiBbV3JUYWdDb21wb25lbnRdXG59KVxuZXhwb3J0IGNsYXNzIFdyVGFnTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { SafeAny } from '../_core';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
5
|
+
export declare class WrExtendedInputComponent implements ControlValueAccessor, OnInit {
|
|
5
6
|
ngControl: NgControl;
|
|
6
7
|
private readonly elRef;
|
|
7
8
|
private readonly r2;
|
|
@@ -13,13 +14,13 @@ export declare class WalrusExtendedInputComponent implements ControlValueAccesso
|
|
|
13
14
|
touched: boolean;
|
|
14
15
|
constructor(ngControl: NgControl, elRef: ElementRef, r2: Renderer2);
|
|
15
16
|
ngOnInit(): void;
|
|
16
|
-
onInput($event:
|
|
17
|
-
onChange: (value:
|
|
17
|
+
onInput($event: SafeAny): void;
|
|
18
|
+
onChange: (value: SafeAny) => void;
|
|
18
19
|
onTouched: () => void;
|
|
19
20
|
onFocusOut(): void;
|
|
20
|
-
registerOnChange(fn:
|
|
21
|
-
registerOnTouched(fn:
|
|
22
|
-
writeValue(obj:
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
21
|
+
registerOnChange(fn: SafeAny): void;
|
|
22
|
+
registerOnTouched(fn: SafeAny): void;
|
|
23
|
+
writeValue(obj: SafeAny): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrExtendedInputComponent, [{ optional: true; self: true; }, null, null]>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrExtendedInputComponent, "wr-extended-input", never, { "suffix": "suffix"; "prefix": "prefix"; }, {}, never, never, false>;
|
|
25
26
|
}
|
|
@@ -3,8 +3,8 @@ import * as i1 from "./extended-input.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/cdk/platform";
|
|
5
5
|
import * as i4 from "../input/input.module";
|
|
6
|
-
export declare class
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
6
|
+
export declare class WrExtendedInputModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrExtendedInputModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WrExtendedInputModule, [typeof i1.WrExtendedInputComponent], [typeof i2.CommonModule, typeof i3.PlatformModule, typeof i4.WrInputModule], [typeof i1.WrExtendedInputComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WrExtendedInputModule>;
|
|
10
10
|
}
|