@3kles/kles-material-dynamicforms 19.4.8 → 19.4.9
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.
|
@@ -7,7 +7,7 @@ import { Validators, FormControl, ReactiveFormsModule, FormsModule, FormControlD
|
|
|
7
7
|
import { concat, of, Subject, combineLatest, startWith, map as map$1, takeUntil, Observable, BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
8
8
|
import { tap, take, catchError, map, takeUntil as takeUntil$1, distinctUntilChanged, filter, switchMap, startWith as startWith$1, debounceTime, shareReplay } from 'rxjs/operators';
|
|
9
9
|
import * as i2$1 from '@angular/material/form-field';
|
|
10
|
-
import { MatError, MatFormFieldModule, MatFormField, MatHint, MatLabel } from '@angular/material/form-field';
|
|
10
|
+
import { MatError, MatFormFieldModule, MatFormField, MatHint, MatLabel, MatSuffix } from '@angular/material/form-field';
|
|
11
11
|
import { DateAdapter, MAT_DATE_LOCALE, MAT_DATE_FORMATS, ErrorStateMatcher, MatNativeDateModule, MatOptionModule, MatOption } from '@angular/material/core';
|
|
12
12
|
import * as i2$2 from '@angular/material/icon';
|
|
13
13
|
import { MatIcon, MatIconModule } from '@angular/material/icon';
|
|
@@ -65,6 +65,10 @@ import { TextFieldModule } from '@angular/cdk/text-field';
|
|
|
65
65
|
import * as i4$2 from 'ngx-mat-select-search';
|
|
66
66
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
67
67
|
import { getMultipleValuesInSingleSelectionError } from '@angular/cdk/collections';
|
|
68
|
+
import * as i4$4 from '@ngx-translate/core';
|
|
69
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
70
|
+
import * as i5$1 from '@3kles/kles-material-datepicker';
|
|
71
|
+
import { KlesMaterialDatepickerModule } from '@3kles/kles-material-datepicker';
|
|
68
72
|
import * as i1$2 from '@angular/cdk/clipboard';
|
|
69
73
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
70
74
|
|
|
@@ -5439,6 +5443,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
5439
5443
|
`, standalone: true, imports: [KlesFileControlComponent, FormsModule, ReactiveFormsModule], styles: ["mat-form-field{width:100%}\n"] }]
|
|
5440
5444
|
}] });
|
|
5441
5445
|
|
|
5446
|
+
class KlesFormDateTimeComponent extends KlesFieldAbstract {
|
|
5447
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: KlesFormDateTimeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5448
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: KlesFormDateTimeComponent, isStandalone: true, selector: "kles-form-datetimepicker", usesInheritance: true, ngImport: i0, template: `
|
|
5449
|
+
<mat-form-field [subscriptSizing]="field.subscriptSizing" class="margin-top" [color]="field.color" [formGroup]="group" [appearance]="field.appearance">
|
|
5450
|
+
@if (field.label) {
|
|
5451
|
+
<mat-label>{{ field.label }}</mat-label>
|
|
5452
|
+
}
|
|
5453
|
+
|
|
5454
|
+
<input matInput matTooltip="{{ field.tooltip }}" [attr.id]="field.id" [ngClass]="field.ngClass" [matDatepicker]="picker" [formControlName]="field.name"
|
|
5455
|
+
[placeholder]="field.placeholder | translate" [min]="field.min" [max]="field.max">
|
|
5456
|
+
<div matSuffix class="suffix">
|
|
5457
|
+
<mat-datepicker-toggle [for]="picker"></mat-datepicker-toggle>
|
|
5458
|
+
<ng-content></ng-content>
|
|
5459
|
+
</div>
|
|
5460
|
+
|
|
5461
|
+
<kles-mat-datepicker #picker [hasBackdrop]="false"></kles-mat-datepicker>
|
|
5462
|
+
|
|
5463
|
+
@if (field.hint) {
|
|
5464
|
+
<mat-hint>{{ field.hint }}</mat-hint>
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
|
+
<mat-error matErrorMessage [validations]="field.validations" [asyncValidations]="field.asyncValidations"></mat-error>
|
|
5468
|
+
</mat-form-field>
|
|
5469
|
+
`, isInline: true, styles: ["mat-form-field{width:100%}\n", ".suffix{display:flex;flex-direction:row}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "directive", type: MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "directive", type: i3$2.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i3$2.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i4$4.TranslatePipe, name: "translate" }, { kind: "component", type: MatErrorMessageDirective, selector: "[matErrorMessage]", inputs: ["validations", "asyncValidations"] }, { kind: "ngmodule", type: KlesMaterialDatepickerModule }, { kind: "component", type: i5$1.KlesMatDatepicker, selector: "kles-mat-datepicker", outputs: ["timeSelected"], exportAs: ["klesMatDatepicker"] }] }); }
|
|
5470
|
+
}
|
|
5471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: KlesFormDateTimeComponent, decorators: [{
|
|
5472
|
+
type: Component,
|
|
5473
|
+
args: [{ selector: 'kles-form-datetimepicker', template: `
|
|
5474
|
+
<mat-form-field [subscriptSizing]="field.subscriptSizing" class="margin-top" [color]="field.color" [formGroup]="group" [appearance]="field.appearance">
|
|
5475
|
+
@if (field.label) {
|
|
5476
|
+
<mat-label>{{ field.label }}</mat-label>
|
|
5477
|
+
}
|
|
5478
|
+
|
|
5479
|
+
<input matInput matTooltip="{{ field.tooltip }}" [attr.id]="field.id" [ngClass]="field.ngClass" [matDatepicker]="picker" [formControlName]="field.name"
|
|
5480
|
+
[placeholder]="field.placeholder | translate" [min]="field.min" [max]="field.max">
|
|
5481
|
+
<div matSuffix class="suffix">
|
|
5482
|
+
<mat-datepicker-toggle [for]="picker"></mat-datepicker-toggle>
|
|
5483
|
+
<ng-content></ng-content>
|
|
5484
|
+
</div>
|
|
5485
|
+
|
|
5486
|
+
<kles-mat-datepicker #picker [hasBackdrop]="false"></kles-mat-datepicker>
|
|
5487
|
+
|
|
5488
|
+
@if (field.hint) {
|
|
5489
|
+
<mat-hint>{{ field.hint }}</mat-hint>
|
|
5490
|
+
}
|
|
5491
|
+
|
|
5492
|
+
<mat-error matErrorMessage [validations]="field.validations" [asyncValidations]="field.asyncValidations"></mat-error>
|
|
5493
|
+
</mat-form-field>
|
|
5494
|
+
`, standalone: true, imports: [
|
|
5495
|
+
CommonModule,
|
|
5496
|
+
ReactiveFormsModule,
|
|
5497
|
+
MatFormField,
|
|
5498
|
+
MatLabel,
|
|
5499
|
+
MatHint,
|
|
5500
|
+
MatError,
|
|
5501
|
+
MatSuffix,
|
|
5502
|
+
MatInput,
|
|
5503
|
+
MatTooltip,
|
|
5504
|
+
MatDatepickerModule,
|
|
5505
|
+
TranslateModule,
|
|
5506
|
+
MatErrorMessageDirective,
|
|
5507
|
+
KlesMaterialDatepickerModule
|
|
5508
|
+
], styles: ["mat-form-field{width:100%}\n", ".suffix{display:flex;flex-direction:row}\n"] }]
|
|
5509
|
+
}] });
|
|
5510
|
+
|
|
5442
5511
|
class KlesFormCopyComponent {
|
|
5443
5512
|
constructor(clipBoard) {
|
|
5444
5513
|
this.clipBoard = clipBoard;
|
|
@@ -5497,6 +5566,7 @@ const components = [
|
|
|
5497
5566
|
KlesFormButtonFileComponent,
|
|
5498
5567
|
KlesFormSelectComponent,
|
|
5499
5568
|
KlesFormDateComponent,
|
|
5569
|
+
KlesFormDateTimeComponent,
|
|
5500
5570
|
KlesFormRadioComponent,
|
|
5501
5571
|
KlesFormCheckboxComponent,
|
|
5502
5572
|
KlesIndeterminateCheckboxComponent,
|
|
@@ -5548,6 +5618,7 @@ class KlesMaterialDynamicformsModule {
|
|
|
5548
5618
|
KlesFormButtonFileComponent,
|
|
5549
5619
|
KlesFormSelectComponent,
|
|
5550
5620
|
KlesFormDateComponent,
|
|
5621
|
+
KlesFormDateTimeComponent,
|
|
5551
5622
|
KlesFormRadioComponent,
|
|
5552
5623
|
KlesFormCheckboxComponent,
|
|
5553
5624
|
KlesIndeterminateCheckboxComponent,
|
|
@@ -5591,6 +5662,7 @@ class KlesMaterialDynamicformsModule {
|
|
|
5591
5662
|
KlesFormButtonFileComponent,
|
|
5592
5663
|
KlesFormSelectComponent,
|
|
5593
5664
|
KlesFormDateComponent,
|
|
5665
|
+
KlesFormDateTimeComponent,
|
|
5594
5666
|
KlesFormRadioComponent,
|
|
5595
5667
|
KlesFormCheckboxComponent,
|
|
5596
5668
|
KlesIndeterminateCheckboxComponent,
|
|
@@ -5635,6 +5707,7 @@ class KlesMaterialDynamicformsModule {
|
|
|
5635
5707
|
KlesFormButtonFileComponent,
|
|
5636
5708
|
KlesFormSelectComponent,
|
|
5637
5709
|
KlesFormDateComponent,
|
|
5710
|
+
KlesFormDateTimeComponent,
|
|
5638
5711
|
KlesFormRadioComponent,
|
|
5639
5712
|
KlesFormCheckboxComponent,
|
|
5640
5713
|
KlesIndeterminateCheckboxComponent,
|
|
@@ -5739,5 +5812,5 @@ function autocompleteStringValidator(validOptions, optional) {
|
|
|
5739
5812
|
* Generated bundle index. Do not edit.
|
|
5740
5813
|
*/
|
|
5741
5814
|
|
|
5742
|
-
export { AbstractUiState, ArrayFormatPipe, ArrayUiState, ControlUiState, EnumButtonAttribute, EnumType, FIELD, FIELD_NAME, FieldMapper, GROUP, GROUP_UI, GroupUiState, KlesAbstractFormControl, KlesAbstractFormUiControl, KlesButtonBase, KlesButtonCheckerComponent, KlesButtonComponent, KlesButtonFileComponent, KlesComponentDirective, KlesDynamicFieldDirective, KlesDynamicFormComponent, KlesDynamicFormIntl, KlesFabComponent, KlesFieldAbstract, KlesFileControlComponent, KlesFormArray, KlesFormArrayComponent, KlesFormBadgeComponent, KlesFormButtonCheckerComponent, KlesFormButtonComponent, KlesFormButtonFileComponent, KlesFormButtonToogleGroupComponent, KlesFormCheckboxComponent, KlesFormCheckboxIndeterminateComponent, KlesFormChipComponent, KlesFormClearComponent, KlesFormColorComponent, KlesFormControl, KlesFormCopyComponent, KlesFormDateComponent, KlesFormErrorStateMatcher, KlesFormFabComponent, KlesFormFileComponent, KlesFormGroup, KlesFormGroupComponent, KlesFormIconButtonComponent, KlesFormIconComponent, KlesFormInputClearableComponent, KlesFormInputComponent, KlesFormLabelComponent, KlesFormLineBreakComponent, KlesFormLinkComponent, KlesFormListFieldComponent, KlesFormMiniFabComponent, KlesFormPasswordVisibilityComponent, KlesFormRadioComponent, KlesFormRange, KlesFormRangeComponent, KlesFormSelectComponent, KlesFormSelectLazySearchComponent, KlesFormSelectSearchComponent, KlesFormSelectionListComponent, KlesFormSelectionListSearchComponent, KlesFormSlideToggleComponent, KlesFormTextComponent, KlesFormTextareaComponent, KlesFormUiArray, KlesFormUiControl, KlesFormUiGroup, KlesIconButtonComponent, KlesIndeterminateCheckboxComponent, KlesMaterialDynamicformsModule, KlesMiniFabComponent, KlesSelectionModel, KlesTransformPipe, MatErrorFormDirective, MatErrorMessageDirective, SIBLING_FIELDS, autocompleteObjectValidator, autocompleteStringValidator, componentMapper, isDestroyable, klesFieldControlFactory, klesFieldUiFactory };
|
|
5815
|
+
export { AbstractUiState, ArrayFormatPipe, ArrayUiState, ControlUiState, EnumButtonAttribute, EnumType, FIELD, FIELD_NAME, FieldMapper, GROUP, GROUP_UI, GroupUiState, KlesAbstractFormControl, KlesAbstractFormUiControl, KlesButtonBase, KlesButtonCheckerComponent, KlesButtonComponent, KlesButtonFileComponent, KlesComponentDirective, KlesDynamicFieldDirective, KlesDynamicFormComponent, KlesDynamicFormIntl, KlesFabComponent, KlesFieldAbstract, KlesFileControlComponent, KlesFormArray, KlesFormArrayComponent, KlesFormBadgeComponent, KlesFormButtonCheckerComponent, KlesFormButtonComponent, KlesFormButtonFileComponent, KlesFormButtonToogleGroupComponent, KlesFormCheckboxComponent, KlesFormCheckboxIndeterminateComponent, KlesFormChipComponent, KlesFormClearComponent, KlesFormColorComponent, KlesFormControl, KlesFormCopyComponent, KlesFormDateComponent, KlesFormDateTimeComponent, KlesFormErrorStateMatcher, KlesFormFabComponent, KlesFormFileComponent, KlesFormGroup, KlesFormGroupComponent, KlesFormIconButtonComponent, KlesFormIconComponent, KlesFormInputClearableComponent, KlesFormInputComponent, KlesFormLabelComponent, KlesFormLineBreakComponent, KlesFormLinkComponent, KlesFormListFieldComponent, KlesFormMiniFabComponent, KlesFormPasswordVisibilityComponent, KlesFormRadioComponent, KlesFormRange, KlesFormRangeComponent, KlesFormSelectComponent, KlesFormSelectLazySearchComponent, KlesFormSelectSearchComponent, KlesFormSelectionListComponent, KlesFormSelectionListSearchComponent, KlesFormSlideToggleComponent, KlesFormTextComponent, KlesFormTextareaComponent, KlesFormUiArray, KlesFormUiControl, KlesFormUiGroup, KlesIconButtonComponent, KlesIndeterminateCheckboxComponent, KlesMaterialDynamicformsModule, KlesMiniFabComponent, KlesSelectionModel, KlesTransformPipe, MatErrorFormDirective, MatErrorMessageDirective, SIBLING_FIELDS, autocompleteObjectValidator, autocompleteStringValidator, componentMapper, isDestroyable, klesFieldControlFactory, klesFieldUiFactory };
|
|
5743
5816
|
//# sourceMappingURL=3kles-kles-material-dynamicforms.mjs.map
|