ngwr 0.0.3 → 0.0.4
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/button/button.component.d.ts +28 -0
- package/button/button.module.d.ts +9 -0
- package/button/{index.ts → index.d.ts} +0 -0
- package/core/util/convert.d.ts +18 -0
- package/core/util/{index.ts → index.d.ts} +0 -0
- package/divider/divider.component.d.ts +6 -0
- package/divider/divider.module.d.ts +8 -0
- package/divider/{index.ts → index.d.ts} +0 -0
- package/esm2020/button/button.component.mjs +138 -0
- package/esm2020/button/button.module.mjs +19 -0
- package/esm2020/button/index.mjs +3 -0
- package/esm2020/core/util/convert.mjs +50 -0
- package/esm2020/core/util/index.mjs +2 -0
- package/esm2020/divider/divider.component.mjs +24 -0
- package/esm2020/divider/divider.module.mjs +18 -0
- package/esm2020/divider/index.mjs +3 -0
- package/esm2020/extended-input/extended-input.component.mjs +67 -0
- package/esm2020/extended-input/extended-input.module.mjs +28 -0
- package/esm2020/extended-input/index.mjs +3 -0
- package/esm2020/form/form-error.component.mjs +29 -0
- package/esm2020/form/form-item.component.mjs +57 -0
- package/esm2020/form/form.module.mjs +27 -0
- package/esm2020/form/index.mjs +4 -0
- package/esm2020/icon/index.mjs +5 -0
- package/esm2020/icon/wr-icon.component.mjs +51 -0
- package/esm2020/icon/wr-icon.module.mjs +21 -0
- package/esm2020/icon/wr-icon.service.mjs +30 -0
- package/esm2020/icon/wr-icons.mjs +224 -0
- package/esm2020/input/index.mjs +3 -0
- package/esm2020/input/input.directive.mjs +66 -0
- package/esm2020/input/input.module.mjs +23 -0
- package/esm2020/ngwr.mjs +5 -0
- package/esm2020/password-input/index.mjs +3 -0
- package/esm2020/password-input/password-input.component.mjs +56 -0
- package/esm2020/password-input/password-input.module.mjs +36 -0
- package/esm2020/public-api.mjs +11 -0
- package/esm2020/skeleton/index.mjs +3 -0
- package/esm2020/skeleton/skeleton.component.mjs +38 -0
- package/esm2020/skeleton/skeleton.module.mjs +19 -0
- package/esm2020/spinner/index.mjs +3 -0
- package/esm2020/spinner/spinner.component.mjs +22 -0
- package/esm2020/spinner/spinner.module.mjs +18 -0
- package/esm2020/tag/index.mjs +3 -0
- package/esm2020/tag/tag.component.mjs +99 -0
- package/esm2020/tag/tag.module.mjs +19 -0
- package/extended-input/extended-input.component.d.ts +25 -0
- package/extended-input/extended-input.module.d.ts +10 -0
- package/extended-input/{index.ts → index.d.ts} +0 -0
- package/fesm2015/ngwr.mjs +1102 -0
- package/fesm2015/ngwr.mjs.map +1 -0
- package/fesm2020/ngwr.mjs +1092 -0
- package/fesm2020/ngwr.mjs.map +1 -0
- package/form/form-error.component.d.ts +9 -0
- package/form/form-item.component.d.ts +16 -0
- package/form/form.module.d.ts +9 -0
- package/form/{index.ts → index.d.ts} +0 -0
- package/icon/{index.ts → index.d.ts} +0 -0
- package/icon/wr-icon.component.d.ts +16 -0
- package/icon/wr-icon.module.d.ts +9 -0
- package/icon/wr-icon.service.d.ts +17 -0
- package/icon/wr-icons.d.ts +315 -0
- package/index.d.ts +5 -0
- package/input/{index.ts → index.d.ts} +0 -0
- package/input/input.directive.d.ts +19 -0
- package/input/input.module.d.ts +9 -0
- package/package.json +23 -3
- package/password-input/{index.ts → index.d.ts} +0 -0
- package/password-input/password-input.component.d.ts +21 -0
- package/password-input/password-input.module.d.ts +11 -0
- package/{public-api.ts → public-api.d.ts} +0 -0
- package/skeleton/{index.ts → index.d.ts} +0 -0
- package/skeleton/skeleton.component.d.ts +13 -0
- package/skeleton/skeleton.module.d.ts +9 -0
- package/spinner/{index.ts → index.d.ts} +0 -0
- package/spinner/spinner.component.d.ts +6 -0
- package/spinner/spinner.module.d.ts +8 -0
- package/tag/{index.ts → index.d.ts} +0 -0
- package/tag/tag.component.d.ts +21 -0
- package/tag/tag.module.d.ts +9 -0
- package/button/button.component.ts +0 -132
- package/button/button.module.ts +0 -11
- package/core/types/convert-input.ts +0 -2
- package/core/types/index.ts +0 -3
- package/core/types/indexable.ts +0 -3
- package/core/types/ng-class.ts +0 -11
- package/core/util/convert.ts +0 -63
- package/divider/divider.component.ts +0 -13
- package/divider/divider.module.ts +0 -10
- package/extended-input/extended-input.component.html +0 -13
- package/extended-input/extended-input.component.ts +0 -77
- package/extended-input/extended-input.module.ts +0 -17
- package/form/form-error.component.ts +0 -20
- package/form/form-item.component.ts +0 -60
- package/form/form.module.ts +0 -17
- package/icon/svg/aab.svg +0 -1
- package/icon/svg/add.svg +0 -1
- package/icon/svg/alert.svg +0 -1
- package/icon/svg/apk.svg +0 -1
- package/icon/svg/arrow-back.svg +0 -1
- package/icon/svg/bug.svg +0 -1
- package/icon/svg/caret-back.svg +0 -1
- package/icon/svg/caret-forward.svg +0 -1
- package/icon/svg/checkmark-circle.svg +0 -1
- package/icon/svg/chevron-down.svg +0 -1
- package/icon/svg/chevron-up.svg +0 -1
- package/icon/svg/clock.svg +0 -1
- package/icon/svg/close-circle.svg +0 -1
- package/icon/svg/copy.svg +0 -1
- package/icon/svg/document.svg +0 -1
- package/icon/svg/dots-horizontal.svg +0 -1
- package/icon/svg/dots-vertical.svg +0 -1
- package/icon/svg/download.svg +0 -1
- package/icon/svg/eye-off.svg +0 -1
- package/icon/svg/eye.svg +0 -1
- package/icon/svg/flash.svg +0 -1
- package/icon/svg/folder.svg +0 -1
- package/icon/svg/help.svg +0 -1
- package/icon/svg/info-circle-outline.svg +0 -1
- package/icon/svg/ipa.svg +0 -1
- package/icon/svg/logo-android.svg +0 -1
- package/icon/svg/logo-apple.svg +0 -1
- package/icon/svg/logo-appscreener.svg +0 -1
- package/icon/svg/logo-oversecured.svg +0 -1
- package/icon/svg/logo-stingray.svg +0 -1
- package/icon/svg/modules.svg +0 -1
- package/icon/svg/play-back.svg +0 -1
- package/icon/svg/play-circle.svg +0 -1
- package/icon/svg/play-forward.svg +0 -1
- package/icon/svg/play.svg +0 -1
- package/icon/svg/reader.svg +0 -1
- package/icon/svg/repeat.svg +0 -1
- package/icon/svg/search.svg +0 -1
- package/icon/svg/stop-circle.svg +0 -1
- package/icon/svg/stop.svg +0 -1
- package/icon/svg/trash.svg +0 -1
- package/icon/svg/user.svg +0 -1
- package/icon/svg/warning.svg +0 -1
- package/icon/svg/zip.svg +0 -1
- package/icon/wr-icon.component.ts +0 -52
- package/icon/wr-icon.module.ts +0 -14
- package/icon/wr-icon.service.ts +0 -28
- package/icon/wr-icons.ts +0 -405
- package/index.ts +0 -1
- package/input/input.directive.ts +0 -65
- package/input/input.module.ts +0 -16
- package/ng-package.json +0 -11
- package/password-input/password-input.component.html +0 -10
- package/password-input/password-input.component.ts +0 -56
- package/password-input/password-input.module.ts +0 -23
- package/skeleton/skeleton.component.ts +0 -38
- package/skeleton/skeleton.module.ts +0 -11
- package/spinner/spinner.component.ts +0 -11
- package/spinner/spinner.module.ts +0 -10
- package/tag/tag.component.ts +0 -92
- package/tag/tag.module.ts +0 -11
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { WalrusSkeletonComponent } from './skeleton.component';
|
|
4
|
-
import { WalrusSpinnerModule } from '../spinner';
|
|
5
|
-
|
|
6
|
-
@NgModule({
|
|
7
|
-
imports: [CommonModule, WalrusSpinnerModule],
|
|
8
|
-
declarations: [WalrusSkeletonComponent],
|
|
9
|
-
exports: [WalrusSkeletonComponent]
|
|
10
|
-
})
|
|
11
|
-
export class WalrusSkeletonModule {}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, HostBinding, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'wr-spin',
|
|
5
|
-
template: '<svg viewBox="0 0 50 50"><circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle></svg>',
|
|
6
|
-
encapsulation: ViewEncapsulation.None,
|
|
7
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
8
|
-
})
|
|
9
|
-
export class WalrusSpinnerComponent {
|
|
10
|
-
@HostBinding('class') class = 'wr-spin';
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { WalrusSpinnerComponent } from './spinner.component';
|
|
4
|
-
|
|
5
|
-
@NgModule({
|
|
6
|
-
imports: [CommonModule],
|
|
7
|
-
declarations: [WalrusSpinnerComponent],
|
|
8
|
-
exports: [WalrusSpinnerComponent]
|
|
9
|
-
})
|
|
10
|
-
export class WalrusSpinnerModule {}
|
package/tag/tag.component.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
ElementRef,
|
|
5
|
-
Input, OnChanges,
|
|
6
|
-
OnDestroy,
|
|
7
|
-
OnInit,
|
|
8
|
-
Renderer2, SimpleChanges,
|
|
9
|
-
ViewEncapsulation
|
|
10
|
-
} from '@angular/core';
|
|
11
|
-
import { Subject } from 'rxjs';
|
|
12
|
-
import { InputBoolean } from '../core/util';
|
|
13
|
-
|
|
14
|
-
export type WalrusTagColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'dark';
|
|
15
|
-
|
|
16
|
-
@Component({
|
|
17
|
-
selector: 'wr-tag',
|
|
18
|
-
exportAs: 'wrTag',
|
|
19
|
-
preserveWhitespaces: false,
|
|
20
|
-
template: '<wr-spin *ngIf="loading"></wr-spin><ng-content></ng-content>',
|
|
21
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
|
-
encapsulation: ViewEncapsulation.None
|
|
23
|
-
})
|
|
24
|
-
export class WalrusTagComponent implements OnInit, OnDestroy, OnChanges {
|
|
25
|
-
// add color class
|
|
26
|
-
@Input() color: WalrusTagColor = 'default';
|
|
27
|
-
|
|
28
|
-
// Is tag transparent
|
|
29
|
-
@Input() @InputBoolean() transparent = false;
|
|
30
|
-
|
|
31
|
-
@Input() @InputBoolean() loading = false;
|
|
32
|
-
|
|
33
|
-
// Is tag outlined
|
|
34
|
-
@Input() @InputBoolean() outline = false;
|
|
35
|
-
|
|
36
|
-
// Is tag outlined
|
|
37
|
-
@Input() @InputBoolean() round = false;
|
|
38
|
-
|
|
39
|
-
// Is tag hoverable
|
|
40
|
-
@Input() @InputBoolean() hoverable = false;
|
|
41
|
-
|
|
42
|
-
private destroy$ = new Subject<void>();
|
|
43
|
-
|
|
44
|
-
constructor(
|
|
45
|
-
private readonly elementRef: ElementRef,
|
|
46
|
-
private readonly r2: Renderer2
|
|
47
|
-
) {
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
ngOnInit(): void {
|
|
51
|
-
this.setClasses();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
ngOnDestroy(): void {
|
|
55
|
-
this.destroy$.next();
|
|
56
|
-
this.destroy$.complete();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
ngOnChanges(changes: SimpleChanges) {
|
|
60
|
-
if (changes) {
|
|
61
|
-
this.setClasses();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
private setClasses(): void {
|
|
66
|
-
const baseClass = 'wr-tag';
|
|
67
|
-
const el = this.elementRef.nativeElement;
|
|
68
|
-
const add = (klass: string) => this.r2.addClass(el, `${baseClass}-${klass}`);
|
|
69
|
-
const rm = (klass: string) => this.r2.removeClass(el, `${baseClass}-${klass}`);
|
|
70
|
-
|
|
71
|
-
el.classList = [];
|
|
72
|
-
|
|
73
|
-
this.r2.addClass(el, baseClass);
|
|
74
|
-
add(this.color);
|
|
75
|
-
|
|
76
|
-
if (this.round) {
|
|
77
|
-
add(`-round`);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (this.transparent) {
|
|
81
|
-
add(`-transparent`);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (this.hoverable) {
|
|
85
|
-
add(`-hoverable`);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (this.outline) {
|
|
89
|
-
add(`-outline`);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
package/tag/tag.module.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { WalrusTagComponent } from './tag.component';
|
|
4
|
-
import { WalrusSpinnerModule } from '../spinner';
|
|
5
|
-
|
|
6
|
-
@NgModule({
|
|
7
|
-
imports: [CommonModule, WalrusSpinnerModule],
|
|
8
|
-
declarations: [WalrusTagComponent],
|
|
9
|
-
exports: [WalrusTagComponent]
|
|
10
|
-
})
|
|
11
|
-
export class WalrusTagModule {}
|
package/tsconfig.lib.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"extends": "../../tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "../../out-tsc/lib",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"inlineSources": true,
|
|
9
|
-
"types": []
|
|
10
|
-
},
|
|
11
|
-
"exclude": [
|
|
12
|
-
"src/test.ts",
|
|
13
|
-
"**/*.spec.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
package/tsconfig.lib.prod.json
DELETED