@3kles/kles-material-dynamicforms 14.9.8 → 14.10.1
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/esm2020/lib/directive/dynamic-field.directive.mjs +7 -2
- package/esm2020/lib/fields/date-time.component.mjs +61 -0
- package/esm2020/lib/fields/date.component.mjs +3 -3
- package/esm2020/lib/interfaces/field.config.interface.mjs +1 -1
- package/esm2020/lib/kles-material-dynamicforms.module.mjs +19 -8
- package/esm2020/lib/modules/material.module.mjs +14 -7
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/3kles-kles-material-dynamicforms.mjs +89 -17
- package/fesm2015/3kles-kles-material-dynamicforms.mjs.map +1 -1
- package/fesm2020/3kles-kles-material-dynamicforms.mjs +89 -17
- package/fesm2020/3kles-kles-material-dynamicforms.mjs.map +1 -1
- package/lib/fields/date-time.component.d.ts +9 -0
- package/lib/interfaces/field.config.interface.d.ts +5 -1
- package/lib/kles-material-dynamicforms.module.d.ts +14 -12
- package/lib/modules/material.module.d.ts +3 -2
- package/package.json +2 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KlesFormDateTimeComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
ngOnDestroy(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormDateTimeComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormDateTimeComponent, "kles-form-datetimepicker", never, {}, {}, never, ["*"], false>;
|
|
9
|
+
}
|
|
@@ -5,7 +5,7 @@ import { Observable, Subject } from 'rxjs';
|
|
|
5
5
|
import { EnumType } from '../enums/type.enum';
|
|
6
6
|
import { IKlesField } from './field.interface';
|
|
7
7
|
import { IKlesDirective } from './directive.interface';
|
|
8
|
-
import { MatDateFormats } from '@angular/material/core';
|
|
8
|
+
import { DateAdapter, MatDateFormats } from '@angular/material/core';
|
|
9
9
|
export interface IKlesFieldConfig {
|
|
10
10
|
type?: EnumType;
|
|
11
11
|
name: string;
|
|
@@ -61,6 +61,10 @@ export interface IKlesFieldConfig {
|
|
|
61
61
|
buttonType?: 'submit' | 'button' | 'reset';
|
|
62
62
|
accept?: string;
|
|
63
63
|
dateOptions?: {
|
|
64
|
+
adapter?: {
|
|
65
|
+
class: Type<DateAdapter<any>>;
|
|
66
|
+
deps?: any[];
|
|
67
|
+
};
|
|
64
68
|
language: string;
|
|
65
69
|
dateFormat: MatDateFormats;
|
|
66
70
|
};
|
|
@@ -43,20 +43,22 @@ import * as i30 from "./fields/array.component";
|
|
|
43
43
|
import * as i31 from "./fields/range.component";
|
|
44
44
|
import * as i32 from "./fields/clear.component";
|
|
45
45
|
import * as i33 from "./fields/select.lazy-search.component";
|
|
46
|
-
import * as i34 from "./
|
|
47
|
-
import * as i35 from "./directive/dynamic-
|
|
48
|
-
import * as i36 from "./
|
|
49
|
-
import * as i37 from "./pipe/
|
|
50
|
-
import * as i38 from "
|
|
51
|
-
import * as i39 from "@angular/
|
|
52
|
-
import * as i40 from "@
|
|
53
|
-
import * as i41 from "@
|
|
54
|
-
import * as i42 from "
|
|
55
|
-
import * as i43 from "
|
|
56
|
-
import * as i44 from "ngx-
|
|
46
|
+
import * as i34 from "./fields/date-time.component";
|
|
47
|
+
import * as i35 from "./directive/dynamic-field.directive";
|
|
48
|
+
import * as i36 from "./directive/dynamic-component.directive";
|
|
49
|
+
import * as i37 from "./pipe/transform.pipe";
|
|
50
|
+
import * as i38 from "./pipe/array.pipe";
|
|
51
|
+
import * as i39 from "@angular/common";
|
|
52
|
+
import * as i40 from "@angular/forms";
|
|
53
|
+
import * as i41 from "@ngx-translate/core";
|
|
54
|
+
import * as i42 from "@angular/flex-layout";
|
|
55
|
+
import * as i43 from "./modules/material.module";
|
|
56
|
+
import * as i44 from "ngx-color-picker";
|
|
57
|
+
import * as i45 from "ngx-mat-select-search";
|
|
58
|
+
import * as i46 from "@3kles/kles-material-datepicker";
|
|
57
59
|
export declare class KlesMaterialDynamicformsModule {
|
|
58
60
|
static declarations: ((typeof KlesDynamicFormComponent | typeof KlesFormClearComponent | typeof KlesFormLabelComponent | typeof KlesFormSelectComponent | typeof KlesFormListFieldComponent | typeof KlesButtonComponent | typeof KlesFormSelectSearchComponent)[] | (typeof KlesComponentDirective | typeof KlesDynamicFieldDirective)[] | (typeof KlesTransformPipe | typeof ArrayFormatPipe)[])[];
|
|
59
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesMaterialDynamicformsModule, never>;
|
|
60
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KlesMaterialDynamicformsModule, [typeof i1.KlesDynamicFormComponent, typeof i2.KlesFormLabelComponent, typeof i3.KlesFormInputComponent, typeof i4.KlesFormInputClearableComponent, typeof i5.KlesFormSubmitButtonComponent, typeof i6.KlesFormBadgeComponent, typeof i7.KlesButtonComponent, typeof i8.KlesFormButtonComponent, typeof i9.KlesButtonCheckerComponent, typeof i10.KlesFormButtonCheckerComponent, typeof i11.KlesButtonFileComponent, typeof i12.KlesFormButtonFileComponent, typeof i13.KlesFormSelectComponent, typeof i14.KlesFormDateComponent, typeof i15.KlesFormRadioComponent, typeof i16.KlesFormCheckboxComponent, typeof i17.KlesFormListFieldComponent, typeof i18.KlesFormColorComponent, typeof i19.KlesFormTextareaComponent, typeof i20.KlesFormTextComponent, typeof i21.KlesFormChipComponent, typeof i22.KlesFormGroupComponent, typeof i23.KlesFormIconComponent, typeof i24.KlesFormSelectSearchComponent, typeof i25.KlesFormLineBreakComponent, typeof i26.KlesFormLinkComponent, typeof i27.KlesFormSlideToggleComponent, typeof i28.KlesFormSelectionListComponent, typeof i29.KlesFormButtonToogleGroupComponent, typeof i30.KlesFormArrayComponent, typeof i31.KlesFormRangeComponent, typeof i32.KlesFormClearComponent, typeof i33.KlesFormSelectLazySearchComponent, typeof i34.
|
|
62
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KlesMaterialDynamicformsModule, [typeof i1.KlesDynamicFormComponent, typeof i2.KlesFormLabelComponent, typeof i3.KlesFormInputComponent, typeof i4.KlesFormInputClearableComponent, typeof i5.KlesFormSubmitButtonComponent, typeof i6.KlesFormBadgeComponent, typeof i7.KlesButtonComponent, typeof i8.KlesFormButtonComponent, typeof i9.KlesButtonCheckerComponent, typeof i10.KlesFormButtonCheckerComponent, typeof i11.KlesButtonFileComponent, typeof i12.KlesFormButtonFileComponent, typeof i13.KlesFormSelectComponent, typeof i14.KlesFormDateComponent, typeof i15.KlesFormRadioComponent, typeof i16.KlesFormCheckboxComponent, typeof i17.KlesFormListFieldComponent, typeof i18.KlesFormColorComponent, typeof i19.KlesFormTextareaComponent, typeof i20.KlesFormTextComponent, typeof i21.KlesFormChipComponent, typeof i22.KlesFormGroupComponent, typeof i23.KlesFormIconComponent, typeof i24.KlesFormSelectSearchComponent, typeof i25.KlesFormLineBreakComponent, typeof i26.KlesFormLinkComponent, typeof i27.KlesFormSlideToggleComponent, typeof i28.KlesFormSelectionListComponent, typeof i29.KlesFormButtonToogleGroupComponent, typeof i30.KlesFormArrayComponent, typeof i31.KlesFormRangeComponent, typeof i32.KlesFormClearComponent, typeof i33.KlesFormSelectLazySearchComponent, typeof i34.KlesFormDateTimeComponent, typeof i35.KlesDynamicFieldDirective, typeof i36.KlesComponentDirective, typeof i37.KlesTransformPipe, typeof i38.ArrayFormatPipe], [typeof i39.CommonModule, typeof i40.ReactiveFormsModule, typeof i41.TranslateModule, typeof i42.FlexLayoutModule, typeof i40.FormsModule, typeof i43.MaterialModule, typeof i44.ColorPickerModule, typeof i45.NgxMatSelectSearchModule, typeof i46.KlesMaterialDatepickerModule], [typeof i1.KlesDynamicFormComponent, typeof i2.KlesFormLabelComponent, typeof i3.KlesFormInputComponent, typeof i4.KlesFormInputClearableComponent, typeof i5.KlesFormSubmitButtonComponent, typeof i6.KlesFormBadgeComponent, typeof i7.KlesButtonComponent, typeof i8.KlesFormButtonComponent, typeof i9.KlesButtonCheckerComponent, typeof i10.KlesFormButtonCheckerComponent, typeof i11.KlesButtonFileComponent, typeof i12.KlesFormButtonFileComponent, typeof i13.KlesFormSelectComponent, typeof i14.KlesFormDateComponent, typeof i15.KlesFormRadioComponent, typeof i16.KlesFormCheckboxComponent, typeof i17.KlesFormListFieldComponent, typeof i18.KlesFormColorComponent, typeof i19.KlesFormTextareaComponent, typeof i20.KlesFormTextComponent, typeof i21.KlesFormChipComponent, typeof i22.KlesFormGroupComponent, typeof i23.KlesFormIconComponent, typeof i24.KlesFormSelectSearchComponent, typeof i25.KlesFormLineBreakComponent, typeof i26.KlesFormLinkComponent, typeof i27.KlesFormSlideToggleComponent, typeof i28.KlesFormSelectionListComponent, typeof i29.KlesFormButtonToogleGroupComponent, typeof i30.KlesFormArrayComponent, typeof i31.KlesFormRangeComponent, typeof i32.KlesFormClearComponent, typeof i33.KlesFormSelectLazySearchComponent, typeof i34.KlesFormDateTimeComponent, typeof i37.KlesTransformPipe, typeof i38.ArrayFormatPipe, typeof i35.KlesDynamicFieldDirective, typeof i36.KlesComponentDirective, typeof i44.ColorPickerModule, typeof i46.KlesMaterialDatepickerModule]>;
|
|
61
63
|
static ɵinj: i0.ɵɵInjectorDeclaration<KlesMaterialDynamicformsModule>;
|
|
62
64
|
}
|
|
@@ -34,9 +34,10 @@ import * as i32 from "@angular/material/tree";
|
|
|
34
34
|
import * as i33 from "@angular/material/slide-toggle";
|
|
35
35
|
import * as i34 from "ngx-color-picker";
|
|
36
36
|
import * as i35 from "@angular/material/button-toggle";
|
|
37
|
-
import * as i36 from "@angular/cdk/
|
|
37
|
+
import * as i36 from "@angular/cdk/portal";
|
|
38
|
+
import * as i37 from "@angular/cdk/scrolling";
|
|
38
39
|
export declare class MaterialModule {
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.CommonModule, typeof i2.MatSliderModule, typeof i3.MatButtonModule, typeof i4.MatToolbarModule, typeof i5.MatIconModule, typeof i6.MatSidenavModule, typeof i7.MatBadgeModule, typeof i8.MatListModule, typeof i9.MatGridListModule, typeof i10.MatFormFieldModule, typeof i11.MatInputModule, typeof i12.MatSelectModule, typeof i13.MatRadioModule, typeof i14.MatDatepickerModule, typeof i15.MatChipsModule, typeof i16.MatTooltipModule, typeof i17.MatTableModule, typeof i18.MatPaginatorModule, typeof i19.MatCardModule, typeof i20.MatMenuModule, typeof i21.MatTabsModule, typeof i22.CdkTableModule, typeof i23.MatProgressSpinnerModule, typeof i24.MatCheckboxModule, typeof i25.MatDialogModule, typeof i26.MatAutocompleteModule, typeof i27.MatProgressBarModule, typeof i28.MatSortModule, typeof i29.MatExpansionModule, typeof i30.MatNativeDateModule, typeof i31.MatSnackBarModule, typeof i32.MatTreeModule, typeof i2.MatSliderModule, typeof i3.MatButtonModule, typeof i33.MatSlideToggleModule, typeof i34.ColorPickerModule, typeof i35.MatButtonToggleModule], [typeof i3.MatButtonModule, typeof i4.MatToolbarModule, typeof i5.MatIconModule, typeof i6.MatSidenavModule, typeof i7.MatBadgeModule, typeof i8.MatListModule, typeof i9.MatGridListModule, typeof i11.MatInputModule, typeof i10.MatFormFieldModule, typeof i12.MatSelectModule, typeof i13.MatRadioModule, typeof i14.MatDatepickerModule, typeof i15.MatChipsModule, typeof i16.MatTooltipModule, typeof i17.MatTableModule, typeof i18.MatPaginatorModule, typeof i19.MatCardModule, typeof i20.MatMenuModule, typeof i21.MatTabsModule, typeof i22.CdkTableModule, typeof i23.MatProgressSpinnerModule, typeof i24.MatCheckboxModule, typeof i25.MatDialogModule, typeof i26.MatAutocompleteModule, typeof i27.MatProgressBarModule, typeof i28.MatSortModule, typeof i29.MatExpansionModule, typeof i30.MatNativeDateModule, typeof i31.MatSnackBarModule, typeof i32.MatTreeModule, typeof i2.MatSliderModule, typeof i3.MatButtonModule, typeof i33.MatSlideToggleModule, typeof i34.ColorPickerModule, typeof
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.CommonModule, typeof i2.MatSliderModule, typeof i3.MatButtonModule, typeof i4.MatToolbarModule, typeof i5.MatIconModule, typeof i6.MatSidenavModule, typeof i7.MatBadgeModule, typeof i8.MatListModule, typeof i9.MatGridListModule, typeof i10.MatFormFieldModule, typeof i11.MatInputModule, typeof i12.MatSelectModule, typeof i13.MatRadioModule, typeof i14.MatDatepickerModule, typeof i15.MatChipsModule, typeof i16.MatTooltipModule, typeof i17.MatTableModule, typeof i18.MatPaginatorModule, typeof i19.MatCardModule, typeof i20.MatMenuModule, typeof i21.MatTabsModule, typeof i22.CdkTableModule, typeof i23.MatProgressSpinnerModule, typeof i24.MatCheckboxModule, typeof i25.MatDialogModule, typeof i26.MatAutocompleteModule, typeof i27.MatProgressBarModule, typeof i28.MatSortModule, typeof i29.MatExpansionModule, typeof i30.MatNativeDateModule, typeof i31.MatSnackBarModule, typeof i32.MatTreeModule, typeof i2.MatSliderModule, typeof i3.MatButtonModule, typeof i33.MatSlideToggleModule, typeof i34.ColorPickerModule, typeof i35.MatButtonToggleModule, typeof i36.PortalModule], [typeof i3.MatButtonModule, typeof i4.MatToolbarModule, typeof i5.MatIconModule, typeof i6.MatSidenavModule, typeof i7.MatBadgeModule, typeof i8.MatListModule, typeof i9.MatGridListModule, typeof i11.MatInputModule, typeof i10.MatFormFieldModule, typeof i12.MatSelectModule, typeof i13.MatRadioModule, typeof i14.MatDatepickerModule, typeof i15.MatChipsModule, typeof i16.MatTooltipModule, typeof i17.MatTableModule, typeof i18.MatPaginatorModule, typeof i19.MatCardModule, typeof i20.MatMenuModule, typeof i21.MatTabsModule, typeof i22.CdkTableModule, typeof i23.MatProgressSpinnerModule, typeof i24.MatCheckboxModule, typeof i25.MatDialogModule, typeof i26.MatAutocompleteModule, typeof i27.MatProgressBarModule, typeof i28.MatSortModule, typeof i29.MatExpansionModule, typeof i30.MatNativeDateModule, typeof i31.MatSnackBarModule, typeof i32.MatTreeModule, typeof i2.MatSliderModule, typeof i3.MatButtonModule, typeof i33.MatSlideToggleModule, typeof i34.ColorPickerModule, typeof i37.ScrollingModule, typeof i37.CdkScrollable, typeof i35.MatButtonToggleModule, typeof i36.PortalModule]>;
|
|
41
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
42
43
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export * from './lib/fields/array.component';
|
|
|
36
36
|
export * from './lib/fields/range.component';
|
|
37
37
|
export * from './lib/fields/clear.component';
|
|
38
38
|
export * from './lib/fields/select.lazy-search.component';
|
|
39
|
+
export * from './lib/fields/date-time.component';
|
|
39
40
|
/**ENUMS */
|
|
40
41
|
export * from './lib/enums/type.enum';
|
|
41
42
|
/**INTERFACES */
|