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.
Files changed (157) hide show
  1. package/button/button.component.d.ts +28 -0
  2. package/button/button.module.d.ts +9 -0
  3. package/button/{index.ts → index.d.ts} +0 -0
  4. package/core/util/convert.d.ts +18 -0
  5. package/core/util/{index.ts → index.d.ts} +0 -0
  6. package/divider/divider.component.d.ts +6 -0
  7. package/divider/divider.module.d.ts +8 -0
  8. package/divider/{index.ts → index.d.ts} +0 -0
  9. package/esm2020/button/button.component.mjs +138 -0
  10. package/esm2020/button/button.module.mjs +19 -0
  11. package/esm2020/button/index.mjs +3 -0
  12. package/esm2020/core/util/convert.mjs +50 -0
  13. package/esm2020/core/util/index.mjs +2 -0
  14. package/esm2020/divider/divider.component.mjs +24 -0
  15. package/esm2020/divider/divider.module.mjs +18 -0
  16. package/esm2020/divider/index.mjs +3 -0
  17. package/esm2020/extended-input/extended-input.component.mjs +67 -0
  18. package/esm2020/extended-input/extended-input.module.mjs +28 -0
  19. package/esm2020/extended-input/index.mjs +3 -0
  20. package/esm2020/form/form-error.component.mjs +29 -0
  21. package/esm2020/form/form-item.component.mjs +57 -0
  22. package/esm2020/form/form.module.mjs +27 -0
  23. package/esm2020/form/index.mjs +4 -0
  24. package/esm2020/icon/index.mjs +5 -0
  25. package/esm2020/icon/wr-icon.component.mjs +51 -0
  26. package/esm2020/icon/wr-icon.module.mjs +21 -0
  27. package/esm2020/icon/wr-icon.service.mjs +30 -0
  28. package/esm2020/icon/wr-icons.mjs +224 -0
  29. package/esm2020/input/index.mjs +3 -0
  30. package/esm2020/input/input.directive.mjs +66 -0
  31. package/esm2020/input/input.module.mjs +23 -0
  32. package/esm2020/ngwr.mjs +5 -0
  33. package/esm2020/password-input/index.mjs +3 -0
  34. package/esm2020/password-input/password-input.component.mjs +56 -0
  35. package/esm2020/password-input/password-input.module.mjs +36 -0
  36. package/esm2020/public-api.mjs +11 -0
  37. package/esm2020/skeleton/index.mjs +3 -0
  38. package/esm2020/skeleton/skeleton.component.mjs +38 -0
  39. package/esm2020/skeleton/skeleton.module.mjs +19 -0
  40. package/esm2020/spinner/index.mjs +3 -0
  41. package/esm2020/spinner/spinner.component.mjs +22 -0
  42. package/esm2020/spinner/spinner.module.mjs +18 -0
  43. package/esm2020/tag/index.mjs +3 -0
  44. package/esm2020/tag/tag.component.mjs +99 -0
  45. package/esm2020/tag/tag.module.mjs +19 -0
  46. package/extended-input/extended-input.component.d.ts +25 -0
  47. package/extended-input/extended-input.module.d.ts +10 -0
  48. package/extended-input/{index.ts → index.d.ts} +0 -0
  49. package/fesm2015/ngwr.mjs +1102 -0
  50. package/fesm2015/ngwr.mjs.map +1 -0
  51. package/fesm2020/ngwr.mjs +1092 -0
  52. package/fesm2020/ngwr.mjs.map +1 -0
  53. package/form/form-error.component.d.ts +9 -0
  54. package/form/form-item.component.d.ts +16 -0
  55. package/form/form.module.d.ts +9 -0
  56. package/form/{index.ts → index.d.ts} +0 -0
  57. package/icon/{index.ts → index.d.ts} +0 -0
  58. package/icon/wr-icon.component.d.ts +16 -0
  59. package/icon/wr-icon.module.d.ts +9 -0
  60. package/icon/wr-icon.service.d.ts +17 -0
  61. package/icon/wr-icons.d.ts +315 -0
  62. package/index.d.ts +5 -0
  63. package/input/{index.ts → index.d.ts} +0 -0
  64. package/input/input.directive.d.ts +19 -0
  65. package/input/input.module.d.ts +9 -0
  66. package/package.json +23 -3
  67. package/password-input/{index.ts → index.d.ts} +0 -0
  68. package/password-input/password-input.component.d.ts +21 -0
  69. package/password-input/password-input.module.d.ts +11 -0
  70. package/{public-api.ts → public-api.d.ts} +0 -0
  71. package/skeleton/{index.ts → index.d.ts} +0 -0
  72. package/skeleton/skeleton.component.d.ts +13 -0
  73. package/skeleton/skeleton.module.d.ts +9 -0
  74. package/spinner/{index.ts → index.d.ts} +0 -0
  75. package/spinner/spinner.component.d.ts +6 -0
  76. package/spinner/spinner.module.d.ts +8 -0
  77. package/tag/{index.ts → index.d.ts} +0 -0
  78. package/tag/tag.component.d.ts +21 -0
  79. package/tag/tag.module.d.ts +9 -0
  80. package/button/button.component.ts +0 -132
  81. package/button/button.module.ts +0 -11
  82. package/core/types/convert-input.ts +0 -2
  83. package/core/types/index.ts +0 -3
  84. package/core/types/indexable.ts +0 -3
  85. package/core/types/ng-class.ts +0 -11
  86. package/core/util/convert.ts +0 -63
  87. package/divider/divider.component.ts +0 -13
  88. package/divider/divider.module.ts +0 -10
  89. package/extended-input/extended-input.component.html +0 -13
  90. package/extended-input/extended-input.component.ts +0 -77
  91. package/extended-input/extended-input.module.ts +0 -17
  92. package/form/form-error.component.ts +0 -20
  93. package/form/form-item.component.ts +0 -60
  94. package/form/form.module.ts +0 -17
  95. package/icon/svg/aab.svg +0 -1
  96. package/icon/svg/add.svg +0 -1
  97. package/icon/svg/alert.svg +0 -1
  98. package/icon/svg/apk.svg +0 -1
  99. package/icon/svg/arrow-back.svg +0 -1
  100. package/icon/svg/bug.svg +0 -1
  101. package/icon/svg/caret-back.svg +0 -1
  102. package/icon/svg/caret-forward.svg +0 -1
  103. package/icon/svg/checkmark-circle.svg +0 -1
  104. package/icon/svg/chevron-down.svg +0 -1
  105. package/icon/svg/chevron-up.svg +0 -1
  106. package/icon/svg/clock.svg +0 -1
  107. package/icon/svg/close-circle.svg +0 -1
  108. package/icon/svg/copy.svg +0 -1
  109. package/icon/svg/document.svg +0 -1
  110. package/icon/svg/dots-horizontal.svg +0 -1
  111. package/icon/svg/dots-vertical.svg +0 -1
  112. package/icon/svg/download.svg +0 -1
  113. package/icon/svg/eye-off.svg +0 -1
  114. package/icon/svg/eye.svg +0 -1
  115. package/icon/svg/flash.svg +0 -1
  116. package/icon/svg/folder.svg +0 -1
  117. package/icon/svg/help.svg +0 -1
  118. package/icon/svg/info-circle-outline.svg +0 -1
  119. package/icon/svg/ipa.svg +0 -1
  120. package/icon/svg/logo-android.svg +0 -1
  121. package/icon/svg/logo-apple.svg +0 -1
  122. package/icon/svg/logo-appscreener.svg +0 -1
  123. package/icon/svg/logo-oversecured.svg +0 -1
  124. package/icon/svg/logo-stingray.svg +0 -1
  125. package/icon/svg/modules.svg +0 -1
  126. package/icon/svg/play-back.svg +0 -1
  127. package/icon/svg/play-circle.svg +0 -1
  128. package/icon/svg/play-forward.svg +0 -1
  129. package/icon/svg/play.svg +0 -1
  130. package/icon/svg/reader.svg +0 -1
  131. package/icon/svg/repeat.svg +0 -1
  132. package/icon/svg/search.svg +0 -1
  133. package/icon/svg/stop-circle.svg +0 -1
  134. package/icon/svg/stop.svg +0 -1
  135. package/icon/svg/trash.svg +0 -1
  136. package/icon/svg/user.svg +0 -1
  137. package/icon/svg/warning.svg +0 -1
  138. package/icon/svg/zip.svg +0 -1
  139. package/icon/wr-icon.component.ts +0 -52
  140. package/icon/wr-icon.module.ts +0 -14
  141. package/icon/wr-icon.service.ts +0 -28
  142. package/icon/wr-icons.ts +0 -405
  143. package/index.ts +0 -1
  144. package/input/input.directive.ts +0 -65
  145. package/input/input.module.ts +0 -16
  146. package/ng-package.json +0 -11
  147. package/password-input/password-input.component.html +0 -10
  148. package/password-input/password-input.component.ts +0 -56
  149. package/password-input/password-input.module.ts +0 -23
  150. package/skeleton/skeleton.component.ts +0 -38
  151. package/skeleton/skeleton.module.ts +0 -11
  152. package/spinner/spinner.component.ts +0 -11
  153. package/spinner/spinner.module.ts +0 -10
  154. package/tag/tag.component.ts +0 -92
  155. package/tag/tag.module.ts +0 -11
  156. package/tsconfig.lib.json +0 -15
  157. 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 {}
@@ -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
- }
@@ -1,10 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "./tsconfig.lib.json",
4
- "compilerOptions": {
5
- "declarationMap": false
6
- },
7
- "angularCompilerOptions": {
8
- "compilationMode": "partial"
9
- }
10
- }