ngwr 0.0.4 → 0.0.6
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 +30 -0
- package/_core/components/base.component.d.ts +11 -0
- package/_core/constants/style-prefix.d.ts +1 -0
- package/_core/index.d.ts +4 -0
- package/_core/types/boolean-input.d.ts +1 -0
- package/{core → _core}/util/convert.d.ts +0 -0
- 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 +9 -0
- package/esm2020/_core/types/boolean-input.mjs +2 -0
- package/esm2020/_core/util/convert.mjs +50 -0
- package/esm2020/button/button.component.mjs +16 -22
- package/esm2020/button/button.module.mjs +12 -12
- 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 +7 -6
- package/esm2020/extended-input/extended-input.module.mjs +15 -15
- 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 +14 -14
- package/esm2020/form/index.mjs +1 -1
- package/esm2020/icon/index.mjs +1 -1
- package/esm2020/icon/wr-icon.component.mjs +1 -1
- package/esm2020/icon/wr-icon.module.mjs +1 -1
- package/esm2020/icon/wr-icon.service.mjs +1 -1
- package/esm2020/icon/wr-icons.mjs +49 -29
- package/esm2020/input/index.mjs +1 -1
- package/esm2020/input/input.directive.mjs +13 -18
- package/esm2020/input/input.module.mjs +11 -15
- package/esm2020/ngwr.mjs +1 -1
- package/esm2020/password-input/index.mjs +1 -1
- package/esm2020/password-input/password-input.component.mjs +9 -7
- package/esm2020/password-input/password-input.module.mjs +10 -10
- package/esm2020/public-api.mjs +1 -1
- package/esm2020/skeleton/index.mjs +1 -1
- package/esm2020/skeleton/skeleton.component.mjs +11 -18
- package/esm2020/skeleton/skeleton.module.mjs +8 -8
- 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 +29 -44
- package/esm2020/tag/tag.module.mjs +11 -11
- package/extended-input/extended-input.component.d.ts +3 -3
- package/extended-input/extended-input.module.d.ts +4 -4
- package/fesm2015/ngwr.mjs +264 -274
- package/fesm2015/ngwr.mjs.map +1 -1
- package/fesm2020/ngwr.mjs +265 -275
- 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-icons.d.ts +63 -35
- package/input/input.directive.d.ts +5 -6
- package/input/input.module.d.ts +4 -4
- package/logo.svg +1 -0
- package/package.json +13 -10
- package/password-input/password-input.component.d.ts +3 -3
- package/password-input/password-input.module.d.ts +1 -1
- package/skeleton/skeleton.component.d.ts +7 -9
- package/skeleton/skeleton.module.d.ts +1 -1
- package/spinner/spinner.component.d.ts +3 -3
- package/spinner/spinner.module.d.ts +4 -5
- package/styles/components/tag.scss +2 -2
- package/styles/index.scss +8 -9
- package/styles.css +4 -0
- 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/fesm2015/ngwr.mjs
CHANGED
|
@@ -1,48 +1,36 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, NgModule, Input, Optional, Self, Injectable, Inject } from '@angular/core';
|
|
1
3
|
import * as i2 from '@angular/common';
|
|
2
4
|
import { CommonModule, DOCUMENT } from '@angular/common';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, NgModule, Input, Directive, Optional, Self, Injectable, Inject } from '@angular/core';
|
|
5
|
-
import { __decorate } from 'tslib';
|
|
6
5
|
import { Subject, fromEvent } from 'rxjs';
|
|
7
|
-
import { takeUntil, filter } from 'rxjs/operators';
|
|
8
6
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
7
|
+
import { __decorate } from 'tslib';
|
|
8
|
+
import { takeUntil, filter } from 'rxjs/operators';
|
|
9
9
|
import { PlatformModule } from '@angular/cdk/platform';
|
|
10
10
|
import * as i1 from '@angular/forms';
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class BaseComponent {
|
|
13
13
|
constructor() {
|
|
14
|
-
this.
|
|
14
|
+
this.ngUnsubscribe = new Subject();
|
|
15
|
+
this._isDestroyed = false;
|
|
16
|
+
}
|
|
17
|
+
get isDestroyed() {
|
|
18
|
+
return this._isDestroyed;
|
|
19
|
+
}
|
|
20
|
+
ngOnDestroy() {
|
|
21
|
+
this._isDestroyed = true;
|
|
22
|
+
this.ngUnsubscribe.next(undefined);
|
|
23
|
+
this.ngUnsubscribe.complete();
|
|
15
24
|
}
|
|
16
25
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
20
|
-
type:
|
|
21
|
-
args: [{
|
|
22
|
-
selector: 'wr-spin',
|
|
23
|
-
template: '<svg viewBox="0 0 50 50"><circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle></svg>',
|
|
24
|
-
encapsulation: ViewEncapsulation.None,
|
|
25
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
26
|
-
}]
|
|
27
|
-
}], propDecorators: { class: [{
|
|
28
|
-
type: HostBinding,
|
|
29
|
-
args: ['class']
|
|
30
|
-
}] } });
|
|
31
|
-
|
|
32
|
-
class WalrusSpinnerModule {
|
|
33
|
-
}
|
|
34
|
-
WalrusSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
35
|
-
WalrusSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WalrusSpinnerModule, declarations: [WalrusSpinnerComponent], imports: [CommonModule], exports: [WalrusSpinnerComponent] });
|
|
36
|
-
WalrusSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusSpinnerModule, imports: [CommonModule] });
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusSpinnerModule, decorators: [{
|
|
38
|
-
type: NgModule,
|
|
39
|
-
args: [{
|
|
40
|
-
imports: [CommonModule],
|
|
41
|
-
declarations: [WalrusSpinnerComponent],
|
|
42
|
-
exports: [WalrusSpinnerComponent]
|
|
43
|
-
}]
|
|
26
|
+
BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
27
|
+
BaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.3", type: BaseComponent, ngImport: i0 });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: BaseComponent, decorators: [{
|
|
29
|
+
type: Directive
|
|
44
30
|
}] });
|
|
45
31
|
|
|
32
|
+
const stylePrefix = 'wr';
|
|
33
|
+
|
|
46
34
|
function toBoolean(value) {
|
|
47
35
|
return coerceBooleanProperty(value);
|
|
48
36
|
}
|
|
@@ -92,8 +80,44 @@ function InputBoolean() {
|
|
|
92
80
|
return propDecoratorFactory('InputBoolean', toBoolean);
|
|
93
81
|
}
|
|
94
82
|
|
|
95
|
-
|
|
83
|
+
// Components
|
|
84
|
+
|
|
85
|
+
class WrSpinnerComponent {
|
|
86
|
+
constructor() {
|
|
87
|
+
this.class = `${stylePrefix}-spin`;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
WrSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
+
WrSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: WrSpinnerComponent, selector: "wr-spin", host: { properties: { "class": "this.class" } }, ngImport: i0, template: '<svg viewBox="0 0 50 50"><circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle></svg>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrSpinnerComponent, decorators: [{
|
|
93
|
+
type: Component,
|
|
94
|
+
args: [{
|
|
95
|
+
selector: 'wr-spin',
|
|
96
|
+
template: '<svg viewBox="0 0 50 50"><circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle></svg>',
|
|
97
|
+
encapsulation: ViewEncapsulation.None,
|
|
98
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
99
|
+
}]
|
|
100
|
+
}], propDecorators: { class: [{
|
|
101
|
+
type: HostBinding,
|
|
102
|
+
args: ['class']
|
|
103
|
+
}] } });
|
|
104
|
+
|
|
105
|
+
class WrSpinnerModule {
|
|
106
|
+
}
|
|
107
|
+
WrSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
108
|
+
WrSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WrSpinnerModule, declarations: [WrSpinnerComponent], exports: [WrSpinnerComponent] });
|
|
109
|
+
WrSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrSpinnerModule });
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrSpinnerModule, decorators: [{
|
|
111
|
+
type: NgModule,
|
|
112
|
+
args: [{
|
|
113
|
+
declarations: [WrSpinnerComponent],
|
|
114
|
+
exports: [WrSpinnerComponent]
|
|
115
|
+
}]
|
|
116
|
+
}] });
|
|
117
|
+
|
|
118
|
+
class WrButtonComponent extends BaseComponent {
|
|
96
119
|
constructor(cdr, elRef, ngZone, r2) {
|
|
120
|
+
super();
|
|
97
121
|
this.cdr = cdr;
|
|
98
122
|
this.elRef = elRef;
|
|
99
123
|
this.ngZone = ngZone;
|
|
@@ -105,8 +129,7 @@ class WalrusButtonComponent {
|
|
|
105
129
|
this.rounded = false;
|
|
106
130
|
this.loading = false;
|
|
107
131
|
this.block = false;
|
|
108
|
-
this.baseClass =
|
|
109
|
-
this.destroy$ = new Subject();
|
|
132
|
+
this.baseClass = `${stylePrefix}-btn`;
|
|
110
133
|
}
|
|
111
134
|
ngOnInit() {
|
|
112
135
|
this.setClasses();
|
|
@@ -119,7 +142,7 @@ class WalrusButtonComponent {
|
|
|
119
142
|
* this doesn't require Angular to run the change detection.
|
|
120
143
|
*/
|
|
121
144
|
fromEvent(this.elRef.nativeElement, 'click')
|
|
122
|
-
.pipe(takeUntil(this.
|
|
145
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
123
146
|
.subscribe(event => {
|
|
124
147
|
var _a;
|
|
125
148
|
if (this.disabled && ((_a = event.target) === null || _a === void 0 ? void 0 : _a.tagName) === 'A') {
|
|
@@ -132,10 +155,6 @@ class WalrusButtonComponent {
|
|
|
132
155
|
ngAfterViewInit() {
|
|
133
156
|
this.insertSpan(this.elRef.nativeElement.childNodes, this.r2);
|
|
134
157
|
}
|
|
135
|
-
ngOnDestroy() {
|
|
136
|
-
this.destroy$.next();
|
|
137
|
-
this.destroy$.complete();
|
|
138
|
-
}
|
|
139
158
|
ngOnChanges(changes) {
|
|
140
159
|
var _a, _b;
|
|
141
160
|
if (!((_a = changes['disabled']) === null || _a === void 0 ? void 0 : _a.currentValue)) {
|
|
@@ -151,7 +170,7 @@ class WalrusButtonComponent {
|
|
|
151
170
|
nodes.forEach(node => {
|
|
152
171
|
if (node.nodeName === '#text') {
|
|
153
172
|
const span = renderer.createElement('span');
|
|
154
|
-
renderer.addClass(span,
|
|
173
|
+
renderer.addClass(span, `${this.baseClass}__text`);
|
|
155
174
|
const parent = renderer.parentNode(node);
|
|
156
175
|
renderer.insertBefore(parent, span, node);
|
|
157
176
|
renderer.appendChild(span, node);
|
|
@@ -181,29 +200,27 @@ class WalrusButtonComponent {
|
|
|
181
200
|
}
|
|
182
201
|
}
|
|
183
202
|
}
|
|
184
|
-
|
|
185
|
-
|
|
203
|
+
WrButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrButtonComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
204
|
+
WrButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: WrButtonComponent, selector: "wr-btn, [wr-btn]", inputs: { color: "color", size: "size", disabled: "disabled", outlined: "outlined", rounded: "rounded", loading: "loading", block: "block" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content><wr-spin *ngIf="loading"></wr-spin>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: WrSpinnerComponent, selector: "wr-spin" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
186
205
|
__decorate([
|
|
187
206
|
InputBoolean()
|
|
188
|
-
],
|
|
207
|
+
], WrButtonComponent.prototype, "disabled", void 0);
|
|
189
208
|
__decorate([
|
|
190
209
|
InputBoolean()
|
|
191
|
-
],
|
|
210
|
+
], WrButtonComponent.prototype, "outlined", void 0);
|
|
192
211
|
__decorate([
|
|
193
212
|
InputBoolean()
|
|
194
|
-
],
|
|
213
|
+
], WrButtonComponent.prototype, "rounded", void 0);
|
|
195
214
|
__decorate([
|
|
196
215
|
InputBoolean()
|
|
197
|
-
],
|
|
216
|
+
], WrButtonComponent.prototype, "loading", void 0);
|
|
198
217
|
__decorate([
|
|
199
218
|
InputBoolean()
|
|
200
|
-
],
|
|
201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
219
|
+
], WrButtonComponent.prototype, "block", void 0);
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrButtonComponent, decorators: [{
|
|
202
221
|
type: Component,
|
|
203
222
|
args: [{
|
|
204
223
|
selector: 'wr-btn, [wr-btn]',
|
|
205
|
-
exportAs: 'wrButton',
|
|
206
|
-
preserveWhitespaces: false,
|
|
207
224
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
208
225
|
encapsulation: ViewEncapsulation.None,
|
|
209
226
|
template: `<ng-content></ng-content><wr-spin *ngIf="loading"></wr-spin>`
|
|
@@ -224,63 +241,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
224
241
|
type: Input
|
|
225
242
|
}] } });
|
|
226
243
|
|
|
227
|
-
class
|
|
244
|
+
class WrButtonModule {
|
|
228
245
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
246
|
+
WrButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
247
|
+
WrButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WrButtonModule, declarations: [WrButtonComponent], imports: [CommonModule, WrSpinnerModule], exports: [WrButtonComponent] });
|
|
248
|
+
WrButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrButtonModule, imports: [CommonModule, WrSpinnerModule] });
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrButtonModule, decorators: [{
|
|
233
250
|
type: NgModule,
|
|
234
251
|
args: [{
|
|
235
|
-
imports: [CommonModule,
|
|
236
|
-
declarations: [
|
|
237
|
-
exports: [
|
|
252
|
+
imports: [CommonModule, WrSpinnerModule],
|
|
253
|
+
declarations: [WrButtonComponent],
|
|
254
|
+
exports: [WrButtonComponent],
|
|
238
255
|
}]
|
|
239
256
|
}] });
|
|
240
257
|
|
|
241
|
-
class
|
|
258
|
+
class WrDividerComponent {
|
|
242
259
|
constructor() {
|
|
243
|
-
this.
|
|
260
|
+
this.class = `${stylePrefix}-divider`;
|
|
244
261
|
}
|
|
245
262
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
263
|
+
WrDividerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
264
|
+
WrDividerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: WrDividerComponent, selector: "wr-divider", host: { properties: { "class": "this.class" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrDividerComponent, decorators: [{
|
|
249
266
|
type: Component,
|
|
250
267
|
args: [{
|
|
251
268
|
selector: 'wr-divider',
|
|
252
|
-
exportAs: 'wrDivider',
|
|
253
|
-
preserveWhitespaces: false,
|
|
254
269
|
template: '',
|
|
255
270
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
256
271
|
encapsulation: ViewEncapsulation.None
|
|
257
272
|
}]
|
|
258
|
-
}], propDecorators: {
|
|
273
|
+
}], propDecorators: { class: [{
|
|
259
274
|
type: HostBinding,
|
|
260
275
|
args: ['class']
|
|
261
276
|
}] } });
|
|
262
277
|
|
|
263
|
-
class
|
|
278
|
+
class WrDividerModule {
|
|
264
279
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
280
|
+
WrDividerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrDividerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
281
|
+
WrDividerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WrDividerModule, declarations: [WrDividerComponent], exports: [WrDividerComponent] });
|
|
282
|
+
WrDividerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrDividerModule });
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrDividerModule, decorators: [{
|
|
269
284
|
type: NgModule,
|
|
270
285
|
args: [{
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
exports: [WalrusDividerComponent]
|
|
286
|
+
declarations: [WrDividerComponent],
|
|
287
|
+
exports: [WrDividerComponent]
|
|
274
288
|
}]
|
|
275
289
|
}] });
|
|
276
290
|
|
|
277
|
-
class
|
|
291
|
+
class WrInputDirective extends BaseComponent {
|
|
278
292
|
constructor(ngControl) {
|
|
293
|
+
super();
|
|
279
294
|
this.ngControl = ngControl;
|
|
280
|
-
this.class =
|
|
295
|
+
this.class = `${stylePrefix}-input`;
|
|
281
296
|
this._disabled = false;
|
|
282
297
|
this.disabled$ = new Subject();
|
|
283
|
-
this.destroy$ = new Subject();
|
|
284
298
|
}
|
|
285
299
|
get disabled() {
|
|
286
300
|
if (this.ngControl && this.ngControl.disabled !== null) {
|
|
@@ -294,9 +308,7 @@ class WalrusInputDirective {
|
|
|
294
308
|
ngOnInit() {
|
|
295
309
|
var _a;
|
|
296
310
|
if (this.ngControl) {
|
|
297
|
-
(_a = this.ngControl.statusChanges) === null || _a === void 0 ? void 0 : _a.pipe(filter(() => this.ngControl.disabled !== null), takeUntil(this.
|
|
298
|
-
this.disabled$.next(this.ngControl.disabled);
|
|
299
|
-
});
|
|
311
|
+
(_a = this.ngControl.statusChanges) === null || _a === void 0 ? void 0 : _a.pipe(filter(() => this.ngControl.disabled !== null), takeUntil(this.ngUnsubscribe)).subscribe(() => this.disabled$.next(this.ngControl.disabled));
|
|
300
312
|
}
|
|
301
313
|
}
|
|
302
314
|
ngOnChanges(changes) {
|
|
@@ -305,18 +317,13 @@ class WalrusInputDirective {
|
|
|
305
317
|
this.disabled$.next(this.disabled);
|
|
306
318
|
}
|
|
307
319
|
}
|
|
308
|
-
ngOnDestroy() {
|
|
309
|
-
this.destroy$.next();
|
|
310
|
-
this.destroy$.complete();
|
|
311
|
-
}
|
|
312
320
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
321
|
+
WrInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrInputDirective, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
322
|
+
WrInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.3", type: WrInputDirective, selector: "wr-input, input[wr-input], textarea[wr-input]", inputs: { disabled: "disabled" }, host: { properties: { "class": "this.class", "class.wr-input--disabled": "this.disabled", "disabled": "this.disabled" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrInputDirective, decorators: [{
|
|
316
324
|
type: Directive,
|
|
317
325
|
args: [{
|
|
318
326
|
selector: 'wr-input, input[wr-input], textarea[wr-input]',
|
|
319
|
-
exportAs: 'wrInput',
|
|
320
327
|
}]
|
|
321
328
|
}], ctorParameters: function () {
|
|
322
329
|
return [{ type: i1.NgControl, decorators: [{
|
|
@@ -325,10 +332,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
325
332
|
type: Self
|
|
326
333
|
}] }];
|
|
327
334
|
}, propDecorators: { class: [{
|
|
328
|
-
type: HostBinding
|
|
335
|
+
type: HostBinding,
|
|
336
|
+
args: ['class']
|
|
329
337
|
}], disabled: [{
|
|
330
338
|
type: HostBinding,
|
|
331
|
-
args: [
|
|
339
|
+
args: [`class.${stylePrefix}-input--disabled`]
|
|
332
340
|
}, {
|
|
333
341
|
type: HostBinding,
|
|
334
342
|
args: ['disabled']
|
|
@@ -336,30 +344,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
336
344
|
type: Input
|
|
337
345
|
}] } });
|
|
338
346
|
|
|
339
|
-
class
|
|
347
|
+
class WrInputModule {
|
|
340
348
|
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
349
|
+
WrInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
350
|
+
WrInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WrInputModule, declarations: [WrInputDirective], imports: [CommonModule, PlatformModule], exports: [WrInputDirective] });
|
|
351
|
+
WrInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrInputModule, imports: [CommonModule, PlatformModule] });
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrInputModule, decorators: [{
|
|
345
353
|
type: NgModule,
|
|
346
354
|
args: [{
|
|
347
355
|
imports: [CommonModule, PlatformModule],
|
|
348
|
-
declarations: [
|
|
349
|
-
|
|
350
|
-
],
|
|
351
|
-
exports: [
|
|
352
|
-
WalrusInputDirective,
|
|
353
|
-
]
|
|
356
|
+
declarations: [WrInputDirective,],
|
|
357
|
+
exports: [WrInputDirective,]
|
|
354
358
|
}]
|
|
355
359
|
}] });
|
|
356
360
|
|
|
357
|
-
class
|
|
361
|
+
class WrExtendedInputComponent {
|
|
358
362
|
constructor(ngControl, elRef, r2) {
|
|
359
363
|
this.ngControl = ngControl;
|
|
360
364
|
this.elRef = elRef;
|
|
361
365
|
this.r2 = r2;
|
|
362
|
-
this.class =
|
|
366
|
+
this.class = `${stylePrefix}-extended-input`;
|
|
363
367
|
this.disabled = false;
|
|
364
368
|
this.value = undefined;
|
|
365
369
|
this.touched = false;
|
|
@@ -398,9 +402,9 @@ class WalrusExtendedInputComponent {
|
|
|
398
402
|
this.value = obj;
|
|
399
403
|
}
|
|
400
404
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
405
|
+
WrExtendedInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrExtendedInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
406
|
+
WrExtendedInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: WrExtendedInputComponent, selector: "wr-extended-input", inputs: { suffix: "suffix", prefix: "prefix" }, host: { properties: { "class": "this.class" } }, ngImport: i0, template: "<div class=\"wr-extended-input-prefix\" *ngIf=\"prefix\">\n <span class=\"wr-extended-input-prefix__text\" >{{ prefix }}</span>\n</div>\n<input\n wr-input\n [disabled]=\"disabled\"\n [value]=\"value\"\n (focusout)=\"onFocusOut()\"\n (input)=\"onInput($event)\"\n>\n<div class=\"wr-extended-input-suffix\" *ngIf=\"suffix\">\n <span class=\"wr-extended-input-suffix__text\" >{{ suffix }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: WrInputDirective, selector: "wr-input, input[wr-input], textarea[wr-input]", inputs: ["disabled"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrExtendedInputComponent, decorators: [{
|
|
404
408
|
type: Component,
|
|
405
409
|
args: [{ selector: 'wr-extended-input', encapsulation: ViewEncapsulation.None, template: "<div class=\"wr-extended-input-prefix\" *ngIf=\"prefix\">\n <span class=\"wr-extended-input-prefix__text\" >{{ prefix }}</span>\n</div>\n<input\n wr-input\n [disabled]=\"disabled\"\n [value]=\"value\"\n (focusout)=\"onFocusOut()\"\n (input)=\"onInput($event)\"\n>\n<div class=\"wr-extended-input-suffix\" *ngIf=\"suffix\">\n <span class=\"wr-extended-input-suffix__text\" >{{ suffix }}</span>\n</div>\n" }]
|
|
406
410
|
}], ctorParameters: function () {
|
|
@@ -418,73 +422,65 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
418
422
|
type: Input
|
|
419
423
|
}] } });
|
|
420
424
|
|
|
421
|
-
class
|
|
425
|
+
class WrExtendedInputModule {
|
|
422
426
|
}
|
|
423
|
-
|
|
424
|
-
|
|
427
|
+
WrExtendedInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrExtendedInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
428
|
+
WrExtendedInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WrExtendedInputModule, declarations: [WrExtendedInputComponent], imports: [CommonModule,
|
|
425
429
|
PlatformModule,
|
|
426
|
-
|
|
427
|
-
|
|
430
|
+
WrInputModule], exports: [WrExtendedInputComponent] });
|
|
431
|
+
WrExtendedInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrExtendedInputModule, imports: [CommonModule,
|
|
428
432
|
PlatformModule,
|
|
429
|
-
|
|
430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
433
|
+
WrInputModule] });
|
|
434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrExtendedInputModule, decorators: [{
|
|
431
435
|
type: NgModule,
|
|
432
436
|
args: [{
|
|
433
437
|
imports: [
|
|
434
438
|
CommonModule,
|
|
435
439
|
PlatformModule,
|
|
436
|
-
|
|
440
|
+
WrInputModule,
|
|
437
441
|
],
|
|
438
|
-
declarations: [
|
|
439
|
-
exports: [
|
|
442
|
+
declarations: [WrExtendedInputComponent],
|
|
443
|
+
exports: [WrExtendedInputComponent]
|
|
440
444
|
}]
|
|
441
445
|
}] });
|
|
442
446
|
|
|
443
|
-
class
|
|
444
|
-
constructor(cdr,
|
|
447
|
+
class WrFormItemComponent {
|
|
448
|
+
constructor(cdr, elRef, r2) {
|
|
445
449
|
this.cdr = cdr;
|
|
446
|
-
this.
|
|
450
|
+
this.elRef = elRef;
|
|
447
451
|
this.r2 = r2;
|
|
448
452
|
this.hasError = false;
|
|
449
|
-
this.
|
|
453
|
+
this.baseClass = `${stylePrefix}-form-item`;
|
|
450
454
|
}
|
|
451
455
|
ngOnInit() {
|
|
452
456
|
this.setClasses();
|
|
453
457
|
}
|
|
454
|
-
ngOnDestroy() {
|
|
455
|
-
this.destroy$.next(null);
|
|
456
|
-
this.destroy$.complete();
|
|
457
|
-
}
|
|
458
458
|
ngOnChanges(changes) {
|
|
459
459
|
var _a;
|
|
460
|
-
const baseClass = 'wr-form-item';
|
|
461
460
|
if (!((_a = changes['hasError']) === null || _a === void 0 ? void 0 : _a.currentValue)) {
|
|
462
|
-
this.r2.removeClass(this.
|
|
461
|
+
this.r2.removeClass(this.elRef.nativeElement, `${this.baseClass}--has-error`);
|
|
463
462
|
}
|
|
464
463
|
this.setClasses();
|
|
465
464
|
this.cdr.detectChanges();
|
|
466
465
|
}
|
|
467
466
|
setClasses() {
|
|
468
|
-
const
|
|
469
|
-
const
|
|
470
|
-
|
|
471
|
-
this.r2.addClass(el, baseClass);
|
|
467
|
+
const el = this.elRef.nativeElement;
|
|
468
|
+
const add = (klass) => this.r2.addClass(el, `${this.baseClass}-${klass}`);
|
|
469
|
+
this.r2.addClass(el, this.baseClass);
|
|
472
470
|
if (this.hasError) {
|
|
473
471
|
add('-has-error');
|
|
474
472
|
}
|
|
475
473
|
}
|
|
476
474
|
}
|
|
477
|
-
|
|
478
|
-
|
|
475
|
+
WrFormItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrFormItemComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
476
|
+
WrFormItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: WrFormItemComponent, selector: "wr-form-item", inputs: { hasError: "hasError" }, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
479
477
|
__decorate([
|
|
480
478
|
InputBoolean()
|
|
481
|
-
],
|
|
482
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
479
|
+
], WrFormItemComponent.prototype, "hasError", void 0);
|
|
480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrFormItemComponent, decorators: [{
|
|
483
481
|
type: Component,
|
|
484
482
|
args: [{
|
|
485
483
|
selector: 'wr-form-item',
|
|
486
|
-
exportAs: 'wrFormItem',
|
|
487
|
-
preserveWhitespaces: false,
|
|
488
484
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
489
485
|
encapsulation: ViewEncapsulation.None,
|
|
490
486
|
template: `<ng-content></ng-content>`
|
|
@@ -493,71 +489,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
493
489
|
type: Input
|
|
494
490
|
}] } });
|
|
495
491
|
|
|
496
|
-
class
|
|
492
|
+
class WrFormErrorComponent {
|
|
497
493
|
constructor() {
|
|
498
|
-
this.class =
|
|
499
|
-
this.destroy$ = new Subject();
|
|
500
|
-
}
|
|
501
|
-
ngOnDestroy() {
|
|
502
|
-
this.destroy$.next(null);
|
|
503
|
-
this.destroy$.complete();
|
|
494
|
+
this.class = `${stylePrefix}-form-error`;
|
|
504
495
|
}
|
|
505
496
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
497
|
+
WrFormErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrFormErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
498
|
+
WrFormErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: WrFormErrorComponent, selector: "wr-form-error", host: { properties: { "class": "this.class" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrFormErrorComponent, decorators: [{
|
|
509
500
|
type: Component,
|
|
510
501
|
args: [{
|
|
511
502
|
selector: 'wr-form-error',
|
|
512
|
-
exportAs: 'wrFormError',
|
|
513
|
-
preserveWhitespaces: false,
|
|
514
503
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
515
504
|
encapsulation: ViewEncapsulation.None,
|
|
516
505
|
template: `<ng-content></ng-content>`
|
|
517
506
|
}]
|
|
518
507
|
}], propDecorators: { class: [{
|
|
519
|
-
type: HostBinding
|
|
508
|
+
type: HostBinding,
|
|
509
|
+
args: ['class']
|
|
520
510
|
}] } });
|
|
521
511
|
|
|
522
|
-
class
|
|
512
|
+
class WrFormModule {
|
|
523
513
|
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
514
|
+
WrFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
515
|
+
WrFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WrFormModule, declarations: [WrFormItemComponent,
|
|
516
|
+
WrFormErrorComponent], imports: [CommonModule], exports: [WrFormItemComponent,
|
|
517
|
+
WrFormErrorComponent] });
|
|
518
|
+
WrFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrFormModule, imports: [CommonModule] });
|
|
519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrFormModule, decorators: [{
|
|
530
520
|
type: NgModule,
|
|
531
521
|
args: [{
|
|
532
522
|
imports: [CommonModule],
|
|
533
523
|
declarations: [
|
|
534
|
-
|
|
535
|
-
|
|
524
|
+
WrFormItemComponent,
|
|
525
|
+
WrFormErrorComponent
|
|
536
526
|
],
|
|
537
527
|
exports: [
|
|
538
|
-
|
|
539
|
-
|
|
528
|
+
WrFormItemComponent,
|
|
529
|
+
WrFormErrorComponent
|
|
540
530
|
]
|
|
541
531
|
}]
|
|
542
532
|
}] });
|
|
543
533
|
|
|
544
534
|
/* 🤖 this file was generated by svg-to-ts */
|
|
545
|
-
const wrIconAab = {
|
|
546
|
-
name: 'aab',
|
|
547
|
-
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 608 608"><path d="M449.5 272.6c-8.5 0-15.5 2.9-21.2 8.8-5.7 5.9-8.5 13.7-8.5 23.5s2.8 17.7 8.5 23.5c5.7 5.9 12.8 8.8 21.2 8.8 8.5 0 15.5-2.9 21.2-8.8 5.7-5.9 8.5-13.7 8.5-23.5s-2.8-17.7-8.5-23.5c-5.6-5.8-12.7-8.8-21.2-8.8zM186.1 317.3c-3 1.5-5 3.2-6.1 5.3-1 2.1-1.6 4.4-1.6 7 0 3.3 1.5 6.3 4.4 8.9 2.9 2.7 6.6 4 11.1 4 7.8 0 14-2.3 18.8-6.9 4.7-4.6 7.1-10.5 7.1-17.7v-5.2c-8.8 0-15.9.4-21.2 1.2-5.3.8-9.4 1.9-12.5 3.4zM305 317.3c-3 1.5-5 3.2-6.1 5.3-1 2.1-1.6 4.4-1.6 7 0 3.3 1.5 6.3 4.4 8.9 2.9 2.7 6.6 4 11.1 4 7.8 0 14-2.3 18.8-6.9 4.7-4.6 7.1-10.5 7.1-17.7v-5.2c-8.8 0-15.9.4-21.2 1.2-5.3.8-9.4 1.9-12.5 3.4z"/><path d="M559.6 48.4C511.3 0 437.2 0 304 0S96.7 0 48.4 48.4C0 96.7 0 170.8 0 304s0 207.3 48.4 255.6C96.7 608 170.8 608 304 608s207.3 0 255.6-48.4C608 511.3 608 437.2 608 304s0-207.3-48.4-255.6zM127.5 360.7c-3.4 3.4-7.3 5-11.8 5-4.5 0-8.4-1.7-11.8-5-3.4-3.4-5-7.3-5-11.8 0-4.5 1.7-8.4 5-11.8s7.3-5 11.8-5c4.5 0 8.4 1.7 11.8 5s5 7.3 5 11.8c.1 4.5-1.6 8.5-5 11.8zm122.2 3.8h-22l-5.2-11.6c-2.8 2.4-5.8 4.6-9.1 6.5-2.9 1.7-6.5 3.2-10.6 4.5-4.1 1.3-8.8 1.9-14 1.9-12.9 0-22.9-3.1-29.8-9.4-6.9-6.3-10.4-14.4-10.4-24.2 0-5.9 1.2-11.3 3.5-16.2s6.3-9.1 11.8-12.7c5.5-3.5 12.8-6.3 21.9-8.3 9.1-2 20.4-3 34-3 0-6.6-1.8-11.6-5.3-15.3-3.5-3.6-8.2-5.4-14.1-5.4-4 0-7.1.7-9.4 2.1-2.3 1.4-4.2 2.8-5.6 4.4-1.6 1.9-2.6 4.1-3.1 6.5h-29.8c.7-5.5 2.3-10.7 4.8-15.5 2.5-4.8 5.9-9.1 10.2-12.7 4.3-3.6 9.4-6.5 15.4-8.7 6-2.2 12.6-3.2 20.1-3.2 6.7 0 12.9 1.2 18.6 3.5 5.7 2.3 10.6 5.6 14.7 9.7s7.4 9.1 9.7 14.7 3.5 11.9 3.5 18.6v73.8zm118.9 0h-22l-5.2-11.6c-2.8 2.4-5.8 4.6-9.1 6.5-2.9 1.7-6.5 3.2-10.6 4.5-4.1 1.3-8.8 1.9-14 1.9-12.9 0-22.9-3.1-29.8-9.4-6.9-6.3-10.4-14.4-10.4-24.2 0-5.9 1.2-11.3 3.5-16.2s6.3-9.1 11.8-12.7c5.5-3.5 12.8-6.3 21.9-8.3 9.1-2 20.4-3 34-3 0-6.6-1.8-11.6-5.3-15.3-3.5-3.6-8.2-5.4-14.1-5.4-4 0-7.1.7-9.4 2.1-2.3 1.4-4.2 2.8-5.6 4.4-1.6 1.9-2.6 4.1-3.1 6.5h-29.8c.7-5.5 2.3-10.7 4.8-15.5 2.5-4.8 5.9-9.1 10.2-12.7 4.3-3.6 9.4-6.5 15.4-8.7 6-2.2 12.6-3.2 20.1-3.2 6.7 0 12.9 1.2 18.6 3.5 5.7 2.3 10.6 5.6 14.7 9.7s7.4 9.1 9.7 14.7 3.5 11.9 3.5 18.6v73.8zm135.9-35.2c-3 7.4-7.1 13.8-12.2 19.3-5.1 5.4-11 9.7-17.7 12.7-6.7 3-13.8 4.5-21.2 4.5-5.2 0-9.8-.6-14-1.9-4.1-1.3-7.7-2.8-10.6-4.5-3.5-1.9-6.5-4.1-9.1-6.5l-5.2 11.6h-22v-163h29.8v54.3c2.4-2.1 5.2-4 8.3-5.7 2.8-1.4 6-2.7 9.7-4 3.7-1.3 8.1-1.9 13.1-1.9 7.4 0 14.5 1.5 21.2 4.5 6.7 3 12.6 7.2 17.7 12.7 5.1 5.4 9.1 11.9 12.2 19.3 3 7.4 4.5 15.5 4.5 24.3.1 8.8-1.5 16.9-4.5 24.3z"/></svg>`
|
|
548
|
-
};
|
|
549
|
-
const wrIconAdd = {
|
|
550
|
-
name: 'add',
|
|
551
|
-
data: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="16"/><line x1="8" y1="12" x2="16" y2="12"/></svg>`
|
|
552
|
-
};
|
|
553
535
|
const wrIconAlert = {
|
|
554
536
|
name: 'alert',
|
|
555
537
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm0 319.91a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.94v-.05a21.74 21.74 0 1143.44 0z"/></svg>`
|
|
556
538
|
};
|
|
557
|
-
const wrIconApk = {
|
|
558
|
-
name: 'apk',
|
|
559
|
-
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 608 608"><path d="M183.7 317.4c-3 1.4-5 3.2-6 5.2s-1.5 4.3-1.5 6.9c0 3.2 1.4 6.2 4.3 8.8 2.9 2.6 6.5 3.9 10.9 3.9 7.6 0 13.8-2.2 18.4-6.7 4.7-4.5 7-10.3 7-17.4V313c-8.6 0-15.6.4-20.9 1.1-5.2.7-9.3 1.8-12.2 3.3zM328.8 273.5c-8.3 0-15.3 2.9-20.9 8.7-5.6 5.8-8.4 13.5-8.4 23.2s2.8 17.4 8.4 23.2c5.6 5.8 12.6 8.7 20.9 8.7 8.3 0 15.3-2.9 20.9-8.7 5.6-5.8 8.4-13.5 8.4-23.2s-2.8-17.4-8.4-23.2c-5.6-5.8-12.6-8.7-20.9-8.7z"/><path d="M559.6 48.4C511.3 0 437.2 0 304 0S96.7 0 48.4 48.4C0 96.7 0 170.8 0 304s0 207.3 48.4 255.6C96.7 608 170.8 608 304 608s207.3 0 255.6-48.4C608 511.3 608 437.2 608 304s0-207.3-48.4-255.6zM124.1 360.1c-3.3 3.3-7.2 5-11.6 5-4.4 0-8.3-1.7-11.6-5-3.3-3.3-5-7.2-5-11.6 0-4.4 1.7-8.3 5-11.6 3.3-3.3 7.2-5 11.6-5 4.4 0 8.3 1.7 11.6 5 3.3 3.3 5 7.2 5 11.6 0 4.4-1.7 8.3-5 11.6zm122 3.7h-21.6l-5.1-11.4c-2.7 2.4-5.7 4.5-8.9 6.4-2.9 1.7-6.4 3.2-10.4 4.5-4.1 1.3-8.7 1.9-13.7 1.9-12.7 0-22.5-3.1-29.3-9.3-6.8-6.2-10.2-14.1-10.2-23.8 0-5.8 1.1-11.1 3.4-15.9 2.3-4.8 6.1-9 11.6-12.5 5.4-3.5 12.6-6.2 21.5-8.1 8.9-1.9 20.1-2.9 33.5-2.9 0-6.4-1.7-11.4-5.2-15-3.5-3.6-8.1-5.3-13.9-5.3-3.9 0-7 .7-9.3 2-2.3 1.4-4.1 2.8-5.5 4.3-1.5 1.9-2.5 4-3.1 6.4h-29.3c.7-5.4 2.2-10.5 4.7-15.3 2.5-4.7 5.8-8.9 10.1-12.5 4.2-3.6 9.3-6.4 15.1-8.5 5.9-2.1 12.4-3.2 19.7-3.2 6.6 0 12.7 1.1 18.3 3.4 5.6 2.3 10.4 5.5 14.5 9.5 4.1 4.1 7.3 8.9 9.5 14.5 2.3 5.6 3.4 11.7 3.4 18.3v72.5zm136.8-34.6c-3 7.3-7 13.6-12 19-5 5.3-10.8 9.5-17.4 12.5-6.6 3-13.6 4.5-20.9 4.5-4.9 0-9.2-.6-12.8-1.8-3.7-1.2-6.8-2.5-9.5-3.8-3.1-1.7-5.8-3.6-8.1-5.9v50.9h-29.3V246.8h21.6l5.1 11.4c2.5-2.4 5.5-4.5 8.9-6.4 2.9-1.5 6.4-3 10.4-4.3 4.1-1.4 8.7-2 13.7-2 7.3 0 14.2 1.5 20.9 4.5 6.6 3 12.4 7.1 17.4 12.5 5 5.3 9 11.7 12 19 3 7.3 4.5 15.3 4.5 23.9-.1 8.5-1.6 16.5-4.5 23.8zm96 34.6-40.7-53.4v53.4H409V203.5h29.3v91.6l35.6-48.3H507l-42 56 47.1 61.1h-33.2z"/></svg>`
|
|
560
|
-
};
|
|
561
539
|
const wrIconArrowBack = {
|
|
562
540
|
name: 'arrow-back',
|
|
563
541
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M244 400L100 256l144-144M120 256h292"/></svg>`
|
|
@@ -598,6 +576,10 @@ const wrIconCopy = {
|
|
|
598
576
|
name: 'copy',
|
|
599
577
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>`
|
|
600
578
|
};
|
|
579
|
+
const wrIconDiscover = {
|
|
580
|
+
name: 'discover',
|
|
581
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M119.4,57.3l-33-33.2c-2.2-2.4-5.4-3.6-8.6-3.6s-6.2,1.2-8.6,3.6l-4,4c-0.4,0.4-1,0.4-1.2,0.4s-0.8,0-1.2-0.6l-4-4 c-2.4-2.2-5.4-3.4-8.6-3.4s-6.2,1.2-8.6,3.6l-33,33.2C3.2,62.7,0,70.1,0,78.1c0,16.2,13.2,29.4,29.4,29.4c11.4,0,21.4-6.6,26.2-16.2 c2.4,1.6,5.2,2.4,8.4,2.4c3,0,6-0.8,8.4-2.4c4.8,9.6,14.8,16.2,26.2,16.2c16.2,0,29.4-13.2,29.4-29.4 C128,70.1,124.8,62.7,119.4,57.3z M29.4,92.3c-7.8,0-14.2-6.4-14.2-14.2s6.4-14.2,14.2-14.2s14.2,6.4,14.2,14.2S37.2,92.3,29.4,92.3 z M64,85.1c-3.8,0-7-3-7-7c0-3.8,3-7,7-7s7,3,7,7C71,81.9,67.8,85.1,64,85.1z M98.6,92.3c-7.8,0-14.2-6.4-14.2-14.2 s6.4-14.2,14.2-14.2s14.2,6.4,14.2,14.2S106.4,92.3,98.6,92.3z"/></svg>`
|
|
582
|
+
};
|
|
601
583
|
const wrIconDocument = {
|
|
602
584
|
name: 'document',
|
|
603
585
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"/><path d="M256 56v120a32 32 0 0032 32h120M176 288h160M176 368h160" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>`
|
|
@@ -622,6 +604,22 @@ const wrIconEye = {
|
|
|
622
604
|
name: 'eye',
|
|
623
605
|
data: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>`
|
|
624
606
|
};
|
|
607
|
+
const wrIconFileAab = {
|
|
608
|
+
name: 'file-aab',
|
|
609
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M94.6,57.4c-1.8,0-3.3,0.6-4.5,1.9s-1.8,2.9-1.8,4.9c0,2.1,0.6,3.7,1.8,4.9c1.2,1.2,2.7,1.9,4.5,1.9c1.8,0,3.3-0.6,4.5-1.9 c1.2-1.2,1.8-2.9,1.8-4.9c0-2.1-0.6-3.7-1.8-4.9C97.9,58,96.4,57.4,94.6,57.4z M39.2,66.8c-0.6,0.3-1.1,0.7-1.3,1.1 c-0.2,0.4-0.3,0.9-0.3,1.5c0,0.7,0.3,1.3,0.9,1.9c0.6,0.6,1.4,0.8,2.3,0.8c1.6,0,2.9-0.5,4-1.5c1-1,1.5-2.2,1.5-3.7v-1.1 c-1.9,0-3.3,0.1-4.5,0.3C40.7,66.3,39.8,66.5,39.2,66.8L39.2,66.8z M64.2,66.8c-0.6,0.3-1.1,0.7-1.3,1.1c-0.2,0.4-0.3,0.9-0.3,1.5 c0,0.7,0.3,1.3,0.9,1.9c0.6,0.6,1.4,0.8,2.3,0.8c1.6,0,2.9-0.5,4-1.5c1-1,1.5-2.2,1.5-3.7v-1.1c-1.9,0-3.3,0.1-4.5,0.3 C65.7,66.3,64.9,66.5,64.2,66.8L64.2,66.8z M117.8,10.2C107.6,0,92,0,64,0S20.4,0,10.2,10.2C0,20.4,0,36,0,64s0,43.6,10.2,53.8 C20.4,128,36,128,64,128s43.6,0,53.8-10.2C128,107.6,128,92,128,64S128,20.4,117.8,10.2z M26.8,75.9c-0.7,0.7-1.5,1.1-2.5,1.1 c-0.9,0-1.8-0.4-2.5-1.1c-0.7-0.7-1.1-1.5-1.1-2.5s0.4-1.8,1.1-2.5c0.7-0.7,1.5-1.1,2.5-1.1c0.9,0,1.8,0.4,2.5,1.1 c0.7,0.7,1.1,1.5,1.1,2.5C27.9,74.4,27.6,75.2,26.8,75.9z M52.6,76.7h-4.6l-1.1-2.4c-0.6,0.5-1.2,1-1.9,1.4 c-0.6,0.4-1.4,0.7-2.2,0.9S40.8,77,39.7,77c-2.7,0-4.8-0.7-6.3-2c-1.5-1.3-2.2-3-2.2-5.1c0-1.2,0.3-2.4,0.7-3.4 c0.5-1,1.3-1.9,2.5-2.7c1.2-0.7,2.7-1.3,4.6-1.7c1.9-0.4,4.3-0.6,7.2-0.6c0-1.4-0.4-2.4-1.1-3.2c-0.7-0.8-1.7-1.1-3-1.1 c-0.8,0-1.5,0.1-2,0.4c-0.5,0.3-0.9,0.6-1.2,0.9c-0.3,0.4-0.5,0.9-0.7,1.4h-6.3c0.1-1.2,0.5-2.3,1-3.3c0.5-1,1.2-1.9,2.1-2.7 c0.9-0.8,2-1.4,3.2-1.8c1.3-0.5,2.7-0.7,4.2-0.7c1.4,0,2.7,0.3,3.9,0.7s2.2,1.2,3.1,2c0.9,0.9,1.6,1.9,2,3.1 c0.5,1.2,0.7,2.5,0.7,3.9L52.6,76.7L52.6,76.7z M77.6,76.7H73l-1.1-2.4c-0.6,0.5-1.2,1-1.9,1.4c-0.6,0.4-1.4,0.7-2.2,0.9 S65.9,77,64.8,77c-2.7,0-4.8-0.7-6.3-2c-1.5-1.3-2.2-3-2.2-5.1c0-1.2,0.3-2.4,0.7-3.4c0.5-1,1.3-1.9,2.5-2.7 c1.2-0.7,2.7-1.3,4.6-1.7c1.9-0.4,4.3-0.6,7.2-0.6c0-1.4-0.4-2.4-1.1-3.2c-0.7-0.8-1.7-1.1-3-1.1c-0.8,0-1.5,0.1-2,0.4 c-0.5,0.3-0.9,0.6-1.2,0.9c-0.3,0.4-0.5,0.9-0.7,1.4h-6.3c0.1-1.2,0.5-2.3,1-3.3c0.5-1,1.2-1.9,2.1-2.7c0.9-0.8,2-1.4,3.2-1.8 s2.7-0.7,4.2-0.7c1.4,0,2.7,0.3,3.9,0.7s2.2,1.2,3.1,2s1.6,1.9,2,3.1c0.5,1.2,0.7,2.5,0.7,3.9L77.6,76.7L77.6,76.7z M106.2,69.3 c-0.6,1.6-1.5,2.9-2.6,4.1c-1.1,1.1-2.3,2-3.7,2.7S97,77,95.5,77c-1.1,0-2.1-0.1-2.9-0.4c-0.9-0.3-1.6-0.6-2.2-0.9 c-0.7-0.4-1.4-0.9-1.9-1.4l-1.1,2.4h-4.6V42.4h6.3v11.4c0.5-0.4,1.1-0.8,1.7-1.2c0.6-0.3,1.3-0.6,2-0.8c0.8-0.3,1.7-0.4,2.8-0.4 c1.6,0,3.1,0.3,4.5,0.9c1.4,0.6,2.7,1.5,3.7,2.7c1.1,1.1,1.9,2.5,2.6,4.1c0.6,1.6,0.9,3.3,0.9,5.1C107.2,66.1,106.8,67.8,106.2,69.3 L106.2,69.3z"/></svg>`
|
|
610
|
+
};
|
|
611
|
+
const wrIconFileApk = {
|
|
612
|
+
name: 'file-apk',
|
|
613
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M38.7,66.8c-0.6,0.3-1.1,0.7-1.3,1.1c-0.2,0.4-0.3,0.9-0.3,1.5c0,0.7,0.3,1.3,0.9,1.9c0.6,0.5,1.4,0.8,2.3,0.8 c1.6,0,2.9-0.5,3.9-1.4c1-0.9,1.5-2.2,1.5-3.7v-1.1c-1.8,0-3.3,0.1-4.4,0.2C40.1,66.3,39.3,66.5,38.7,66.8z M69.2,57.6 c-1.7,0-3.2,0.6-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.9c0,2,0.6,3.7,1.8,4.9c1.2,1.2,2.7,1.8,4.4,1.8c1.7,0,3.2-0.6,4.4-1.8 c1.2-1.2,1.8-2.8,1.8-4.9c0-2-0.6-3.7-1.8-4.9C72.4,58.2,71,57.6,69.2,57.6z M117.8,10.2C107.6,0,92,0,64,0S20.4,0,10.2,10.2 C0,20.4,0,36,0,64s0,43.6,10.2,53.8C20.4,128,36,128,64,128s43.6,0,53.8-10.2C128,107.6,128,92,128,64S128,20.4,117.8,10.2z M26.1,75.8c-0.7,0.7-1.5,1.1-2.4,1.1c-0.9,0-1.7-0.4-2.4-1.1c-0.7-0.7-1.1-1.5-1.1-2.4s0.4-1.7,1.1-2.4c0.7-0.7,1.5-1.1,2.4-1.1 c0.9,0,1.7,0.4,2.4,1.1s1.1,1.5,1.1,2.4S26.8,75.1,26.1,75.8z M51.8,76.6h-4.5l-1.1-2.4c-0.6,0.5-1.2,0.9-1.9,1.3 c-0.6,0.4-1.3,0.7-2.2,0.9c-0.9,0.3-1.8,0.4-2.9,0.4c-2.7,0-4.7-0.7-6.2-2c-1.4-1.3-2.1-3-2.1-5c0-1.2,0.2-2.3,0.7-3.3 c0.5-1,1.3-1.9,2.4-2.6c1.1-0.7,2.7-1.3,4.5-1.7c1.9-0.4,4.2-0.6,7.1-0.6c0-1.3-0.4-2.4-1.1-3.2c-0.7-0.8-1.7-1.1-2.9-1.1 c-0.8,0-1.5,0.1-2,0.4c-0.5,0.3-0.9,0.6-1.2,0.9c-0.3,0.4-0.5,0.8-0.7,1.3h-6.2c0.1-1.1,0.5-2.2,1-3.2c0.5-1,1.2-1.9,2.1-2.6 c0.9-0.8,2-1.3,3.2-1.8c1.2-0.4,2.6-0.7,4.1-0.7c1.4,0,2.7,0.2,3.9,0.7c1.2,0.5,2.2,1.2,3.1,2c0.9,0.9,1.5,1.9,2,3.1 c0.5,1.2,0.7,2.5,0.7,3.9L51.8,76.6L51.8,76.6z M80.6,69.3c-0.6,1.5-1.5,2.9-2.5,4c-1.1,1.1-2.3,2-3.7,2.6s-2.9,0.9-4.4,0.9 c-1,0-1.9-0.1-2.7-0.4c-0.8-0.3-1.4-0.5-2-0.8c-0.7-0.4-1.2-0.8-1.7-1.2v10.7h-6.2V52H62l1.1,2.4c0.5-0.5,1.2-0.9,1.9-1.3 c0.6-0.3,1.3-0.6,2.2-0.9c0.9-0.3,1.8-0.4,2.9-0.4c1.5,0,3,0.3,4.4,0.9c1.4,0.6,2.6,1.5,3.7,2.6c1.1,1.1,1.9,2.5,2.5,4 c0.6,1.5,0.9,3.2,0.9,5C81.5,66.1,81.2,67.8,80.6,69.3L80.6,69.3z M100.8,76.6l-8.6-11.2v11.2h-6.1V42.8h6.2v19.3L99.8,52h7 l-8.8,11.8l9.9,12.9L100.8,76.6L100.8,76.6z"/></svg>`
|
|
614
|
+
};
|
|
615
|
+
const wrIconFileIpa = {
|
|
616
|
+
name: 'file-ipa',
|
|
617
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M63.5,57.5c-1.7,0-3.2,0.6-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.9c0,2,0.6,3.7,1.8,4.9c1.2,1.2,2.6,1.8,4.4,1.8 c1.7,0,3.2-0.6,4.4-1.8c1.2-1.2,1.8-2.8,1.8-4.9c0-2-0.6-3.7-1.8-4.9C66.7,58.1,65.2,57.5,63.5,57.5z M87,66.8 c-0.6,0.3-1.1,0.7-1.3,1.1s-0.3,0.9-0.3,1.5c0,0.7,0.3,1.3,0.9,1.9c0.6,0.5,1.4,0.8,2.3,0.8c1.6,0,2.9-0.5,3.9-1.4 c1-0.9,1.5-2.2,1.5-3.7v-1.1c-1.8,0-3.3,0.1-4.4,0.2C88.5,66.2,87.6,66.5,87,66.8L87,66.8z M117.8,10.2C107.6,0,92,0,64,0 S20.4,0,10.2,10.2C0,20.4,0,36,0,64s0,43.6,10.2,53.8C20.4,128,36,128,64,128s43.6,0,53.8-10.2C128,107.6,128,92,128,64 S128,20.4,117.8,10.2z M33.8,75.8c-0.7,0.7-1.5,1.1-2.4,1.1c-0.9,0-1.7-0.4-2.4-1.1c-0.7-0.7-1.1-1.5-1.1-2.4c0-0.9,0.4-1.7,1.1-2.4 c0.7-0.7,1.5-1.1,2.4-1.1c0.9,0,1.7,0.4,2.4,1.1c0.7,0.7,1.1,1.5,1.1,2.4C34.8,74.3,34.5,75.1,33.8,75.8z M45.8,76.5h-6.2V51.9h6.2 V76.5z M45.3,47.7c-0.7,0.7-1.5,1.1-2.4,1.1s-1.7-0.4-2.4-1.1c-0.7-0.7-1.1-1.5-1.1-2.4s0.4-1.7,1.1-2.4c0.7-0.7,1.5-1.1,2.4-1.1 c0.9,0,1.7,0.4,2.4,1.1c0.7,0.7,1.1,1.5,1.1,2.4C46.3,46.1,46,47,45.3,47.7z M74.8,69.3c-0.6,1.5-1.5,2.9-2.5,4 c-1.1,1.1-2.3,2-3.7,2.6s-2.9,0.9-4.4,0.9c-1,0-1.9-0.1-2.7-0.4c-0.8-0.3-1.4-0.5-2-0.8c-0.7-0.4-1.2-0.8-1.7-1.2v10.7h-6.2V51.9 h4.5l1.1,2.4c0.5-0.5,1.2-0.9,1.9-1.3c0.6-0.3,1.3-0.6,2.2-0.9c0.9-0.3,1.8-0.4,2.9-0.4c1.5,0,3,0.3,4.4,0.9 c1.4,0.6,2.6,1.5,3.7,2.6c1.1,1.1,1.9,2.5,2.5,4c0.6,1.5,0.9,3.2,0.9,5C75.8,66.1,75.5,67.7,74.8,69.3L74.8,69.3z M100.1,76.5h-4.5 l-1.1-2.4c-0.6,0.5-1.2,0.9-1.9,1.3c-0.6,0.4-1.3,0.7-2.2,0.9c-0.9,0.3-1.8,0.4-2.9,0.4c-2.7,0-4.7-0.7-6.1-2c-1.4-1.3-2.1-3-2.1-5 c0-1.2,0.2-2.3,0.7-3.3s1.3-1.9,2.4-2.6c1.1-0.7,2.7-1.3,4.5-1.7c1.9-0.4,4.2-0.6,7-0.6c0-1.3-0.4-2.4-1.1-3.2 c-0.7-0.8-1.7-1.1-2.9-1.1c-0.8,0-1.5,0.1-2,0.4c-0.5,0.3-0.9,0.6-1.2,0.9c-0.3,0.4-0.5,0.8-0.7,1.3H80c0.1-1.1,0.5-2.2,1-3.2 c0.5-1,1.2-1.9,2.1-2.6s2-1.3,3.2-1.8c1.2-0.4,2.6-0.7,4.1-0.7c1.4,0,2.7,0.2,3.9,0.7c1.2,0.5,2.2,1.2,3.1,2s1.5,1.9,2,3.1 c0.5,1.2,0.7,2.5,0.7,3.9L100.1,76.5L100.1,76.5z"/></svg>`
|
|
618
|
+
};
|
|
619
|
+
const wrIconFileZip = {
|
|
620
|
+
name: 'file-zip',
|
|
621
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M86.5,57.4c-1.8,0-3.3,0.6-4.5,1.9c-1.2,1.2-1.8,2.9-1.8,4.9c0,2.1,0.6,3.7,1.8,4.9c1.2,1.2,2.7,1.9,4.5,1.9 c1.8,0,3.3-0.6,4.5-1.9s1.8-2.9,1.8-4.9c0-2.1-0.6-3.7-1.8-4.9S88.3,57.4,86.5,57.4z M117.8,10.2C107.6,0,92,0,64,0 S20.4,0,10.2,10.2C0,20.4,0,36,0,64s0,43.6,10.2,53.8C20.4,128,36,128,64,128s43.6,0,53.8-10.2C128,107.6,128,92,128,64 S128,20.4,117.8,10.2z M34.9,75.9c-0.7,0.7-1.5,1.1-2.5,1.1s-1.8-0.4-2.5-1.1c-0.7-0.7-1.1-1.5-1.1-2.5s0.4-1.8,1.1-2.5 c0.7-0.7,1.5-1.1,2.5-1.1s1.8,0.4,2.5,1.1s1.1,1.5,1.1,2.5S35.7,75.2,34.9,75.9z M59.1,76.7H39.7v-5.2l10.9-13.9H39.7v-6h18.8v5.2 L47.6,70.7h11.4V76.7z M69.3,76.7H63V51.7h6.3V76.7z M68.8,47.3c-0.7,0.7-1.5,1.1-2.5,1.1c-0.9,0-1.8-0.4-2.5-1.1 c-0.7-0.7-1.1-1.5-1.1-2.5s0.4-1.8,1.1-2.5c0.7-0.7,1.5-1.1,2.5-1.1c0.9,0,1.8,0.4,2.5,1.1c0.7,0.7,1.1,1.5,1.1,2.5 C69.9,45.8,69.5,46.6,68.8,47.3z M98.1,69.3c-0.6,1.6-1.5,2.9-2.6,4.1c-1.1,1.1-2.3,2-3.7,2.7S88.9,77,87.4,77c-1.1,0-2-0.1-2.8-0.4 c-0.8-0.3-1.5-0.5-2-0.8c-0.7-0.4-1.2-0.8-1.7-1.3v10.9h-6.3V51.7h4.6l1.1,2.4c0.5-0.5,1.2-1,1.9-1.4c0.6-0.3,1.4-0.6,2.2-0.9 s1.9-0.4,2.9-0.4c1.6,0,3.1,0.3,4.5,0.9c1.4,0.6,2.7,1.5,3.7,2.7c1.1,1.1,1.9,2.5,2.6,4.1c0.6,1.6,0.9,3.3,0.9,5.1 C99.1,66.1,98.8,67.8,98.1,69.3L98.1,69.3z"/></svg>`
|
|
622
|
+
};
|
|
625
623
|
const wrIconFlash = {
|
|
626
624
|
name: 'flash',
|
|
627
625
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M194.82 496a18.36 18.36 0 01-18.1-21.53v-.11L204.83 320H96a16 16 0 01-12.44-26.06L302.73 23a18.45 18.45 0 0132.8 13.71c0 .3-.08.59-.13.89L307.19 192H416a16 16 0 0112.44 26.06L209.24 489a18.45 18.45 0 01-14.42 7z"/></svg>`
|
|
@@ -634,14 +632,14 @@ const wrIconHelp = {
|
|
|
634
632
|
name: 'help',
|
|
635
633
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64zm-6 304a20 20 0 1120-20 20 20 0 01-20 20zm33.44-102C267.23 276.88 265 286.85 265 296a14 14 0 01-28 0c0-21.91 10.08-39.33 30.82-53.26C287.1 229.8 298 221.6 298 203.57c0-12.26-7-21.57-21.49-28.46-3.41-1.62-11-3.2-20.34-3.09-11.72.15-20.82 2.95-27.83 8.59C215.12 191.25 214 202.83 214 203a14 14 0 11-28-1.35c.11-2.43 1.8-24.32 24.77-42.8 11.91-9.58 27.06-14.56 45-14.78 12.7-.15 24.63 2 32.72 5.82C312.7 161.34 326 180.43 326 203.57c0 33.83-22.61 49.02-42.56 62.43z"/></svg>`
|
|
636
634
|
};
|
|
635
|
+
const wrIconHome = {
|
|
636
|
+
name: 'home',
|
|
637
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M72.1,3.5c-4.6-4.6-12-4.6-16.6,0l-50,48.4c-3.6,3.6-5.4,8.6-4.8,13.6l5.6,49.2c0.8,7.6,7.2,13.2,14.8,13.2h16.4 c4.6,0,8.2-3.6,8.2-8.2v-24c0-5.2,4.2-9.6,9.6-9.6h16.8c5.2,0,9.6,4.2,9.6,9.6v24.2c0,4.6,3.6,8.2,8.2,8.2h16.4 c7.6,0,14-5.8,14.8-13.2l5.6-49.2c0.6-5-1.2-10.2-4.8-13.6L72.1,3.5z"/></svg>`
|
|
638
|
+
};
|
|
637
639
|
const wrIconInfoCircleOutline = {
|
|
638
640
|
name: 'info-circle-outline',
|
|
639
641
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z" fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M220 220h32v116"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M208 340h88"/><path d="M248 130a26 26 0 1026 26 26 26 0 00-26-26z"/></svg>`
|
|
640
642
|
};
|
|
641
|
-
const wrIconIpa = {
|
|
642
|
-
name: 'ipa',
|
|
643
|
-
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 608 608"><path d="M301.5 273.3c-8.3 0-15.3 2.9-20.9 8.6-5.6 5.8-8.4 13.5-8.4 23.1 0 9.7 2.8 17.4 8.4 23.1 5.6 5.8 12.5 8.6 20.9 8.6 8.3 0 15.3-2.9 20.9-8.6 5.6-5.8 8.4-13.5 8.4-23.1 0-9.7-2.8-17.4-8.4-23.1-5.7-5.7-12.6-8.6-20.9-8.6zM413.2 317.2c-3 1.4-5 3.2-6 5.2s-1.5 4.3-1.5 6.9c0 3.2 1.4 6.1 4.3 8.8 2.9 2.6 6.5 3.9 10.9 3.9 7.6 0 13.8-2.2 18.4-6.7 4.7-4.5 7-10.3 7-17.4v-5.1c-8.6 0-15.6.4-20.9 1.1-5.1.7-9.2 1.9-12.2 3.3z"/><path d="M559.6 48.4C511.3 0 437.2 0 304 0S96.7 0 48.4 48.4C0 96.7 0 170.8 0 304s0 207.3 48.4 255.6C96.7 608 170.8 608 304 608s207.3 0 255.6-48.4C608 511.3 608 437.2 608 304s0-207.3-48.4-255.6zM160.4 359.9c-3.3 3.3-7.2 5-11.6 5-4.4 0-8.3-1.7-11.6-5s-5-7.2-5-11.6c0-4.4 1.7-8.3 5-11.6s7.2-5 11.6-5c4.4 0 8.3 1.7 11.6 5s5 7.2 5 11.6c0 4.5-1.7 8.3-5 11.6zm57.1 3.7h-29.3v-117h29.3v117zm-2.4-137.2c-3.3 3.3-7.2 5-11.6 5-4.4 0-8.3-1.7-11.6-5s-5-7.2-5-11.6c0-4.4 1.7-8.3 5-11.6s7.2-5 11.6-5c4.4 0 8.3 1.7 11.6 5s5 7.2 5 11.6c0 4.4-1.7 8.3-5 11.6zM355.5 329c-3 7.3-7 13.6-12 19-5 5.3-10.8 9.5-17.4 12.5-6.6 3-13.6 4.5-20.9 4.5-4.9 0-9.2-.6-12.8-1.8-3.6-1.2-6.8-2.5-9.5-3.8-3.1-1.7-5.8-3.6-8.1-5.8v50.9h-29.3V246.6h21.6l5.1 11.4c2.5-2.4 5.5-4.5 8.9-6.4 2.9-1.5 6.4-3 10.4-4.3 4.1-1.4 8.6-2 13.7-2 7.3 0 14.2 1.5 20.9 4.5 6.6 3 12.4 7.1 17.4 12.5 5 5.3 9 11.7 12 18.9 3 7.3 4.5 15.3 4.5 23.9 0 8.7-1.5 16.6-4.5 23.9zm120.2 34.6h-21.6l-5.1-11.4c-2.7 2.4-5.7 4.5-8.9 6.4-2.9 1.7-6.4 3.2-10.4 4.5-4.1 1.3-8.6 1.9-13.7 1.9-12.7 0-22.5-3.1-29.2-9.3-6.8-6.2-10.2-14.1-10.2-23.8 0-5.8 1.1-11.1 3.4-15.9 2.3-4.8 6.1-9 11.6-12.5 5.4-3.5 12.6-6.2 21.5-8.1 8.9-1.9 20.1-2.9 33.4-2.9 0-6.4-1.7-11.4-5.2-15-3.5-3.6-8.1-5.3-13.9-5.3-3.9 0-7 .7-9.3 2-2.3 1.4-4.1 2.8-5.5 4.3-1.5 1.9-2.5 4-3.1 6.4h-29.3c.7-5.4 2.2-10.5 4.7-15.3 2.5-4.7 5.8-8.9 10-12.5 4.2-3.6 9.3-6.4 15.1-8.5 5.9-2.1 12.4-3.2 19.7-3.2 6.6 0 12.7 1.1 18.3 3.4 5.6 2.3 10.4 5.5 14.5 9.5s7.2 8.9 9.5 14.5 3.4 11.7 3.4 18.3v72.5z"/></svg>`
|
|
644
|
-
};
|
|
645
643
|
const wrIconLogoAndroid = {
|
|
646
644
|
name: 'logo-android',
|
|
647
645
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M380.91 199l42.47-73.57a8.63 8.63 0 00-3.12-11.76 8.52 8.52 0 00-11.71 3.12l-43 74.52c-32.83-15-69.78-23.35-109.52-23.35s-76.69 8.36-109.52 23.35l-43-74.52a8.6 8.6 0 10-14.88 8.64L131 199C57.8 238.64 8.19 312.77 0 399.55h512c-8.19-86.78-57.8-160.91-131.09-200.55zM138.45 327.65a21.46 21.46 0 1121.46-21.46 21.47 21.47 0 01-21.46 21.46zm235 0A21.46 21.46 0 11395 306.19a21.47 21.47 0 01-21.51 21.46z"/></svg>`
|
|
@@ -654,6 +652,10 @@ const wrIconLogoAppscreener = {
|
|
|
654
652
|
name: 'logo-appscreener',
|
|
655
653
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path d="M24.88 215.29c.09-.06.18-.12.24-.18-.06.06-.15.12-.24.18zM95.44 160c0-.8.09-1.59.12-2.36l-23.91-1.83c-1.06 16.47 3.39 32.53 12.1 45.87l20.52-13.11c-5.56-8.14-8.83-17.97-8.83-28.57zm11.1-31.65-32.3-31.94c-9.48 10.72-16.74 23.73-20.78 38.46-.89 3.28-1.59 6.58-2.15 9.89l44.37 10.18c1-10 4.92-19.15 10.86-26.59zm115.66-21.16 22.35-16.62c-5.28-7.59-16.92-20.96-24.44-26.57l-18.13 21.82c12.1 9.15 16.73 16.44 20.22 21.37z"/><path d="M51.19 76.63c-18.13 19.45-25.06 33.8-30.32 61.14l25.92 5.76c3.22-19.34 11.9-36.69 24.35-50.51L51.19 76.63zm-39.47 71.89c-1.86 30.52 6.26 63.11 21.99 86.73l45.84-30.44c-9.45-14.38-14.26-31.65-13.11-49.42l-54.72-6.87c0-.12 0 .09 0 0zm23.5-106.04 44.4 49.8c14.41-14.52 33.36-23.85 53.7-26.98L125.19 0C90.74 4.37 59.51 19.69 35.22 42.48zm153.09 89.42 29.85-21.17c-5.25-7.59-11.78-14.32-19.28-19.93l-24.15 27.34c5.34 3.66 9.98 8.32 13.58 13.76zm33.89-24.71 22.35-16.62c-5.28-7.59-16.92-20.96-24.44-26.57l-18.13 21.82c12.1 9.15 16.73 16.44 20.22 21.37zm-116.28 83.6L72.8 217.12c4.52 5.23 11.51 12.28 17.06 16.38l23.53-34.83a53.541 53.541 0 0 1-7.47-7.88z"/><path d="m140.93 109.58-6.61-38.44c-19.31 2.98-38.2 12.55-51.78 26.45l25.74 28.78c8.18-9.23 19.66-15.46 32.65-16.79zM69.31 219.84l-17.74 14.91c6.05 7 15.14 15.79 22.64 21.25l13.34-18.18a97.97 97.97 0 0 1-18.24-17.98zm76.96-134.76h-.32c-1.3 0-2.57.09-3.84.15l1.3 24.09c.89-.06 1.8-.03 2.72-.03 9.56 0 18.48 2.69 26.1 7.29l13.79-19.96c-11.53-7.26-25.14-11.51-39.75-11.54zm-.15-5.73c15.56 0 30.05 4.4 42.36 12.04.24.15.5.3.77.44L218 49.97c-18.95-12.31-41.3-19.96-65.51-21.11-4.22-.21-8.41-.18-12.55.03l1.77 50.6c1.49-.08 2.94-.14 4.41-.14z"/></svg>`
|
|
656
654
|
};
|
|
655
|
+
const wrIconLogoGithub = {
|
|
656
|
+
name: 'logo-github',
|
|
657
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;}</style><path class="st0" d="M64,1.6c-35.3,0-64,28.7-64,64c0,28.3,18.3,52.3,43.8,60.7c3.2,0.6,4.4-1.4,4.4-3.1c0-1.5-0.1-5.5-0.1-10.9 c-17.8,3.9-21.6-8.6-21.6-8.6c-2.9-7.4-7.1-9.4-7.1-9.4c-5.8-4,0.4-3.9,0.4-3.9c6.4,0.5,9.8,6.6,9.8,6.6c5.7,9.8,15,7,18.6,5.3 c0.6-4.1,2.2-7,4.1-8.6c-14.2-1.6-29.2-7.1-29.2-31.6c0-7,2.5-12.7,6.6-17.2c-0.7-1.6-2.9-8.1,0.6-16.9c0,0,5.4-1.7,17.6,6.6 c5.1-1.4,10.6-2.1,16-2.2c5.4,0,10.9,0.7,16,2.2c12.2-8.3,17.6-6.6,17.6-6.6c3.5,8.8,1.3,15.3,0.6,16.9c4.1,4.5,6.6,10.2,6.6,17.2 c0,24.6-15,30-29.2,31.6c2.3,2,4.3,5.9,4.3,11.9c0,8.6-0.1,15.5-0.1,17.6c0,1.7,1.2,3.7,4.4,3.1c25.4-8.5,43.7-32.5,43.7-60.7 C128,30.2,99.3,1.6,64,1.6z"/></svg>`
|
|
658
|
+
};
|
|
657
659
|
const wrIconLogoOversecured = {
|
|
658
660
|
name: 'logo-oversecured',
|
|
659
661
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path d="M114.67.34C50.24 7.01 0 61.47 0 127.66c0 70.69 57.31 128 128 128s128-57.31 128-128C256 61.47 205.76 7.01 141.33.34v27.42c49.35 6.52 87.43 48.76 87.43 99.89 0 55.65-45.11 100.77-100.77 100.77-55.65 0-100.77-45.11-100.77-100.77 0-51.13 38.08-93.37 87.43-99.89V.34z"/><path d="M61.21 182.13c25.94 32.13 72.12 41.5 109 20.2 40.81-23.56 54.8-75.75 31.23-116.57S125.7 30.97 84.88 54.53c-36.89 21.3-51.86 65.97-37 104.5l24.28-14.02c-7.54-25.09 2.81-52.98 26.49-66.64 27.65-15.96 63-6.49 78.96 21.16 15.96 27.65 6.49 63-21.16 78.97-23.67 13.67-53 8.69-70.96-10.38l-24.28 14.01z"/><path d="M113.76 87.43c-16.56 5.86-28.43 21.66-28.43 40.23 0 23.56 19.1 42.67 42.67 42.67 23.56 0 42.67-19.1 42.67-42.67 0-18.57-11.86-34.37-28.43-40.23v40.23h-.02c0 7.85-6.37 14.22-14.22 14.22-7.85 0-14.22-6.37-14.22-14.22h-.02V87.43z"/></svg>`
|
|
@@ -682,6 +684,10 @@ const wrIconPlay = {
|
|
|
682
684
|
name: 'play',
|
|
683
685
|
data: `<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.2924 0.571289C2.95753 0.571289 0.250977 3.24726 0.250977 6.54444C0.250977 9.84162 2.95753 12.5176 6.2924 12.5176C9.62726 12.5176 12.3338 9.84162 12.3338 6.54444C12.3338 3.24726 9.62726 0.571289 6.2924 0.571289ZM6.29114 11.3231C3.62688 11.3231 1.45801 9.17874 1.45801 6.54458C1.45801 3.91041 3.62688 1.76605 6.29114 1.76605C8.95541 1.76605 11.1243 3.91041 11.1243 6.54458C11.1243 9.17874 8.95541 11.3231 6.29114 11.3231ZM8.70786 6.54461L5.08301 9.23253V3.85669L8.70786 6.54461Z"/></svg>`
|
|
684
686
|
};
|
|
687
|
+
const wrIconPlusCircle = {
|
|
688
|
+
name: 'plus-circle',
|
|
689
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M64,0C28.7,0,0,28.7,0,64c0,35.3,28.7,64,64,64s64-28.7,64-64C128,28.7,99.3,0,64,0z M100.5,68.3c0,1.3-1,2.3-2.3,2.3H70.5 v27.7c0,1.3-1,2.3-2.3,2.3h-8.5c-1.3,0-2.3-1-2.3-2.3V70.5H29.7c-1.3,0-2.3-1-2.3-2.3v-8.5c0-1.3,1-2.3,2.3-2.3h27.7V29.7 c0-1.3,1-2.3,2.3-2.3h8.5c1.3,0,2.3,1,2.3,2.3v27.7h27.7c1.3,0,2.3,1,2.3,2.3V68.3z"/></svg>`
|
|
690
|
+
};
|
|
685
691
|
const wrIconReader = {
|
|
686
692
|
name: 'reader',
|
|
687
693
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect x="96" y="48" width="320" height="416" rx="48" ry="48" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M176 128h160M176 208h160M176 288h80"/></svg>`
|
|
@@ -692,7 +698,7 @@ const wrIconRepeat = {
|
|
|
692
698
|
};
|
|
693
699
|
const wrIconSearch = {
|
|
694
700
|
name: 'search',
|
|
695
|
-
data:
|
|
701
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M123.5,100.9l-21.1-21.1c3.8-7.7,6.4-16.6,6.4-25.5c0-30-24.3-54.3-54.3-54.3S0.2,24.3,0.2,54.3s24.3,54.3,54.3,54.3 c8.9,0,17.9-2.6,25.5-6.4l21.1,21.1c6.4,6.4,16,6.4,22.3,0C129.2,116.8,129.2,107.3,123.5,100.9L123.5,100.9z M54.5,95.8 c-23,0-41.5-18.5-41.5-41.5s18.5-41.5,41.5-41.5S96,31.3,96,54.3S77.5,95.8,54.5,95.8z"/></svg>`
|
|
696
702
|
};
|
|
697
703
|
const wrIconStopCircle = {
|
|
698
704
|
name: 'stop-circle',
|
|
@@ -706,23 +712,20 @@ const wrIconTrash = {
|
|
|
706
712
|
name: 'trash',
|
|
707
713
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M112 112l20 320c.95 18.49 14.4 32 32 32h184c17.67 0 30.87-13.51 32-32l20-320" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M80 112h352"/><path d="M192 112V72h0a23.93 23.93 0 0124-24h80a23.93 23.93 0 0124 24h0v40M256 176v224M184 176l8 224M328 176l-8 224" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>`
|
|
708
714
|
};
|
|
715
|
+
const wrIconUserCircle = {
|
|
716
|
+
name: 'user-circle',
|
|
717
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M64,0C28.6,0,0,28.6,0,64s28.6,64,64,64s64-28.6,64-64S99.4,0,64,0z M64,20c10.4,0,19,8.6,19,19s-8.6,19-19,19 s-19-8.6-19-19S53.6,20,64,20z M64,106c-26,0-38-10-38-20s6.6-20,38-20s38,10,38,20S90,106,64,106z"/></svg>`
|
|
718
|
+
};
|
|
709
719
|
const wrIconUser = {
|
|
710
720
|
name: 'user',
|
|
711
|
-
data:
|
|
721
|
+
data: `<?xml version="1.0" encoding="utf-8"?><!--Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)--><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128" xml:space="preserve"><path d="M64,0c15.5,0,28.3,12.8,28.3,28.3S79.5,56.6,64,56.6S35.7,43.8,35.7,28.3S48.5,0,64,0z M64,128c-38.7,0-56.6-14.9-56.6-29.8 S17.3,68.5,64,68.5s56.6,14.9,56.6,29.8S102.7,128,64,128z"/></svg>`
|
|
712
722
|
};
|
|
713
723
|
const wrIconWarning = {
|
|
714
724
|
name: 'warning',
|
|
715
725
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z"/></svg>`
|
|
716
726
|
};
|
|
717
|
-
const wrIconZip = {
|
|
718
|
-
name: 'zip',
|
|
719
|
-
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 608 608"><path d="M411.1 272.6c-8.5 0-15.5 2.9-21.2 8.8-5.7 5.9-8.5 13.7-8.5 23.5s2.8 17.7 8.5 23.5c5.7 5.9 12.8 8.8 21.2 8.8 8.4 0 15.5-2.9 21.2-8.8 5.7-5.9 8.5-13.7 8.5-23.5s-2.8-17.7-8.5-23.5c-5.7-5.8-12.8-8.8-21.2-8.8z"/><path d="M559.6 48.4C511.3 0 437.2 0 304 0S96.7 0 48.4 48.4C0 96.7 0 170.8 0 304s0 207.3 48.4 255.6C96.7 608 170.8 608 304 608s207.3 0 255.6-48.4C608 511.3 608 437.2 608 304s0-207.3-48.4-255.6zM166 360.7c-3.4 3.4-7.3 5-11.8 5-4.5 0-8.4-1.7-11.8-5-3.4-3.4-5-7.3-5-11.8 0-4.5 1.7-8.4 5-11.8s7.3-5 11.8-5c4.5 0 8.4 1.7 11.8 5s5 7.3 5 11.8c0 4.5-1.6 8.5-5 11.8zm114.6 3.8h-91.9v-24.6l51.7-66h-51.7v-28.5H278V270l-51.7 66h54.3v28.5zm48.6 0h-29.8v-119h29.8v119zm-2.5-139.6c-3.4 3.4-7.3 5-11.8 5-4.5 0-8.4-1.7-11.8-5s-5-7.3-5-11.8c0-4.5 1.7-8.4 5-11.8s7.3-5 11.8-5c4.5 0 8.4 1.7 11.8 5s5 7.3 5 11.8c.1 4.5-1.6 8.4-5 11.8zm139.4 104.4c-3 7.4-7.1 13.8-12.2 19.3-5.1 5.4-11 9.7-17.7 12.7-6.7 3-13.8 4.5-21.2 4.5-5 0-9.4-.6-13.1-1.8-3.7-1.2-6.9-2.5-9.7-3.9-3.1-1.7-5.9-3.7-8.3-6v51.7h-29.8V245.4h22l5.2 11.6c2.6-2.4 5.6-4.6 9.1-6.5 2.9-1.6 6.5-3 10.6-4.4 4.1-1.4 8.8-2.1 14-2.1 7.4 0 14.5 1.5 21.2 4.5 6.7 3 12.6 7.2 17.7 12.7 5.1 5.4 9.1 11.9 12.2 19.3 3 7.4 4.5 15.5 4.5 24.3 0 9-1.5 17.1-4.5 24.5z"/></svg>`
|
|
720
|
-
};
|
|
721
727
|
const wrIconSet = [
|
|
722
|
-
wrIconAab,
|
|
723
|
-
wrIconAdd,
|
|
724
728
|
wrIconAlert,
|
|
725
|
-
wrIconApk,
|
|
726
729
|
wrIconArrowBack,
|
|
727
730
|
wrIconBug,
|
|
728
731
|
wrIconCaretBack,
|
|
@@ -733,20 +736,26 @@ const wrIconSet = [
|
|
|
733
736
|
wrIconClock,
|
|
734
737
|
wrIconCloseCircle,
|
|
735
738
|
wrIconCopy,
|
|
739
|
+
wrIconDiscover,
|
|
736
740
|
wrIconDocument,
|
|
737
741
|
wrIconDotsHorizontal,
|
|
738
742
|
wrIconDotsVertical,
|
|
739
743
|
wrIconDownload,
|
|
740
744
|
wrIconEyeOff,
|
|
741
745
|
wrIconEye,
|
|
746
|
+
wrIconFileAab,
|
|
747
|
+
wrIconFileApk,
|
|
748
|
+
wrIconFileIpa,
|
|
749
|
+
wrIconFileZip,
|
|
742
750
|
wrIconFlash,
|
|
743
751
|
wrIconFolder,
|
|
744
752
|
wrIconHelp,
|
|
753
|
+
wrIconHome,
|
|
745
754
|
wrIconInfoCircleOutline,
|
|
746
|
-
wrIconIpa,
|
|
747
755
|
wrIconLogoAndroid,
|
|
748
756
|
wrIconLogoApple,
|
|
749
757
|
wrIconLogoAppscreener,
|
|
758
|
+
wrIconLogoGithub,
|
|
750
759
|
wrIconLogoOversecured,
|
|
751
760
|
wrIconLogoStingray,
|
|
752
761
|
wrIconModules,
|
|
@@ -754,15 +763,16 @@ const wrIconSet = [
|
|
|
754
763
|
wrIconPlayCircle,
|
|
755
764
|
wrIconPlayForward,
|
|
756
765
|
wrIconPlay,
|
|
766
|
+
wrIconPlusCircle,
|
|
757
767
|
wrIconReader,
|
|
758
768
|
wrIconRepeat,
|
|
759
769
|
wrIconSearch,
|
|
760
770
|
wrIconStopCircle,
|
|
761
771
|
wrIconStop,
|
|
762
772
|
wrIconTrash,
|
|
773
|
+
wrIconUserCircle,
|
|
763
774
|
wrIconUser,
|
|
764
|
-
wrIconWarning
|
|
765
|
-
wrIconZip
|
|
775
|
+
wrIconWarning
|
|
766
776
|
];
|
|
767
777
|
|
|
768
778
|
class WrIconService {
|
|
@@ -858,10 +868,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
858
868
|
}]
|
|
859
869
|
}] });
|
|
860
870
|
|
|
861
|
-
class
|
|
871
|
+
class WrPasswordInputComponent {
|
|
862
872
|
constructor(ngControl) {
|
|
863
873
|
this.ngControl = ngControl;
|
|
864
|
-
this.class =
|
|
874
|
+
this.class = `${stylePrefix}-password-input`;
|
|
865
875
|
this.type = 'password';
|
|
866
876
|
this.disabled = false;
|
|
867
877
|
this.value = null;
|
|
@@ -895,9 +905,9 @@ class WalrusPasswordInputComponent {
|
|
|
895
905
|
this.value = obj;
|
|
896
906
|
}
|
|
897
907
|
}
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
908
|
+
WrPasswordInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrPasswordInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
909
|
+
WrPasswordInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: WrPasswordInputComponent, selector: "wr-password-input", host: { properties: { "class": "this.class" } }, ngImport: i0, template: "<input\n wr-input\n [disabled]=\"disabled\"\n [type]=\"type\"\n [value]=\"value\"\n (focusout)=\"onFocusOut()\"\n (input)=\"onInput($event)\"\n>\n<wr-icon class=\"wr-password-input-icon\" *ngIf=\"type === 'input'\" name=\"eye\" (click)=\"onVisibilityClick($event)\"></wr-icon>\n<wr-icon class=\"wr-password-input-icon\" *ngIf=\"type === 'password'\" name=\"eye-off\" (click)=\"onVisibilityClick($event)\"></wr-icon>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: WrInputDirective, selector: "wr-input, input[wr-input], textarea[wr-input]", inputs: ["disabled"] }, { kind: "component", type: WrIconComponent, selector: "wr-icon[name]", inputs: ["name"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrPasswordInputComponent, decorators: [{
|
|
901
911
|
type: Component,
|
|
902
912
|
args: [{ selector: 'wr-password-input', encapsulation: ViewEncapsulation.None, template: "<input\n wr-input\n [disabled]=\"disabled\"\n [type]=\"type\"\n [value]=\"value\"\n (focusout)=\"onFocusOut()\"\n (input)=\"onInput($event)\"\n>\n<wr-icon class=\"wr-password-input-icon\" *ngIf=\"type === 'input'\" name=\"eye\" (click)=\"onVisibilityClick($event)\"></wr-icon>\n<wr-icon class=\"wr-password-input-icon\" *ngIf=\"type === 'password'\" name=\"eye-off\" (click)=\"onVisibilityClick($event)\"></wr-icon>\n" }]
|
|
903
913
|
}], ctorParameters: function () {
|
|
@@ -907,19 +917,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
907
917
|
type: Self
|
|
908
918
|
}] }];
|
|
909
919
|
}, propDecorators: { class: [{
|
|
910
|
-
type: HostBinding
|
|
920
|
+
type: HostBinding,
|
|
921
|
+
args: ['class']
|
|
911
922
|
}] } });
|
|
912
923
|
|
|
913
924
|
class WalrusPasswordInputModule {
|
|
914
925
|
}
|
|
915
926
|
WalrusPasswordInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusPasswordInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
916
|
-
WalrusPasswordInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WalrusPasswordInputModule, declarations: [
|
|
927
|
+
WalrusPasswordInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WalrusPasswordInputModule, declarations: [WrPasswordInputComponent], imports: [CommonModule,
|
|
917
928
|
PlatformModule,
|
|
918
|
-
|
|
919
|
-
WrIconModule], exports: [
|
|
929
|
+
WrInputModule,
|
|
930
|
+
WrIconModule], exports: [WrPasswordInputComponent] });
|
|
920
931
|
WalrusPasswordInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusPasswordInputModule, imports: [CommonModule,
|
|
921
932
|
PlatformModule,
|
|
922
|
-
|
|
933
|
+
WrInputModule,
|
|
923
934
|
WrIconModule] });
|
|
924
935
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusPasswordInputModule, decorators: [{
|
|
925
936
|
type: NgModule,
|
|
@@ -927,49 +938,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
927
938
|
imports: [
|
|
928
939
|
CommonModule,
|
|
929
940
|
PlatformModule,
|
|
930
|
-
|
|
941
|
+
WrInputModule,
|
|
931
942
|
WrIconModule
|
|
932
943
|
],
|
|
933
944
|
declarations: [
|
|
934
|
-
|
|
945
|
+
WrPasswordInputComponent,
|
|
935
946
|
],
|
|
936
947
|
exports: [
|
|
937
|
-
|
|
948
|
+
WrPasswordInputComponent,
|
|
938
949
|
]
|
|
939
950
|
}]
|
|
940
951
|
}] });
|
|
941
952
|
|
|
942
|
-
class
|
|
943
|
-
constructor(
|
|
944
|
-
this.
|
|
953
|
+
class WrSkeletonComponent {
|
|
954
|
+
constructor(elRef) {
|
|
955
|
+
this.elRef = elRef;
|
|
945
956
|
this.color = 'dark';
|
|
946
|
-
this.
|
|
947
|
-
this.destroy$ = new Subject();
|
|
957
|
+
this.class = `${stylePrefix}-skeleton`;
|
|
948
958
|
}
|
|
949
959
|
ngAfterViewInit() {
|
|
950
960
|
const style = this.color === 'light' ? 'var(--color-white-rgb)' : 'var(--color-dark-rgb)';
|
|
951
|
-
this.
|
|
952
|
-
}
|
|
953
|
-
ngOnDestroy() {
|
|
954
|
-
this.destroy$.next();
|
|
955
|
-
this.destroy$.complete();
|
|
961
|
+
this.elRef.nativeElement.style.setProperty('--skeleton-style', style);
|
|
956
962
|
}
|
|
957
963
|
}
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
964
|
+
WrSkeletonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrSkeletonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
965
|
+
WrSkeletonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: WrSkeletonComponent, selector: "wr-skeleton", inputs: { color: "color" }, host: { properties: { "class": "this.class" } }, ngImport: i0, template: '<span> </span>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrSkeletonComponent, decorators: [{
|
|
961
967
|
type: Component,
|
|
962
968
|
args: [{
|
|
963
969
|
selector: 'wr-skeleton',
|
|
964
|
-
exportAs: 'wrSkeleton',
|
|
965
|
-
preserveWhitespaces: false,
|
|
966
970
|
template: '<span> </span>',
|
|
967
971
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
968
972
|
encapsulation: ViewEncapsulation.None
|
|
969
973
|
}]
|
|
970
974
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { color: [{
|
|
971
975
|
type: Input
|
|
972
|
-
}],
|
|
976
|
+
}], class: [{
|
|
973
977
|
type: HostBinding,
|
|
974
978
|
args: ['class']
|
|
975
979
|
}] } });
|
|
@@ -977,56 +981,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
977
981
|
class WalrusSkeletonModule {
|
|
978
982
|
}
|
|
979
983
|
WalrusSkeletonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusSkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
980
|
-
WalrusSkeletonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WalrusSkeletonModule, declarations: [
|
|
981
|
-
WalrusSkeletonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusSkeletonModule, imports: [CommonModule,
|
|
984
|
+
WalrusSkeletonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WalrusSkeletonModule, declarations: [WrSkeletonComponent], imports: [CommonModule, WrSpinnerModule], exports: [WrSkeletonComponent] });
|
|
985
|
+
WalrusSkeletonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusSkeletonModule, imports: [CommonModule, WrSpinnerModule] });
|
|
982
986
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WalrusSkeletonModule, decorators: [{
|
|
983
987
|
type: NgModule,
|
|
984
988
|
args: [{
|
|
985
|
-
imports: [CommonModule,
|
|
986
|
-
declarations: [
|
|
987
|
-
exports: [
|
|
989
|
+
imports: [CommonModule, WrSpinnerModule],
|
|
990
|
+
declarations: [WrSkeletonComponent],
|
|
991
|
+
exports: [WrSkeletonComponent]
|
|
988
992
|
}]
|
|
989
993
|
}] });
|
|
990
994
|
|
|
991
|
-
class
|
|
992
|
-
constructor(
|
|
993
|
-
this.
|
|
995
|
+
class WrTagComponent {
|
|
996
|
+
constructor(cdr, elRef, r2) {
|
|
997
|
+
this.cdr = cdr;
|
|
998
|
+
this.elRef = elRef;
|
|
994
999
|
this.r2 = r2;
|
|
995
|
-
// add color class
|
|
996
1000
|
this.color = 'default';
|
|
997
|
-
// Is tag transparent
|
|
998
1001
|
this.transparent = false;
|
|
999
1002
|
this.loading = false;
|
|
1000
|
-
|
|
1001
|
-
this.
|
|
1002
|
-
// Is tag outlined
|
|
1003
|
-
this.round = false;
|
|
1004
|
-
// Is tag hoverable
|
|
1003
|
+
this.outlined = false;
|
|
1004
|
+
this.rounded = false;
|
|
1005
1005
|
this.hoverable = false;
|
|
1006
|
-
this.
|
|
1006
|
+
this.baseClass = `${stylePrefix}-tag`;
|
|
1007
1007
|
}
|
|
1008
1008
|
ngOnInit() {
|
|
1009
1009
|
this.setClasses();
|
|
1010
1010
|
}
|
|
1011
|
-
ngOnDestroy() {
|
|
1012
|
-
this.destroy$.next();
|
|
1013
|
-
this.destroy$.complete();
|
|
1014
|
-
}
|
|
1015
1011
|
ngOnChanges(changes) {
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
}
|
|
1012
|
+
this.setClasses();
|
|
1013
|
+
this.cdr.detectChanges();
|
|
1019
1014
|
}
|
|
1020
1015
|
setClasses() {
|
|
1021
|
-
const
|
|
1022
|
-
const
|
|
1023
|
-
|
|
1024
|
-
const rm = (klass) => this.r2.removeClass(el, `${baseClass}-${klass}`);
|
|
1025
|
-
el.classList = [];
|
|
1026
|
-
this.r2.addClass(el, baseClass);
|
|
1016
|
+
const el = this.elRef.nativeElement;
|
|
1017
|
+
const add = (klass) => this.r2.addClass(el, `${this.baseClass}-${klass}`);
|
|
1018
|
+
this.r2.addClass(el, this.baseClass);
|
|
1027
1019
|
add(this.color);
|
|
1028
|
-
if (this.
|
|
1029
|
-
add(`-
|
|
1020
|
+
if (this.rounded) {
|
|
1021
|
+
add(`-rounded`);
|
|
1030
1022
|
}
|
|
1031
1023
|
if (this.transparent) {
|
|
1032
1024
|
add(`-transparent`);
|
|
@@ -1034,63 +1026,61 @@ class WalrusTagComponent {
|
|
|
1034
1026
|
if (this.hoverable) {
|
|
1035
1027
|
add(`-hoverable`);
|
|
1036
1028
|
}
|
|
1037
|
-
if (this.
|
|
1038
|
-
add(`-
|
|
1029
|
+
if (this.outlined) {
|
|
1030
|
+
add(`-outlined`);
|
|
1039
1031
|
}
|
|
1040
1032
|
}
|
|
1041
1033
|
}
|
|
1042
|
-
|
|
1043
|
-
|
|
1034
|
+
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 });
|
|
1035
|
+
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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: WrSpinnerComponent, selector: "wr-spin" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1044
1036
|
__decorate([
|
|
1045
1037
|
InputBoolean()
|
|
1046
|
-
],
|
|
1038
|
+
], WrTagComponent.prototype, "transparent", void 0);
|
|
1047
1039
|
__decorate([
|
|
1048
1040
|
InputBoolean()
|
|
1049
|
-
],
|
|
1041
|
+
], WrTagComponent.prototype, "loading", void 0);
|
|
1050
1042
|
__decorate([
|
|
1051
1043
|
InputBoolean()
|
|
1052
|
-
],
|
|
1044
|
+
], WrTagComponent.prototype, "outlined", void 0);
|
|
1053
1045
|
__decorate([
|
|
1054
1046
|
InputBoolean()
|
|
1055
|
-
],
|
|
1047
|
+
], WrTagComponent.prototype, "rounded", void 0);
|
|
1056
1048
|
__decorate([
|
|
1057
1049
|
InputBoolean()
|
|
1058
|
-
],
|
|
1059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
1050
|
+
], WrTagComponent.prototype, "hoverable", void 0);
|
|
1051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrTagComponent, decorators: [{
|
|
1060
1052
|
type: Component,
|
|
1061
1053
|
args: [{
|
|
1062
1054
|
selector: 'wr-tag',
|
|
1063
|
-
exportAs: 'wrTag',
|
|
1064
|
-
preserveWhitespaces: false,
|
|
1065
1055
|
template: '<wr-spin *ngIf="loading"></wr-spin><ng-content></ng-content>',
|
|
1066
1056
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1067
1057
|
encapsulation: ViewEncapsulation.None
|
|
1068
1058
|
}]
|
|
1069
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { color: [{
|
|
1059
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { color: [{
|
|
1070
1060
|
type: Input
|
|
1071
1061
|
}], transparent: [{
|
|
1072
1062
|
type: Input
|
|
1073
1063
|
}], loading: [{
|
|
1074
1064
|
type: Input
|
|
1075
|
-
}],
|
|
1065
|
+
}], outlined: [{
|
|
1076
1066
|
type: Input
|
|
1077
|
-
}],
|
|
1067
|
+
}], rounded: [{
|
|
1078
1068
|
type: Input
|
|
1079
1069
|
}], hoverable: [{
|
|
1080
1070
|
type: Input
|
|
1081
1071
|
}] } });
|
|
1082
1072
|
|
|
1083
|
-
class
|
|
1073
|
+
class WrTagModule {
|
|
1084
1074
|
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type:
|
|
1075
|
+
WrTagModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrTagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1076
|
+
WrTagModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: WrTagModule, declarations: [WrTagComponent], imports: [CommonModule, WrSpinnerModule], exports: [WrTagComponent] });
|
|
1077
|
+
WrTagModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrTagModule, imports: [CommonModule, WrSpinnerModule] });
|
|
1078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: WrTagModule, decorators: [{
|
|
1089
1079
|
type: NgModule,
|
|
1090
1080
|
args: [{
|
|
1091
|
-
imports: [CommonModule,
|
|
1092
|
-
declarations: [
|
|
1093
|
-
exports: [
|
|
1081
|
+
imports: [CommonModule, WrSpinnerModule],
|
|
1082
|
+
declarations: [WrTagComponent],
|
|
1083
|
+
exports: [WrTagComponent]
|
|
1094
1084
|
}]
|
|
1095
1085
|
}] });
|
|
1096
1086
|
|
|
@@ -1098,5 +1088,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
1098
1088
|
* Generated bundle index. Do not edit.
|
|
1099
1089
|
*/
|
|
1100
1090
|
|
|
1101
|
-
export {
|
|
1091
|
+
export { WalrusPasswordInputModule, WalrusSkeletonModule, WrButtonComponent, WrButtonModule, WrDividerComponent, WrDividerModule, WrExtendedInputComponent, WrExtendedInputModule, WrFormErrorComponent, WrFormItemComponent, WrFormModule, WrIconComponent, WrIconModule, WrIconService, WrInputDirective, WrInputModule, WrPasswordInputComponent, WrSkeletonComponent, WrSpinnerComponent, WrSpinnerModule, WrTagComponent, WrTagModule, wrIconAlert, wrIconArrowBack, wrIconBug, wrIconCaretBack, wrIconCaretForward, wrIconCheckmarkCircle, wrIconChevronDown, wrIconChevronUp, wrIconClock, wrIconCloseCircle, wrIconCopy, wrIconDiscover, wrIconDocument, wrIconDotsHorizontal, wrIconDotsVertical, wrIconDownload, wrIconEye, wrIconEyeOff, wrIconFileAab, wrIconFileApk, wrIconFileIpa, wrIconFileZip, wrIconFlash, wrIconFolder, wrIconHelp, wrIconHome, wrIconInfoCircleOutline, wrIconLogoAndroid, wrIconLogoApple, wrIconLogoAppscreener, wrIconLogoGithub, wrIconLogoOversecured, wrIconLogoStingray, wrIconModules, wrIconPlay, wrIconPlayBack, wrIconPlayCircle, wrIconPlayForward, wrIconPlusCircle, wrIconReader, wrIconRepeat, wrIconSearch, wrIconSet, wrIconStop, wrIconStopCircle, wrIconTrash, wrIconUser, wrIconUserCircle, wrIconWarning };
|
|
1102
1092
|
//# sourceMappingURL=ngwr.mjs.map
|