ngwr 0.6.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/button.d.ts +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/core/color/color.d.ts +1 -1
- package/core/overlay/connected-overlay-directive.d.ts +1 -1
- package/core/overlay/position-type.d.ts +1 -1
- package/core/types/on-change-type.d.ts +1 -1
- package/core/types/on-touched-type.d.ts +1 -1
- package/core/types/safe-any.d.ts +1 -1
- package/dialog/dialog-content-directives.d.ts +1 -1
- package/divider/divider.d.ts +1 -1
- package/{esm2020 → esm2022}/button/button-module.mjs +5 -5
- package/esm2022/button/button.mjs +187 -0
- package/{esm2020 → esm2022}/checkbox/checkbox-module.mjs +5 -5
- package/esm2022/checkbox/checkbox.mjs +154 -0
- package/{esm2020 → esm2022}/core/abstract/base.mjs +4 -4
- package/esm2022/core/overlay/connected-overlay-directive.mjs +98 -0
- package/{esm2020 → esm2022}/core/overlay/overlay-module.mjs +5 -5
- package/{esm2020 → esm2022}/dialog/dialog-base.mjs +4 -4
- package/esm2022/dialog/dialog-container.mjs +58 -0
- package/esm2022/dialog/dialog-content-directives.mjs +98 -0
- package/{esm2020 → esm2022}/dialog/dialog-module.mjs +5 -5
- package/{esm2020 → esm2022}/dialog/dialog-service.mjs +11 -11
- package/{esm2020 → esm2022}/divider/divider-module.mjs +5 -5
- package/esm2022/divider/divider.mjs +100 -0
- package/{esm2020 → esm2022}/form/form-error.mjs +4 -4
- package/esm2022/form/form-item.mjs +46 -0
- package/{esm2020 → esm2022}/form/form-module.mjs +5 -5
- package/{esm2020 → esm2022}/icon/icon-module.mjs +5 -5
- package/esm2022/icon/icon-service.mjs +21 -0
- package/esm2022/icon/icon.mjs +60 -0
- package/{esm2020 → esm2022}/input/input-module.mjs +5 -5
- package/esm2022/input/input.mjs +240 -0
- package/{esm2020 → esm2022}/skeleton/skeleton-module.mjs +5 -5
- package/{esm2020 → esm2022}/skeleton/skeleton.mjs +4 -4
- package/{esm2020 → esm2022}/spinner/spinner-module.mjs +5 -5
- package/{esm2020 → esm2022}/spinner/spinner.mjs +4 -4
- package/{esm2020 → esm2022}/tag/tag-module.mjs +5 -5
- package/{esm2020 → esm2022}/tag/tag.mjs +4 -4
- package/esm2022/tooltip/tooltip-component.mjs +93 -0
- package/esm2022/tooltip/tooltip-directive.mjs +85 -0
- package/{esm2020 → esm2022}/tooltip/tooltip-module.mjs +5 -5
- package/{fesm2015 → fesm2022}/ngwr-button.mjs +29 -30
- package/{fesm2020 → fesm2022}/ngwr-button.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ngwr-checkbox.mjs +39 -40
- package/fesm2022/ngwr-checkbox.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngwr-core-abstract.mjs +3 -4
- package/{fesm2020 → fesm2022}/ngwr-core-abstract.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ngwr-core-color.mjs +0 -1
- package/{fesm2020 → fesm2022}/ngwr-core-decorators.mjs +0 -1
- package/{fesm2015 → fesm2022}/ngwr-core-overlay.mjs +13 -14
- package/{fesm2015 → fesm2022}/ngwr-core-overlay.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ngwr-core-types.mjs +0 -1
- package/{fesm2020 → fesm2022}/ngwr-dialog.mjs +44 -45
- package/{fesm2020 → fesm2022}/ngwr-dialog.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ngwr-divider.mjs +15 -16
- package/{fesm2015 → fesm2022}/ngwr-divider.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ngwr-form.mjs +14 -15
- package/fesm2022/ngwr-form.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngwr-icon.mjs +16 -16
- package/{fesm2015 → fesm2022}/ngwr-icon.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ngwr-input.mjs +41 -42
- package/fesm2022/ngwr-input.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngwr-skeleton.mjs +7 -8
- package/{fesm2020 → fesm2022}/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +43 -0
- package/fesm2022/ngwr-spinner.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngwr-tag.mjs +7 -8
- package/{fesm2020 → fesm2022}/ngwr-tag.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ngwr-tooltip.mjs +26 -27
- package/{fesm2015 → fesm2022}/ngwr-tooltip.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ngwr.mjs +0 -1
- package/form/form-item.d.ts +1 -1
- package/icon/icon.d.ts +1 -1
- package/icon/icons.d.ts +2 -2
- package/input/input-types.d.ts +3 -3
- package/input/input.d.ts +1 -1
- package/package.json +76 -114
- package/skeleton/skeleton.d.ts +1 -1
- package/styles/grid.scss +97 -34
- package/styles/root.scss +3 -3
- package/tag/tag.d.ts +1 -1
- package/tooltip/tooltip-component.d.ts +1 -1
- package/tooltip/tooltip-directive.d.ts +1 -1
- package/tooltip/tooltip-trigger.d.ts +1 -1
- package/esm2020/button/button.mjs +0 -187
- package/esm2020/checkbox/checkbox.mjs +0 -154
- package/esm2020/core/overlay/connected-overlay-directive.mjs +0 -98
- package/esm2020/dialog/dialog-container.mjs +0 -58
- package/esm2020/dialog/dialog-content-directives.mjs +0 -98
- package/esm2020/divider/divider.mjs +0 -100
- package/esm2020/form/form-item.mjs +0 -46
- package/esm2020/icon/icon-service.mjs +0 -21
- package/esm2020/icon/icon.mjs +0 -60
- package/esm2020/input/input.mjs +0 -240
- package/esm2020/tooltip/tooltip-component.mjs +0 -93
- package/esm2020/tooltip/tooltip-directive.mjs +0 -85
- package/fesm2015/ngwr-button.mjs.map +0 -1
- package/fesm2015/ngwr-checkbox.mjs.map +0 -1
- package/fesm2015/ngwr-core-abstract.mjs.map +0 -1
- package/fesm2015/ngwr-core-color.mjs +0 -26
- package/fesm2015/ngwr-core-decorators.mjs +0 -23
- package/fesm2015/ngwr-dialog.mjs +0 -454
- package/fesm2015/ngwr-dialog.mjs.map +0 -1
- package/fesm2015/ngwr-form.mjs +0 -90
- package/fesm2015/ngwr-form.mjs.map +0 -1
- package/fesm2015/ngwr-icon.mjs +0 -567
- package/fesm2015/ngwr-input.mjs +0 -263
- package/fesm2015/ngwr-input.mjs.map +0 -1
- package/fesm2015/ngwr-skeleton.mjs.map +0 -1
- package/fesm2015/ngwr-spinner.mjs +0 -44
- package/fesm2015/ngwr-spinner.mjs.map +0 -1
- package/fesm2015/ngwr-tag.mjs.map +0 -1
- package/fesm2015/ngwr-tooltip.mjs +0 -208
- package/fesm2015/ngwr.mjs +0 -8
- package/fesm2020/ngwr-button.mjs +0 -212
- package/fesm2020/ngwr-checkbox.mjs +0 -178
- package/fesm2020/ngwr-checkbox.mjs.map +0 -1
- package/fesm2020/ngwr-core-abstract.mjs +0 -26
- package/fesm2020/ngwr-core-color.mjs.map +0 -1
- package/fesm2020/ngwr-core-decorators.mjs.map +0 -1
- package/fesm2020/ngwr-core-overlay.mjs +0 -147
- package/fesm2020/ngwr-core-overlay.mjs.map +0 -1
- package/fesm2020/ngwr-core-types.mjs +0 -5
- package/fesm2020/ngwr-core-types.mjs.map +0 -1
- package/fesm2020/ngwr-divider.mjs +0 -121
- package/fesm2020/ngwr-divider.mjs.map +0 -1
- package/fesm2020/ngwr-form.mjs.map +0 -1
- package/fesm2020/ngwr-icon.mjs.map +0 -1
- package/fesm2020/ngwr-input.mjs.map +0 -1
- package/fesm2020/ngwr-skeleton.mjs +0 -67
- package/fesm2020/ngwr-spinner.mjs +0 -44
- package/fesm2020/ngwr-spinner.mjs.map +0 -1
- package/fesm2020/ngwr-tag.mjs +0 -105
- package/fesm2020/ngwr-tooltip.mjs.map +0 -1
- package/fesm2020/ngwr.mjs.map +0 -1
- /package/{esm2020 → esm2022}/button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/button/ngwr-button.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/ngwr-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/core/abstract/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/abstract/ngwr-core-abstract.mjs +0 -0
- /package/{esm2020 → esm2022}/core/color/color.mjs +0 -0
- /package/{esm2020 → esm2022}/core/color/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/color/is-theme-color.mjs +0 -0
- /package/{esm2020 → esm2022}/core/color/ngwr-core-color.mjs +0 -0
- /package/{esm2020 → esm2022}/core/decorators/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/decorators/input-boolean.mjs +0 -0
- /package/{esm2020 → esm2022}/core/decorators/ngwr-core-decorators.mjs +0 -0
- /package/{esm2020 → esm2022}/core/overlay/get-placement-name.mjs +0 -0
- /package/{esm2020 → esm2022}/core/overlay/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/overlay/ngwr-core-overlay.mjs +0 -0
- /package/{esm2020 → esm2022}/core/overlay/position-map.mjs +0 -0
- /package/{esm2020 → esm2022}/core/overlay/position-type.mjs +0 -0
- /package/{esm2020 → esm2022}/core/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/types/ng-style-interface.mjs +0 -0
- /package/{esm2020 → esm2022}/core/types/ngwr-core-types.mjs +0 -0
- /package/{esm2020 → esm2022}/core/types/on-change-type.mjs +0 -0
- /package/{esm2020 → esm2022}/core/types/on-touched-type.mjs +0 -0
- /package/{esm2020 → esm2022}/core/types/property-mapping.mjs +0 -0
- /package/{esm2020 → esm2022}/core/types/safe-any.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog-config.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog-tokens.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/ngwr-dialog.mjs +0 -0
- /package/{esm2020 → esm2022}/divider/index.mjs +0 -0
- /package/{esm2020 → esm2022}/divider/ngwr-divider.mjs +0 -0
- /package/{esm2020 → esm2022}/form/index.mjs +0 -0
- /package/{esm2020 → esm2022}/form/ngwr-form.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/icons.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/ngwr-icon.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/input-types.mjs +0 -0
- /package/{esm2020 → esm2022}/input/ngwr-input.mjs +0 -0
- /package/{esm2020 → esm2022}/ngwr.mjs +0 -0
- /package/{esm2020 → esm2022}/skeleton/index.mjs +0 -0
- /package/{esm2020 → esm2022}/skeleton/ngwr-skeleton.mjs +0 -0
- /package/{esm2020 → esm2022}/spinner/index.mjs +0 -0
- /package/{esm2020 → esm2022}/spinner/ngwr-spinner.mjs +0 -0
- /package/{esm2020 → esm2022}/tag/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tag/ngwr-tag.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/ngwr-tooltip.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/tooltip-default-positions.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/tooltip-trigger.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ngwr-core-color.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ngwr-core-decorators.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ngwr-core-types.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ngwr.mjs.map +0 -0
|
@@ -15,29 +15,6 @@ import * as i4 from 'ngwr/icon';
|
|
|
15
15
|
import { WrIconModule } from 'ngwr/icon';
|
|
16
16
|
|
|
17
17
|
class WrInput extends WrAbstractBase {
|
|
18
|
-
constructor(cdr, elRef, focusMonitor, ngZone) {
|
|
19
|
-
super();
|
|
20
|
-
this.cdr = cdr;
|
|
21
|
-
this.elRef = elRef;
|
|
22
|
-
this.focusMonitor = focusMonitor;
|
|
23
|
-
this.ngZone = ngZone;
|
|
24
|
-
this.placeholder = '';
|
|
25
|
-
this.prefix = null;
|
|
26
|
-
this.suffix = null;
|
|
27
|
-
this.passwordIcons = false;
|
|
28
|
-
this.eyeOn = true;
|
|
29
|
-
this._value = '';
|
|
30
|
-
this._disabled = false;
|
|
31
|
-
this._readonly = false;
|
|
32
|
-
this._required = false;
|
|
33
|
-
this._autofocus = false;
|
|
34
|
-
this._focused = false;
|
|
35
|
-
this._autocomplete = 'off';
|
|
36
|
-
this._type = 'text';
|
|
37
|
-
this._mode = 'text';
|
|
38
|
-
this.onChangeCallback = () => { };
|
|
39
|
-
this.onTouchedCallback = () => { };
|
|
40
|
-
}
|
|
41
18
|
get type() {
|
|
42
19
|
return this._type;
|
|
43
20
|
}
|
|
@@ -111,6 +88,29 @@ class WrInput extends WrAbstractBase {
|
|
|
111
88
|
'wr-input--disabled': this.disabled,
|
|
112
89
|
};
|
|
113
90
|
}
|
|
91
|
+
constructor(cdr, elRef, focusMonitor, ngZone) {
|
|
92
|
+
super();
|
|
93
|
+
this.cdr = cdr;
|
|
94
|
+
this.elRef = elRef;
|
|
95
|
+
this.focusMonitor = focusMonitor;
|
|
96
|
+
this.ngZone = ngZone;
|
|
97
|
+
this.placeholder = '';
|
|
98
|
+
this.prefix = null;
|
|
99
|
+
this.suffix = null;
|
|
100
|
+
this.passwordIcons = false;
|
|
101
|
+
this.eyeOn = true;
|
|
102
|
+
this._value = '';
|
|
103
|
+
this._disabled = false;
|
|
104
|
+
this._readonly = false;
|
|
105
|
+
this._required = false;
|
|
106
|
+
this._autofocus = false;
|
|
107
|
+
this._focused = false;
|
|
108
|
+
this._autocomplete = 'off';
|
|
109
|
+
this._type = 'text';
|
|
110
|
+
this._mode = 'text';
|
|
111
|
+
this.onChangeCallback = () => { };
|
|
112
|
+
this.onTouchedCallback = () => { };
|
|
113
|
+
}
|
|
114
114
|
ngOnInit() {
|
|
115
115
|
this.ngZone.runOutsideAngular(() => {
|
|
116
116
|
fromEvent(this.elRef.nativeElement, 'click')
|
|
@@ -178,24 +178,24 @@ class WrInput extends WrAbstractBase {
|
|
|
178
178
|
setDisabledState(isDisabled) {
|
|
179
179
|
this.disabled = coerceBooleanProperty(isDisabled);
|
|
180
180
|
}
|
|
181
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.FocusMonitor }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
182
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: WrInput, selector: "wr-input", inputs: { placeholder: "placeholder", prefix: "prefix", suffix: "suffix", passwordIcons: "passwordIcons", type: "type", inputmode: "inputmode", disabled: "disabled", readonly: "readonly", required: "required", autofocus: "autofocus", autocomplete: "autocomplete", value: "value" }, host: { properties: { "class": "this.elClasses" } }, providers: [
|
|
183
|
+
{
|
|
184
|
+
provide: NG_VALUE_ACCESSOR,
|
|
185
|
+
useExisting: forwardRef(() => WrInput),
|
|
186
|
+
multi: true,
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
provide: NG_VALIDATORS,
|
|
190
|
+
useExisting: forwardRef(() => WrInput),
|
|
191
|
+
multi: true,
|
|
192
|
+
},
|
|
193
|
+
], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, static: true }], exportAs: ["wrInput"], usesInheritance: true, ngImport: i0, template: "<div class=\"wr-input-prefix\" *ngIf=\"prefix\">\n <span class=\"wr-input-prefix__text\">{{ prefix }}</span>\n</div>\n<div class=\"wr-input-el\">\n <div *ngIf=\"passwordIcons\" class=\"wr-input-el-icon\" (click)=\"onPasswordVisibilityChange()\">\n <wr-icon class=\"wr-input-el-icon__icon\" [name]=\"eyeOn ? 'eye' : 'eye-off'\"></wr-icon>\n </div>\n <input\n #inputElement\n class=\"wr-input-el__native\"\n [ngModel]=\"valueAsString\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [type]=\"type\"\n [attr.autocomplete]=\"autocomplete\"\n [attr.inputmode]=\"inputmode\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n (ngModelChange)=\"value = $event\"\n />\n</div>\n<div class=\"wr-input-suffix\" *ngIf=\"suffix\">\n <span class=\"wr-input-suffix__text\">{{ suffix }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.WrIcon, selector: "wr-icon[name]", inputs: ["name"], exportAs: ["wrIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
181
194
|
}
|
|
182
|
-
WrInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.FocusMonitor }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
183
|
-
WrInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: WrInput, selector: "wr-input", inputs: { placeholder: "placeholder", prefix: "prefix", suffix: "suffix", passwordIcons: "passwordIcons", type: "type", inputmode: "inputmode", disabled: "disabled", readonly: "readonly", required: "required", autofocus: "autofocus", autocomplete: "autocomplete", value: "value" }, host: { properties: { "class": "this.elClasses" } }, providers: [
|
|
184
|
-
{
|
|
185
|
-
provide: NG_VALUE_ACCESSOR,
|
|
186
|
-
useExisting: forwardRef(() => WrInput),
|
|
187
|
-
multi: true,
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
provide: NG_VALIDATORS,
|
|
191
|
-
useExisting: forwardRef(() => WrInput),
|
|
192
|
-
multi: true,
|
|
193
|
-
},
|
|
194
|
-
], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, static: true }], exportAs: ["wrInput"], usesInheritance: true, ngImport: i0, template: "<div class=\"wr-input-prefix\" *ngIf=\"prefix\">\n <span class=\"wr-input-prefix__text\">{{ prefix }}</span>\n</div>\n<div class=\"wr-input-el\">\n <div *ngIf=\"passwordIcons\" class=\"wr-input-el-icon\" (click)=\"onPasswordVisibilityChange()\">\n <wr-icon class=\"wr-input-el-icon__icon\" [name]=\"eyeOn ? 'eye' : 'eye-off'\"></wr-icon>\n </div>\n <input\n #inputElement\n class=\"wr-input-el__native\"\n [ngModel]=\"valueAsString\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [type]=\"type\"\n [attr.autocomplete]=\"autocomplete\"\n [attr.inputmode]=\"inputmode\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n (ngModelChange)=\"value = $event\"\n />\n</div>\n<div class=\"wr-input-suffix\" *ngIf=\"suffix\">\n <span class=\"wr-input-suffix__text\">{{ suffix }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.WrIcon, selector: "wr-icon[name]", inputs: ["name"], exportAs: ["wrIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
195
195
|
__decorate([
|
|
196
196
|
InputBoolean()
|
|
197
197
|
], WrInput.prototype, "passwordIcons", void 0);
|
|
198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrInput, decorators: [{
|
|
199
199
|
type: Component,
|
|
200
200
|
args: [{ selector: 'wr-input', exportAs: 'wrInput', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
201
201
|
{
|
|
@@ -242,11 +242,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
242
242
|
}] } });
|
|
243
243
|
|
|
244
244
|
class WrInputModule {
|
|
245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
246
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: WrInputModule, declarations: [WrInput], imports: [CommonModule, FormsModule, WrIconModule], exports: [WrInput] }); }
|
|
247
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrInputModule, imports: [CommonModule, FormsModule, WrIconModule] }); }
|
|
245
248
|
}
|
|
246
|
-
|
|
247
|
-
WrInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: WrInputModule, declarations: [WrInput], imports: [CommonModule, FormsModule, WrIconModule], exports: [WrInput] });
|
|
248
|
-
WrInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrInputModule, imports: [CommonModule, FormsModule, WrIconModule] });
|
|
249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrInputModule, decorators: [{
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrInputModule, decorators: [{
|
|
250
250
|
type: NgModule,
|
|
251
251
|
args: [{
|
|
252
252
|
imports: [CommonModule, FormsModule, WrIconModule],
|
|
@@ -261,4 +261,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
261
261
|
|
|
262
262
|
export { WrInput, WrInputModule };
|
|
263
263
|
//# sourceMappingURL=ngwr-input.mjs.map
|
|
264
|
-
//# sourceMappingURL=ngwr-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngwr-input.mjs","sources":["../../../projects/lib/input/input.ts","../../../projects/lib/input/input.html","../../../projects/lib/input/input-module.ts","../../../projects/lib/input/ngwr-input.ts"],"sourcesContent":["import { FocusMonitor } from '@angular/cdk/a11y';\nimport { BooleanInput, coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { fromEvent } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { WrAbstractBase } from 'ngwr/core/abstract';\nimport { InputBoolean } from 'ngwr/core/decorators';\nimport { OnChangeType, OnTouchedType, SafeAny } from 'ngwr/core/types';\n\nimport { WrInputAutocomplete, WrInputModeType, WrInputType } from './input-types';\n\n@Component({\n selector: 'wr-input',\n exportAs: 'wrInput',\n templateUrl: './input.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WrInput),\n multi: true,\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => WrInput),\n multi: true,\n },\n ],\n})\nexport class WrInput\n extends WrAbstractBase\n implements ControlValueAccessor, AfterViewInit, OnInit, OnDestroy, Validator\n{\n @Input() placeholder: string = '';\n @Input() prefix: string | null = null;\n @Input() suffix: string | null = null;\n @Input() @InputBoolean() passwordIcons: BooleanInput = false;\n\n @Input()\n get type(): WrInputType {\n return this._type;\n }\n set type(type: WrInputType) {\n this._type = type;\n }\n @Input()\n get inputmode(): WrInputModeType {\n return this._mode;\n }\n set inputmode(mode: WrInputModeType) {\n this._mode = mode;\n }\n @Input()\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(disabled: BooleanInput) {\n this._disabled = coerceBooleanProperty(disabled);\n this.cdr.markForCheck();\n }\n @Input()\n get readonly(): boolean {\n return this._readonly;\n }\n set readonly(readonly: BooleanInput) {\n this._readonly = coerceBooleanProperty(readonly);\n }\n @Input()\n get required(): boolean {\n return this._required;\n }\n set required(required: BooleanInput) {\n this._required = coerceBooleanProperty(required);\n }\n @Input()\n get autofocus(): boolean {\n return this._autofocus;\n }\n set autofocus(autofocus: BooleanInput) {\n this._autofocus = coerceBooleanProperty(autofocus);\n }\n @Input()\n get autocomplete(): WrInputAutocomplete {\n return this._autocomplete;\n }\n set autocomplete(autofocus: WrInputAutocomplete) {\n this._autocomplete = autofocus;\n }\n @Input()\n get value(): string | number {\n return this.type === 'number' ? this.valueAsNumber : this._value;\n }\n set value(val: string | number) {\n if (val !== this._value) {\n this._value = val;\n this.onChangeCallback(this.value);\n }\n }\n get valueAsString(): string {\n if (this._value == null || typeof this._value === 'undefined') return '';\n return String(this._value);\n }\n get valueAsNumber(): number {\n return coerceNumberProperty(this._value);\n }\n\n get isBadInput(): boolean {\n const validity = this.inputElement?.nativeElement?.validity;\n return validity && validity.badInput;\n }\n\n @ViewChild('inputElement', { static: true }) inputElement!: ElementRef<HTMLInputElement>;\n @HostBinding('class')\n get elClasses(): SafeAny {\n return {\n 'wr-input': true,\n 'wr-input--has-prefix': this.prefix,\n 'wr-input--has-suffix': this.suffix,\n 'wr-input--password': this.passwordIcons,\n 'wr-input--disabled': this.disabled,\n };\n }\n\n eyeOn = true;\n private _value: string | number = '';\n private _disabled: boolean = false;\n private _readonly: boolean = false;\n private _required: boolean = false;\n private _autofocus: boolean = false;\n private _focused: boolean = false;\n private _autocomplete: WrInputAutocomplete = 'off';\n private _type: WrInputType = 'text';\n private _mode: WrInputModeType = 'text';\n private onChangeCallback: OnChangeType = () => {};\n private onTouchedCallback: OnTouchedType = () => {};\n\n constructor(\n private readonly cdr: ChangeDetectorRef,\n private readonly elRef: ElementRef<HTMLInputElement>,\n private readonly focusMonitor: FocusMonitor,\n private readonly ngZone: NgZone\n ) {\n super();\n }\n\n ngOnInit(): void {\n this.ngZone.runOutsideAngular(() => {\n fromEvent<MouseEvent>(this.elRef.nativeElement, 'click')\n .pipe(takeUntil(this.destroyed$))\n .subscribe(event => {\n event.preventDefault();\n this.onFocus();\n if (this.disabled) {\n event.stopImmediatePropagation();\n return;\n }\n });\n fromEvent(this.inputElement.nativeElement, 'click')\n .pipe(takeUntil(this.destroyed$))\n .subscribe(event => event.stopPropagation());\n });\n }\n\n ngAfterViewInit(): void {\n if (this.autofocus) {\n this.onFocus();\n this.cdr.markForCheck();\n }\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.focusMonitor.stopMonitoring(this.elRef);\n }\n\n onFocus(event?: FocusEvent): void {\n if (event) {\n event.stopPropagation();\n }\n this._focused = true;\n this.focusMonitor.focusVia(this.inputElement, 'keyboard');\n }\n\n onBlur(event?: Event): void {\n if (event) {\n event.stopPropagation();\n }\n this._focused = false;\n // this.inputElement.nativeElement.blur();\n this.onTouchedCallback();\n }\n\n validate(control: AbstractControl): ValidationErrors | null {\n return {\n ...(this.isBadInput ? { badInput: true } : null),\n };\n }\n\n writeValue(value: string): void {\n if (value !== this._value) {\n this._value = value;\n }\n this.cdr.markForCheck();\n }\n\n registerOnChange(fn: OnChangeType): void {\n this.onChangeCallback = fn;\n }\n\n registerOnTouched(fn: OnTouchedType): void {\n this.onTouchedCallback = fn;\n }\n\n onPasswordVisibilityChange(): void {\n this.type === 'password' ? (this.type = 'text') : (this.type = 'password');\n this.eyeOn = !this.eyeOn;\n this.onFocus();\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = coerceBooleanProperty(isDisabled);\n }\n}\n","<div class=\"wr-input-prefix\" *ngIf=\"prefix\">\n <span class=\"wr-input-prefix__text\">{{ prefix }}</span>\n</div>\n<div class=\"wr-input-el\">\n <div *ngIf=\"passwordIcons\" class=\"wr-input-el-icon\" (click)=\"onPasswordVisibilityChange()\">\n <wr-icon class=\"wr-input-el-icon__icon\" [name]=\"eyeOn ? 'eye' : 'eye-off'\"></wr-icon>\n </div>\n <input\n #inputElement\n class=\"wr-input-el__native\"\n [ngModel]=\"valueAsString\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [type]=\"type\"\n [attr.autocomplete]=\"autocomplete\"\n [attr.inputmode]=\"inputmode\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n (ngModelChange)=\"value = $event\"\n />\n</div>\n<div class=\"wr-input-suffix\" *ngIf=\"suffix\">\n <span class=\"wr-input-suffix__text\">{{ suffix }}</span>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { WrIconModule } from 'ngwr/icon';\n\nimport { WrInput } from './input';\n\n@NgModule({\n imports: [CommonModule, FormsModule, WrIconModule],\n declarations: [WrInput],\n exports: [WrInput],\n})\nexport class WrInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAqDM,MAAO,OACX,SAAQ,cAAc,CAAA;AAQtB,IAAA,IACI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;KACnB;IACD,IAAI,IAAI,CAAC,IAAiB,EAAA;AACxB,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;KACnB;AACD,IAAA,IACI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;KACnB;IACD,IAAI,SAAS,CAAC,IAAqB,EAAA;AACjC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;KACnB;AACD,IAAA,IACI,QAAQ,GAAA;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IACD,IAAI,QAAQ,CAAC,QAAsB,EAAA;AACjC,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;AACjD,QAAA,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;KACzB;AACD,IAAA,IACI,QAAQ,GAAA;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IACD,IAAI,QAAQ,CAAC,QAAsB,EAAA;AACjC,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;KAClD;AACD,IAAA,IACI,QAAQ,GAAA;QACV,OAAO,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,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAb,aAAa,EAAA,YAAA,EAAA,CAHT,OAAO,CADZ,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,WAAW,EAAE,YAAY,CAAA,EAAA,OAAA,EAAA,CAEvC,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;AAEN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAJd,OAAA,EAAA,CAAA,YAAY,EAAE,WAAW,EAAE,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAItC,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,YAAY,CAAC;oBAClD,YAAY,EAAE,CAAC,OAAO,CAAC;oBACvB,OAAO,EAAE,CAAC,OAAO,CAAC;AACnB,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -23,13 +23,13 @@ class WrSkeleton {
|
|
|
23
23
|
'wr-skeleton--dark': this.color === 'dark',
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
27
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.3", type: WrSkeleton, selector: "wr-skeleton", inputs: { color: "color", animated: "animated" }, host: { properties: { "class": "this.elClasses" } }, exportAs: ["wrSkeleton"], ngImport: i0 }); }
|
|
26
28
|
}
|
|
27
|
-
WrSkeleton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
-
WrSkeleton.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: WrSkeleton, selector: "wr-skeleton", inputs: { color: "color", animated: "animated" }, host: { properties: { "class": "this.elClasses" } }, exportAs: ["wrSkeleton"], ngImport: i0 });
|
|
29
29
|
__decorate([
|
|
30
30
|
InputBoolean()
|
|
31
31
|
], WrSkeleton.prototype, "animated", void 0);
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSkeleton, decorators: [{
|
|
33
33
|
type: Directive,
|
|
34
34
|
args: [{
|
|
35
35
|
selector: 'wr-skeleton',
|
|
@@ -45,11 +45,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
45
45
|
}] } });
|
|
46
46
|
|
|
47
47
|
class WrSkeletonModule {
|
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
49
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: WrSkeletonModule, declarations: [WrSkeleton], imports: [CommonModule], exports: [WrSkeleton] }); }
|
|
50
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSkeletonModule, imports: [CommonModule] }); }
|
|
48
51
|
}
|
|
49
|
-
|
|
50
|
-
WrSkeletonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: WrSkeletonModule, declarations: [WrSkeleton], imports: [CommonModule], exports: [WrSkeleton] });
|
|
51
|
-
WrSkeletonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrSkeletonModule, imports: [CommonModule] });
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrSkeletonModule, decorators: [{
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSkeletonModule, decorators: [{
|
|
53
53
|
type: NgModule,
|
|
54
54
|
args: [{
|
|
55
55
|
imports: [CommonModule],
|
|
@@ -64,4 +64,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
64
64
|
|
|
65
65
|
export { WrSkeleton, WrSkeletonModule };
|
|
66
66
|
//# sourceMappingURL=ngwr-skeleton.mjs.map
|
|
67
|
-
//# sourceMappingURL=ngwr-skeleton.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-skeleton.mjs","sources":["../../../projects/lib/skeleton/skeleton.ts","../../../projects/lib/skeleton/skeleton-module.ts","../../../projects/lib/skeleton/ngwr-skeleton.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion';\nimport { Directive, HostBinding, Input } from '@angular/core';\n\nimport { WrThemeColor } from 'ngwr/core/color';\nimport { InputBoolean } from 'ngwr/core/decorators';\nimport { SafeAny } from 'ngwr/core/types';\n\n@Directive({\n selector: 'wr-skeleton',\n exportAs: 'wrSkeleton',\n})\nexport class WrSkeleton {\n @Input() color: WrThemeColor = 'dark';\n @Input() @InputBoolean() animated: BooleanInput = true;\n\n @HostBinding('class')\n get elClasses(): SafeAny {\n return {\n 'wr-skeleton': true,\n 'wr-skeleton--animated': this.animated,\n 'wr-skeleton--primary': this.color === 'primary',\n 'wr-skeleton--secondary': this.color === 'secondary',\n 'wr-skeleton--success': this.color === 'success',\n 'wr-skeleton--warning': this.color === 'warning',\n 'wr-skeleton--danger': this.color === 'danger',\n 'wr-skeleton--light': this.color === 'light',\n 'wr-skeleton--medium': this.color === 'medium',\n 'wr-skeleton--dark': this.color === 'dark',\n };\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { WrSkeleton } from './skeleton';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [WrSkeleton],\n exports: [WrSkeleton],\n})\nexport class WrSkeletonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,UAAU,CAAA;AAJvB,IAAA,WAAA,GAAA;QAKW,IAAK,CAAA,KAAA,GAAiB,MAAM,CAAC;QACb,IAAQ,CAAA,QAAA,GAAiB,IAAI,CAAC;AAiBxD,KAAA;AAfC,IAAA,IACI,SAAS,GAAA;QACX,OAAO;AACL,YAAA,aAAa,EAAE,IAAI;YACnB,uBAAuB,EAAE,IAAI,CAAC,QAAQ;AACtC,YAAA,sBAAsB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAChD,YAAA,wBAAwB,EAAE,IAAI,CAAC,KAAK,KAAK,WAAW;AACpD,YAAA,sBAAsB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAChD,YAAA,sBAAsB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAChD,YAAA,qBAAqB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;AAC9C,YAAA,oBAAoB,EAAE,IAAI,CAAC,KAAK,KAAK,OAAO;AAC5C,YAAA,qBAAqB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;AAC9C,YAAA,mBAAmB,EAAE,IAAI,CAAC,KAAK,KAAK,MAAM;SAC3C,CAAC;KACH
|
|
1
|
+
{"version":3,"file":"ngwr-skeleton.mjs","sources":["../../../projects/lib/skeleton/skeleton.ts","../../../projects/lib/skeleton/skeleton-module.ts","../../../projects/lib/skeleton/ngwr-skeleton.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion';\nimport { Directive, HostBinding, Input } from '@angular/core';\n\nimport { WrThemeColor } from 'ngwr/core/color';\nimport { InputBoolean } from 'ngwr/core/decorators';\nimport { SafeAny } from 'ngwr/core/types';\n\n@Directive({\n selector: 'wr-skeleton',\n exportAs: 'wrSkeleton',\n})\nexport class WrSkeleton {\n @Input() color: WrThemeColor = 'dark';\n @Input() @InputBoolean() animated: BooleanInput = true;\n\n @HostBinding('class')\n get elClasses(): SafeAny {\n return {\n 'wr-skeleton': true,\n 'wr-skeleton--animated': this.animated,\n 'wr-skeleton--primary': this.color === 'primary',\n 'wr-skeleton--secondary': this.color === 'secondary',\n 'wr-skeleton--success': this.color === 'success',\n 'wr-skeleton--warning': this.color === 'warning',\n 'wr-skeleton--danger': this.color === 'danger',\n 'wr-skeleton--light': this.color === 'light',\n 'wr-skeleton--medium': this.color === 'medium',\n 'wr-skeleton--dark': this.color === 'dark',\n };\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { WrSkeleton } from './skeleton';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [WrSkeleton],\n exports: [WrSkeleton],\n})\nexport class WrSkeletonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,UAAU,CAAA;AAJvB,IAAA,WAAA,GAAA;QAKW,IAAK,CAAA,KAAA,GAAiB,MAAM,CAAC;QACb,IAAQ,CAAA,QAAA,GAAiB,IAAI,CAAC;AAiBxD,KAAA;AAfC,IAAA,IACI,SAAS,GAAA;QACX,OAAO;AACL,YAAA,aAAa,EAAE,IAAI;YACnB,uBAAuB,EAAE,IAAI,CAAC,QAAQ;AACtC,YAAA,sBAAsB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAChD,YAAA,wBAAwB,EAAE,IAAI,CAAC,KAAK,KAAK,WAAW;AACpD,YAAA,sBAAsB,EAAE,IAAI,CAAC,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A,QAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAHZ,YAAA,EAAA,CAAA,UAAU,CADf,EAAA,OAAA,EAAA,CAAA,YAAY,aAEZ,UAAU,CAAA,EAAA,CAAA,CAAA,EAAA;AAET,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAJjB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIX,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,UAAU,CAAC;oBAC1B,OAAO,EAAE,CAAC,UAAU,CAAC;AACtB,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class WrSpinner {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.class = 'wr-spin';
|
|
7
|
+
}
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSpinner, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: WrSpinner, selector: "wr-spin", host: { properties: { "class": "this.class" } }, exportAs: ["wrSpin"], 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 }); }
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSpinner, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{
|
|
14
|
+
selector: 'wr-spin',
|
|
15
|
+
exportAs: 'wrSpin',
|
|
16
|
+
template: '<svg viewBox="0 0 50 50"><circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle></svg>',
|
|
17
|
+
encapsulation: ViewEncapsulation.None,
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
+
}]
|
|
20
|
+
}], propDecorators: { class: [{
|
|
21
|
+
type: HostBinding,
|
|
22
|
+
args: ['class']
|
|
23
|
+
}] } });
|
|
24
|
+
|
|
25
|
+
class WrSpinnerModule {
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
27
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: WrSpinnerModule, declarations: [WrSpinner], exports: [WrSpinner] }); }
|
|
28
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSpinnerModule }); }
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrSpinnerModule, decorators: [{
|
|
31
|
+
type: NgModule,
|
|
32
|
+
args: [{
|
|
33
|
+
declarations: [WrSpinner],
|
|
34
|
+
exports: [WrSpinner],
|
|
35
|
+
}]
|
|
36
|
+
}] });
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { WrSpinner, WrSpinnerModule };
|
|
43
|
+
//# sourceMappingURL=ngwr-spinner.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngwr-spinner.mjs","sources":["../../../projects/lib/spinner/spinner.ts","../../../projects/lib/spinner/spinner-module.ts","../../../projects/lib/spinner/ngwr-spinner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'wr-spin',\n exportAs: 'wrSpin',\n template:\n '<svg viewBox=\"0 0 50 50\"><circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"5\"></circle></svg>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WrSpinner {\n @HostBinding('class') class = 'wr-spin';\n}\n","import { NgModule } from '@angular/core';\n\nimport { WrSpinner } from './spinner';\n\n@NgModule({\n declarations: [WrSpinner],\n exports: [WrSpinner],\n})\nexport class WrSpinnerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAUa,SAAS,CAAA;AARtB,IAAA,WAAA,GAAA;QASwB,IAAK,CAAA,KAAA,GAAG,SAAS,CAAC;AACzC,KAAA;8GAFY,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,SAAS,sHAJlB,mHAAmH,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAI1G,SAAS,EAAA,UAAA,EAAA,CAAA;kBARrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,SAAS;AACnB,oBAAA,QAAQ,EAAE,QAAQ;AAClB,oBAAA,QAAQ,EACN,mHAAmH;oBACrH,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;8BAEuB,KAAK,EAAA,CAAA;sBAA1B,WAAW;uBAAC,OAAO,CAAA;;;MCHT,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAf,eAAe,EAAA,YAAA,EAAA,CAHX,SAAS,CAAA,EAAA,OAAA,EAAA,CACd,SAAS,CAAA,EAAA,CAAA,CAAA,EAAA;+GAER,eAAe,EAAA,CAAA,CAAA,EAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,SAAS,CAAC;oBACzB,OAAO,EAAE,CAAC,SAAS,CAAC;AACrB,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -40,9 +40,9 @@ class WrTag {
|
|
|
40
40
|
'wr-tag--hoverable': this.hoverable,
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTag, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: WrTag, selector: "wr-tag", inputs: { color: "color", icon: "icon", iconPosition: "iconPosition", outlined: "outlined", rounded: "rounded", transparent: "transparent", hoverable: "hoverable", loading: "loading" }, host: { properties: { "class": "this.elClasses" } }, exportAs: ["wrTag"], ngImport: i0, template: "<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'start'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'start'\" [name]=\"icon\"></wr-icon>\n<ng-content></ng-content>\n<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'end'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'end'\" [name]=\"icon\"></wr-icon>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.WrIcon, selector: "wr-icon[name]", inputs: ["name"], exportAs: ["wrIcon"] }, { kind: "component", type: i3.WrSpinner, selector: "wr-spin", exportAs: ["wrSpin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
43
45
|
}
|
|
44
|
-
WrTag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrTag, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
-
WrTag.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: WrTag, selector: "wr-tag", inputs: { color: "color", icon: "icon", iconPosition: "iconPosition", outlined: "outlined", rounded: "rounded", transparent: "transparent", hoverable: "hoverable", loading: "loading" }, host: { properties: { "class": "this.elClasses" } }, exportAs: ["wrTag"], ngImport: i0, template: "<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'start'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'start'\" [name]=\"icon\"></wr-icon>\n<ng-content></ng-content>\n<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'end'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'end'\" [name]=\"icon\"></wr-icon>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.WrIcon, selector: "wr-icon[name]", inputs: ["name"], exportAs: ["wrIcon"] }, { kind: "component", type: i3.WrSpinner, selector: "wr-spin", exportAs: ["wrSpin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
46
46
|
__decorate([
|
|
47
47
|
InputBoolean()
|
|
48
48
|
], WrTag.prototype, "outlined", void 0);
|
|
@@ -58,7 +58,7 @@ __decorate([
|
|
|
58
58
|
__decorate([
|
|
59
59
|
InputBoolean()
|
|
60
60
|
], WrTag.prototype, "loading", void 0);
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTag, decorators: [{
|
|
62
62
|
type: Component,
|
|
63
63
|
args: [{ selector: 'wr-tag', exportAs: 'wrTag', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'start'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'start'\" [name]=\"icon\"></wr-icon>\n<ng-content></ng-content>\n<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'end'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'end'\" [name]=\"icon\"></wr-icon>\n" }]
|
|
64
64
|
}], propDecorators: { color: [{
|
|
@@ -83,11 +83,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
83
83
|
}] } });
|
|
84
84
|
|
|
85
85
|
class WrTagModule {
|
|
86
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
87
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: WrTagModule, declarations: [WrTag], imports: [CommonModule, WrIconModule, WrSpinnerModule], exports: [WrTag] }); }
|
|
88
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTagModule, imports: [CommonModule, WrIconModule, WrSpinnerModule] }); }
|
|
86
89
|
}
|
|
87
|
-
|
|
88
|
-
WrTagModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: WrTagModule, declarations: [WrTag], imports: [CommonModule, WrIconModule, WrSpinnerModule], exports: [WrTag] });
|
|
89
|
-
WrTagModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrTagModule, imports: [CommonModule, WrIconModule, WrSpinnerModule] });
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrTagModule, decorators: [{
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTagModule, decorators: [{
|
|
91
91
|
type: NgModule,
|
|
92
92
|
args: [{
|
|
93
93
|
imports: [CommonModule, WrIconModule, WrSpinnerModule],
|
|
@@ -102,4 +102,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
102
102
|
|
|
103
103
|
export { WrTag, WrTagModule };
|
|
104
104
|
//# sourceMappingURL=ngwr-tag.mjs.map
|
|
105
|
-
//# sourceMappingURL=ngwr-tag.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-tag.mjs","sources":["../../../projects/lib/tag/tag.ts","../../../projects/lib/tag/tag.html","../../../projects/lib/tag/tag-module.ts","../../../projects/lib/tag/ngwr-tag.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\n\nimport { WrThemeColor } from 'ngwr/core/color';\nimport { InputBoolean } from 'ngwr/core/decorators';\nimport { SafeAny } from 'ngwr/core/types';\nimport { wrIconName } from 'ngwr/icon';\n\n@Component({\n selector: 'wr-tag',\n exportAs: 'wrTag',\n templateUrl: './tag.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class WrTag {\n @Input() color: WrThemeColor | string = 'primary';\n @Input() icon: wrIconName | null = null;\n @Input() iconPosition: 'start' | 'end' = 'start';\n @Input() @InputBoolean() outlined: BooleanInput = false;\n @Input() @InputBoolean() rounded: BooleanInput = false;\n @Input() @InputBoolean() transparent: BooleanInput = false;\n @Input() @InputBoolean() hoverable: BooleanInput = false;\n @Input() @InputBoolean() loading: BooleanInput = false;\n\n @HostBinding('class')\n get elClasses(): SafeAny {\n return {\n 'wr-tag': true,\n 'wr-tag--primary': this.color === 'primary',\n 'wr-tag--secondary': this.color === 'secondary',\n 'wr-tag--success': this.color === 'success',\n 'wr-tag--warning': this.color === 'warning',\n 'wr-tag--danger': this.color === 'danger',\n 'wr-tag--light': this.color === 'light',\n 'wr-tag--medium': this.color === 'medium',\n 'wr-tag--dark': this.color === 'dark',\n 'wr-tag--icon-start': (this.icon || this.loading) && this.iconPosition === 'start',\n 'wr-tag--icon-end': (this.icon || this.loading) && this.iconPosition === 'end',\n 'wr-tag--loading': this.loading,\n 'wr-tag--rounded': this.rounded,\n 'wr-tag--outlined': this.outlined,\n 'wr-tag--transparent': this.transparent,\n 'wr-tag--hoverable': this.hoverable,\n };\n }\n}\n","<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'start'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'start'\" [name]=\"icon\"></wr-icon>\n<ng-content></ng-content>\n<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'end'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'end'\" [name]=\"icon\"></wr-icon>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { WrIconModule } from 'ngwr/icon';\nimport { WrSpinnerModule } from 'ngwr/spinner';\n\nimport { WrTag } from './tag';\n\n@NgModule({\n imports: [CommonModule, WrIconModule, WrSpinnerModule],\n declarations: [WrTag],\n exports: [WrTag],\n})\nexport class WrTagModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAea,KAAK,CAAA;AAPlB,IAAA,WAAA,GAAA;QAQW,IAAK,CAAA,KAAA,GAA0B,SAAS,CAAC;QACzC,IAAI,CAAA,IAAA,GAAsB,IAAI,CAAC;QAC/B,IAAY,CAAA,YAAA,GAAoB,OAAO,CAAC;QACxB,IAAQ,CAAA,QAAA,GAAiB,KAAK,CAAC;QAC/B,IAAO,CAAA,OAAA,GAAiB,KAAK,CAAC;QAC9B,IAAW,CAAA,WAAA,GAAiB,KAAK,CAAC;QAClC,IAAS,CAAA,SAAA,GAAiB,KAAK,CAAC;QAChC,IAAO,CAAA,OAAA,GAAiB,KAAK,CAAC;AAuBxD,KAAA;AArBC,IAAA,IACI,SAAS,GAAA;QACX,OAAO;AACL,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,iBAAiB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAC3C,YAAA,mBAAmB,EAAE,IAAI,CAAC,KAAK,KAAK,WAAW;AAC/C,YAAA,iBAAiB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAC3C,YAAA,iBAAiB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAC3C,YAAA,gBAAgB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;AACzC,YAAA,eAAe,EAAE,IAAI,CAAC,KAAK,KAAK,OAAO;AACvC,YAAA,gBAAgB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;AACzC,YAAA,cAAc,EAAE,IAAI,CAAC,KAAK,KAAK,MAAM;AACrC,YAAA,oBAAoB,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,YAAY,KAAK,OAAO;AAClF,YAAA,kBAAkB,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,YAAY,KAAK,KAAK;YAC9E,iBAAiB,EAAE,IAAI,CAAC,OAAO;YAC/B,iBAAiB,EAAE,IAAI,CAAC,OAAO;YAC/B,kBAAkB,EAAE,IAAI,CAAC,QAAQ;YACjC,qBAAqB,EAAE,IAAI,CAAC,WAAW;YACvC,mBAAmB,EAAE,IAAI,CAAC,SAAS;SACpC,CAAC;KACH
|
|
1
|
+
{"version":3,"file":"ngwr-tag.mjs","sources":["../../../projects/lib/tag/tag.ts","../../../projects/lib/tag/tag.html","../../../projects/lib/tag/tag-module.ts","../../../projects/lib/tag/ngwr-tag.ts"],"sourcesContent":["import { BooleanInput } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\n\nimport { WrThemeColor } from 'ngwr/core/color';\nimport { InputBoolean } from 'ngwr/core/decorators';\nimport { SafeAny } from 'ngwr/core/types';\nimport { wrIconName } from 'ngwr/icon';\n\n@Component({\n selector: 'wr-tag',\n exportAs: 'wrTag',\n templateUrl: './tag.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class WrTag {\n @Input() color: WrThemeColor | string = 'primary';\n @Input() icon: wrIconName | null = null;\n @Input() iconPosition: 'start' | 'end' = 'start';\n @Input() @InputBoolean() outlined: BooleanInput = false;\n @Input() @InputBoolean() rounded: BooleanInput = false;\n @Input() @InputBoolean() transparent: BooleanInput = false;\n @Input() @InputBoolean() hoverable: BooleanInput = false;\n @Input() @InputBoolean() loading: BooleanInput = false;\n\n @HostBinding('class')\n get elClasses(): SafeAny {\n return {\n 'wr-tag': true,\n 'wr-tag--primary': this.color === 'primary',\n 'wr-tag--secondary': this.color === 'secondary',\n 'wr-tag--success': this.color === 'success',\n 'wr-tag--warning': this.color === 'warning',\n 'wr-tag--danger': this.color === 'danger',\n 'wr-tag--light': this.color === 'light',\n 'wr-tag--medium': this.color === 'medium',\n 'wr-tag--dark': this.color === 'dark',\n 'wr-tag--icon-start': (this.icon || this.loading) && this.iconPosition === 'start',\n 'wr-tag--icon-end': (this.icon || this.loading) && this.iconPosition === 'end',\n 'wr-tag--loading': this.loading,\n 'wr-tag--rounded': this.rounded,\n 'wr-tag--outlined': this.outlined,\n 'wr-tag--transparent': this.transparent,\n 'wr-tag--hoverable': this.hoverable,\n };\n }\n}\n","<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'start'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'start'\" [name]=\"icon\"></wr-icon>\n<ng-content></ng-content>\n<wr-spin class=\"wr-tag__spin\" *ngIf=\"loading && iconPosition === 'end'\"></wr-spin>\n<wr-icon class=\"wr-tag__icon\" *ngIf=\"icon && !loading && iconPosition === 'end'\" [name]=\"icon\"></wr-icon>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { WrIconModule } from 'ngwr/icon';\nimport { WrSpinnerModule } from 'ngwr/spinner';\n\nimport { WrTag } from './tag';\n\n@NgModule({\n imports: [CommonModule, WrIconModule, WrSpinnerModule],\n declarations: [WrTag],\n exports: [WrTag],\n})\nexport class WrTagModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAea,KAAK,CAAA;AAPlB,IAAA,WAAA,GAAA;QAQW,IAAK,CAAA,KAAA,GAA0B,SAAS,CAAC;QACzC,IAAI,CAAA,IAAA,GAAsB,IAAI,CAAC;QAC/B,IAAY,CAAA,YAAA,GAAoB,OAAO,CAAC;QACxB,IAAQ,CAAA,QAAA,GAAiB,KAAK,CAAC;QAC/B,IAAO,CAAA,OAAA,GAAiB,KAAK,CAAC;QAC9B,IAAW,CAAA,WAAA,GAAiB,KAAK,CAAC;QAClC,IAAS,CAAA,SAAA,GAAiB,KAAK,CAAC;QAChC,IAAO,CAAA,OAAA,GAAiB,KAAK,CAAC;AAuBxD,KAAA;AArBC,IAAA,IACI,SAAS,GAAA;QACX,OAAO;AACL,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,iBAAiB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAC3C,YAAA,mBAAmB,EAAE,IAAI,CAAC,KAAK,KAAK,WAAW;AAC/C,YAAA,iBAAiB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAC3C,YAAA,iBAAiB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;AAC3C,YAAA,gBAAgB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;AACzC,YAAA,eAAe,EAAE,IAAI,CAAC,KAAK,KAAK,OAAO;AACvC,YAAA,gBAAgB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;AACzC,YAAA,cAAc,EAAE,IAAI,CAAC,KAAK,KAAK,MAAM;AACrC,YAAA,oBAAoB,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,YAAY,KAAK,OAAO;AAClF,YAAA,kBAAkB,EAA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EAAA,CAAA,CAAA,EAAA;+GAAX,WAAW,EAAA,YAAA,EAAA,CAHP,KAAK,CADV,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,YAAY,EAAE,eAAe,CAAA,EAAA,OAAA,EAAA,CAE3C,KAAK,CAAA,EAAA,CAAA,CAAA,EAAA;AAEJ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,EAJZ,OAAA,EAAA,CAAA,YAAY,EAAE,YAAY,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAI1C,WAAW,EAAA,UAAA,EAAA,CAAA;kBALvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,eAAe,CAAC;oBACtD,YAAY,EAAE,CAAC,KAAK,CAAC;oBACrB,OAAO,EAAE,CAAC,KAAK,CAAC;AACjB,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -15,14 +15,6 @@ const WR_TOOLTIP_DEFAULT_POSITIONS = [
|
|
|
15
15
|
];
|
|
16
16
|
|
|
17
17
|
class WrTooltipComponent {
|
|
18
|
-
constructor(cdr) {
|
|
19
|
-
this.cdr = cdr;
|
|
20
|
-
this._message = null;
|
|
21
|
-
this._trigger = 'hover';
|
|
22
|
-
this._visible = false;
|
|
23
|
-
this._position = 'top';
|
|
24
|
-
this.positions = WR_TOOLTIP_DEFAULT_POSITIONS;
|
|
25
|
-
}
|
|
26
18
|
get message() {
|
|
27
19
|
return this._message;
|
|
28
20
|
}
|
|
@@ -61,6 +53,14 @@ class WrTooltipComponent {
|
|
|
61
53
|
this._position = value;
|
|
62
54
|
this.cdr.markForCheck();
|
|
63
55
|
}
|
|
56
|
+
constructor(cdr) {
|
|
57
|
+
this.cdr = cdr;
|
|
58
|
+
this._message = null;
|
|
59
|
+
this._trigger = 'hover';
|
|
60
|
+
this._visible = false;
|
|
61
|
+
this._position = 'top';
|
|
62
|
+
this.positions = WR_TOOLTIP_DEFAULT_POSITIONS;
|
|
63
|
+
}
|
|
64
64
|
show() {
|
|
65
65
|
if (!this.visible && this.message) {
|
|
66
66
|
this.visible = true;
|
|
@@ -79,10 +79,10 @@ class WrTooltipComponent {
|
|
|
79
79
|
this.hide();
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
83
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: WrTooltipComponent, selector: "wr-tooltip", inputs: { message: "message", trigger: "trigger", visible: "visible", origin: "origin", position: "position" }, viewQueries: [{ propertyName: "overlay", first: true, predicate: ["overlay"], descendants: true }], ngImport: i0, template: "<ng-template\n #overlay=\"cdkConnectedOverlay\"\n cdkConnectedOverlay\n wrConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"visible\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n [wrArrowPointAtCenter]=\"false\"\n (overlayOutsideClick)=\"onClickOutside($event)\"\n (detach)=\"hide()\"\n (positionChange)=\"onPositionChange($event)\"\n>\n <div class=\"wr-tooltip wr-tooltip--{{ position }}\">\n <div class=\"wr-tooltip__wrapper\">\n <div class=\"wr-tooltip__title\">{{ message }}</div>\n <div class=\"wr-tooltip__arrow\"></div>\n </div>\n </div>\n</ng-template>\n", styles: [".wr-tooltip{margin:.5rem;position:relative}.wr-tooltip__wrapper{display:inline-block;background:var(--wr-color-dark);padding:.5rem;border-radius:.25rem}.wr-tooltip__title{display:block;color:var(--wr-color-white);font-size:.875rem;font-weight:400;line-height:1rem;word-break:break-word}.wr-tooltip__arrow{display:block;position:absolute;z-index:2;width:.5rem;height:.5rem;background:var(--wr-color-dark);pointer-events:none;transform:rotate(45deg)}.wr-tooltip--top .wr-tooltip__arrow{bottom:-.25rem;left:0;right:0;margin:auto}.wr-tooltip--bottom .wr-tooltip__arrow{top:-.25rem;left:0;right:0;margin:auto}.wr-tooltip--left .wr-tooltip__arrow{top:0;bottom:0;right:-.25rem;margin:auto}.wr-tooltip--right .wr-tooltip__arrow{top:0;bottom:0;left:-.25rem;margin:auto}\n"], dependencies: [{ kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2.WrConnectedOverlayDirective, selector: "[cdkConnectedOverlay][wrConnectedOverlay]", inputs: ["wrArrowPointAtCenter"], exportAs: ["wrConnectedOverlay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
82
84
|
}
|
|
83
|
-
|
|
84
|
-
WrTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: WrTooltipComponent, selector: "wr-tooltip", inputs: { message: "message", trigger: "trigger", visible: "visible", origin: "origin", position: "position" }, viewQueries: [{ propertyName: "overlay", first: true, predicate: ["overlay"], descendants: true }], ngImport: i0, template: "<ng-template\n #overlay=\"cdkConnectedOverlay\"\n cdkConnectedOverlay\n wrConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"visible\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n [wrArrowPointAtCenter]=\"false\"\n (overlayOutsideClick)=\"onClickOutside($event)\"\n (detach)=\"hide()\"\n (positionChange)=\"onPositionChange($event)\"\n>\n <div class=\"wr-tooltip wr-tooltip--{{ position }}\">\n <div class=\"wr-tooltip__wrapper\">\n <div class=\"wr-tooltip__title\">{{ message }}</div>\n <div class=\"wr-tooltip__arrow\"></div>\n </div>\n </div>\n</ng-template>\n", styles: [".wr-tooltip{margin:.5rem;position:relative}.wr-tooltip__wrapper{display:inline-block;background:var(--wr-color-dark);padding:.5rem;border-radius:.25rem}.wr-tooltip__title{display:block;color:var(--wr-color-white);font-size:.875rem;font-weight:400;line-height:1rem;word-break:break-word}.wr-tooltip__arrow{display:block;position:absolute;z-index:2;width:.5rem;height:.5rem;background:var(--wr-color-dark);pointer-events:none;transform:rotate(45deg)}.wr-tooltip--top .wr-tooltip__arrow{bottom:-.25rem;left:0;right:0;margin:auto}.wr-tooltip--bottom .wr-tooltip__arrow{top:-.25rem;left:0;right:0;margin:auto}.wr-tooltip--left .wr-tooltip__arrow{top:0;bottom:0;right:-.25rem;margin:auto}.wr-tooltip--right .wr-tooltip__arrow{top:0;bottom:0;left:-.25rem;margin:auto}\n"], dependencies: [{ kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2.WrConnectedOverlayDirective, selector: "[cdkConnectedOverlay][wrConnectedOverlay]", inputs: ["wrArrowPointAtCenter"], exportAs: ["wrConnectedOverlay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrTooltipComponent, decorators: [{
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTooltipComponent, decorators: [{
|
|
86
86
|
type: Component,
|
|
87
87
|
args: [{ selector: 'wr-tooltip', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, template: "<ng-template\n #overlay=\"cdkConnectedOverlay\"\n cdkConnectedOverlay\n wrConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"visible\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n [wrArrowPointAtCenter]=\"false\"\n (overlayOutsideClick)=\"onClickOutside($event)\"\n (detach)=\"hide()\"\n (positionChange)=\"onPositionChange($event)\"\n>\n <div class=\"wr-tooltip wr-tooltip--{{ position }}\">\n <div class=\"wr-tooltip__wrapper\">\n <div class=\"wr-tooltip__title\">{{ message }}</div>\n <div class=\"wr-tooltip__arrow\"></div>\n </div>\n </div>\n</ng-template>\n", styles: [".wr-tooltip{margin:.5rem;position:relative}.wr-tooltip__wrapper{display:inline-block;background:var(--wr-color-dark);padding:.5rem;border-radius:.25rem}.wr-tooltip__title{display:block;color:var(--wr-color-white);font-size:.875rem;font-weight:400;line-height:1rem;word-break:break-word}.wr-tooltip__arrow{display:block;position:absolute;z-index:2;width:.5rem;height:.5rem;background:var(--wr-color-dark);pointer-events:none;transform:rotate(45deg)}.wr-tooltip--top .wr-tooltip__arrow{bottom:-.25rem;left:0;right:0;margin:auto}.wr-tooltip--bottom .wr-tooltip__arrow{top:-.25rem;left:0;right:0;margin:auto}.wr-tooltip--left .wr-tooltip__arrow{top:0;bottom:0;right:-.25rem;margin:auto}.wr-tooltip--right .wr-tooltip__arrow{top:0;bottom:0;left:-.25rem;margin:auto}\n"] }]
|
|
88
88
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { overlay: [{
|
|
@@ -101,14 +101,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
101
101
|
}] } });
|
|
102
102
|
|
|
103
103
|
class WrTooltipDirective {
|
|
104
|
-
constructor(elRef, r2, vcr) {
|
|
105
|
-
this.elRef = elRef;
|
|
106
|
-
this.r2 = r2;
|
|
107
|
-
this.vcr = vcr;
|
|
108
|
-
this.message = null;
|
|
109
|
-
this.trigger = 'hover';
|
|
110
|
-
this.componentRef = this.vcr.createComponent(WrTooltipComponent);
|
|
111
|
-
}
|
|
112
104
|
onClick(event) {
|
|
113
105
|
if (this.trigger === 'click') {
|
|
114
106
|
event.preventDefault();
|
|
@@ -135,6 +127,14 @@ class WrTooltipDirective {
|
|
|
135
127
|
}
|
|
136
128
|
}
|
|
137
129
|
}
|
|
130
|
+
constructor(elRef, r2, vcr) {
|
|
131
|
+
this.elRef = elRef;
|
|
132
|
+
this.r2 = r2;
|
|
133
|
+
this.vcr = vcr;
|
|
134
|
+
this.message = null;
|
|
135
|
+
this.trigger = 'hover';
|
|
136
|
+
this.componentRef = this.vcr.createComponent(WrTooltipComponent);
|
|
137
|
+
}
|
|
138
138
|
ngAfterViewInit() {
|
|
139
139
|
this.componentRef.instance.origin = this.elRef;
|
|
140
140
|
this.componentRef.instance.message = this.message;
|
|
@@ -157,10 +157,10 @@ class WrTooltipDirective {
|
|
|
157
157
|
isEnter && isOrigin ? this.onTooltipShow() : this.onTooltipHide();
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
161
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.3", type: WrTooltipDirective, selector: "[wrTooltip]", inputs: { message: ["wrTooltip", "message"], trigger: "trigger" }, host: { listeners: { "click": "onClick($event)", "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, exportAs: ["wrTooltip"], ngImport: i0 }); }
|
|
160
162
|
}
|
|
161
|
-
|
|
162
|
-
WrTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: WrTooltipDirective, selector: "[wrTooltip]", inputs: { message: ["wrTooltip", "message"], trigger: "trigger" }, host: { listeners: { "click": "onClick($event)", "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, exportAs: ["wrTooltip"], ngImport: i0 });
|
|
163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrTooltipDirective, decorators: [{
|
|
163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTooltipDirective, decorators: [{
|
|
164
164
|
type: Directive,
|
|
165
165
|
args: [{
|
|
166
166
|
selector: '[wrTooltip]',
|
|
@@ -183,11 +183,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
183
183
|
}] } });
|
|
184
184
|
|
|
185
185
|
class WrTooltipModule {
|
|
186
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
187
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: WrTooltipModule, declarations: [WrTooltipComponent, WrTooltipDirective], imports: [CommonModule, OverlayModule, WrOverlayModule], exports: [WrTooltipComponent, WrTooltipDirective] }); }
|
|
188
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTooltipModule, imports: [CommonModule, OverlayModule, WrOverlayModule] }); }
|
|
186
189
|
}
|
|
187
|
-
|
|
188
|
-
WrTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: WrTooltipModule, declarations: [WrTooltipComponent, WrTooltipDirective], imports: [CommonModule, OverlayModule, WrOverlayModule], exports: [WrTooltipComponent, WrTooltipDirective] });
|
|
189
|
-
WrTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrTooltipModule, imports: [CommonModule, OverlayModule, WrOverlayModule] });
|
|
190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrTooltipModule, decorators: [{
|
|
190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrTooltipModule, decorators: [{
|
|
191
191
|
type: NgModule,
|
|
192
192
|
args: [{
|
|
193
193
|
imports: [CommonModule, OverlayModule, WrOverlayModule],
|
|
@@ -202,4 +202,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
202
202
|
|
|
203
203
|
export { WR_TOOLTIP_DEFAULT_POSITIONS, WrTooltipComponent, WrTooltipDirective, WrTooltipModule };
|
|
204
204
|
//# sourceMappingURL=ngwr-tooltip.mjs.map
|
|
205
|
-
//# sourceMappingURL=ngwr-tooltip.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-tooltip.mjs","sources":["../../../projects/lib/tooltip/tooltip-default-positions.ts","../../../projects/lib/tooltip/tooltip-component.ts","../../../projects/lib/tooltip/tooltip.html","../../../projects/lib/tooltip/tooltip-directive.ts","../../../projects/lib/tooltip/tooltip-module.ts","../../../projects/lib/tooltip/ngwr-tooltip.ts"],"sourcesContent":["import { WR_POSITION_MAP } from 'ngwr/core/overlay';\n\nexport const WR_TOOLTIP_DEFAULT_POSITIONS = [\n WR_POSITION_MAP.top,\n WR_POSITION_MAP.bottom,\n WR_POSITION_MAP.right,\n WR_POSITION_MAP.left,\n];\n","import { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { CdkConnectedOverlay, ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n Input,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { getPlacementName } from 'ngwr/core/overlay';\n\nimport { WR_TOOLTIP_DEFAULT_POSITIONS } from './tooltip-default-positions';\nimport { WrTooltipTrigger } from './tooltip-trigger';\n\n@Component({\n selector: 'wr-tooltip',\n templateUrl: './tooltip.html',\n styleUrls: ['./tooltip.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n})\nexport class WrTooltipComponent {\n @ViewChild('overlay', { static: false }) overlay!: CdkConnectedOverlay;\n\n @Input()\n get message(): string | null {\n return this._message;\n }\n set message(value: string | null) {\n this._message = String(value);\n this.cdr.markForCheck();\n }\n private _message: string | null = null;\n\n @Input()\n get trigger(): WrTooltipTrigger {\n return this._trigger;\n }\n set trigger(value: WrTooltipTrigger) {\n this._trigger = value;\n this.cdr.markForCheck();\n }\n private _trigger: WrTooltipTrigger = 'hover';\n\n @Input()\n get visible(): boolean {\n return this._visible;\n }\n set visible(value: boolean) {\n const visible = coerceBooleanProperty(value);\n\n if (this._visible !== visible) {\n this._visible = visible;\n this.cdr.markForCheck();\n }\n }\n private _visible: boolean = false;\n\n @Input()\n get origin(): ElementRef {\n return this._origin;\n }\n set origin(value: ElementRef) {\n this._origin = value;\n this.cdr.markForCheck();\n }\n private _origin!: ElementRef;\n\n @Input()\n get position(): string {\n return this._position;\n }\n set position(value: string) {\n this._position = value;\n this.cdr.markForCheck();\n }\n private _position: string = 'top';\n\n readonly positions: ConnectionPositionPair[] = WR_TOOLTIP_DEFAULT_POSITIONS;\n\n constructor(private readonly cdr: ChangeDetectorRef) {}\n\n show(): void {\n if (!this.visible && this.message) {\n this.visible = true;\n }\n }\n\n hide(): void {\n if (this.visible) {\n this.visible = false;\n }\n }\n\n onPositionChange(position: ConnectedOverlayPositionChange): void {\n this.position = getPlacementName(position)!;\n }\n\n onClickOutside(event: MouseEvent): void {\n if (!this.origin.nativeElement.contains(event.target)) {\n this.hide();\n }\n }\n}\n","<ng-template\n #overlay=\"cdkConnectedOverlay\"\n cdkConnectedOverlay\n wrConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"visible\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n [wrArrowPointAtCenter]=\"false\"\n (overlayOutsideClick)=\"onClickOutside($event)\"\n (detach)=\"hide()\"\n (positionChange)=\"onPositionChange($event)\"\n>\n <div class=\"wr-tooltip wr-tooltip--{{ position }}\">\n <div class=\"wr-tooltip__wrapper\">\n <div class=\"wr-tooltip__title\">{{ message }}</div>\n <div class=\"wr-tooltip__arrow\"></div>\n </div>\n </div>\n</ng-template>\n","import {\n AfterViewInit,\n ComponentRef,\n Directive,\n ElementRef,\n HostListener,\n Input,\n Renderer2,\n ViewContainerRef,\n} from '@angular/core';\n\nimport { WrTooltipComponent } from './tooltip-component';\nimport { WrTooltipTrigger } from './tooltip-trigger';\n\n@Directive({\n selector: '[wrTooltip]',\n exportAs: 'wrTooltip',\n})\nexport class WrTooltipDirective implements AfterViewInit {\n @Input('wrTooltip') message: string | null = null;\n\n @Input() trigger: WrTooltipTrigger = 'hover';\n\n @HostListener('click', ['$event'])\n onClick(event: MouseEvent): void {\n if (this.trigger === 'click') {\n event.preventDefault();\n this.onTooltipShow();\n }\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n if (this.trigger === 'hover') {\n this.onTooltipShow();\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n if (this.trigger === 'hover') {\n let overlayElement: HTMLElement | undefined;\n\n this.leaveDelay(true, false, 0.1);\n\n if (this.componentRef.instance?.overlay.overlayRef && !overlayElement) {\n overlayElement = this.componentRef.instance.overlay.overlayRef.overlayElement;\n\n this.r2.listen(overlayElement, 'mouseenter', () => {\n this.leaveDelay(false, true, 0.1);\n });\n this.r2.listen(overlayElement, 'mouseleave', () => {\n this.leaveDelay(false, false, -1);\n });\n }\n }\n }\n\n private readonly componentRef: ComponentRef<WrTooltipComponent> = this.vcr.createComponent(WrTooltipComponent);\n private delayTimer: ReturnType<typeof setTimeout> | undefined;\n\n constructor(\n private readonly elRef: ElementRef,\n private readonly r2: Renderer2,\n private readonly vcr: ViewContainerRef\n ) {}\n\n ngAfterViewInit(): void {\n this.componentRef.instance.origin = this.elRef;\n this.componentRef.instance.message = this.message;\n this.componentRef.instance.trigger = this.trigger;\n }\n\n private onTooltipShow(): void {\n this.componentRef?.instance?.show();\n }\n\n private onTooltipHide(): void {\n this.componentRef?.instance?.hide();\n }\n\n private leaveDelay(isOrigin: boolean, isEnter: boolean, delay: number = -1): void {\n if (delay > 0) {\n this.delayTimer = setTimeout(() => {\n this.delayTimer = undefined;\n isEnter ? this.onTooltipShow() : this.onTooltipHide();\n }, delay * 1000);\n } else {\n isEnter && isOrigin ? this.onTooltipShow() : this.onTooltipHide();\n }\n }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { WrOverlayModule } from 'ngwr/core/overlay';\n\nimport { WrTooltipComponent } from './tooltip-component';\nimport { WrTooltipDirective } from './tooltip-directive';\n\n@NgModule({\n imports: [CommonModule, OverlayModule, WrOverlayModule],\n declarations: [WrTooltipComponent, WrTooltipDirective],\n exports: [WrTooltipComponent, WrTooltipDirective],\n})\nexport class WrTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEa,MAAA,4BAA4B,GAAG;AAC1C,IAAA,eAAe,CAAC,GAAG;AACnB,IAAA,eAAe,CAAC,MAAM;AACtB,IAAA,eAAe,CAAC,KAAK;AACrB,IAAA,eAAe,CAAC,IAAI;;;MCmBT,kBAAkB,CAAA;AA2D7B,IAAA,WAAA,CAA6B,GAAsB,EAAA;AAAtB,QAAA,IAAG,CAAA,GAAA,GAAH,GAAG,CAAmB;AAhD3C,QAAA,IAAQ,CAAA,QAAA,GAAkB,IAAI,CAAC;AAU/B,QAAA,IAAQ,CAAA,QAAA,GAAqB,OAAO,CAAC;AAcrC,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;AAoB1B,QAAA,IAAS,CAAA,SAAA,GAAW,KAA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A;;;MCxBf,eAAe,CAAA;;4GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAHX,YAAA,EAAA,CAAA,kBAAkB,EAAE,kBAAkB,CAD3C,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,aAAa,EAAE,eAAe,CAE5C,EAAA,OAAA,EAAA,CAAA,kBAAkB,EAAE,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAErC,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAJhB,OAAA,EAAA,CAAA,YAAY,EAAE,aAAa,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA;2FAI3C,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,CAAC;AACvD,oBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;AACtD,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;iBAClD,CAAA;;;ACbD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngwr-tooltip.mjs","sources":["../../../projects/lib/tooltip/tooltip-default-positions.ts","../../../projects/lib/tooltip/tooltip-component.ts","../../../projects/lib/tooltip/tooltip.html","../../../projects/lib/tooltip/tooltip-directive.ts","../../../projects/lib/tooltip/tooltip-module.ts","../../../projects/lib/tooltip/ngwr-tooltip.ts"],"sourcesContent":["import { WR_POSITION_MAP } from 'ngwr/core/overlay';\n\nexport const WR_TOOLTIP_DEFAULT_POSITIONS = [\n WR_POSITION_MAP.top,\n WR_POSITION_MAP.bottom,\n WR_POSITION_MAP.right,\n WR_POSITION_MAP.left,\n];\n","import { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { CdkConnectedOverlay, ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n Input,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { getPlacementName } from 'ngwr/core/overlay';\n\nimport { WR_TOOLTIP_DEFAULT_POSITIONS } from './tooltip-default-positions';\nimport { WrTooltipTrigger } from './tooltip-trigger';\n\n@Component({\n selector: 'wr-tooltip',\n templateUrl: './tooltip.html',\n styleUrls: ['./tooltip.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n})\nexport class WrTooltipComponent {\n @ViewChild('overlay', { static: false }) overlay!: CdkConnectedOverlay;\n\n @Input()\n get message(): string | null {\n return this._message;\n }\n set message(value: string | null) {\n this._message = String(value);\n this.cdr.markForCheck();\n }\n private _message: string | null = null;\n\n @Input()\n get trigger(): WrTooltipTrigger {\n return this._trigger;\n }\n set trigger(value: WrTooltipTrigger) {\n this._trigger = value;\n this.cdr.markForCheck();\n }\n private _trigger: WrTooltipTrigger = 'hover';\n\n @Input()\n get visible(): boolean {\n return this._visible;\n }\n set visible(value: boolean) {\n const visible = coerceBooleanProperty(value);\n\n if (this._visible !== visible) {\n this._visible = visible;\n this.cdr.markForCheck();\n }\n }\n private _visible: boolean = false;\n\n @Input()\n get origin(): ElementRef {\n return this._origin;\n }\n set origin(value: ElementRef) {\n this._origin = value;\n this.cdr.markForCheck();\n }\n private _origin!: ElementRef;\n\n @Input()\n get position(): string {\n return this._position;\n }\n set position(value: string) {\n this._position = value;\n this.cdr.markForCheck();\n }\n private _position: string = 'top';\n\n readonly positions: ConnectionPositionPair[] = WR_TOOLTIP_DEFAULT_POSITIONS;\n\n constructor(private readonly cdr: ChangeDetectorRef) {}\n\n show(): void {\n if (!this.visible && this.message) {\n this.visible = true;\n }\n }\n\n hide(): void {\n if (this.visible) {\n this.visible = false;\n }\n }\n\n onPositionChange(position: ConnectedOverlayPositionChange): void {\n this.position = getPlacementName(position)!;\n }\n\n onClickOutside(event: MouseEvent): void {\n if (!this.origin.nativeElement.contains(event.target)) {\n this.hide();\n }\n }\n}\n","<ng-template\n #overlay=\"cdkConnectedOverlay\"\n cdkConnectedOverlay\n wrConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"visible\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayPush]=\"true\"\n [wrArrowPointAtCenter]=\"false\"\n (overlayOutsideClick)=\"onClickOutside($event)\"\n (detach)=\"hide()\"\n (positionChange)=\"onPositionChange($event)\"\n>\n <div class=\"wr-tooltip wr-tooltip--{{ position }}\">\n <div class=\"wr-tooltip__wrapper\">\n <div class=\"wr-tooltip__title\">{{ message }}</div>\n <div class=\"wr-tooltip__arrow\"></div>\n </div>\n </div>\n</ng-template>\n","import {\n AfterViewInit,\n ComponentRef,\n Directive,\n ElementRef,\n HostListener,\n Input,\n Renderer2,\n ViewContainerRef,\n} from '@angular/core';\n\nimport { WrTooltipComponent } from './tooltip-component';\nimport { WrTooltipTrigger } from './tooltip-trigger';\n\n@Directive({\n selector: '[wrTooltip]',\n exportAs: 'wrTooltip',\n})\nexport class WrTooltipDirective implements AfterViewInit {\n @Input('wrTooltip') message: string | null = null;\n\n @Input() trigger: WrTooltipTrigger = 'hover';\n\n @HostListener('click', ['$event'])\n onClick(event: MouseEvent): void {\n if (this.trigger === 'click') {\n event.preventDefault();\n this.onTooltipShow();\n }\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n if (this.trigger === 'hover') {\n this.onTooltipShow();\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n if (this.trigger === 'hover') {\n let overlayElement: HTMLElement | undefined;\n\n this.leaveDelay(true, false, 0.1);\n\n if (this.componentRef.instance?.overlay.overlayRef && !overlayElement) {\n overlayElement = this.componentRef.instance.overlay.overlayRef.overlayElement;\n\n this.r2.listen(overlayElement, 'mouseenter', () => {\n this.leaveDelay(false, true, 0.1);\n });\n this.r2.listen(overlayElement, 'mouseleave', () => {\n this.leaveDelay(false, false, -1);\n });\n }\n }\n }\n\n private readonly componentRef: ComponentRef<WrTooltipComponent> = this.vcr.createComponent(WrTooltipComponent);\n private delayTimer: ReturnType<typeof setTimeout> | undefined;\n\n constructor(\n private readonly elRef: ElementRef,\n private readonly r2: Renderer2,\n private readonly vcr: ViewContainerRef\n ) {}\n\n ngAfterViewInit(): void {\n this.componentRef.instance.origin = this.elRef;\n this.componentRef.instance.message = this.message;\n this.componentRef.instance.trigger = this.trigger;\n }\n\n private onTooltipShow(): void {\n this.componentRef?.instance?.show();\n }\n\n private onTooltipHide(): void {\n this.componentRef?.instance?.hide();\n }\n\n private leaveDelay(isOrigin: boolean, isEnter: boolean, delay: number = -1): void {\n if (delay > 0) {\n this.delayTimer = setTimeout(() => {\n this.delayTimer = undefined;\n isEnter ? this.onTooltipShow() : this.onTooltipHide();\n }, delay * 1000);\n } else {\n isEnter && isOrigin ? this.onTooltipShow() : this.onTooltipHide();\n }\n }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { WrOverlayModule } from 'ngwr/core/overlay';\n\nimport { WrTooltipComponent } from './tooltip-component';\nimport { WrTooltipDirective } from './tooltip-directive';\n\n@NgModule({\n imports: [CommonModule, OverlayModule, WrOverlayModule],\n declarations: [WrTooltipComponent, WrTooltipDirective],\n exports: [WrTooltipComponent, WrTooltipDirective],\n})\nexport class WrTooltipModule {}\n","/**\n * Generated bundle index.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;;;;"}
|
package/form/form-item.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export declare class WrFormItem {
|
|
|
11
11
|
get elClasses(): SafeAny;
|
|
12
12
|
constructor(cdr: ChangeDetectorRef);
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrFormItem, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WrFormItem, "wr-form-item", ["wrFormItem"], { "hasError": "hasError"; }, {}, never, ["*"], false, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrFormItem, "wr-form-item", ["wrFormItem"], { "hasError": { "alias": "hasError"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
15
15
|
}
|
package/icon/icon.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export declare class WrIcon {
|
|
|
16
16
|
constructor(elRef: ElementRef<HTMLElement>, iconService: WrIconService, doc: Document);
|
|
17
17
|
private svgElementFromString;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrIcon, [null, null, { optional: true; }]>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WrIcon, "wr-icon[name]", ["wrIcon"], { "name": "name"; }, {}, never, never, false, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrIcon, "wr-icon[name]", ["wrIcon"], { "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
20
|
}
|