@impartner/design-components 2.0.1 → 2.1.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/README.md +2 -1
- package/esm2022/lib/badge/badge.component.mjs +17 -1
- package/esm2022/lib/datetime-picker/components/datepicker-nav/datepicker-nav.component.mjs +105 -0
- package/esm2022/lib/datetime-picker/components/datepicker-nav/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/datepicker-template-host/datepicker-template-host.component.mjs +30 -0
- package/esm2022/lib/datetime-picker/components/datepicker-template-host/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker/datetime-picker.component.mjs +370 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker-input/datetime-picker-input.component.mjs +367 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker-input/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker-input-footer/datetime-picker-input-footer.component.mjs +68 -0
- package/esm2022/lib/datetime-picker/components/datetime-picker-input-footer/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/components/index.mjs +6 -0
- package/esm2022/lib/datetime-picker/constants/datetime-picker-defaults.mjs +12 -0
- package/esm2022/lib/datetime-picker/constants/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/datetime-picker.module.mjs +22 -0
- package/esm2022/lib/datetime-picker/index.mjs +4 -0
- package/esm2022/lib/datetime-picker/services/datetime-formatter/datetime-formatter.service.mjs +40 -0
- package/esm2022/lib/datetime-picker/services/datetime-formatter/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/services/index.mjs +2 -0
- package/esm2022/lib/datetime-picker/types/datetime-picker-value.interface.mjs +2 -0
- package/esm2022/lib/datetime-picker/types/index.mjs +2 -0
- package/esm2022/lib/design-components.module.mjs +20 -7
- package/esm2022/lib/form-field/component/directives/corner-hint.directive.mjs +15 -0
- package/esm2022/lib/form-field/component/directives/error.directive.mjs +27 -0
- package/esm2022/lib/form-field/component/directives/form-root.directive.mjs +93 -0
- package/esm2022/lib/form-field/component/directives/hint.directive.mjs +25 -0
- package/esm2022/lib/form-field/component/directives/index.mjs +25 -0
- package/esm2022/lib/form-field/component/directives/label.directive.mjs +15 -0
- package/esm2022/lib/form-field/component/directives/prefix.directive.mjs +25 -0
- package/esm2022/lib/form-field/component/directives/suffix.directive.mjs +25 -0
- package/esm2022/lib/form-field/component/form-field.component.mjs +131 -0
- package/esm2022/lib/form-field/component/form-field.module.mjs +24 -0
- package/esm2022/lib/form-field/component/index.mjs +4 -0
- package/esm2022/lib/form-field/controls/checkbox/checkbox.component.mjs +14 -6
- package/esm2022/lib/form-field/controls/checkbox/checkbox.module.mjs +4 -7
- package/esm2022/lib/form-field/controls/index.mjs +2 -1
- package/esm2022/lib/form-field/controls/input/input.directive.mjs +4 -3
- package/esm2022/lib/form-field/controls/radio/radio-button/radio-button.component.mjs +6 -4
- package/esm2022/lib/form-field/controls/radio/radio-group/radio-group.directive.mjs +4 -3
- package/esm2022/lib/form-field/controls/radio/radio.module.mjs +4 -7
- package/esm2022/lib/form-field/controls/select/index.mjs +6 -3
- package/esm2022/lib/form-field/controls/select/interfaces/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/interfaces/select-option.interface.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/option/index.mjs +2 -2
- package/esm2022/lib/form-field/controls/select/option/select-option.component.mjs +33 -128
- package/esm2022/lib/form-field/controls/select/option-display/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/option-display/select-option-display.component.mjs +162 -0
- package/esm2022/lib/form-field/controls/select/option-group/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/option-group/select-option-group.component.mjs +35 -0
- package/esm2022/lib/form-field/controls/select/option-parent.mjs +2 -1
- package/esm2022/lib/form-field/controls/select/select.component.mjs +348 -148
- package/esm2022/lib/form-field/controls/select/select.module.mjs +20 -13
- package/esm2022/lib/form-field/controls/select/value-tags-display/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/select/value-tags-display/select-value-tags-display.component.mjs +91 -0
- package/esm2022/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.mjs +3 -3
- package/esm2022/lib/form-field/controls/shared/toggle/toggle.component.mjs +19 -3
- package/esm2022/lib/form-field/controls/shared/toggle/toggle.module.mjs +4 -6
- package/esm2022/lib/form-field/controls/tag-select/index.mjs +2 -0
- package/esm2022/lib/form-field/controls/tag-select/tag-select.component.mjs +146 -0
- package/esm2022/lib/form-field/impdc-forms.mjs +2 -3
- package/esm2022/lib/form-field/impdc-forms.module.mjs +32 -47
- package/esm2022/lib/form-field/shared/error-state.mixin.mjs +1 -1
- package/esm2022/lib/icon/icon.component.mjs +12 -5
- package/esm2022/lib/index.mjs +3 -1
- package/esm2022/lib/pagination/pagination.component.mjs +6 -6
- package/esm2022/lib/select-icon/select-icon.component.mjs +6 -6
- package/esm2022/lib/select-icon/select-icon.module.mjs +5 -1
- package/esm2022/lib/table/containers/table.component.mjs +3 -3
- package/esm2022/lib/tag/index.mjs +2 -0
- package/esm2022/lib/tag/tag.component.mjs +104 -0
- package/esm2022/lib/text-highlight/text-highlight.component.mjs +52 -37
- package/esm2022/lib/text-highlight/text-highlight.module.mjs +4 -6
- package/fesm2022/impartner-design-components.mjs +5620 -3983
- package/fesm2022/impartner-design-components.mjs.map +1 -1
- package/lib/badge/badge.component.d.ts +15 -1
- package/lib/datetime-picker/components/datepicker-nav/datepicker-nav.component.d.ts +31 -0
- package/lib/datetime-picker/components/datepicker-nav/index.d.ts +1 -0
- package/lib/datetime-picker/components/datepicker-template-host/datepicker-template-host.component.d.ts +14 -0
- package/lib/datetime-picker/components/datepicker-template-host/index.d.ts +1 -0
- package/lib/datetime-picker/components/datetime-picker/datetime-picker.component.d.ts +157 -0
- package/lib/datetime-picker/components/datetime-picker/index.d.ts +1 -0
- package/lib/datetime-picker/components/datetime-picker-input/datetime-picker-input.component.d.ts +160 -0
- package/lib/datetime-picker/components/datetime-picker-input/index.d.ts +1 -0
- package/lib/datetime-picker/components/datetime-picker-input-footer/datetime-picker-input-footer.component.d.ts +24 -0
- package/lib/datetime-picker/components/datetime-picker-input-footer/index.d.ts +1 -0
- package/lib/datetime-picker/components/index.d.ts +5 -0
- package/lib/datetime-picker/constants/datetime-picker-defaults.d.ts +4 -0
- package/lib/datetime-picker/constants/index.d.ts +1 -0
- package/lib/datetime-picker/datetime-picker.module.d.ts +8 -0
- package/lib/datetime-picker/index.d.ts +4 -0
- package/lib/datetime-picker/services/datetime-formatter/datetime-formatter.service.d.ts +20 -0
- package/lib/datetime-picker/services/datetime-formatter/index.d.ts +1 -0
- package/lib/datetime-picker/services/index.d.ts +1 -0
- package/lib/datetime-picker/types/datetime-picker-value.interface.d.ts +5 -0
- package/lib/datetime-picker/types/index.d.ts +1 -0
- package/lib/design-components.module.d.ts +14 -12
- package/lib/form-field/{directives → component/directives}/corner-hint.directive.d.ts +1 -1
- package/lib/form-field/{directives → component/directives}/error.directive.d.ts +1 -1
- package/lib/form-field/{directives → component/directives}/form-root.directive.d.ts +2 -2
- package/lib/form-field/{directives → component/directives}/hint.directive.d.ts +1 -1
- package/lib/form-field/component/directives/index.d.ts +15 -0
- package/lib/form-field/{directives → component/directives}/label.directive.d.ts +1 -1
- package/lib/form-field/{directives → component/directives}/prefix.directive.d.ts +1 -1
- package/lib/form-field/{directives → component/directives}/suffix.directive.d.ts +1 -1
- package/lib/form-field/{form-field.component.d.ts → component/form-field.component.d.ts} +3 -5
- package/lib/form-field/component/form-field.module.d.ts +14 -0
- package/lib/form-field/component/index.d.ts +3 -0
- package/lib/form-field/controls/checkbox/checkbox.component.d.ts +6 -2
- package/lib/form-field/controls/checkbox/checkbox.module.d.ts +1 -3
- package/lib/form-field/controls/index.d.ts +1 -0
- package/lib/form-field/controls/input/input.directive.d.ts +2 -2
- package/lib/form-field/controls/radio/radio-button/radio-button.component.d.ts +1 -1
- package/lib/form-field/controls/radio/radio-group/radio-group.directive.d.ts +2 -2
- package/lib/form-field/controls/radio/radio.module.d.ts +1 -3
- package/lib/form-field/controls/select/index.d.ts +6 -2
- package/lib/form-field/controls/select/interfaces/index.d.ts +1 -0
- package/lib/form-field/controls/select/interfaces/select-option.interface.d.ts +6 -0
- package/lib/form-field/controls/select/option/index.d.ts +1 -1
- package/lib/form-field/controls/select/option/select-option.component.d.ts +10 -49
- package/lib/form-field/controls/select/option-display/index.d.ts +1 -0
- package/lib/form-field/controls/select/option-display/select-option-display.component.d.ts +64 -0
- package/lib/form-field/controls/select/option-group/index.d.ts +1 -0
- package/lib/form-field/controls/select/option-group/select-option-group.component.d.ts +11 -0
- package/lib/form-field/controls/select/option-parent.d.ts +12 -1
- package/lib/form-field/controls/select/select.component.d.ts +113 -51
- package/lib/form-field/controls/select/select.module.d.ts +5 -6
- package/lib/form-field/controls/select/value-tags-display/index.d.ts +1 -0
- package/lib/form-field/controls/select/value-tags-display/select-value-tags-display.component.d.ts +46 -0
- package/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.d.ts +1 -1
- package/lib/form-field/controls/shared/toggle/toggle.component.d.ts +4 -1
- package/lib/form-field/controls/shared/toggle/toggle.module.d.ts +1 -2
- package/lib/form-field/controls/tag-select/index.d.ts +1 -0
- package/lib/form-field/controls/tag-select/tag-select.component.d.ts +43 -0
- package/lib/form-field/impdc-forms.d.ts +1 -2
- package/lib/form-field/impdc-forms.module.d.ts +8 -14
- package/lib/form-field/shared/error-state.mixin.d.ts +4 -4
- package/lib/icon/icon.component.d.ts +5 -3
- package/lib/index.d.ts +2 -0
- package/lib/select-icon/select-icon.module.d.ts +4 -3
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/tag.component.d.ts +54 -0
- package/lib/text-highlight/text-highlight.component.d.ts +12 -6
- package/lib/text-highlight/text-highlight.module.d.ts +1 -2
- package/package.json +2 -2
- package/esm2022/lib/form-field/directives/corner-hint.directive.mjs +0 -14
- package/esm2022/lib/form-field/directives/error.directive.mjs +0 -26
- package/esm2022/lib/form-field/directives/form-root.directive.mjs +0 -91
- package/esm2022/lib/form-field/directives/hint.directive.mjs +0 -24
- package/esm2022/lib/form-field/directives/index.mjs +0 -8
- package/esm2022/lib/form-field/directives/label.directive.mjs +0 -14
- package/esm2022/lib/form-field/directives/prefix.directive.mjs +0 -24
- package/esm2022/lib/form-field/directives/suffix.directive.mjs +0 -24
- package/esm2022/lib/form-field/form-field.component.mjs +0 -132
- package/lib/form-field/directives/index.d.ts +0 -7
|
@@ -5,5 +5,5 @@ export declare class PrefixDirective {
|
|
|
5
5
|
set isTextSelector(value: '');
|
|
6
6
|
isText: boolean;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrefixDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PrefixDirective, "[impdcPrefix], [impdcTextPrefix]", never, { "isTextSelector": { "alias": "impdcTextPrefix"; "required": false; }; }, {}, never, never,
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PrefixDirective, "[impdcPrefix], [impdcTextPrefix]", never, { "isTextSelector": { "alias": "impdcTextPrefix"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -5,5 +5,5 @@ export declare class SuffixDirective {
|
|
|
5
5
|
set isTextSelector(value: '');
|
|
6
6
|
isText: boolean;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuffixDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SuffixDirective, "[impdcSuffix], [impdcTextSuffix]", never, { "isTextSelector": { "alias": "impdcTextSuffix"; "required": false; }; }, {}, never, never,
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SuffixDirective, "[impdcSuffix], [impdcTextSuffix]", never, { "isTextSelector": { "alias": "impdcTextSuffix"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, InjectionToken, QueryList } from '@angular/core';
|
|
2
2
|
import { AbstractControlDirective } from '@angular/forms';
|
|
3
|
-
import { ErrorDirective } from './directives
|
|
4
|
-
import {
|
|
5
|
-
import { SuffixDirective } from './directives/suffix.directive';
|
|
6
|
-
import { ImpdcFormFieldControl } from './shared/form-field-control';
|
|
3
|
+
import { ErrorDirective, PrefixDirective, SuffixDirective } from './directives';
|
|
4
|
+
import { ImpdcFormFieldControl } from '../shared/form-field-control';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
8
6
|
export declare const IMPDC_FORM_FIELD: InjectionToken<FormFieldComponent>;
|
|
9
7
|
export declare class FormFieldComponent implements AfterViewInit, AfterContentInit, AfterContentChecked {
|
|
@@ -35,5 +33,5 @@ export declare class FormFieldComponent implements AfterViewInit, AfterContentIn
|
|
|
35
33
|
/** Initializes the prefix and suffix containers. */
|
|
36
34
|
private _initializePrefixAndSuffix;
|
|
37
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "impdc-form-field", ["impdcFormField"], {}, {}, ["_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren"], ["impdc-label", "impdc-corner-hint", "[impdcPrefix]", "[impdcTextPrefix]", "*", "[impdcTextSuffix]", "[impdcSuffix]", "impdc-hint", "impdc-error, [impdc-error]"],
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "impdc-form-field", ["impdcFormField"], {}, {}, ["_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren"], ["impdc-label", "impdc-corner-hint", "[impdcPrefix]", "[impdcTextPrefix]", "*", "[impdcTextSuffix]", "[impdcSuffix]", "impdc-hint", "impdc-error, [impdc-error]"], true, never>;
|
|
39
37
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./form-field.component";
|
|
3
|
+
import * as i2 from "./directives/corner-hint.directive";
|
|
4
|
+
import * as i3 from "./directives/error.directive";
|
|
5
|
+
import * as i4 from "./directives/form-root.directive";
|
|
6
|
+
import * as i5 from "./directives/hint.directive";
|
|
7
|
+
import * as i6 from "./directives/label.directive";
|
|
8
|
+
import * as i7 from "./directives/prefix.directive";
|
|
9
|
+
import * as i8 from "./directives/suffix.directive";
|
|
10
|
+
export declare class FormFieldModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldModule, never, [typeof i1.FormFieldComponent, typeof i2.CornerHintDirective, typeof i3.ErrorDirective, typeof i4.RootFormGroupDirective, typeof i4.RootNgFormDirective, typeof i5.HintDirective, typeof i6.LabelDirective, typeof i7.PrefixDirective, typeof i8.SuffixDirective], [typeof i1.FormFieldComponent, typeof i2.CornerHintDirective, typeof i3.ErrorDirective, typeof i4.RootFormGroupDirective, typeof i4.RootNgFormDirective, typeof i5.HintDirective, typeof i6.LabelDirective, typeof i7.PrefixDirective, typeof i8.SuffixDirective]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormFieldModule>;
|
|
14
|
+
}
|
|
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, OnDestroy } from
|
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm, ValidationErrors, Validator } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { BooleanInput } from '../../../../utilities';
|
|
5
|
-
import { ImpdcFormRoot } from '../../
|
|
5
|
+
import { ImpdcFormRoot } from '../../component';
|
|
6
6
|
import { ErrorStateMatcher } from '../../services';
|
|
7
7
|
import { HasTabIndex, ICanUpdateErrorState, IHasErrorState, ImpdcFormFieldControl } from '../../shared';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -60,6 +60,10 @@ export declare class CheckboxComponent extends _CheckboxComponentMixinBase imple
|
|
|
60
60
|
* Whether or not the checkbox displays inline.
|
|
61
61
|
*/
|
|
62
62
|
inline: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Opt to display the checkbox control before the label (`'check-start'`) or after the label (`'check-end'`)
|
|
65
|
+
*/
|
|
66
|
+
layout: 'check-start' | 'check-end';
|
|
63
67
|
/**
|
|
64
68
|
* Whether or not the checkbox input is checked.
|
|
65
69
|
*/
|
|
@@ -128,6 +132,6 @@ export declare class CheckboxComponent extends _CheckboxComponentMixinBase imple
|
|
|
128
132
|
*/
|
|
129
133
|
protected _preventBubblingFromLabel(event: MouseEvent): void;
|
|
130
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, [null, { attribute: "tabindex"; }, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
|
131
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "impdc-checkbox", ["impdcCheckControl"], { "tabIndex": { "alias": "tabIndex"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "isSwitch": { "alias": "isSwitch"; "required": false; }; "switchIcons": { "alias": "switchIcons"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, never,
|
|
135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "impdc-checkbox", ["impdcCheckControl"], { "tabIndex": { "alias": "tabIndex"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "isSwitch": { "alias": "isSwitch"; "required": false; }; "switchIcons": { "alias": "switchIcons"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, never, true, never>;
|
|
132
136
|
}
|
|
133
137
|
export {};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./checkbox.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../shared/toggle/toggle.module";
|
|
5
3
|
export declare class CheckboxModule {
|
|
6
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, [typeof i1.CheckboxComponent], [typeof
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, never, [typeof i1.CheckboxComponent], [typeof i1.CheckboxComponent]>;
|
|
8
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxModule>;
|
|
9
7
|
}
|
|
@@ -2,7 +2,7 @@ import { DoCheck, ElementRef, OnChanges, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { BooleanInput } from '../../../../utilities';
|
|
5
|
-
import { ImpdcFormRoot } from '../../
|
|
5
|
+
import { ImpdcFormRoot } from '../../component';
|
|
6
6
|
import { ErrorStateMatcher } from '../../services';
|
|
7
7
|
import { ICanUpdateErrorState, IHasErrorState } from '../../shared';
|
|
8
8
|
import { ImpdcFormFieldControl } from '../../shared/form-field-control';
|
|
@@ -79,6 +79,6 @@ export declare class InputDirective extends _InputDirectiveBase implements Impdc
|
|
|
79
79
|
protected _typeIsValid(inputType: string): boolean;
|
|
80
80
|
protected _onInput(): void;
|
|
81
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDirective, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null]>;
|
|
82
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<InputDirective, "input[impdcInput], textarea[impdcInput], select[impdcNativeSelect]", ["impdcInput"], { "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never,
|
|
82
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputDirective, "input[impdcInput], textarea[impdcInput], select[impdcNativeSelect]", ["impdcInput"], { "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
|
|
83
83
|
}
|
|
84
84
|
export {};
|
|
@@ -93,6 +93,6 @@ export declare class RadioButtonComponent extends _RadioButtonComponentMixinBase
|
|
|
93
93
|
protected _onInputChange(event: Event): void;
|
|
94
94
|
protected _updateTabIndex(): void;
|
|
95
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [null, null, { attribute: "tabindex"; }, { optional: true; }]>;
|
|
96
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "impdc-radio-button", ["impdcRadioButton"], { "tabIndex": { "alias": "tabIndex"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, { "change": "change"; }, never, never,
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "impdc-radio-button", ["impdcRadioButton"], { "tabIndex": { "alias": "tabIndex"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
97
97
|
}
|
|
98
98
|
export {};
|
|
@@ -2,7 +2,7 @@ import { AfterContentInit, ChangeDetectorRef, DoCheck, EventEmitter, OnDestroy,
|
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
3
3
|
import { BooleanInput } from '../../../../../utilities';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
|
-
import { ImpdcFormRoot } from '../../../
|
|
5
|
+
import { ImpdcFormRoot } from '../../../component';
|
|
6
6
|
import { ErrorStateMatcher } from '../../../services';
|
|
7
7
|
import { IHasErrorState, ImpdcFormFieldControl } from '../../../shared';
|
|
8
8
|
import { RadioChangeEvent, IRadioButton, IRadioGroup } from '../interfaces';
|
|
@@ -99,6 +99,6 @@ export declare class RadioGroupDirective<TRadioButton extends IRadioButton = IRa
|
|
|
99
99
|
protected _updateRadioOptionNames(): void;
|
|
100
100
|
protected _updateSelectedRadioOptionFromValue(): void;
|
|
101
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupDirective<any>, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
|
102
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupDirective<any>, "impdc-radio-group", ["impdcRadioGroup"], { "name": { "alias": "name"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; }, ["_radioOptions"], never,
|
|
102
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupDirective<any>, "impdc-radio-group", ["impdcRadioGroup"], { "name": { "alias": "name"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; }, ["_radioOptions"], never, true, never>;
|
|
103
103
|
}
|
|
104
104
|
export {};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./radio-button/radio-button.component";
|
|
3
3
|
import * as i2 from "./radio-group/radio-group.directive";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "../shared/toggle/toggle.module";
|
|
6
4
|
export declare class RadioModule {
|
|
7
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RadioModule, [typeof i1.RadioButtonComponent, typeof i2.RadioGroupDirective], [typeof
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RadioModule, never, [typeof i1.RadioButtonComponent, typeof i2.RadioGroupDirective], [typeof i1.RadioButtonComponent, typeof i2.RadioGroupDirective]>;
|
|
9
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<RadioModule>;
|
|
10
8
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { ISelectOption } from './interfaces';
|
|
2
|
+
export { SelectOptionGroupComponent } from './option-group';
|
|
3
|
+
export { SelectOptionComponent } from './option';
|
|
4
|
+
export { SelectOptionDisplayComponent, SelectOptionSelectionChangeEvent } from './option-display';
|
|
5
|
+
export { ISelectOptionParentComponent, ISelectValueBadgesParentComponent, IMPDC_SELECT_OPTION_PARENT_COMPONENT, IMPDC_SELECT_VALUE_BADGES_PARENT_COMPONENT } from './option-parent';
|
|
3
6
|
export { SelectChange, SelectModel } from './select-model';
|
|
7
|
+
export { SelectValueTagsDisplayComponent } from './value-tags-display';
|
|
4
8
|
export { SelectChangeEvent, SelectComponent } from './select.component';
|
|
5
9
|
export { SelectModule } from './select.module';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select-option.interface';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './select-option.component';
|
|
@@ -1,60 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NgbDropdownItem } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
-
import { BooleanInput } from '../../../../../utilities';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
|
-
import { ISelectOptionParentComponent } from '../option-parent';
|
|
1
|
+
import { ISelectOption } from '../interfaces';
|
|
6
2
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
constructor(source: SelectOptionComponent, isUserInput?: boolean);
|
|
11
|
-
}
|
|
12
|
-
export declare class SelectOptionComponent<T = any> extends NgbDropdownItem implements OnDestroy {
|
|
13
|
-
private readonly _parent;
|
|
14
|
-
private readonly _changeDetector;
|
|
15
|
-
/** @ignore */
|
|
16
|
-
readonly stateChanges: Subject<void>;
|
|
17
|
-
private _selected;
|
|
18
|
-
private __disabled;
|
|
19
|
-
/** @ignore */
|
|
20
|
-
get multiple(): boolean;
|
|
21
|
-
/** @ignore */
|
|
22
|
-
get selected(): boolean;
|
|
3
|
+
export declare class SelectOptionComponent implements ISelectOption {
|
|
4
|
+
private readonly _group?;
|
|
5
|
+
readonly uid: string;
|
|
23
6
|
/**
|
|
24
7
|
* The specific value represented by the select option.
|
|
25
8
|
*/
|
|
26
|
-
value
|
|
9
|
+
value: any;
|
|
27
10
|
/**
|
|
28
11
|
* Label text describing the select option.
|
|
29
12
|
*/
|
|
30
|
-
|
|
31
|
-
set label(label: string);
|
|
32
|
-
private _label;
|
|
33
|
-
/** @ignore */
|
|
34
|
-
id: string;
|
|
13
|
+
label: string;
|
|
35
14
|
/**
|
|
36
15
|
* Used to enable or disable the specific select option.
|
|
37
16
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
constructor(_parent: ISelectOptionParentComponent, _changeDetector: ChangeDetectorRef);
|
|
43
|
-
/** @ignore */
|
|
44
|
-
select(): void;
|
|
45
|
-
/** @ignore */
|
|
46
|
-
deselect(): void;
|
|
47
|
-
/** @ignore */
|
|
48
|
-
ngOnDestroy(): void;
|
|
49
|
-
/** Ensures the option is selected when activated from the keyboard. */
|
|
50
|
-
protected _handleKeydown(event: KeyboardEvent): void;
|
|
51
|
-
/**
|
|
52
|
-
* `Selects the option while indicating the selection came from the user. Used to
|
|
53
|
-
* determine if the select's view -> model callback should be invoked.`
|
|
54
|
-
*/
|
|
55
|
-
protected _selectViaInteraction(): void;
|
|
56
|
-
private _emitSelectionChangeEvent;
|
|
57
|
-
private _isInteractionKeyEvent;
|
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionComponent<any>, [{ optional: true; }, null]>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectOptionComponent<any>, "impdc-select-option", never, { "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; }, never, never, false, never>;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
get groupLabel(): string | undefined;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectOptionComponent, "impdc-select-option", never, { "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
60
21
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SelectOptionSelectionChangeEvent, SelectOptionDisplayComponent } from './select-option-display.component';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { NgbDropdownItem } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { BooleanInput } from '../../../../../utilities';
|
|
5
|
+
import { ISelectOption } from '../interfaces';
|
|
6
|
+
import { ISelectOptionParentComponent } from '../option-parent';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SelectOptionSelectionChangeEvent<T = any> {
|
|
9
|
+
source: SelectOptionDisplayComponent;
|
|
10
|
+
isUserInput: boolean;
|
|
11
|
+
constructor(source: SelectOptionDisplayComponent, isUserInput?: boolean);
|
|
12
|
+
}
|
|
13
|
+
export declare class SelectOptionDisplayComponent extends NgbDropdownItem implements ISelectOption, OnDestroy {
|
|
14
|
+
protected readonly parent: ISelectOptionParentComponent | undefined;
|
|
15
|
+
private readonly _changeDetector;
|
|
16
|
+
/** @ignore */
|
|
17
|
+
readonly stateChanges: Subject<void>;
|
|
18
|
+
private _selected;
|
|
19
|
+
private __disabled;
|
|
20
|
+
/** @ignore */
|
|
21
|
+
get multiple(): boolean;
|
|
22
|
+
/** @ignore */
|
|
23
|
+
get selected(): boolean;
|
|
24
|
+
set selected(value: boolean | undefined);
|
|
25
|
+
/**
|
|
26
|
+
* The specific value represented by the select option.
|
|
27
|
+
*/
|
|
28
|
+
value: any;
|
|
29
|
+
/**
|
|
30
|
+
* Label text describing the select option.
|
|
31
|
+
*/
|
|
32
|
+
get label(): string;
|
|
33
|
+
set label(label: string);
|
|
34
|
+
private _label;
|
|
35
|
+
groupLabel?: string;
|
|
36
|
+
highlightText: string | null;
|
|
37
|
+
/** @ignore */
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Used to enable or disable the specific select option.
|
|
41
|
+
*/
|
|
42
|
+
get disabled(): boolean;
|
|
43
|
+
set disabled(value: BooleanInput);
|
|
44
|
+
/** @ignore */
|
|
45
|
+
readonly onSelectionChange: EventEmitter<SelectOptionSelectionChangeEvent<any>>;
|
|
46
|
+
constructor(parent: ISelectOptionParentComponent | undefined, _changeDetector: ChangeDetectorRef);
|
|
47
|
+
/** @ignore */
|
|
48
|
+
select(): void;
|
|
49
|
+
/** @ignore */
|
|
50
|
+
deselect(): void;
|
|
51
|
+
/** @ignore */
|
|
52
|
+
ngOnDestroy(): void;
|
|
53
|
+
/** Ensures the option is selected when activated from the keyboard. */
|
|
54
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
55
|
+
/**
|
|
56
|
+
* `Selects the option while indicating the selection came from the user. Used to
|
|
57
|
+
* determine if the select's view -> model callback should be invoked.`
|
|
58
|
+
*/
|
|
59
|
+
protected selectViaInteraction(): void;
|
|
60
|
+
private _emitSelectionChangeEvent;
|
|
61
|
+
private _isInteractionKeyEvent;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionDisplayComponent, [{ optional: true; }, null]>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectOptionDisplayComponent, "impdc-select-option-display", never, { "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "groupLabel": { "alias": "groupLabel"; "required": false; }; "highlightText": { "alias": "highlightText"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; }, never, never, true, never>;
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select-option-group.component';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ISelectOptionGroup {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const IMPDC_SELECT_OPTION_GROUP_COMPONENT: InjectionToken<ISelectOptionGroup>;
|
|
7
|
+
export declare class SelectOptionGroupComponent implements ISelectOptionGroup {
|
|
8
|
+
label: string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionGroupComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectOptionGroupComponent, "impdc-select-option-group", never, { "label": { "alias": "label"; "required": true; }; }, {}, never, ["impdc-select-option"], true, never>;
|
|
11
|
+
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ISelectOption } from './interfaces';
|
|
3
|
+
import { SelectChangeEvent } from './select.component';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
2
5
|
export interface ISelectOptionParentComponent {
|
|
3
|
-
multiple?: boolean;
|
|
6
|
+
readonly multiple?: boolean;
|
|
4
7
|
}
|
|
5
8
|
export declare const IMPDC_SELECT_OPTION_PARENT_COMPONENT: InjectionToken<ISelectOptionParentComponent>;
|
|
9
|
+
export interface ISelectValueBadgesParentComponent {
|
|
10
|
+
readonly selected: ISelectOption | ISelectOption[];
|
|
11
|
+
readonly selectionChange: Observable<SelectChangeEvent<ISelectValueBadgesParentComponent>>;
|
|
12
|
+
readonly stateChanges: Observable<void>;
|
|
13
|
+
readonly disabled: boolean;
|
|
14
|
+
deselectOption(option: ISelectOption): void;
|
|
15
|
+
}
|
|
16
|
+
export declare const IMPDC_SELECT_VALUE_BADGES_PARENT_COMPONENT: InjectionToken<ISelectValueBadgesParentComponent>;
|