aril 0.0.8 → 0.0.13
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/esm2022/http/src/serviceBase.mjs +2 -3
- package/esm2022/i18n/aril-i18n.mjs +5 -0
- package/esm2022/i18n/index.mjs +6 -0
- package/esm2022/i18n/src/file-url-token.mjs +3 -0
- package/esm2022/i18n/src/i18n.module.mjs +17 -0
- package/esm2022/i18n/src/loader.mjs +20 -0
- package/esm2022/i18n/src/provideI18n.mjs +16 -0
- package/esm2022/i18n/src/provideScope.mjs +18 -0
- package/esm2022/ui/badge/src/badge.component.mjs +11 -17
- package/esm2022/ui/button/src/button.component.mjs +19 -34
- package/esm2022/ui/button/src/split-button.component.mjs +3 -3
- package/esm2022/ui/calendar/src/calendar.component.mjs +35 -56
- package/esm2022/ui/checkbox/src/check-box.component.mjs +7 -4
- package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +7 -4
- package/esm2022/ui/dxField/src/dx-field.component.mjs +9 -21
- package/esm2022/ui/field/src/field.component.mjs +19 -32
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +28 -57
- package/esm2022/ui/form/src/form-submit-button.component.mjs +22 -27
- package/esm2022/ui/form/src/form.component.mjs +7 -11
- package/esm2022/ui/lib/src/form/form-error-message.component.mjs +1 -5
- package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +8 -12
- package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +1 -5
- package/esm2022/ui/mask/src/mask.component.mjs +7 -4
- package/esm2022/ui/number/src/number.component.mjs +19 -40
- package/esm2022/ui/password/src/password.component.mjs +11 -16
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +14 -21
- package/esm2022/ui/selectBox/src/select-box.component.mjs +12 -24
- package/esm2022/ui/switch/src/switch.component.mjs +6 -6
- package/esm2022/ui/table/src/table.component.mjs +2 -1
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +12 -21
- package/esm2022/ui/text/src/text.component.mjs +24 -35
- package/esm2022/ui/textArea/src/text-area.component.mjs +11 -16
- package/esm2022/ui/tree/src/tree.component.mjs +3 -3
- package/esm2022/ui/value/src/value.component.mjs +26 -42
- package/esm2022/util/lib/index.mjs +2 -1
- package/esm2022/util/lib/src/module-router.mjs +16 -0
- package/fesm2022/aril-http.mjs +1 -2
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-i18n.mjs +72 -0
- package/fesm2022/aril-i18n.mjs.map +1 -0
- package/fesm2022/aril-ui-badge.mjs +10 -16
- package/fesm2022/aril-ui-badge.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs +21 -36
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-calendar.mjs +34 -55
- package/fesm2022/aril-ui-calendar.mjs.map +1 -1
- package/fesm2022/aril-ui-checkbox.mjs +11 -5
- package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
- package/fesm2022/aril-ui-dxField.mjs +8 -20
- package/fesm2022/aril-ui-dxField.mjs.map +1 -1
- package/fesm2022/aril-ui-field.mjs +18 -31
- package/fesm2022/aril-ui-field.mjs.map +1 -1
- package/fesm2022/aril-ui-fileUpload.mjs +27 -56
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +26 -36
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-lib.mjs +7 -19
- package/fesm2022/aril-ui-lib.mjs.map +1 -1
- package/fesm2022/aril-ui-mask.mjs +6 -3
- package/fesm2022/aril-ui-mask.mjs.map +1 -1
- package/fesm2022/aril-ui-number.mjs +18 -39
- package/fesm2022/aril-ui-number.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs +10 -15
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/fesm2022/aril-ui-radioButton.mjs +13 -20
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
- package/fesm2022/aril-ui-selectBox.mjs +11 -23
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
- package/fesm2022/aril-ui-switch.mjs +5 -5
- package/fesm2022/aril-ui-switch.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +1 -0
- package/fesm2022/aril-ui-table.mjs.map +1 -1
- package/fesm2022/aril-ui-tagBox.mjs +11 -20
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
- package/fesm2022/aril-ui-text.mjs +23 -34
- package/fesm2022/aril-ui-text.mjs.map +1 -1
- package/fesm2022/aril-ui-textArea.mjs +10 -15
- package/fesm2022/aril-ui-textArea.mjs.map +1 -1
- package/fesm2022/aril-ui-tree.mjs +2 -2
- package/fesm2022/aril-ui-tree.mjs.map +1 -1
- package/fesm2022/aril-ui-value.mjs +25 -41
- package/fesm2022/aril-ui-value.mjs.map +1 -1
- package/fesm2022/aril-util-lib.mjs +19 -0
- package/fesm2022/aril-util-lib.mjs.map +1 -1
- package/i18n/index.d.ts +5 -0
- package/i18n/src/file-url-token.d.ts +2 -0
- package/i18n/src/i18n.module.d.ts +7 -0
- package/i18n/src/loader.d.ts +9 -0
- package/i18n/src/provideI18n.d.ts +2 -0
- package/i18n/src/provideScope.d.ts +9 -0
- package/package.json +13 -7
- package/ui/badge/src/badge.component.d.ts +5 -5
- package/ui/button/src/button.component.d.ts +16 -19
- package/ui/calendar/src/calendar.component.d.ts +17 -20
- package/ui/dxField/src/dx-field.component.d.ts +5 -7
- package/ui/field/src/field.component.d.ts +9 -10
- package/ui/fileUpload/src/file-upload.component.d.ts +20 -19
- package/ui/form/src/form-submit-button.component.d.ts +5 -5
- package/ui/form/src/form.component.d.ts +2 -2
- package/ui/lib/src/form/form-error-message.directive.d.ts +2 -2
- package/ui/number/src/number.component.d.ts +19 -16
- package/ui/password/src/password.component.d.ts +5 -5
- package/ui/radioButton/src/radio-button.component.d.ts +8 -6
- package/ui/selectBox/src/select-box.component.d.ts +8 -8
- package/ui/tagBox/src/tag-box.component.d.ts +6 -6
- package/ui/text/src/text.component.d.ts +9 -9
- package/ui/textArea/src/text-area.component.d.ts +5 -5
- package/ui/value/src/value.component.d.ts +7 -9
- package/util/lib/index.d.ts +1 -0
- package/util/lib/src/module-router.d.ts +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-form.mjs","sources":["../../projects/aril/ui/form/src/form.component.ts","../../projects/aril/ui/form/src/form-submit-button.component.ts","../../projects/aril/ui/form/src/form-submit-button.component.html","../../projects/aril/ui/form/index.ts","../../projects/aril/ui/form/aril-ui-form.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component,
|
|
1
|
+
{"version":3,"file":"aril-ui-form.mjs","sources":["../../projects/aril/ui/form/src/form.component.ts","../../projects/aril/ui/form/src/form-submit-button.component.ts","../../projects/aril/ui/form/src/form-submit-button.component.html","../../projects/aril/ui/form/index.ts","../../projects/aril/ui/form/aril-ui-form.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { FlexGridDirective, FormErrorMessageDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tselector: 'aril-form',\r\n\ttemplate: ` <ng-content></ng-content> `,\r\n\thostDirectives: [\r\n\t\tFlexGridDirective,\r\n\t\t{\r\n\t\t\tdirective: FormErrorMessageDirective,\r\n\t\t\tinputs: ['formErrorMessage: formGroup']\r\n\t\t}\r\n\t],\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormComponent {\r\n\tformGroup = input.required<FormGroup>();\r\n}\r\n","import { ChangeDetectionStrategy, Component, EventEmitter, input, Output, inject } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { MessageService } from 'primeng/api';\r\n\r\nimport { ButtonComponent } from 'aril/ui/button';\r\nimport { checkValidInputs } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tselector: 'aril-form-submit:not([click])',\r\n\ttemplateUrl: './form-submit-button.component.html',\r\n\tchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormSubmitButtonComponent extends ButtonComponent {\r\n\tformGroup = input.required<FormGroup>();\r\n\r\n\t@Output() validEvent: EventEmitter<never> = new EventEmitter<never>();\r\n\t@Output() inValidEvent: EventEmitter<never> = new EventEmitter<never>();\r\n\r\n\tmessageService = inject(MessageService);\r\n\r\n\tsubmit() {\r\n\t\tcheckValidInputs(this.formGroup());\r\n\r\n\t\tif (this.formGroup().valid) this.validEvent.emit();\r\n\t\telse {\r\n\t\t\tthis.messageService.add({\r\n\t\t\t\tkey: 'toast-root',\r\n\t\t\t\tseverity: 'warn ',\r\n\t\t\t\tsummary: 'Form Hatası',\r\n\t\t\t\tdetail: 'Lütfen formdaki eksikleri gideriniz'\r\n\t\t\t});\r\n\t\t\tthis.inValidEvent.emit();\r\n\t\t}\r\n\t}\r\n}\r\n","<aril-button\n\t[label]=\"label()\"\n\t[loading]=\"formGroup().pending\"\n\t[disabled]=\"disabled()\"\n\t[raised]=\"raised()\"\n\t[outlined]=\"outlined()\"\n\t[badge]=\"badge()\"\n\t[size]=\"size()\"\n\t[icon]=\"icon()\"\n\t[color]=\"color()\"\n\t(clickEvent)=\"submit()\">\n</aril-button>\n","export * from './src/form.component';\nexport * from './src/form-submit-button.component';\n\nimport { NgModule } from '@angular/core';\n\nimport { ButtonComponent } from 'aril/ui/button';\n\nimport { FormComponent } from './src/form.component';\nimport { FormSubmitButtonComponent } from './src/form-submit-button.component';\n\nconst components = [FormComponent, FormSubmitButtonComponent];\n\n@NgModule({\n\timports: [ButtonComponent],\n\texports: [components],\n\tdeclarations: [components]\n})\nexport class ARiLFormModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;MAiBa,aAAa,CAAA;AAZ1B,IAAA,WAAA,GAAA;AAaC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAa,CAAC;AACxC,KAAA;8GAFY,aAAa,EAAA,IA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CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAd,cAAc,EAAA,YAAA,EAAA,CAPP,aAAa,EAAE,yBAAyB,aAGjD,eAAe,CAAA,EAAA,OAAA,EAAA,CAHN,aAAa,EAAE,yBAAyB,CAAA,EAAA,CAAA,CAAA,EAAA;AAO/C,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,cAAc,YAJhB,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIb,cAAc,EAAA,UAAA,EAAA,CAAA;kBAL1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,UAAU,CAAC;oBACrB,YAAY,EAAE,CAAC,UAAU,CAAC;AAC1B,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
|
package/fesm2022/aril-ui-lib.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, Input, Directive, HostBinding, inject, Injectable, Pipe } from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Input, input, Directive, HostBinding, inject, Injectable, Pipe } from '@angular/core';
|
|
3
3
|
import * as i1 from 'primeng/messages';
|
|
4
4
|
import { MessagesModule } from 'primeng/messages';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
@@ -7,10 +7,6 @@ import { FormControl, FormGroup, FormArray, NgControl, NgModel, FormControlName,
|
|
|
7
7
|
import 'aril/util/primitive-extensions';
|
|
8
8
|
import { PrimeIcons } from 'primeng/api';
|
|
9
9
|
|
|
10
|
-
/* TODO :
|
|
11
|
-
1. InputSignal
|
|
12
|
-
2. Use computed or effect instead of input setter
|
|
13
|
-
*/
|
|
14
10
|
class FormErrorMessagesComponent {
|
|
15
11
|
set messages(messages) {
|
|
16
12
|
this._pMessages = Object.values(messages).map((msg) => {
|
|
@@ -41,29 +37,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
41
37
|
}] } });
|
|
42
38
|
|
|
43
39
|
/* eslint-disable @angular-eslint/directive-selector */
|
|
44
|
-
/* TODO :
|
|
45
|
-
1. InputSignal
|
|
46
|
-
*/
|
|
47
40
|
class FormErrorMessageDirective {
|
|
48
41
|
constructor(viewContainerRef) {
|
|
49
42
|
this.viewContainerRef = viewContainerRef;
|
|
43
|
+
this.formErrorMessage = input.required();
|
|
50
44
|
this.errorKeys = [];
|
|
51
45
|
}
|
|
52
46
|
ngOnInit() {
|
|
53
|
-
this.formErrorMessage.statusChanges.subscribe((status) => {
|
|
47
|
+
this.formErrorMessage().statusChanges.subscribe((status) => {
|
|
54
48
|
if (this.componentRef)
|
|
55
49
|
this.viewContainerRef.remove();
|
|
56
50
|
if (status === 'INVALID') {
|
|
57
|
-
if (this.formErrorMessage.errors) {
|
|
51
|
+
if (this.formErrorMessage().errors) {
|
|
58
52
|
this.componentRef = this.viewContainerRef.createComponent(FormErrorMessagesComponent);
|
|
59
|
-
this.componentRef.instance.messages = this.formErrorMessage.errors;
|
|
53
|
+
this.componentRef.instance.messages = this.formErrorMessage().errors;
|
|
60
54
|
this.viewContainerRef.insert(this.componentRef.hostView);
|
|
61
55
|
}
|
|
62
56
|
}
|
|
63
57
|
});
|
|
64
58
|
}
|
|
65
59
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormErrorMessageDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
66
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
60
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.1.2", type: FormErrorMessageDirective, isStandalone: true, selector: "[formErrorMessage]", inputs: { formErrorMessage: { classPropertyName: "formErrorMessage", publicName: "formErrorMessage", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
67
61
|
}
|
|
68
62
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FormErrorMessageDirective, decorators: [{
|
|
69
63
|
type: Directive,
|
|
@@ -71,9 +65,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
71
65
|
standalone: true,
|
|
72
66
|
selector: '[formErrorMessage]'
|
|
73
67
|
}]
|
|
74
|
-
}], ctorParameters: () => [{ type: i0.ViewContainerRef }]
|
|
75
|
-
type: Input
|
|
76
|
-
}] } });
|
|
68
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef }] });
|
|
77
69
|
|
|
78
70
|
const checkValidInputs = (formGroup) => {
|
|
79
71
|
Object.keys(formGroup.controls).forEach((field) => {
|
|
@@ -256,10 +248,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
256
248
|
}]
|
|
257
249
|
}] });
|
|
258
250
|
|
|
259
|
-
/* TODO :
|
|
260
|
-
1. InputSignal
|
|
261
|
-
2. Use computed or effect instead of input setter
|
|
262
|
-
*/
|
|
263
251
|
class InputDisabledDirective {
|
|
264
252
|
constructor(ngControl) {
|
|
265
253
|
this.ngControl = ngControl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-lib.mjs","sources":["../../projects/aril/ui/lib/src/form/form-error-message.component.ts","../../projects/aril/ui/lib/src/form/form-error-message.directive.ts","../../projects/aril/ui/lib/src/form/form-validation.ts","../../projects/aril/ui/lib/src/form/form-field-builder.ts","../../projects/aril/ui/lib/src/grid/flex-grid.directive.ts","../../projects/aril/ui/lib/src/input/baseInput.ts","../../projects/aril/ui/lib/src/input/common-input-validators.service.ts","../../projects/aril/ui/lib/src/input/input-error-message.pipe.ts","../../projects/aril/ui/lib/src/input/dx-input-error-message.pipe.ts","../../projects/aril/ui/lib/src/input/input-disabled.directive.ts","../../projects/aril/ui/lib/src/input/input-transforms.ts","../../projects/aril/ui/lib/src/input/value-accessor.directive.ts","../../projects/aril/ui/lib/index.ts","../../projects/aril/ui/lib/aril-ui-lib.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { ValidationErrors } from '@angular/forms';\n\nimport { Message } from 'primeng/api';\nimport { MessagesModule } from 'primeng/messages';\n\n/* TODO : \n 1. InputSignal\n 2. Use computed or effect instead of input setter\n*/\n\n@Component({\n\tstandalone: true,\n\timports: [MessagesModule],\n\ttemplate: `\n\t\t<div class=\"flex gap-2 formErrorMessage\">\n\t\t\t<p-messages [(value)]=\"_pMessages\" [enableService]=\"false\" [closable]=\"false\"></p-messages>\n\t\t</div>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormErrorMessagesComponent {\n\t_pMessages!: Message[];\n\n\t@Input() set messages(messages: ValidationErrors | null) {\n\t\tthis._pMessages = Object.values(messages!).map((msg) => {\n\t\t\treturn { severity: 'error', summary: '', detail: msg };\n\t\t});\n\t}\n}\n","/* eslint-disable @angular-eslint/directive-selector */\n\nimport { ComponentRef, Directive, Input, OnInit, ViewContainerRef } from '@angular/core';\nimport { FormGroup } from '@angular/forms';\n\nimport { FormErrorMessagesComponent } from './form-error-message.component';\n\n/* TODO : \n 1. InputSignal\n*/\n\n@Directive({\n\tstandalone: true,\n\tselector: '[formErrorMessage]'\n})\nexport class FormErrorMessageDirective implements OnInit {\n\tconstructor(private viewContainerRef: ViewContainerRef) {}\n\n\t@Input() formErrorMessage!: FormGroup;\n\n\terrorKeys: string[] = [];\n\tcomponentRef!: ComponentRef<FormErrorMessagesComponent>;\n\n\tngOnInit(): void {\n\t\tthis.formErrorMessage.statusChanges.subscribe((status) => {\n\t\t\tif (this.componentRef) this.viewContainerRef.remove();\n\n\t\t\tif (status === 'INVALID') {\n\t\t\t\tif (this.formErrorMessage.errors) {\n\t\t\t\t\tthis.componentRef = this.viewContainerRef.createComponent(FormErrorMessagesComponent);\n\t\t\t\t\tthis.componentRef.instance.messages = this.formErrorMessage.errors;\n\t\t\t\t\tthis.viewContainerRef.insert(this.componentRef.hostView);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n}\n","import { FormArray, FormControl, FormGroup } from '@angular/forms';\n\nexport const checkValidInputs = (formGroup: FormGroup | FormArray) => {\n\tObject.keys(formGroup.controls).forEach((field) => {\n\t\tconst control = formGroup.get(field);\n\n\t\tif (control instanceof FormControl) {\n\t\t\tcontrol.markAsTouched({ onlySelf: true });\n\t\t\tcontrol.markAsDirty({ onlySelf: true });\n\t\t} else if (control instanceof FormGroup || control instanceof FormArray) {\n\t\t\tcheckValidInputs(control);\n\t\t}\n\t});\n};\n","import { FormControl, FormGroup, ValidatorFn } from '@angular/forms';\n\nexport const addControlsWithValidation = (\n\tform: FormGroup,\n\tcontrols: { name: string; validator?: ValidatorFn; disabled?: boolean }[]\n) => {\n\tcontrols.forEach((control) => {\n\t\tif (!form.contains(control.name)) {\n\t\t\tform.addControl(\n\t\t\t\tcontrol.name,\n\t\t\t\tnew FormControl({ value: '', disabled: control?.disabled || false }, control.validator)\n\t\t\t);\n\t\t}\n\t});\n};\n\nexport const removeControls = (form: FormGroup, controlNames: string[]) => {\n\tcontrolNames.forEach((controlName) => {\n\t\tif (form.contains(controlName)) {\n\t\t\tform.removeControl(controlName);\n\t\t}\n\t});\n};\n\nexport const updateValueAndValidities = (form: FormGroup, controlNames: string[]) => {\n\tcontrolNames.forEach((controlName) => {\n\t\tif (form.contains(controlName)) {\n\t\t\tform.get(controlName)?.updateValueAndValidity();\n\t\t}\n\t});\n};\n","/* eslint-disable @angular-eslint/directive-selector */\n\nimport { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n\tstandalone: true,\n\tselector: '[flexGrid]'\n})\nexport class FlexGridDirective {\n\t@HostBinding('class') hostClass = 'grid p-fluid m-0 p-0';\n}\n","import { inject } from '@angular/core';\nimport { FormControlDirective, FormControlName, NgControl, NgModel } from '@angular/forms';\n\nimport { TooltipOptions } from 'primeng/api';\n\nexport abstract class BaseInputComponent {\n\tngControl = injectNgControl();\n\n\ttooltipOptions: TooltipOptions = {\n\t\ttooltipPosition: 'top',\n\t\ttooltipEvent: 'focus',\n\t\ttooltipStyleClass: 'tooltipErrorMessage'\n\t};\n}\n\nexport function injectNgControl() {\n\tconst ngControl = inject(NgControl, { self: true, optional: true });\n\n\tif (!ngControl) throw new Error('NgModel or FormControlName or FormControlDirective is required');\n\n\tif (\n\t\tngControl instanceof NgModel ||\n\t\tngControl instanceof FormControlName ||\n\t\tngControl instanceof FormControlDirective\n\t) {\n\t\treturn ngControl;\n\t}\n\n\tthrow new Error('Something went wrong in InjectNgControl');\n}\n","import { Injectable } from '@angular/core';\nimport { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\n\nimport 'aril/util/primitive-extensions';\n\nexport type DateRangeFormat = 'minute' | 'hour' | 'day' | 'month' | 'year';\n\n@Injectable({\n\tprovidedIn: 'root'\n})\nexport class CommonInputValidatorsService {\n\t/**\n\t * @param sdCtrlName - name of the start date form control\n\t * @param edCtrlName - name of the end date form control\n\t * @param rangeValue - range between start and end date. Default value is 1\n\t * @param rangeFormat - format of the range. Default value is \"day\"\n\t */\n\tdateRange(sdCtrlName: string, edCtrlName: string, rangeValue = 0, rangeFormat: DateRangeFormat = 'day'): ValidatorFn {\n\t\treturn (control: AbstractControl): ValidationErrors | null => {\n\t\t\tconst start: number = control.get(sdCtrlName)?.value;\n\t\t\tconst end: number = control.get(edCtrlName)?.value;\n\n\t\t\tconst startJSDate = start.longToDate();\n\t\t\tconst endJSDate = end.longToDate();\n\n\t\t\tif (startJSDate && endJSDate) {\n\t\t\t\tconst isRangeValid = endJSDate.getTime() - startJSDate.getTime() > rangeValue;\n\n\t\t\t\treturn isRangeValid ? null : (\n\t\t\t\t\t\t{ dateRange: `The end date must be at least ${rangeValue} ${rangeFormat} bigger than the start date` }\n\t\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn null;\n\t\t};\n\t}\n\n\t/**\n\t * @description - pasword match vs.\n\t */\n\tstrictMatch(controlName: string, matchingControlName: string): ValidatorFn {\n\t\treturn (control: AbstractControl): ValidationErrors | null => {\n\t\t\tconst firstField = control.get(controlName);\n\t\t\tconst secondField = control.get(matchingControlName);\n\n\t\t\tif (!firstField || !secondField) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (firstField.value !== secondField.value) {\n\t\t\t\treturn { strictMatch: `${controlName} and ${matchingControlName} do not match` };\n\t\t\t}\n\n\t\t\treturn null;\n\t\t};\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n\tstandalone: true,\n\tname: 'inputErrorMessage'\n})\nexport class InputErrorMessagePipe implements PipeTransform {\n\ttransform(value: any, ...args: any[]): string {\n\t\tconst control = args[0];\n\t\tconst errorKeys = Object.keys(control.errors || {});\n\n\t\tif (errorKeys.length) {\n\t\t\tconst errorKey = errorKeys[0];\n\t\t\tconst errorValue = control.errors![errorKey];\n\n\t\t\tswitch (errorKey) {\n\t\t\t\tcase 'required':\n\t\t\t\t\treturn 'This field is required';\n\t\t\t\tcase 'min':\n\t\t\t\t\treturn `Minimum value is ${errorValue.min}`;\n\t\t\t\tcase 'max':\n\t\t\t\t\treturn `Maximum value is ${errorValue.max}`;\n\t\t\t\tcase 'minlength':\n\t\t\t\t\treturn `Minimum length is ${errorValue.requiredLength}`;\n\t\t\t\tcase 'maxlength':\n\t\t\t\t\treturn `Maximum length is ${errorValue.requiredLength}`;\n\t\t\t\tcase 'email':\n\t\t\t\t\treturn 'Invalid email';\n\t\t\t\tcase 'pattern':\n\t\t\t\t\treturn 'Invalid format';\n\t\t\t\tdefault:\n\t\t\t\t\treturn errorValue;\n\t\t\t}\n\t\t}\n\n\t\treturn '';\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Pipe, PipeTransform, inject } from '@angular/core';\n\nimport { InputErrorMessagePipe } from './input-error-message.pipe';\n\n@Pipe({\n\tstandalone: true,\n\tname: 'dxInputErrorMessage'\n})\nexport class DXInputErrorMessagePipe implements PipeTransform {\n\terrorMsgPipe = inject(InputErrorMessagePipe);\n\n\ttransform(value: any, ...args: any[]): { message: string } {\n\t\treturn { message: this.errorMsgPipe.transform(value, ...args) };\n\t}\n}\n","import { Directive, Input } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\n/* TODO : \n 1. InputSignal\n 2. Use computed or effect instead of input setter\n*/\n\n@Directive({\n\tstandalone: true,\n\tselector: '[arilDisabled]'\n})\nexport class InputDisabledDirective {\n\tconstructor(private ngControl: NgControl) {}\n\n\t@Input() set arilDisabled(condition: boolean) {\n\t\tconst action = condition ? 'disable' : 'enable';\n\t\tif (this.ngControl.control) this.ngControl.control[action]();\n\t}\n}\n","import { PrimeIcons } from 'primeng/api';\n\nexport type PrimeIcon = Exclude<keyof typeof PrimeIcons, 'prototype'>;\nexport function iconTransform(icon: PrimeIcon): string {\n\treturn PrimeIcons[icon];\n}\n\nexport type IconPosTypes = 'right' | 'left';\nexport function iconPosTransform(pos: IconPosTypes): string {\n\treturn 'p-input-icon-' + pos;\n}\n","/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Directive } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Directive({\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tmulti: true,\n\t\t\tuseExisting: ValueAccessorDirective\n\t\t}\n\t]\n})\nexport class ValueAccessorDirective implements ControlValueAccessor {\n\twriteValue(obj: any): void {\n\t\treturn;\n\t}\n\tregisterOnChange(fn: any): void {\n\t\treturn;\n\t}\n\tregisterOnTouched(fn: any): void {\n\t\treturn;\n\t}\n}\n","/* form */\nexport * from './src/form/form-error-message.directive';\nexport * from './src/form/form-validation';\nexport * from './src/form/form-field-builder';\n\n/* grid */\nexport * from './src/grid/flex-grid.directive';\n\n/* input */\nexport * from './src/input/baseInput';\nexport * from './src/input/common-input-validators.service';\nexport * from './src/input/dx-input-error-message.pipe';\nexport * from './src/input/input-disabled.directive';\nexport * from './src/input/input-error-message.pipe';\nexport * from './src/input/input-transforms';\nexport * from './src/input/value-accessor.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;AAMA;;;AAGE;MAYW,0BAA0B,CAAA;IAGtC,IAAa,QAAQ,CAAC,QAAiC,EAAA;AACtD,QAAA,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAI;AACtD,YAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AACxD,SAAC,CAAC,CAAC;KACH;8GAPW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,EAP5B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,C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IACjD,OAAO,eAAe,GAAG,GAAG,CAAC;AAC9B;;ACVA;AACA;MAea,sBAAsB,CAAA;AAClC,IAAA,UAAU,CAAC,GAAQ,EAAA;QAClB,OAAO;KACP;AACD,IAAA,gBAAgB,CAAC,EAAO,EAAA;QACvB,OAAO;KACP;AACD,IAAA,iBAAiB,CAAC,EAAO,EAAA;QACxB,OAAO;KACP;8GATW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EARvB,YAAA,EAAA,IAAA,EAAA,SAAA,EAAA;AACV,YAAA;AACC,gBAAA,OAAO,EAAE,iBAAiB;AAC1B,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,WAAW,EAAE,sBAAsB;AACnC,aAAA;AACD,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAEW,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAVlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,WAAW,EAAwB,sBAAA;AACnC,yBAAA;AACD,qBAAA;AACD,iBAAA,CAAA;;;ACfD;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"aril-ui-lib.mjs","sources":["../../projects/aril/ui/lib/src/form/form-error-message.component.ts","../../projects/aril/ui/lib/src/form/form-error-message.directive.ts","../../projects/aril/ui/lib/src/form/form-validation.ts","../../projects/aril/ui/lib/src/form/form-field-builder.ts","../../projects/aril/ui/lib/src/grid/flex-grid.directive.ts","../../projects/aril/ui/lib/src/input/baseInput.ts","../../projects/aril/ui/lib/src/input/common-input-validators.service.ts","../../projects/aril/ui/lib/src/input/input-error-message.pipe.ts","../../projects/aril/ui/lib/src/input/dx-input-error-message.pipe.ts","../../projects/aril/ui/lib/src/input/input-disabled.directive.ts","../../projects/aril/ui/lib/src/input/input-transforms.ts","../../projects/aril/ui/lib/src/input/value-accessor.directive.ts","../../projects/aril/ui/lib/index.ts","../../projects/aril/ui/lib/aril-ui-lib.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { ValidationErrors } from '@angular/forms';\n\nimport { Message } from 'primeng/api';\nimport { MessagesModule } from 'primeng/messages';\n\n@Component({\n\tstandalone: true,\n\timports: [MessagesModule],\n\ttemplate: `\n\t\t<div class=\"flex gap-2 formErrorMessage\">\n\t\t\t<p-messages [(value)]=\"_pMessages\" [enableService]=\"false\" [closable]=\"false\"></p-messages>\n\t\t</div>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormErrorMessagesComponent {\n\t_pMessages!: Message[];\n\n\t@Input() set messages(messages: ValidationErrors | null) {\n\t\tthis._pMessages = Object.values(messages!).map((msg) => {\n\t\t\treturn { severity: 'error', summary: '', detail: msg };\n\t\t});\n\t}\n}\n","/* eslint-disable @angular-eslint/directive-selector */\n\nimport { ComponentRef, Directive, input, OnInit, ViewContainerRef } from '@angular/core';\nimport { FormGroup } from '@angular/forms';\n\nimport { FormErrorMessagesComponent } from './form-error-message.component';\n\n@Directive({\n\tstandalone: true,\n\tselector: '[formErrorMessage]'\n})\nexport class FormErrorMessageDirective implements OnInit {\n\tconstructor(private viewContainerRef: ViewContainerRef) {}\n\n\tformErrorMessage = input.required<FormGroup>();\n\n\terrorKeys: string[] = [];\n\tcomponentRef!: ComponentRef<FormErrorMessagesComponent>;\n\n\tngOnInit(): void {\n\t\tthis.formErrorMessage().statusChanges.subscribe((status) => {\n\t\t\tif (this.componentRef) this.viewContainerRef.remove();\n\n\t\t\tif (status === 'INVALID') {\n\t\t\t\tif (this.formErrorMessage().errors) {\n\t\t\t\t\tthis.componentRef = this.viewContainerRef.createComponent(FormErrorMessagesComponent);\n\t\t\t\t\tthis.componentRef.instance.messages = this.formErrorMessage().errors;\n\t\t\t\t\tthis.viewContainerRef.insert(this.componentRef.hostView);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n}\n","import { FormArray, FormControl, FormGroup } from '@angular/forms';\n\nexport const checkValidInputs = (formGroup: FormGroup | FormArray) => {\n\tObject.keys(formGroup.controls).forEach((field) => {\n\t\tconst control = formGroup.get(field);\n\n\t\tif (control instanceof FormControl) {\n\t\t\tcontrol.markAsTouched({ onlySelf: true });\n\t\t\tcontrol.markAsDirty({ onlySelf: true });\n\t\t} else if (control instanceof FormGroup || control instanceof FormArray) {\n\t\t\tcheckValidInputs(control);\n\t\t}\n\t});\n};\n","import { FormControl, FormGroup, ValidatorFn } from '@angular/forms';\n\nexport const addControlsWithValidation = (\n\tform: FormGroup,\n\tcontrols: { name: string; validator?: ValidatorFn; disabled?: boolean }[]\n) => {\n\tcontrols.forEach((control) => {\n\t\tif (!form.contains(control.name)) {\n\t\t\tform.addControl(\n\t\t\t\tcontrol.name,\n\t\t\t\tnew FormControl({ value: '', disabled: control?.disabled || false }, control.validator)\n\t\t\t);\n\t\t}\n\t});\n};\n\nexport const removeControls = (form: FormGroup, controlNames: string[]) => {\n\tcontrolNames.forEach((controlName) => {\n\t\tif (form.contains(controlName)) {\n\t\t\tform.removeControl(controlName);\n\t\t}\n\t});\n};\n\nexport const updateValueAndValidities = (form: FormGroup, controlNames: string[]) => {\n\tcontrolNames.forEach((controlName) => {\n\t\tif (form.contains(controlName)) {\n\t\t\tform.get(controlName)?.updateValueAndValidity();\n\t\t}\n\t});\n};\n","/* eslint-disable @angular-eslint/directive-selector */\n\nimport { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n\tstandalone: true,\n\tselector: '[flexGrid]'\n})\nexport class FlexGridDirective {\n\t@HostBinding('class') hostClass = 'grid p-fluid m-0 p-0';\n}\n","import { inject } from '@angular/core';\nimport { FormControlDirective, FormControlName, NgControl, NgModel } from '@angular/forms';\n\nimport { TooltipOptions } from 'primeng/api';\n\nexport abstract class BaseInputComponent {\n\tngControl = injectNgControl();\n\n\ttooltipOptions: TooltipOptions = {\n\t\ttooltipPosition: 'top',\n\t\ttooltipEvent: 'focus',\n\t\ttooltipStyleClass: 'tooltipErrorMessage'\n\t};\n}\n\nexport function injectNgControl() {\n\tconst ngControl = inject(NgControl, { self: true, optional: true });\n\n\tif (!ngControl) throw new Error('NgModel or FormControlName or FormControlDirective is required');\n\n\tif (\n\t\tngControl instanceof NgModel ||\n\t\tngControl instanceof FormControlName ||\n\t\tngControl instanceof FormControlDirective\n\t) {\n\t\treturn ngControl;\n\t}\n\n\tthrow new Error('Something went wrong in InjectNgControl');\n}\n","import { Injectable } from '@angular/core';\nimport { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\n\nimport 'aril/util/primitive-extensions';\n\nexport type DateRangeFormat = 'minute' | 'hour' | 'day' | 'month' | 'year';\n\n@Injectable({\n\tprovidedIn: 'root'\n})\nexport class CommonInputValidatorsService {\n\t/**\n\t * @param sdCtrlName - name of the start date form control\n\t * @param edCtrlName - name of the end date form control\n\t * @param rangeValue - range between start and end date. Default value is 1\n\t * @param rangeFormat - format of the range. Default value is \"day\"\n\t */\n\tdateRange(sdCtrlName: string, edCtrlName: string, rangeValue = 0, rangeFormat: DateRangeFormat = 'day'): ValidatorFn {\n\t\treturn (control: AbstractControl): ValidationErrors | null => {\n\t\t\tconst start: number = control.get(sdCtrlName)?.value;\n\t\t\tconst end: number = control.get(edCtrlName)?.value;\n\n\t\t\tconst startJSDate = start.longToDate();\n\t\t\tconst endJSDate = end.longToDate();\n\n\t\t\tif (startJSDate && endJSDate) {\n\t\t\t\tconst isRangeValid = endJSDate.getTime() - startJSDate.getTime() > rangeValue;\n\n\t\t\t\treturn isRangeValid ? null : (\n\t\t\t\t\t\t{ dateRange: `The end date must be at least ${rangeValue} ${rangeFormat} bigger than the start date` }\n\t\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn null;\n\t\t};\n\t}\n\n\t/**\n\t * @description - pasword match vs.\n\t */\n\tstrictMatch(controlName: string, matchingControlName: string): ValidatorFn {\n\t\treturn (control: AbstractControl): ValidationErrors | null => {\n\t\t\tconst firstField = control.get(controlName);\n\t\t\tconst secondField = control.get(matchingControlName);\n\n\t\t\tif (!firstField || !secondField) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (firstField.value !== secondField.value) {\n\t\t\t\treturn { strictMatch: `${controlName} and ${matchingControlName} do not match` };\n\t\t\t}\n\n\t\t\treturn null;\n\t\t};\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n\tstandalone: true,\n\tname: 'inputErrorMessage'\n})\nexport class InputErrorMessagePipe implements PipeTransform {\n\ttransform(value: any, ...args: any[]): string {\n\t\tconst control = args[0];\n\t\tconst errorKeys = Object.keys(control.errors || {});\n\n\t\tif (errorKeys.length) {\n\t\t\tconst errorKey = errorKeys[0];\n\t\t\tconst errorValue = control.errors![errorKey];\n\n\t\t\tswitch (errorKey) {\n\t\t\t\tcase 'required':\n\t\t\t\t\treturn 'This field is required';\n\t\t\t\tcase 'min':\n\t\t\t\t\treturn `Minimum value is ${errorValue.min}`;\n\t\t\t\tcase 'max':\n\t\t\t\t\treturn `Maximum value is ${errorValue.max}`;\n\t\t\t\tcase 'minlength':\n\t\t\t\t\treturn `Minimum length is ${errorValue.requiredLength}`;\n\t\t\t\tcase 'maxlength':\n\t\t\t\t\treturn `Maximum length is ${errorValue.requiredLength}`;\n\t\t\t\tcase 'email':\n\t\t\t\t\treturn 'Invalid email';\n\t\t\t\tcase 'pattern':\n\t\t\t\t\treturn 'Invalid format';\n\t\t\t\tdefault:\n\t\t\t\t\treturn errorValue;\n\t\t\t}\n\t\t}\n\n\t\treturn '';\n\t}\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Pipe, PipeTransform, inject } from '@angular/core';\n\nimport { InputErrorMessagePipe } from './input-error-message.pipe';\n\n@Pipe({\n\tstandalone: true,\n\tname: 'dxInputErrorMessage'\n})\nexport class DXInputErrorMessagePipe implements PipeTransform {\n\terrorMsgPipe = inject(InputErrorMessagePipe);\n\n\ttransform(value: any, ...args: any[]): { message: string } {\n\t\treturn { message: this.errorMsgPipe.transform(value, ...args) };\n\t}\n}\n","import { Directive, Input } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\n@Directive({\n\tstandalone: true,\n\tselector: '[arilDisabled]'\n})\nexport class InputDisabledDirective {\n\tconstructor(private ngControl: NgControl) {}\n\n\t@Input() set arilDisabled(condition: boolean) {\n\t\tconst action = condition ? 'disable' : 'enable';\n\t\tif (this.ngControl.control) this.ngControl.control[action]();\n\t}\n}\n","import { PrimeIcons } from 'primeng/api';\n\nexport type PrimeIcon = Exclude<keyof typeof PrimeIcons, 'prototype'>;\nexport function iconTransform(icon: PrimeIcon): string {\n\treturn PrimeIcons[icon];\n}\n\nexport type IconPosTypes = 'right' | 'left';\nexport function iconPosTransform(pos: IconPosTypes): string {\n\treturn 'p-input-icon-' + pos;\n}\n","/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Directive } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Directive({\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tmulti: true,\n\t\t\tuseExisting: ValueAccessorDirective\n\t\t}\n\t]\n})\nexport class ValueAccessorDirective implements ControlValueAccessor {\n\twriteValue(obj: any): void {\n\t\treturn;\n\t}\n\tregisterOnChange(fn: any): void {\n\t\treturn;\n\t}\n\tregisterOnTouched(fn: any): void {\n\t\treturn;\n\t}\n}\n","/* form */\nexport * from './src/form/form-error-message.directive';\nexport * from './src/form/form-validation';\nexport * from './src/form/form-field-builder';\n\n/* grid */\nexport * from './src/grid/flex-grid.directive';\n\n/* input */\nexport * from './src/input/baseInput';\nexport * from './src/input/common-input-validators.service';\nexport * from './src/input/dx-input-error-message.pipe';\nexport * from './src/input/input-disabled.directive';\nexport * from './src/input/input-error-message.pipe';\nexport * from './src/input/input-transforms';\nexport * from './src/input/value-accessor.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;MAgBa,0BAA0B,CAAA;IAGtC,IAAa,QAAQ,CAAC,QAAiC,EAAA;AACtD,QAAA,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAS,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAI;AACtD,YAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AACxD,SAAC,CAAC,CAAC;KACH;8GAPW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,EAP5B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EALS,cAAc,EAAA,EAAA,EAAA,IAAA,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;IACjD,OAAO,eAAe,GAAG,GAAG,CAAC;AAC9B;;ACVA;AACA;MAea,sBAAsB,CAAA;AAClC,IAAA,UAAU,CAAC,GAAQ,EAAA;QAClB,OAAO;KACP;AACD,IAAA,gBAAgB,CAAC,EAAO,EAAA;QACvB,OAAO;KACP;AACD,IAAA,iBAAiB,CAAC,EAAO,EAAA;QACxB,OAAO;KACP;8GATW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EARvB,YAAA,EAAA,IAAA,EAAA,SAAA,EAAA;AACV,YAAA;AACC,gBAAA,OAAO,EAAE,iBAAiB;AAC1B,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,WAAW,EAAE,sBAAsB;AACnC,aAAA;AACD,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAEW,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAVlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,WAAW,EAAwB,sBAAA;AACnC,yBAAA;AACD,qBAAA;AACD,iBAAA,CAAA;;;ACfD;;ACAA;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, Component
|
|
2
|
+
import { input, Component } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import { NgStyle } from '@angular/common';
|
|
@@ -15,6 +15,9 @@ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } fro
|
|
|
15
15
|
* ? - optional characters
|
|
16
16
|
* formatting characters -> (), -
|
|
17
17
|
*/
|
|
18
|
+
/* TODO
|
|
19
|
+
1. HostAttributeToken
|
|
20
|
+
*/
|
|
18
21
|
class MaskComponent extends BaseInputComponent {
|
|
19
22
|
constructor() {
|
|
20
23
|
super(...arguments);
|
|
@@ -27,11 +30,11 @@ class MaskComponent extends BaseInputComponent {
|
|
|
27
30
|
this.showTooltip = false;
|
|
28
31
|
}
|
|
29
32
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: MaskComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: MaskComponent, isStandalone: true, selector: "aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]", inputs: { mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: true, transformFunction: null }, slotChar: { classPropertyName: "slotChar", publicName: "slotChar", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, usageInGrid: { classPropertyName: "usageInGrid", publicName: "usageInGrid", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<div style=\"position: relative\" [ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\n\t<p-inputMask\n\t\t[mask]=\"mask()\"\n\t\t[slotChar]=\"slotChar()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[maxlength]=\"maxlength()\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\n\t\t(onFocus)=\"showTooltip = true\"\n\t\t(onBlur)=\"showTooltip = false\">\n\t</p-inputMask>\n\t@if (ngControl.invalid && showTooltip) {\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\n\t\t</div>\n\t}\n</div>\n", styles: [".custom-tooltip{position:absolute;background-color:#dc143c;color:#fff;padding:.75rem;border-radius:6px;z-index:1001;top:-107%;left:50%;transform:translate(-50%);white-space:nowrap}.custom-tooltip:before{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:3px;border-style:solid;border-color:var(--primary-color) transparent transparent transparent}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: InputMaskModule }, { kind: "component", type: i3.InputMask, selector: "p-inputMask", inputs: ["type", "slotChar", "autoClear", "showClear", "style", "inputId", "styleClass", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaLabelledBy", "ariaRequired", "disabled", "readonly", "unmask", "name", "required", "characterPattern", "autoFocus", "autocomplete", "keepBuffer", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown", "onClear"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }]
|
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: MaskComponent, isStandalone: true, selector: "aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]", inputs: { mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: true, transformFunction: null }, slotChar: { classPropertyName: "slotChar", publicName: "slotChar", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, usageInGrid: { classPropertyName: "usageInGrid", publicName: "usageInGrid", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<div style=\"position: relative\" [ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\n\t<p-inputMask\n\t\t[mask]=\"mask()\"\n\t\t[slotChar]=\"slotChar()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[maxlength]=\"maxlength()\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\n\t\t(onFocus)=\"showTooltip = true\"\n\t\t(onBlur)=\"showTooltip = false\">\n\t</p-inputMask>\n\t@if (ngControl.invalid && showTooltip) {\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\n\t\t</div>\n\t}\n</div>\n", styles: [".custom-tooltip{position:absolute;background-color:#dc143c;color:#fff;padding:.75rem;border-radius:6px;z-index:1001;top:-107%;left:50%;transform:translate(-50%);white-space:nowrap}.custom-tooltip:before{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:3px;border-style:solid;border-color:var(--primary-color) transparent transparent transparent}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: InputMaskModule }, { kind: "component", type: i3.InputMask, selector: "p-inputMask", inputs: ["type", "slotChar", "autoClear", "showClear", "style", "inputId", "styleClass", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaLabelledBy", "ariaRequired", "disabled", "readonly", "unmask", "name", "required", "characterPattern", "autoFocus", "autocomplete", "keepBuffer", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown", "onClear"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
31
34
|
}
|
|
32
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: MaskComponent, decorators: [{
|
|
33
36
|
type: Component,
|
|
34
|
-
args: [{ standalone: true, selector: 'aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]', imports: [ReactiveFormsModule, NgStyle, InputMaskModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective],
|
|
37
|
+
args: [{ standalone: true, selector: 'aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]', imports: [ReactiveFormsModule, NgStyle, InputMaskModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<div style=\"position: relative\" [ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\n\t<p-inputMask\n\t\t[mask]=\"mask()\"\n\t\t[slotChar]=\"slotChar()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[maxlength]=\"maxlength()\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\n\t\t(onFocus)=\"showTooltip = true\"\n\t\t(onBlur)=\"showTooltip = false\">\n\t</p-inputMask>\n\t@if (ngControl.invalid && showTooltip) {\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\n\t\t</div>\n\t}\n</div>\n", styles: [".custom-tooltip{position:absolute;background-color:#dc143c;color:#fff;padding:.75rem;border-radius:6px;z-index:1001;top:-107%;left:50%;transform:translate(-50%);white-space:nowrap}.custom-tooltip:before{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:3px;border-style:solid;border-color:var(--primary-color) transparent transparent transparent}\n"] }]
|
|
35
38
|
}] });
|
|
36
39
|
|
|
37
40
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-mask.mjs","sources":["../../projects/aril/ui/mask/src/mask.component.ts","../../projects/aril/ui/mask/src/mask.component.html","../../projects/aril/ui/mask/aril-ui-mask.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"aril-ui-mask.mjs","sources":["../../projects/aril/ui/mask/src/mask.component.ts","../../projects/aril/ui/mask/src/mask.component.html","../../projects/aril/ui/mask/aril-ui-mask.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NgStyle } from '@angular/common';\n\nimport { InputMaskModule } from 'primeng/inputmask';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n/**\n * a - alphabetic characters\n * 9 - numeric characters\n * * - alphanumeric characters\n * ? - optional characters\n * formatting characters -> (), -\n */\n\n/* TODO\n 1. HostAttributeToken\n*/\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]',\n\ttemplateUrl: './mask.component.html',\n\tstyleUrl: './mask.component.css',\n\timports: [ReactiveFormsModule, NgStyle, InputMaskModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class MaskComponent extends BaseInputComponent {\n\tmask = input.required<string>();\n\tslotChar = input<string>('_');\n\tplaceholder = input<string>();\n\tmaxlength = input<number>(100);\n\tusageInGrid = input<boolean>(true);\n\ttabindex = input<number>();\n\n\tshowTooltip = false;\n}\n","<div style=\"position: relative\" [ngStyle]=\"!usageInGrid ? { display: 'inline-block' } : {}\">\n\t<p-inputMask\n\t\t[mask]=\"mask()\"\n\t\t[slotChar]=\"slotChar()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[maxlength]=\"maxlength()\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"\n\t\t(onFocus)=\"showTooltip = true\"\n\t\t(onBlur)=\"showTooltip = false\">\n\t</p-inputMask>\n\t@if (ngControl.invalid && showTooltip) {\n\t\t<div class=\"custom-tooltip tooltipErrorMessage\">\n\t\t\t{{ ngControl.control.value | inputErrorMessage: ngControl }}\n\t\t</div>\n\t}\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQA;;;;;;AAMG;AAEH;;AAEE;AAUI,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AARrD,IAAA,WAAA,GAAA;;AASC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;AAChC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,GAAG,CAAC,CAAC;QAC9B,IAAW,CAAA,WAAA,GAAG,KAAK,EAAU,CAAC;AAC9B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,GAAG,CAAC,CAAC;AAC/B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;QACnC,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;QAE3B,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC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AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { input, computed, Component } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import * as i4 from 'primeng/tooltip';
|
|
@@ -12,49 +12,28 @@ import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } fro
|
|
|
12
12
|
class NumberComponent extends BaseInputComponent {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
this.min = input();
|
|
16
|
+
this.max = input();
|
|
17
|
+
this.showButtons = input(false);
|
|
18
|
+
this.placeholder = input();
|
|
19
|
+
this.prefix = input();
|
|
20
|
+
this.suffix = input();
|
|
21
|
+
this.maxlength = input();
|
|
22
|
+
this.showClear = input(false);
|
|
23
|
+
this.useGrouping = input(true);
|
|
24
|
+
this.maxDigits = input();
|
|
25
|
+
this.minDigits = input();
|
|
26
|
+
this.tabindex = input();
|
|
27
|
+
this.buttonLayout = input('stacked');
|
|
28
|
+
this._style = computed(() => (this.buttonLayout() == 'vertical' ? { width: '3rem' } : {}));
|
|
24
29
|
}
|
|
25
30
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: NumberComponent, isStandalone: true, selector: "aril-number[ngModel], aril-number[formControl], aril-number[formControlName]", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, showButtons: { classPropertyName: "showButtons", publicName: "showButtons", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, maxDigits: { classPropertyName: "maxDigits", publicName: "maxDigits", isSignal: true, isRequired: false, transformFunction: null }, minDigits: { classPropertyName: "minDigits", publicName: "minDigits", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, buttonLayout: { classPropertyName: "buttonLayout", publicName: "buttonLayout", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-inputNumber\n\t[min]=\"min()\"\n\t[max]=\"max()\"\n\tmode=\"decimal\"\n\tlocale=\"en-US\"\n\t[prefix]=\"prefix()\"\n\t[suffix]=\"suffix()\"\n\t[maxlength]=\"maxlength()\"\n\t[showClear]=\"showClear()\"\n\t[style]=\"_style()\"\n\t[tabindex]=\"tabindex()\"\n\tspinnerMode=\"vertical\"\n\t[useGrouping]=\"useGrouping()\"\n\t[placeholder]=\"placeholder()\"\n\t[showButtons]=\"showButtons()\"\n\t[maxFractionDigits]=\"maxDigits()\"\n\t[minFractionDigits]=\"minDigits()\"\n\t[buttonLayout]=\"buttonLayout()\"\n\tincrementButtonClass=\"p-button-info\"\n\tdecrementButtonClass=\"p-button-danger\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-inputNumber>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i3.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabelledBy", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
27
32
|
}
|
|
28
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NumberComponent, decorators: [{
|
|
29
34
|
type: Component,
|
|
30
|
-
args: [{ standalone: true, selector: 'aril-number[ngModel], aril-number[formControl], aril-number[formControlName]', imports: [ReactiveFormsModule, InputNumberModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective],
|
|
31
|
-
}]
|
|
32
|
-
type: Input
|
|
33
|
-
}], max: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], showButtons: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], placeholder: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], prefix: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], suffix: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], maxlength: [{
|
|
44
|
-
type: Input
|
|
45
|
-
}], showClear: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], useGrouping: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], maxDigits: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], minDigits: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], tabindex: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], buttonLayout: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}] } });
|
|
35
|
+
args: [{ standalone: true, selector: 'aril-number[ngModel], aril-number[formControl], aril-number[formControlName]', imports: [ReactiveFormsModule, InputNumberModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-inputNumber\n\t[min]=\"min()\"\n\t[max]=\"max()\"\n\tmode=\"decimal\"\n\tlocale=\"en-US\"\n\t[prefix]=\"prefix()\"\n\t[suffix]=\"suffix()\"\n\t[maxlength]=\"maxlength()\"\n\t[showClear]=\"showClear()\"\n\t[style]=\"_style()\"\n\t[tabindex]=\"tabindex()\"\n\tspinnerMode=\"vertical\"\n\t[useGrouping]=\"useGrouping()\"\n\t[placeholder]=\"placeholder()\"\n\t[showButtons]=\"showButtons()\"\n\t[maxFractionDigits]=\"maxDigits()\"\n\t[minFractionDigits]=\"minDigits()\"\n\t[buttonLayout]=\"buttonLayout()\"\n\tincrementButtonClass=\"p-button-info\"\n\tdecrementButtonClass=\"p-button-danger\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-inputNumber>\n" }]
|
|
36
|
+
}] });
|
|
58
37
|
|
|
59
38
|
/**
|
|
60
39
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-number.mjs","sources":["../../projects/aril/ui/number/src/number.component.ts","../../projects/aril/ui/number/src/number.component.html","../../projects/aril/ui/number/aril-ui-number.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"aril-ui-number.mjs","sources":["../../projects/aril/ui/number/src/number.component.ts","../../projects/aril/ui/number/src/number.component.html","../../projects/aril/ui/number/aril-ui-number.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { TooltipModule } from 'primeng/tooltip';\nimport { InputNumberModule } from 'primeng/inputnumber';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n/* TODO\n 1. HostAttributeToken\n*/\n\ntype ButtonLayouts = 'stacked' | 'horizontal' | 'vertical';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-number[ngModel], aril-number[formControl], aril-number[formControlName]',\n\ttemplateUrl: './number.component.html',\n\timports: [ReactiveFormsModule, InputNumberModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class NumberComponent extends BaseInputComponent {\n\tmin = input<number>();\n\tmax = input<number>();\n\tshowButtons = input(false);\n\tplaceholder = input<string>();\n\tprefix = input<string>();\n\tsuffix = input<string>();\n\tmaxlength = input<any>();\n\tshowClear = input(false);\n\tuseGrouping = input(true);\n\tmaxDigits = input<number>();\n\tminDigits = input<number>();\n\ttabindex = input<number>();\n\tbuttonLayout = input<ButtonLayouts>('stacked');\n\n\t_style = computed(() => (this.buttonLayout() == 'vertical' ? { width: '3rem' } : {}));\n}\n","<p-inputNumber\n\t[min]=\"min()\"\n\t[max]=\"max()\"\n\tmode=\"decimal\"\n\tlocale=\"en-US\"\n\t[prefix]=\"prefix()\"\n\t[suffix]=\"suffix()\"\n\t[maxlength]=\"maxlength()\"\n\t[showClear]=\"showClear()\"\n\t[style]=\"_style()\"\n\t[tabindex]=\"tabindex()\"\n\tspinnerMode=\"vertical\"\n\t[useGrouping]=\"useGrouping()\"\n\t[placeholder]=\"placeholder()\"\n\t[showButtons]=\"showButtons()\"\n\t[maxFractionDigits]=\"maxDigits()\"\n\t[minFractionDigits]=\"minDigits()\"\n\t[buttonLayout]=\"buttonLayout()\"\n\tincrementButtonClass=\"p-button-info\"\n\tdecrementButtonClass=\"p-button-danger\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-inputNumber>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAqBM,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;AAPvD,IAAA,WAAA,GAAA;;QAQC,IAAG,CAAA,GAAA,GAAG,KAAK,EAAU,CAAC;QACtB,IAAG,CAAA,GAAA,GAAG,KAAK,EAAU,CAAC;AACtB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAW,CAAA,WAAA,GAAG,KAAK,EAAU,CAAC;QAC9B,IAAM,CAAA,MAAA,GAAG,KAA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AA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAG1E,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,8EAA8E,EAE/E,OAAA,EAAA,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,qBAAqB,CAAC,EACvE,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,m1BAAA,EAAA,CAAA;;;AEnBzC;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { input, Component } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import * as i3 from 'primeng/password';
|
|
@@ -12,29 +12,24 @@ import * as i1 from 'aril/ui/lib';
|
|
|
12
12
|
import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
|
|
13
13
|
import * as i4 from 'primeng/api';
|
|
14
14
|
|
|
15
|
-
/* TODO
|
|
16
|
-
1.
|
|
15
|
+
/* TODO
|
|
16
|
+
1. HostAttributeToken
|
|
17
17
|
*/
|
|
18
18
|
class PasswordComponent extends BaseInputComponent {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
|
-
this.feedback = false;
|
|
21
|
+
this.feedback = input(false);
|
|
22
|
+
this.passwordCriterias = input();
|
|
23
|
+
this.placeholder = input();
|
|
24
|
+
this.tabindex = input();
|
|
22
25
|
}
|
|
23
26
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: PasswordComponent, isStandalone: true, selector: "aril-password[ngModel], aril-password[formControl], aril-password[formControlName]", inputs: { feedback: "feedback", passwordCriterias: "passwordCriterias", placeholder: "placeholder", tabindex: "tabindex" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-password\n\t[feedback]=\"feedback\"\n\t[toggleMask]=\"true\"\n\t[placeholder]=\"placeholder\"\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t@if (passwordCriterias?.length) {\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\n\t\t</ng-template>\n\t\t<ng-template pTemplate=\"footer\">\n\t\t\t<p-divider></p-divider>\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\n\t\t\t\t@for (criteria of passwordCriterias; track criteria) {\n\t\t\t\t\t<li>{{ criteria }}</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</ng-template>\n\t}\n</p-password>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i3.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i5.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }]
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: PasswordComponent, isStandalone: true, selector: "aril-password[ngModel], aril-password[formControl], aril-password[formControlName]", inputs: { feedback: { classPropertyName: "feedback", publicName: "feedback", isSignal: true, isRequired: false, transformFunction: null }, passwordCriterias: { classPropertyName: "passwordCriterias", publicName: "passwordCriterias", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-password\n\t[feedback]=\"feedback()\"\n\t[toggleMask]=\"true\"\n\t[placeholder]=\"placeholder()\"\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t@if (passwordCriterias()?.length) {\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\n\t\t</ng-template>\n\t\t<ng-template pTemplate=\"footer\">\n\t\t\t<p-divider></p-divider>\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\n\t\t\t\t\t<li>{{ criteria }}</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</ng-template>\n\t}\n</p-password>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i3.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i5.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
25
28
|
}
|
|
26
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PasswordComponent, decorators: [{
|
|
27
30
|
type: Component,
|
|
28
|
-
args: [{ standalone: true, selector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]', imports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective],
|
|
29
|
-
}]
|
|
30
|
-
type: Input
|
|
31
|
-
}], passwordCriterias: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], placeholder: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], tabindex: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}] } });
|
|
31
|
+
args: [{ standalone: true, selector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]', imports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-password\n\t[feedback]=\"feedback()\"\n\t[toggleMask]=\"true\"\n\t[placeholder]=\"placeholder()\"\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t@if (passwordCriterias()?.length) {\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\n\t\t</ng-template>\n\t\t<ng-template pTemplate=\"footer\">\n\t\t\t<p-divider></p-divider>\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\n\t\t\t\t\t<li>{{ criteria }}</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</ng-template>\n\t}\n</p-password>\n" }]
|
|
32
|
+
}] });
|
|
38
33
|
|
|
39
34
|
/**
|
|
40
35
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-password.mjs","sources":["../../projects/aril/ui/password/src/password.component.ts","../../projects/aril/ui/password/src/password.component.html","../../projects/aril/ui/password/aril-ui-password.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"aril-ui-password.mjs","sources":["../../projects/aril/ui/password/src/password.component.ts","../../projects/aril/ui/password/src/password.component.html","../../projects/aril/ui/password/aril-ui-password.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { PasswordModule } from 'primeng/password';\nimport { DividerModule } from 'primeng/divider';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n/* TODO\n 1. HostAttributeToken\n*/\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]',\n\ttemplateUrl: './password.component.html',\n\timports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class PasswordComponent extends BaseInputComponent {\n\tfeedback = input(false);\n\tpasswordCriterias = input<string[]>();\n\tplaceholder = input<string>();\n\ttabindex = input<number>();\n}\n","<p-password\n\t[feedback]=\"feedback()\"\n\t[toggleMask]=\"true\"\n\t[placeholder]=\"placeholder()\"\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t@if (passwordCriterias()?.length) {\n\t\t<ng-template pTemplate=\"header\">\n\t\t\t<h6>Şifre Oluştur</h6>\n\t\t</ng-template>\n\t\t<ng-template pTemplate=\"footer\">\n\t\t\t<p-divider></p-divider>\n\t\t\t<p class=\"mt-2\">Şartlar</p>\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\n\t\t\t\t\t<li>{{ criteria }}</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</ng-template>\n\t}\n</p-password>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AASA;;AAEE;AASI,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AAPzD,IAAA,WAAA,GAAA;;AAQC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QACxB,IAAiB,CAAA,iBAAA,GAAG,KAAK,EAAY,CAAC;QACtC,IAAW,CAAA,WAAA,GAAG,KAAK,EAAU,CAAC;QAC9B,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;AAC3B,KAAA;8GALY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAA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