@anguless/angulux 22.0.0-rc.0 → 22.2.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/README.md +291 -0
- package/fesm2022/anguless-angulux-api.mjs +40 -82
- package/fesm2022/anguless-angulux-api.mjs.map +1 -1
- package/fesm2022/anguless-angulux-autofocus.mjs +7 -7
- package/fesm2022/anguless-angulux-avatar.mjs +10 -10
- package/fesm2022/anguless-angulux-avatargroup.mjs +10 -10
- package/fesm2022/anguless-angulux-badge.mjs +13 -13
- package/fesm2022/anguless-angulux-base.mjs +3 -3
- package/fesm2022/anguless-angulux-basecomponent.mjs +6 -6
- package/fesm2022/anguless-angulux-baseeditableholder.mjs +3 -3
- package/fesm2022/anguless-angulux-baseinput.mjs +3 -3
- package/fesm2022/anguless-angulux-basemodelholder.mjs +3 -3
- package/fesm2022/anguless-angulux-bind.mjs +7 -7
- package/fesm2022/anguless-angulux-button.mjs +43 -74
- package/fesm2022/anguless-angulux-button.mjs.map +1 -1
- package/fesm2022/anguless-angulux-card.mjs +42 -102
- package/fesm2022/anguless-angulux-card.mjs.map +1 -1
- package/fesm2022/anguless-angulux-chart.mjs +10 -10
- package/fesm2022/anguless-angulux-checkbox.mjs +18 -38
- package/fesm2022/anguless-angulux-checkbox.mjs.map +1 -1
- package/fesm2022/anguless-angulux-chip.mjs +20 -40
- package/fesm2022/anguless-angulux-chip.mjs.map +1 -1
- package/fesm2022/anguless-angulux-colorpicker.mjs +10 -10
- package/fesm2022/anguless-angulux-config.mjs +6 -6
- package/fesm2022/anguless-angulux-confirmdialog.mjs +52 -117
- package/fesm2022/anguless-angulux-confirmdialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-datepicker.mjs +104 -212
- package/fesm2022/anguless-angulux-datepicker.mjs.map +1 -1
- package/fesm2022/anguless-angulux-dialog.mjs +50 -114
- package/fesm2022/anguless-angulux-dialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-divider.mjs +10 -10
- package/fesm2022/anguless-angulux-dom.mjs +7 -0
- package/fesm2022/anguless-angulux-dom.mjs.map +1 -1
- package/fesm2022/anguless-angulux-drawer.mjs +34 -82
- package/fesm2022/anguless-angulux-drawer.mjs.map +1 -1
- package/fesm2022/anguless-angulux-fileupload.mjs +83 -159
- package/fesm2022/anguless-angulux-fileupload.mjs.map +1 -1
- package/fesm2022/anguless-angulux-fluid.mjs +10 -10
- package/fesm2022/anguless-angulux-focustrap.mjs +7 -7
- package/fesm2022/anguless-angulux-iconfield.mjs +10 -10
- package/fesm2022/anguless-angulux-icons-angledoubledown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdownleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdownright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-ban.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-bars.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-baseicon.mjs +6 -6
- package/fesm2022/anguless-angulux-icons-blank.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-calendar.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-caretleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-caretright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-check.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevrondown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-exclamationtriangle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-eye.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-eyeslash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filter.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filterfill.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filterslash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-home.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-infocircle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-minus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-pencil.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-plus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-refresh.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-search.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-searchminus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-searchplus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortalt.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortamountdown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortamountupalt.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-spinner.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-star.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-starfill.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-thlarge.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-times.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-timescircle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-trash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-undo.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-upload.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-windowmaximize.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-windowminimize.mjs +3 -3
- package/fesm2022/anguless-angulux-inputicon.mjs +10 -10
- package/fesm2022/anguless-angulux-inputnumber.mjs +38 -69
- package/fesm2022/anguless-angulux-inputnumber.mjs.map +1 -1
- package/fesm2022/anguless-angulux-inputtext.mjs +10 -10
- package/fesm2022/anguless-angulux-menu.mjs +44 -90
- package/fesm2022/anguless-angulux-menu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-message.mjs +30 -61
- package/fesm2022/anguless-angulux-message.mjs.map +1 -1
- package/fesm2022/anguless-angulux-motion.mjs +13 -13
- package/fesm2022/anguless-angulux-multiselect.mjs +103 -248
- package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -1
- package/fesm2022/anguless-angulux-overlay.mjs +18 -39
- package/fesm2022/anguless-angulux-overlay.mjs.map +1 -1
- package/fesm2022/anguless-angulux-paginator.mjs +57 -103
- package/fesm2022/anguless-angulux-paginator.mjs.map +1 -1
- package/fesm2022/anguless-angulux-password.mjs +49 -104
- package/fesm2022/anguless-angulux-password.mjs.map +1 -1
- package/fesm2022/anguless-angulux-popover.mjs +16 -33
- package/fesm2022/anguless-angulux-popover.mjs.map +1 -1
- package/fesm2022/anguless-angulux-progressbar.mjs +18 -37
- package/fesm2022/anguless-angulux-progressbar.mjs.map +1 -1
- package/fesm2022/anguless-angulux-progressspinner.mjs +10 -10
- package/fesm2022/anguless-angulux-radiobutton.mjs +13 -13
- package/fesm2022/anguless-angulux-ripple.mjs +10 -10
- package/fesm2022/anguless-angulux-scroller.mjs +36 -77
- package/fesm2022/anguless-angulux-scroller.mjs.map +1 -1
- package/fesm2022/anguless-angulux-select.mjs +85 -225
- package/fesm2022/anguless-angulux-select.mjs.map +1 -1
- package/fesm2022/anguless-angulux-selectbutton.mjs +18 -35
- package/fesm2022/anguless-angulux-selectbutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-skeleton.mjs +10 -10
- package/fesm2022/anguless-angulux-splitbutton.mjs +23 -50
- package/fesm2022/anguless-angulux-splitbutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-table.mjs +332 -638
- package/fesm2022/anguless-angulux-table.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tabs.mjs +47 -71
- package/fesm2022/anguless-angulux-tabs.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tag.mjs +20 -37
- package/fesm2022/anguless-angulux-tag.mjs.map +1 -1
- package/fesm2022/anguless-angulux-textarea.mjs +10 -10
- package/fesm2022/anguless-angulux-tieredmenu.mjs +28 -55
- package/fesm2022/anguless-angulux-tieredmenu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-timeline.mjs +24 -55
- package/fesm2022/anguless-angulux-timeline.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toast.mjs +24 -49
- package/fesm2022/anguless-angulux-toast.mjs.map +1 -1
- package/fesm2022/anguless-angulux-togglebutton.mjs +23 -50
- package/fesm2022/anguless-angulux-togglebutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toggleswitch.mjs +18 -38
- package/fesm2022/anguless-angulux-toggleswitch.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tooltip.mjs +10 -10
- package/fesm2022/anguless-angulux-treetable.mjs +229 -428
- package/fesm2022/anguless-angulux-treetable.mjs.map +1 -1
- package/fesm2022/anguless-angulux-usestyle.mjs +3 -3
- package/package.json +6 -6
- package/types/anguless-angulux-api.d.ts +17 -21
- package/types/anguless-angulux-button.d.ts +6 -12
- package/types/anguless-angulux-card.d.ts +8 -17
- package/types/anguless-angulux-checkbox.d.ts +4 -8
- package/types/anguless-angulux-chip.d.ts +4 -8
- package/types/anguless-angulux-confirmdialog.d.ts +19 -29
- package/types/anguless-angulux-datepicker.d.ts +27 -42
- package/types/anguless-angulux-dialog.d.ts +10 -20
- package/types/anguless-angulux-drawer.d.ts +8 -16
- package/types/anguless-angulux-fileupload.d.ts +27 -38
- package/types/anguless-angulux-inputnumber.d.ts +6 -12
- package/types/anguless-angulux-menu.d.ts +27 -39
- package/types/anguless-angulux-message.d.ts +6 -12
- package/types/anguless-angulux-multiselect.d.ts +20 -41
- package/types/anguless-angulux-overlay.d.ts +4 -7
- package/types/anguless-angulux-paginator.d.ts +17 -25
- package/types/anguless-angulux-password.d.ts +30 -38
- package/types/anguless-angulux-popover.d.ts +4 -7
- package/types/anguless-angulux-progressbar.d.ts +4 -8
- package/types/anguless-angulux-scroller.d.ts +7 -13
- package/types/anguless-angulux-select.d.ts +16 -49
- package/types/anguless-angulux-selectbutton.d.ts +4 -8
- package/types/anguless-angulux-splitbutton.d.ts +17 -21
- package/types/anguless-angulux-table.d.ts +42 -93
- package/types/anguless-angulux-tabs.d.ts +4 -9
- package/types/anguless-angulux-tag.d.ts +4 -8
- package/types/anguless-angulux-tieredmenu.d.ts +5 -9
- package/types/anguless-angulux-timeline.d.ts +5 -11
- package/types/anguless-angulux-toast.d.ts +22 -26
- package/types/anguless-angulux-togglebutton.d.ts +5 -11
- package/types/anguless-angulux-toggleswitch.d.ts +4 -8
- package/types/anguless-angulux-treetable.d.ts +40 -62
|
@@ -2,10 +2,10 @@ export * from '@anguless/angulux/types/password';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, InjectionToken, inject, input, booleanAttribute, computed, effect, signal, HostListener, Input, Directive, Pipe, forwardRef, EventEmitter,
|
|
5
|
+
import { Injectable, InjectionToken, inject, input, booleanAttribute, computed, effect, signal, HostListener, Input, Directive, Pipe, forwardRef, EventEmitter, contentChild, numberAttribute, ViewChild, Output, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
7
|
import { addClass, absolutePosition, removeClass, hasClass, isTouchDevice } from '@anguless/angulux-utils';
|
|
8
|
-
import { OverlayService, TranslationKeys, SharedModule
|
|
8
|
+
import { OverlayService, TranslationKeys, SharedModule } from '@anguless/angulux/api';
|
|
9
9
|
import { AutoFocus } from '@anguless/angulux/autofocus';
|
|
10
10
|
import { PARENT_INSTANCE } from '@anguless/angulux/basecomponent';
|
|
11
11
|
import { BaseEditableHolder } from '@anguless/angulux/baseeditableholder';
|
|
@@ -104,10 +104,10 @@ class PasswordStyle extends BaseStyle {
|
|
|
104
104
|
style = style;
|
|
105
105
|
classes = classes;
|
|
106
106
|
inlineStyles = inlineStyles;
|
|
107
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
108
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
107
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PasswordStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
108
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PasswordStyle });
|
|
109
109
|
}
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PasswordStyle, decorators: [{
|
|
111
111
|
type: Injectable
|
|
112
112
|
}] });
|
|
113
113
|
/**
|
|
@@ -446,10 +446,10 @@ class PasswordDirective extends BaseEditableHolder {
|
|
|
446
446
|
this.info = null;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
450
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PasswordDirective, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
450
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.1", type: PasswordDirective, isStandalone: true, selector: "[aglPassword]", inputs: { pPasswordPT: { classPropertyName: "pPasswordPT", publicName: "pPasswordPT", isSignal: true, isRequired: false, transformFunction: null }, pPasswordUnstyled: { classPropertyName: "pPasswordUnstyled", publicName: "pPasswordUnstyled", isSignal: true, isRequired: false, transformFunction: null }, promptLabel: { classPropertyName: "promptLabel", publicName: "promptLabel", isSignal: false, isRequired: false, transformFunction: null }, weakLabel: { classPropertyName: "weakLabel", publicName: "weakLabel", isSignal: false, isRequired: false, transformFunction: null }, mediumLabel: { classPropertyName: "mediumLabel", publicName: "mediumLabel", isSignal: false, isRequired: false, transformFunction: null }, strongLabel: { classPropertyName: "strongLabel", publicName: "strongLabel", isSignal: false, isRequired: false, transformFunction: null }, feedback: { classPropertyName: "feedback", publicName: "feedback", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showPassword: { classPropertyName: "showPassword", publicName: "showPassword", isSignal: false, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "aglSize", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "input": "onInput($event)", "focus": "onFocus()", "blur": "onBlur()", "keyup": "onKeyup($event)" }, properties: { "class": "cx('rootDirective')" } }, providers: [PasswordStyle, { provide: PASSWORD_DIRECTIVE_INSTANCE, useExisting: PasswordDirective }, { provide: PARENT_INSTANCE, useExisting: PasswordDirective }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
451
451
|
}
|
|
452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PasswordDirective, decorators: [{
|
|
453
453
|
type: Directive,
|
|
454
454
|
args: [{
|
|
455
455
|
selector: '[aglPassword]',
|
|
@@ -490,10 +490,10 @@ class MapperPipe {
|
|
|
490
490
|
transform(value, mapper, ...args) {
|
|
491
491
|
return mapper(value, ...args);
|
|
492
492
|
}
|
|
493
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
494
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.
|
|
493
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MapperPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
494
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: MapperPipe, isStandalone: true, name: "mapper" });
|
|
495
495
|
}
|
|
496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MapperPipe, decorators: [{
|
|
497
497
|
type: Pipe,
|
|
498
498
|
args: [{
|
|
499
499
|
name: 'mapper',
|
|
@@ -677,45 +677,38 @@ class Password extends BaseInput {
|
|
|
677
677
|
* Custom template of content.
|
|
678
678
|
* @group Templates
|
|
679
679
|
*/
|
|
680
|
-
contentTemplate;
|
|
680
|
+
contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
681
681
|
/**
|
|
682
682
|
* Custom template of footer.
|
|
683
683
|
* @group Templates
|
|
684
684
|
*/
|
|
685
|
-
footerTemplate;
|
|
685
|
+
footerTemplate = contentChild('footer', { ...(ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
686
686
|
/**
|
|
687
687
|
* Custom template of header.
|
|
688
688
|
* @group Templates
|
|
689
689
|
*/
|
|
690
|
-
headerTemplate;
|
|
690
|
+
headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
691
691
|
/**
|
|
692
692
|
* Custom template of clear icon.
|
|
693
693
|
* @group Templates
|
|
694
694
|
*/
|
|
695
|
-
clearIconTemplate;
|
|
695
|
+
clearIconTemplate = contentChild('clearicon', { ...(ngDevMode ? { debugName: "clearIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
696
696
|
/**
|
|
697
697
|
* Custom template of hide icon.
|
|
698
698
|
* @param {PasswordIconTemplateContext} context - icon context.
|
|
699
699
|
* @see {@link PasswordIconTemplateContext}
|
|
700
700
|
* @group Templates
|
|
701
701
|
*/
|
|
702
|
-
hideIconTemplate;
|
|
702
|
+
hideIconTemplate = contentChild('hideicon', { ...(ngDevMode ? { debugName: "hideIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
703
703
|
/**
|
|
704
704
|
* Custom template of show icon.
|
|
705
705
|
* @param {PasswordIconTemplateContext} context - icon context.
|
|
706
706
|
* @see {@link PasswordIconTemplateContext}
|
|
707
707
|
* @group Templates
|
|
708
708
|
*/
|
|
709
|
-
showIconTemplate;
|
|
710
|
-
templates;
|
|
709
|
+
showIconTemplate = contentChild('showicon', { ...(ngDevMode ? { debugName: "showIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
711
710
|
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
712
711
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
713
|
-
_contentTemplate;
|
|
714
|
-
_footerTemplate;
|
|
715
|
-
_headerTemplate;
|
|
716
|
-
_clearIconTemplate;
|
|
717
|
-
_hideIconTemplate;
|
|
718
|
-
_showIconTemplate;
|
|
719
712
|
overlayVisible = false;
|
|
720
713
|
meter;
|
|
721
714
|
infoText;
|
|
@@ -737,33 +730,6 @@ class Password extends BaseInput {
|
|
|
737
730
|
this.updateUI(this.value || '');
|
|
738
731
|
});
|
|
739
732
|
}
|
|
740
|
-
onAfterContentInit() {
|
|
741
|
-
this.templates.forEach((item) => {
|
|
742
|
-
switch (item.getType()) {
|
|
743
|
-
case 'content':
|
|
744
|
-
this._contentTemplate = item.template;
|
|
745
|
-
break;
|
|
746
|
-
case 'header':
|
|
747
|
-
this._headerTemplate = item.template;
|
|
748
|
-
break;
|
|
749
|
-
case 'footer':
|
|
750
|
-
this._footerTemplate = item.template;
|
|
751
|
-
break;
|
|
752
|
-
case 'clearicon':
|
|
753
|
-
this._clearIconTemplate = item.template;
|
|
754
|
-
break;
|
|
755
|
-
case 'hideicon':
|
|
756
|
-
this._hideIconTemplate = item.template;
|
|
757
|
-
break;
|
|
758
|
-
case 'showicon':
|
|
759
|
-
this._showIconTemplate = item.template;
|
|
760
|
-
break;
|
|
761
|
-
default:
|
|
762
|
-
this._contentTemplate = item.template;
|
|
763
|
-
break;
|
|
764
|
-
}
|
|
765
|
-
});
|
|
766
|
-
}
|
|
767
733
|
onInput(event) {
|
|
768
734
|
this.value = event.target.value;
|
|
769
735
|
this.onModelChange(this.value);
|
|
@@ -908,8 +874,8 @@ class Password extends BaseInput {
|
|
|
908
874
|
['overlay-' + this.$appendTo()]: 'overlay-' + this.$appendTo()
|
|
909
875
|
});
|
|
910
876
|
}
|
|
911
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
912
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
877
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: Password, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
878
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.1", type: Password, isStandalone: true, selector: "agl-password", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, promptLabel: { classPropertyName: "promptLabel", publicName: "promptLabel", isSignal: false, isRequired: false, transformFunction: null }, mediumRegex: { classPropertyName: "mediumRegex", publicName: "mediumRegex", isSignal: false, isRequired: false, transformFunction: null }, strongRegex: { classPropertyName: "strongRegex", publicName: "strongRegex", isSignal: false, isRequired: false, transformFunction: null }, weakLabel: { classPropertyName: "weakLabel", publicName: "weakLabel", isSignal: false, isRequired: false, transformFunction: null }, mediumLabel: { classPropertyName: "mediumLabel", publicName: "mediumLabel", isSignal: false, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: false, isRequired: false, transformFunction: numberAttribute }, strongLabel: { classPropertyName: "strongLabel", publicName: "strongLabel", isSignal: false, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: false, isRequired: false, transformFunction: null }, feedback: { classPropertyName: "feedback", publicName: "feedback", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, toggleMask: { classPropertyName: "toggleMask", publicName: "toggleMask", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: false, isRequired: false, transformFunction: null }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, overlayOptions: { classPropertyName: "overlayOptions", publicName: "overlayOptions", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClear: "onClear" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "style": "sx('root')", "attr.data-p": "containerDataP" } }, providers: [Password_VALUE_ACCESSOR, PasswordStyle, { provide: PASSWORD_INSTANCE, useExisting: Password }, { provide: PARENT_INSTANCE, useExisting: Password }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "hideIconTemplate", first: true, predicate: ["hideicon"], isSignal: true }, { propertyName: "showIconTemplate", first: true, predicate: ["showicon"], isSignal: true }], viewQueries: [{ propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
913
879
|
<input
|
|
914
880
|
#input
|
|
915
881
|
[attr.label]="label"
|
|
@@ -941,23 +907,23 @@ class Password extends BaseInput {
|
|
|
941
907
|
[unstyled]="unstyled()"
|
|
942
908
|
/>
|
|
943
909
|
<ng-container *ngIf="showClear && value != null">
|
|
944
|
-
<svg data-p-icon="times" *ngIf="!clearIconTemplate
|
|
910
|
+
<svg data-p-icon="times" *ngIf="!clearIconTemplate()" [class]="cx('clearIcon')" (click)="clear()" [aglBind]="ptm('clearIcon')" />
|
|
945
911
|
<span (click)="clear()" [class]="cx('clearIcon')" [aglBind]="ptm('clearIcon')">
|
|
946
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate
|
|
912
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate()"></ng-template>
|
|
947
913
|
</span>
|
|
948
914
|
</ng-container>
|
|
949
915
|
|
|
950
916
|
<ng-container *ngIf="toggleMask">
|
|
951
917
|
<ng-container *ngIf="unmasked">
|
|
952
|
-
<svg data-p-icon="eyeslash" [class]="cx('maskIcon')" [aglBind]="ptm('maskIcon')" *ngIf="!hideIconTemplate
|
|
953
|
-
<span *ngIf="hideIconTemplate
|
|
954
|
-
<ng-template *ngTemplateOutlet="hideIconTemplate
|
|
918
|
+
<svg data-p-icon="eyeslash" [class]="cx('maskIcon')" [aglBind]="ptm('maskIcon')" *ngIf="!hideIconTemplate()" (click)="onMaskToggle()" />
|
|
919
|
+
<span *ngIf="hideIconTemplate()" (click)="onMaskToggle()" [aglBind]="ptm('maskIcon')">
|
|
920
|
+
<ng-template *ngTemplateOutlet="hideIconTemplate(); context: { class: cx('maskIcon') }"></ng-template>
|
|
955
921
|
</span>
|
|
956
922
|
</ng-container>
|
|
957
923
|
<ng-container *ngIf="!unmasked">
|
|
958
|
-
<svg data-p-icon="eye" *ngIf="!showIconTemplate
|
|
959
|
-
<span *ngIf="showIconTemplate
|
|
960
|
-
<ng-template *ngTemplateOutlet="showIconTemplate
|
|
924
|
+
<svg data-p-icon="eye" *ngIf="!showIconTemplate()" [class]="cx('unmaskIcon')" [aglBind]="ptm('unmaskIcon')" (click)="onMaskToggle()" />
|
|
925
|
+
<span *ngIf="showIconTemplate()" (click)="onMaskToggle()" [aglBind]="ptm('unmaskIcon')">
|
|
926
|
+
<ng-template *ngTemplateOutlet="showIconTemplate(); context: { class: cx('unmaskIcon') }"></ng-template>
|
|
961
927
|
</span>
|
|
962
928
|
</ng-container>
|
|
963
929
|
</ng-container>
|
|
@@ -965,9 +931,9 @@ class Password extends BaseInput {
|
|
|
965
931
|
<agl-overlay #overlay [hostAttrSelector]="$attrSelector" [(visible)]="overlayVisible" [options]="overlayOptions" [target]="'@parent'" [appendTo]="$appendTo()" [unstyled]="unstyled()" [pt]="ptm('pcOverlay')" [motionOptions]="motionOptions()">
|
|
966
932
|
<ng-template #content>
|
|
967
933
|
<div [class]="cx('overlay')" [style]="sx('overlay')" (click)="onOverlayClick($event)" [aglBind]="ptm('overlay')" [attr.data-p]="overlayDataP">
|
|
968
|
-
<ng-container *ngTemplateOutlet="headerTemplate
|
|
969
|
-
<ng-container *ngIf="contentTemplate
|
|
970
|
-
<ng-container *ngTemplateOutlet="contentTemplate
|
|
934
|
+
<ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
|
|
935
|
+
<ng-container *ngIf="contentTemplate(); else defaultContent">
|
|
936
|
+
<ng-container *ngTemplateOutlet="contentTemplate()"></ng-container>
|
|
971
937
|
</ng-container>
|
|
972
938
|
<ng-template #defaultContent>
|
|
973
939
|
<div [class]="cx('content')" [aglBind]="ptm('content')">
|
|
@@ -977,13 +943,13 @@ class Password extends BaseInput {
|
|
|
977
943
|
<div [class]="cx('meterText')" [aglBind]="ptm('meterText')">{{ infoText }}</div>
|
|
978
944
|
</div>
|
|
979
945
|
</ng-template>
|
|
980
|
-
<ng-container *ngTemplateOutlet="footerTemplate
|
|
946
|
+
<ng-container *ngTemplateOutlet="footerTemplate()"></ng-container>
|
|
981
947
|
</div>
|
|
982
948
|
</ng-template>
|
|
983
949
|
</agl-overlay>
|
|
984
950
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: InputText, selector: "[aglInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "aglSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: AutoFocus, selector: "[aglAutoFocus]", inputs: ["aglAutoFocus"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: EyeSlashIcon, selector: "[data-p-icon=\"eyeslash\"]" }, { kind: "component", type: EyeIcon, selector: "[data-p-icon=\"eye\"]" }, { kind: "component", type: Overlay, selector: "agl-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onAnimationStart", "onAnimationDone", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[aglBind]", inputs: ["aglBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
985
951
|
}
|
|
986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: Password, decorators: [{
|
|
987
953
|
type: Component,
|
|
988
954
|
args: [{
|
|
989
955
|
selector: 'agl-password',
|
|
@@ -1021,23 +987,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1021
987
|
[unstyled]="unstyled()"
|
|
1022
988
|
/>
|
|
1023
989
|
<ng-container *ngIf="showClear && value != null">
|
|
1024
|
-
<svg data-p-icon="times" *ngIf="!clearIconTemplate
|
|
990
|
+
<svg data-p-icon="times" *ngIf="!clearIconTemplate()" [class]="cx('clearIcon')" (click)="clear()" [aglBind]="ptm('clearIcon')" />
|
|
1025
991
|
<span (click)="clear()" [class]="cx('clearIcon')" [aglBind]="ptm('clearIcon')">
|
|
1026
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate
|
|
992
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate()"></ng-template>
|
|
1027
993
|
</span>
|
|
1028
994
|
</ng-container>
|
|
1029
995
|
|
|
1030
996
|
<ng-container *ngIf="toggleMask">
|
|
1031
997
|
<ng-container *ngIf="unmasked">
|
|
1032
|
-
<svg data-p-icon="eyeslash" [class]="cx('maskIcon')" [aglBind]="ptm('maskIcon')" *ngIf="!hideIconTemplate
|
|
1033
|
-
<span *ngIf="hideIconTemplate
|
|
1034
|
-
<ng-template *ngTemplateOutlet="hideIconTemplate
|
|
998
|
+
<svg data-p-icon="eyeslash" [class]="cx('maskIcon')" [aglBind]="ptm('maskIcon')" *ngIf="!hideIconTemplate()" (click)="onMaskToggle()" />
|
|
999
|
+
<span *ngIf="hideIconTemplate()" (click)="onMaskToggle()" [aglBind]="ptm('maskIcon')">
|
|
1000
|
+
<ng-template *ngTemplateOutlet="hideIconTemplate(); context: { class: cx('maskIcon') }"></ng-template>
|
|
1035
1001
|
</span>
|
|
1036
1002
|
</ng-container>
|
|
1037
1003
|
<ng-container *ngIf="!unmasked">
|
|
1038
|
-
<svg data-p-icon="eye" *ngIf="!showIconTemplate
|
|
1039
|
-
<span *ngIf="showIconTemplate
|
|
1040
|
-
<ng-template *ngTemplateOutlet="showIconTemplate
|
|
1004
|
+
<svg data-p-icon="eye" *ngIf="!showIconTemplate()" [class]="cx('unmaskIcon')" [aglBind]="ptm('unmaskIcon')" (click)="onMaskToggle()" />
|
|
1005
|
+
<span *ngIf="showIconTemplate()" (click)="onMaskToggle()" [aglBind]="ptm('unmaskIcon')">
|
|
1006
|
+
<ng-template *ngTemplateOutlet="showIconTemplate(); context: { class: cx('unmaskIcon') }"></ng-template>
|
|
1041
1007
|
</span>
|
|
1042
1008
|
</ng-container>
|
|
1043
1009
|
</ng-container>
|
|
@@ -1045,9 +1011,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1045
1011
|
<agl-overlay #overlay [hostAttrSelector]="$attrSelector" [(visible)]="overlayVisible" [options]="overlayOptions" [target]="'@parent'" [appendTo]="$appendTo()" [unstyled]="unstyled()" [pt]="ptm('pcOverlay')" [motionOptions]="motionOptions()">
|
|
1046
1012
|
<ng-template #content>
|
|
1047
1013
|
<div [class]="cx('overlay')" [style]="sx('overlay')" (click)="onOverlayClick($event)" [aglBind]="ptm('overlay')" [attr.data-p]="overlayDataP">
|
|
1048
|
-
<ng-container *ngTemplateOutlet="headerTemplate
|
|
1049
|
-
<ng-container *ngIf="contentTemplate
|
|
1050
|
-
<ng-container *ngTemplateOutlet="contentTemplate
|
|
1014
|
+
<ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
|
|
1015
|
+
<ng-container *ngIf="contentTemplate(); else defaultContent">
|
|
1016
|
+
<ng-container *ngTemplateOutlet="contentTemplate()"></ng-container>
|
|
1051
1017
|
</ng-container>
|
|
1052
1018
|
<ng-template #defaultContent>
|
|
1053
1019
|
<div [class]="cx('content')" [aglBind]="ptm('content')">
|
|
@@ -1057,7 +1023,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1057
1023
|
<div [class]="cx('meterText')" [aglBind]="ptm('meterText')">{{ infoText }}</div>
|
|
1058
1024
|
</div>
|
|
1059
1025
|
</ng-template>
|
|
1060
|
-
<ng-container *ngTemplateOutlet="footerTemplate
|
|
1026
|
+
<ng-container *ngTemplateOutlet="footerTemplate()"></ng-container>
|
|
1061
1027
|
</div>
|
|
1062
1028
|
</ng-template>
|
|
1063
1029
|
</agl-overlay>
|
|
@@ -1138,34 +1104,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1138
1104
|
}], input: [{
|
|
1139
1105
|
type: ViewChild,
|
|
1140
1106
|
args: ['input']
|
|
1141
|
-
}], contentTemplate: [{
|
|
1142
|
-
type: ContentChild,
|
|
1143
|
-
args: ['content', { descendants: false }]
|
|
1144
|
-
}], footerTemplate: [{
|
|
1145
|
-
type: ContentChild,
|
|
1146
|
-
args: ['footer', { descendants: false }]
|
|
1147
|
-
}], headerTemplate: [{
|
|
1148
|
-
type: ContentChild,
|
|
1149
|
-
args: ['header', { descendants: false }]
|
|
1150
|
-
}], clearIconTemplate: [{
|
|
1151
|
-
type: ContentChild,
|
|
1152
|
-
args: ['clearicon', { descendants: false }]
|
|
1153
|
-
}], hideIconTemplate: [{
|
|
1154
|
-
type: ContentChild,
|
|
1155
|
-
args: ['hideicon', { descendants: false }]
|
|
1156
|
-
}], showIconTemplate: [{
|
|
1157
|
-
type: ContentChild,
|
|
1158
|
-
args: ['showicon', { descendants: false }]
|
|
1159
|
-
}], templates: [{
|
|
1160
|
-
type: ContentChildren,
|
|
1161
|
-
args: [AglTemplate]
|
|
1162
|
-
}] } });
|
|
1107
|
+
}], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], hideIconTemplate: [{ type: i0.ContentChild, args: ['hideicon', { ...{ descendants: false }, isSignal: true }] }], showIconTemplate: [{ type: i0.ContentChild, args: ['showicon', { ...{ descendants: false }, isSignal: true }] }] } });
|
|
1163
1108
|
class PasswordModule {
|
|
1164
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1165
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
1166
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
1109
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PasswordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1110
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: PasswordModule, imports: [Password, PasswordDirective, SharedModule, BindModule], exports: [PasswordDirective, Password, SharedModule, BindModule] });
|
|
1111
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PasswordModule, imports: [Password, SharedModule, BindModule, SharedModule, BindModule] });
|
|
1167
1112
|
}
|
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PasswordModule, decorators: [{
|
|
1169
1114
|
type: NgModule,
|
|
1170
1115
|
args: [{
|
|
1171
1116
|
imports: [Password, PasswordDirective, SharedModule, BindModule],
|