@siemens/ix-angular 2.4.1 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/components.d.ts +191 -24
  2. package/control-value-accessors/boolean-value-accessor.d.ts +10 -0
  3. package/control-value-accessors/date-value-accessor.d.ts +9 -0
  4. package/control-value-accessors/index.d.ts +5 -0
  5. package/control-value-accessors/radio-value-accessor.d.ts +10 -0
  6. package/control-value-accessors/select-value-accessor.d.ts +9 -0
  7. package/control-value-accessors/text-value-accessor.d.ts +9 -0
  8. package/{value-accessor.d.ts → control-value-accessors/value-accessor.d.ts} +12 -6
  9. package/declare-components.d.ts +1 -1
  10. package/esm2020/app-initialize.mjs +2 -2
  11. package/esm2020/components.mjs +328 -63
  12. package/esm2020/control-value-accessors/boolean-value-accessor.mjs +49 -0
  13. package/esm2020/control-value-accessors/date-value-accessor.mjs +45 -0
  14. package/esm2020/control-value-accessors/index.mjs +14 -0
  15. package/esm2020/control-value-accessors/radio-value-accessor.mjs +51 -0
  16. package/esm2020/control-value-accessors/select-value-accessor.mjs +45 -0
  17. package/esm2020/control-value-accessors/text-value-accessor.mjs +48 -0
  18. package/esm2020/control-value-accessors/value-accessor.mjs +125 -0
  19. package/esm2020/declare-components.mjs +13 -3
  20. package/esm2020/index.mjs +2 -3
  21. package/esm2020/module.mjs +22 -10
  22. package/fesm2015/siemens-ix-angular.mjs +700 -180
  23. package/fesm2015/siemens-ix-angular.mjs.map +1 -1
  24. package/fesm2020/siemens-ix-angular.mjs +700 -180
  25. package/fesm2020/siemens-ix-angular.mjs.map +1 -1
  26. package/index.d.ts +1 -2
  27. package/module.d.ts +6 -3
  28. package/package.json +2 -2
  29. package/boolean-value-accessor.d.ts +0 -9
  30. package/esm2020/boolean-value-accessor.mjs +0 -38
  31. package/esm2020/select-value-accessor.mjs +0 -35
  32. package/esm2020/value-accessor.mjs +0 -40
  33. package/select-value-accessor.d.ts +0 -8
package/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  export * from '@siemens/ix';
2
- export * from './boolean-value-accessor';
3
2
  export * from './components';
4
3
  export * from './dropdown/trigger.directive';
5
4
  export { IxIcon } from './ix-icon';
6
5
  export * from './modal';
7
6
  export * from './module';
8
- export * from './select-value-accessor';
9
7
  export * from './theme';
10
8
  export * from './toast';
11
9
  export * from './tree';
10
+ export * from './control-value-accessors';
package/module.d.ts CHANGED
@@ -4,11 +4,14 @@ import * as i1 from "./components";
4
4
  import * as i2 from "./tree/tree";
5
5
  import * as i3 from "./dropdown/trigger.directive";
6
6
  import * as i4 from "./ix-icon";
7
- import * as i5 from "./select-value-accessor";
8
- import * as i6 from "./boolean-value-accessor";
7
+ import * as i5 from "./control-value-accessors/text-value-accessor";
8
+ import * as i6 from "./control-value-accessors/select-value-accessor";
9
+ import * as i7 from "./control-value-accessors/radio-value-accessor";
10
+ import * as i8 from "./control-value-accessors/boolean-value-accessor";
11
+ import * as i9 from "./control-value-accessors/date-value-accessor";
9
12
  export declare class IxModule {
10
13
  static forRoot(): ModuleWithProviders<IxModule>;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<IxModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<IxModule, [typeof i1.IxActionCard, typeof i1.IxApplication, typeof i1.IxApplicationHeader, typeof i1.IxAvatar, typeof i1.IxBasicNavigation, typeof i1.IxBlind, typeof i1.IxBreadcrumb, typeof i1.IxBreadcrumbItem, typeof i1.IxButton, typeof i1.IxCard, typeof i1.IxCardAccordion, typeof i1.IxCardContent, typeof i1.IxCardList, typeof i1.IxCardTitle, typeof i1.IxCategoryFilter, typeof i1.IxChip, typeof i1.IxCol, typeof i1.IxContent, typeof i1.IxContentHeader, typeof i1.IxDateDropdown, typeof i1.IxDatePicker, typeof i1.IxDatetimePicker, typeof i1.IxDivider, typeof i1.IxDrawer, typeof i1.IxDropdown, typeof i1.IxDropdownButton, typeof i1.IxDropdownHeader, typeof i1.IxDropdownItem, typeof i1.IxDropdownQuickActions, typeof i1.IxEmptyState, typeof i1.IxEventList, typeof i1.IxEventListItem, typeof i1.IxExpandingSearch, typeof i1.IxFilterChip, typeof i1.IxFlipTile, typeof i1.IxFlipTileContent, typeof i1.IxFormField, typeof i1.IxGroup, typeof i1.IxGroupContextMenu, typeof i1.IxGroupItem, typeof i1.IxIconButton, typeof i1.IxIconToggleButton, typeof i1.IxInputGroup, typeof i1.IxKeyValue, typeof i1.IxKeyValueList, typeof i1.IxKpi, typeof i1.IxLayoutGrid, typeof i1.IxLinkButton, typeof i1.IxMapNavigation, typeof i1.IxMapNavigationOverlay, typeof i1.IxMenu, typeof i1.IxMenuAbout, typeof i1.IxMenuAboutItem, typeof i1.IxMenuAboutNews, typeof i1.IxMenuAvatar, typeof i1.IxMenuAvatarItem, typeof i1.IxMenuCategory, typeof i1.IxMenuItem, typeof i1.IxMenuSettings, typeof i1.IxMenuSettingsItem, typeof i1.IxMessageBar, typeof i1.IxModal, typeof i1.IxModalContent, typeof i1.IxModalExample, typeof i1.IxModalFooter, typeof i1.IxModalHeader, typeof i1.IxPagination, typeof i1.IxPane, typeof i1.IxPaneLayout, typeof i1.IxPill, typeof i1.IxPushCard, typeof i1.IxRow, typeof i1.IxSelect, typeof i1.IxSelectItem, typeof i1.IxSlider, typeof i1.IxSpinner, typeof i1.IxSplitButton, typeof i1.IxSplitButtonItem, typeof i1.IxTabItem, typeof i1.IxTabs, typeof i1.IxTile, typeof i1.IxTimePicker, typeof i1.IxToast, typeof i1.IxToastContainer, typeof i1.IxToggle, typeof i1.IxToggleButton, typeof i1.IxTooltip, typeof i1.IxTreeItem, typeof i1.IxTypography, typeof i1.IxUpload, typeof i1.IxValidationTooltip, typeof i1.IxWorkflowStep, typeof i1.IxWorkflowSteps, typeof i2.IxTree, typeof i3.IxDropdownTriggerDirective, typeof i4.IxIcon, typeof i5.SelectValueAccessor, typeof i6.BooleanValueAccessor], never, [typeof i1.IxActionCard, typeof i1.IxApplication, typeof i1.IxApplicationHeader, typeof i1.IxAvatar, typeof i1.IxBasicNavigation, typeof i1.IxBlind, typeof i1.IxBreadcrumb, typeof i1.IxBreadcrumbItem, typeof i1.IxButton, typeof i1.IxCard, typeof i1.IxCardAccordion, typeof i1.IxCardContent, typeof i1.IxCardList, typeof i1.IxCardTitle, typeof i1.IxCategoryFilter, typeof i1.IxChip, typeof i1.IxCol, typeof i1.IxContent, typeof i1.IxContentHeader, typeof i1.IxDateDropdown, typeof i1.IxDatePicker, typeof i1.IxDatetimePicker, typeof i1.IxDivider, typeof i1.IxDrawer, typeof i1.IxDropdown, typeof i1.IxDropdownButton, typeof i1.IxDropdownHeader, typeof i1.IxDropdownItem, typeof i1.IxDropdownQuickActions, typeof i1.IxEmptyState, typeof i1.IxEventList, typeof i1.IxEventListItem, typeof i1.IxExpandingSearch, typeof i1.IxFilterChip, typeof i1.IxFlipTile, typeof i1.IxFlipTileContent, typeof i1.IxFormField, typeof i1.IxGroup, typeof i1.IxGroupContextMenu, typeof i1.IxGroupItem, typeof i1.IxIconButton, typeof i1.IxIconToggleButton, typeof i1.IxInputGroup, typeof i1.IxKeyValue, typeof i1.IxKeyValueList, typeof i1.IxKpi, typeof i1.IxLayoutGrid, typeof i1.IxLinkButton, typeof i1.IxMapNavigation, typeof i1.IxMapNavigationOverlay, typeof i1.IxMenu, typeof i1.IxMenuAbout, typeof i1.IxMenuAboutItem, typeof i1.IxMenuAboutNews, typeof i1.IxMenuAvatar, typeof i1.IxMenuAvatarItem, typeof i1.IxMenuCategory, typeof i1.IxMenuItem, typeof i1.IxMenuSettings, typeof i1.IxMenuSettingsItem, typeof i1.IxMessageBar, typeof i1.IxModal, typeof i1.IxModalContent, typeof i1.IxModalExample, typeof i1.IxModalFooter, typeof i1.IxModalHeader, typeof i1.IxPagination, typeof i1.IxPane, typeof i1.IxPaneLayout, typeof i1.IxPill, typeof i1.IxPushCard, typeof i1.IxRow, typeof i1.IxSelect, typeof i1.IxSelectItem, typeof i1.IxSlider, typeof i1.IxSpinner, typeof i1.IxSplitButton, typeof i1.IxSplitButtonItem, typeof i1.IxTabItem, typeof i1.IxTabs, typeof i1.IxTile, typeof i1.IxTimePicker, typeof i1.IxToast, typeof i1.IxToastContainer, typeof i1.IxToggle, typeof i1.IxToggleButton, typeof i1.IxTooltip, typeof i1.IxTreeItem, typeof i1.IxTypography, typeof i1.IxUpload, typeof i1.IxValidationTooltip, typeof i1.IxWorkflowStep, typeof i1.IxWorkflowSteps, typeof i2.IxTree, typeof i3.IxDropdownTriggerDirective, typeof i4.IxIcon, typeof i5.SelectValueAccessor, typeof i6.BooleanValueAccessor]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IxModule, [typeof i1.IxActionCard, typeof i1.IxApplication, typeof i1.IxApplicationHeader, typeof i1.IxAvatar, typeof i1.IxBasicNavigation, typeof i1.IxBlind, typeof i1.IxBreadcrumb, typeof i1.IxBreadcrumbItem, typeof i1.IxButton, typeof i1.IxCard, typeof i1.IxCardAccordion, typeof i1.IxCardContent, typeof i1.IxCardList, typeof i1.IxCardTitle, typeof i1.IxCategoryFilter, typeof i1.IxCheckbox, typeof i1.IxCheckboxGroup, typeof i1.IxChip, typeof i1.IxCol, typeof i1.IxContent, typeof i1.IxContentHeader, typeof i1.IxCustomField, typeof i1.IxDateDropdown, typeof i1.IxDateInput, typeof i1.IxDatePicker, typeof i1.IxDatetimePicker, typeof i1.IxDivider, typeof i1.IxDrawer, typeof i1.IxDropdown, typeof i1.IxDropdownButton, typeof i1.IxDropdownHeader, typeof i1.IxDropdownItem, typeof i1.IxDropdownQuickActions, typeof i1.IxEmptyState, typeof i1.IxEventList, typeof i1.IxEventListItem, typeof i1.IxExpandingSearch, typeof i1.IxFieldLabel, typeof i1.IxFilterChip, typeof i1.IxFlipTile, typeof i1.IxFlipTileContent, typeof i1.IxGroup, typeof i1.IxGroupContextMenu, typeof i1.IxGroupItem, typeof i1.IxHelperText, typeof i1.IxIconButton, typeof i1.IxIconToggleButton, typeof i1.IxInput, typeof i1.IxInputGroup, typeof i1.IxKeyValue, typeof i1.IxKeyValueList, typeof i1.IxKpi, typeof i1.IxLayoutAuto, typeof i1.IxLayoutGrid, typeof i1.IxLinkButton, typeof i1.IxMapNavigation, typeof i1.IxMapNavigationOverlay, typeof i1.IxMenu, typeof i1.IxMenuAbout, typeof i1.IxMenuAboutItem, typeof i1.IxMenuAboutNews, typeof i1.IxMenuAvatar, typeof i1.IxMenuAvatarItem, typeof i1.IxMenuCategory, typeof i1.IxMenuItem, typeof i1.IxMenuSettings, typeof i1.IxMenuSettingsItem, typeof i1.IxMessageBar, typeof i1.IxModal, typeof i1.IxModalContent, typeof i1.IxModalFooter, typeof i1.IxModalHeader, typeof i1.IxNumberInput, typeof i1.IxPagination, typeof i1.IxPane, typeof i1.IxPaneLayout, typeof i1.IxPill, typeof i1.IxPushCard, typeof i1.IxRadio, typeof i1.IxRadioGroup, typeof i1.IxRow, typeof i1.IxSelect, typeof i1.IxSelectItem, typeof i1.IxSlider, typeof i1.IxSpinner, typeof i1.IxSplitButton, typeof i1.IxSplitButtonItem, typeof i1.IxTabItem, typeof i1.IxTabs, typeof i1.IxTextarea, typeof i1.IxTile, typeof i1.IxTimePicker, typeof i1.IxToast, typeof i1.IxToastContainer, typeof i1.IxToggle, typeof i1.IxToggleButton, typeof i1.IxTooltip, typeof i1.IxTreeItem, typeof i1.IxTypography, typeof i1.IxUpload, typeof i1.IxValidationTooltip, typeof i1.IxWorkflowStep, typeof i1.IxWorkflowSteps, typeof i2.IxTree, typeof i3.IxDropdownTriggerDirective, typeof i4.IxIcon, typeof i5.TextValueAccessorDirective, typeof i6.SelectValueAccessorDirective, typeof i7.RadioValueAccessorDirective, typeof i8.BooleanValueAccessorDirective, typeof i9.DateValueAccessorDirective], never, [typeof i1.IxActionCard, typeof i1.IxApplication, typeof i1.IxApplicationHeader, typeof i1.IxAvatar, typeof i1.IxBasicNavigation, typeof i1.IxBlind, typeof i1.IxBreadcrumb, typeof i1.IxBreadcrumbItem, typeof i1.IxButton, typeof i1.IxCard, typeof i1.IxCardAccordion, typeof i1.IxCardContent, typeof i1.IxCardList, typeof i1.IxCardTitle, typeof i1.IxCategoryFilter, typeof i1.IxCheckbox, typeof i1.IxCheckboxGroup, typeof i1.IxChip, typeof i1.IxCol, typeof i1.IxContent, typeof i1.IxContentHeader, typeof i1.IxCustomField, typeof i1.IxDateDropdown, typeof i1.IxDateInput, typeof i1.IxDatePicker, typeof i1.IxDatetimePicker, typeof i1.IxDivider, typeof i1.IxDrawer, typeof i1.IxDropdown, typeof i1.IxDropdownButton, typeof i1.IxDropdownHeader, typeof i1.IxDropdownItem, typeof i1.IxDropdownQuickActions, typeof i1.IxEmptyState, typeof i1.IxEventList, typeof i1.IxEventListItem, typeof i1.IxExpandingSearch, typeof i1.IxFieldLabel, typeof i1.IxFilterChip, typeof i1.IxFlipTile, typeof i1.IxFlipTileContent, typeof i1.IxGroup, typeof i1.IxGroupContextMenu, typeof i1.IxGroupItem, typeof i1.IxHelperText, typeof i1.IxIconButton, typeof i1.IxIconToggleButton, typeof i1.IxInput, typeof i1.IxInputGroup, typeof i1.IxKeyValue, typeof i1.IxKeyValueList, typeof i1.IxKpi, typeof i1.IxLayoutAuto, typeof i1.IxLayoutGrid, typeof i1.IxLinkButton, typeof i1.IxMapNavigation, typeof i1.IxMapNavigationOverlay, typeof i1.IxMenu, typeof i1.IxMenuAbout, typeof i1.IxMenuAboutItem, typeof i1.IxMenuAboutNews, typeof i1.IxMenuAvatar, typeof i1.IxMenuAvatarItem, typeof i1.IxMenuCategory, typeof i1.IxMenuItem, typeof i1.IxMenuSettings, typeof i1.IxMenuSettingsItem, typeof i1.IxMessageBar, typeof i1.IxModal, typeof i1.IxModalContent, typeof i1.IxModalFooter, typeof i1.IxModalHeader, typeof i1.IxNumberInput, typeof i1.IxPagination, typeof i1.IxPane, typeof i1.IxPaneLayout, typeof i1.IxPill, typeof i1.IxPushCard, typeof i1.IxRadio, typeof i1.IxRadioGroup, typeof i1.IxRow, typeof i1.IxSelect, typeof i1.IxSelectItem, typeof i1.IxSlider, typeof i1.IxSpinner, typeof i1.IxSplitButton, typeof i1.IxSplitButtonItem, typeof i1.IxTabItem, typeof i1.IxTabs, typeof i1.IxTextarea, typeof i1.IxTile, typeof i1.IxTimePicker, typeof i1.IxToast, typeof i1.IxToastContainer, typeof i1.IxToggle, typeof i1.IxToggleButton, typeof i1.IxTooltip, typeof i1.IxTreeItem, typeof i1.IxTypography, typeof i1.IxUpload, typeof i1.IxValidationTooltip, typeof i1.IxWorkflowStep, typeof i1.IxWorkflowSteps, typeof i2.IxTree, typeof i3.IxDropdownTriggerDirective, typeof i4.IxIcon, typeof i5.TextValueAccessorDirective, typeof i6.SelectValueAccessorDirective, typeof i7.RadioValueAccessorDirective, typeof i8.BooleanValueAccessorDirective, typeof i9.DateValueAccessorDirective]>;
13
16
  static ɵinj: i0.ɵɵInjectorDeclaration<IxModule>;
14
17
  }
package/package.json CHANGED
@@ -7,11 +7,11 @@
7
7
  "url": "https://github.com/siemens/ix",
8
8
  "directory": "packages/angular"
9
9
  },
10
- "version": "2.4.1",
10
+ "version": "2.6.0",
11
11
  "description": "Siemens iX for Angular",
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
- "@siemens/ix": "~2.4.1",
14
+ "@siemens/ix": "~2.6.0",
15
15
  "tslib": "^2.3.0"
16
16
  },
17
17
  "peerDependencies": {
@@ -1,9 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { ValueAccessor } from './value-accessor';
3
- import * as i0 from "@angular/core";
4
- export declare class BooleanValueAccessor extends ValueAccessor {
5
- constructor(el: ElementRef);
6
- writeValue(value: any): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanValueAccessor, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<BooleanValueAccessor, "ix-toggle[ngModel],ix-toggle[formControlName],ix-toggle[formControl]", never, {}, {}, never>;
9
- }
@@ -1,38 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import { ValueAccessor } from './value-accessor';
4
- import * as i0 from "@angular/core";
5
- export class BooleanValueAccessor extends ValueAccessor {
6
- constructor(el) {
7
- super(el);
8
- }
9
- writeValue(value) {
10
- this.el.nativeElement.checked = this.lastValue = value == null ? false : value;
11
- }
12
- }
13
- /** @nocollapse */ BooleanValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: BooleanValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
14
- /** @nocollapse */ BooleanValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: BooleanValueAccessor, selector: "ix-toggle[ngModel],ix-toggle[formControlName],ix-toggle[formControl]", host: { listeners: { "checkedChange": "handleChangeEvent($event.target.checked)" } }, providers: [
15
- {
16
- provide: NG_VALUE_ACCESSOR,
17
- useExisting: BooleanValueAccessor,
18
- multi: true
19
- }
20
- ], usesInheritance: true, ngImport: i0 });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: BooleanValueAccessor, decorators: [{
22
- type: Directive,
23
- args: [{
24
- /* tslint:disable-next-line:directive-selector */
25
- selector: 'ix-toggle[ngModel],ix-toggle[formControlName],ix-toggle[formControl]',
26
- host: {
27
- '(checkedChange)': 'handleChangeEvent($event.target.checked)'
28
- },
29
- providers: [
30
- {
31
- provide: NG_VALUE_ACCESSOR,
32
- useExisting: BooleanValueAccessor,
33
- multi: true
34
- }
35
- ]
36
- }]
37
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
38
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vbGVhbi12YWx1ZS1hY2Nlc3Nvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ib29sZWFuL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import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import { ValueAccessor } from './value-accessor';
4
- import * as i0 from "@angular/core";
5
- export class SelectValueAccessor extends ValueAccessor {
6
- constructor(el) {
7
- super(el);
8
- }
9
- }
10
- /** @nocollapse */ SelectValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SelectValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
11
- /** @nocollapse */ SelectValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: SelectValueAccessor, selector: "ix-select[ngModel],ix-select[formControlName],ix-select[formControl]", host: { listeners: { "valueChange": "handleChangeEvent($event.target.value)" } }, providers: [
12
- {
13
- provide: NG_VALUE_ACCESSOR,
14
- useExisting: SelectValueAccessor,
15
- multi: true
16
- }
17
- ], usesInheritance: true, ngImport: i0 });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SelectValueAccessor, decorators: [{
19
- type: Directive,
20
- args: [{
21
- /* tslint:disable-next-line:directive-selector */
22
- selector: 'ix-select[ngModel],ix-select[formControlName],ix-select[formControl]',
23
- host: {
24
- '(valueChange)': 'handleChangeEvent($event.target.value)'
25
- },
26
- providers: [
27
- {
28
- provide: NG_VALUE_ACCESSOR,
29
- useExisting: SelectValueAccessor,
30
- multi: true
31
- }
32
- ]
33
- }]
34
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LXZhbHVlLWFjY2Vzc29yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NlbGVjdC12YWx1ZS1hY2Nlc3Nvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQ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dG9yICovXG4gIHNlbGVjdG9yOiAnaXgtc2VsZWN0W25nTW9kZWxdLGl4LXNlbGVjdFtmb3JtQ29udHJvbE5hbWVdLGl4LXNlbGVjdFtmb3JtQ29udHJvbF0nLFxuICBob3N0OiB7XG4gICAgJyh2YWx1ZUNoYW5nZSknOiAnaGFuZGxlQ2hhbmdlRXZlbnQoJGV2ZW50LnRhcmdldC52YWx1ZSknXG4gIH0sXG4gIHByb3ZpZGVyczogW1xuICAgIHtcbiAgICAgIHByb3ZpZGU6IE5HX1ZBTFVFX0FDQ0VTU09SLFxuICAgICAgdXNlRXhpc3Rpbmc6IFNlbGVjdFZhbHVlQWNjZXNzb3IsXG4gICAgICBtdWx0aTogdHJ1ZVxuICAgIH1cbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBTZWxlY3RWYWx1ZUFjY2Vzc29yIGV4dGVuZHMgVmFsdWVBY2Nlc3NvciB7XG4gIGNvbnN0cnVjdG9yKGVsOiBFbGVtZW50UmVmKSB7XG4gICAgc3VwZXIoZWwpO1xuICB9XG59XG4iXX0=
@@ -1,40 +0,0 @@
1
- import { Directive, HostListener } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class ValueAccessor {
4
- constructor(el) {
5
- this.el = el;
6
- this.onChange = () => { };
7
- this.onTouched = () => { };
8
- }
9
- writeValue(value) {
10
- this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
11
- }
12
- handleChangeEvent(value) {
13
- if (value !== this.lastValue) {
14
- this.lastValue = value;
15
- this.onChange(value);
16
- }
17
- }
18
- _handleBlurEvent() {
19
- this.onTouched();
20
- }
21
- registerOnChange(fn) {
22
- this.onChange = fn;
23
- }
24
- registerOnTouched(fn) {
25
- this.onTouched = fn;
26
- }
27
- setDisabledState(isDisabled) {
28
- this.el.nativeElement.disabled = isDisabled;
29
- }
30
- }
31
- /** @nocollapse */ ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
32
- /** @nocollapse */ ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ValueAccessor, decorators: [{
34
- type: Directive,
35
- args: [{}]
36
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
37
- type: HostListener,
38
- args: ['focusout']
39
- }] } });
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUtYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdmFsdWUtYWNjZXNzb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYyxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBSXBFLE1BQU0sT0FBTyxhQUFhO0lBTXhCLFlBQXNCLEVBQWM7UUFBZCxPQUFFLEdBQUYsRUFBRSxDQUFZO1FBSjVCLGFBQVEsR0FBeUIsR0FBRyxFQUFFLEdBQU0sQ0FBQyxDQUFDO1FBQzlDLGNBQVMsR0FBZSxHQUFHLEVBQUUsR0FBTSxDQUFDLENBQUM7SUFHTixDQUFDO0lBRXhDLFVBQVUsQ0FBQyxLQUFVO1FBQ25CLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsU0FBUyxHQUFHLEtBQUssSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDO0lBQzVFLENBQUM7SUFFRCxpQkFBaUIsQ0FBQyxLQUFVO1FBQ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PiB7LyoqL307XG4gIHByaXZhdGUgb25Ub3VjaGVkOiAoKSA9PiB2b2lkID0gKCkgPT4gey8qKi99O1xuICBwcm90ZWN0ZWQgbGFzdFZhbHVlOiBhbnk7XG5cbiAgY29uc3RydWN0b3IocHJvdGVjdGVkIGVsOiBFbGVtZW50UmVmKSB7fVxuXG4gIHdyaXRlVmFsdWUodmFsdWU6IGFueSkge1xuICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC52YWx1ZSA9IHRoaXMubGFzdFZhbHVlID0gdmFsdWUgPT0gbnVsbCA/ICcnIDogdmFsdWU7XG4gIH1cblxuICBoYW5kbGVDaGFuZ2VFdmVudCh2YWx1ZTogYW55KSB7XG4gICAgaWYgKHZhbHVlICE9PSB0aGlzLmxhc3RWYWx1ZSkge1xuICAgICAgdGhpcy5sYXN0VmFsdWUgPSB2YWx1ZTtcbiAgICAgIHRoaXMub25DaGFuZ2UodmFsdWUpO1xuICAgIH1cbiAgfVxuXG4gIEBIb3N0TGlzdGVuZXIoJ2ZvY3Vzb3V0JylcbiAgX2hhbmRsZUJsdXJFdmVudCgpIHtcbiAgICB0aGlzLm9uVG91Y2hlZCgpO1xuICB9XG5cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogKHZhbHVlOiBhbnkpID0+IHZvaWQpIHtcbiAgICB0aGlzLm9uQ2hhbmdlID0gZm47XG4gIH1cbiAgcmVnaXN0ZXJPblRvdWNoZWQoZm46ICgpID0+IHZvaWQpIHtcbiAgICB0aGlzLm9uVG91Y2hlZCA9IGZuO1xuICB9XG5cbiAgc2V0RGlzYWJsZWRTdGF0ZShpc0Rpc2FibGVkOiBib29sZWFuKSB7XG4gICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LmRpc2FibGVkID0gaXNEaXNhYmxlZDtcbiAgfVxufVxuIl19
@@ -1,8 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { ValueAccessor } from './value-accessor';
3
- import * as i0 from "@angular/core";
4
- export declare class SelectValueAccessor extends ValueAccessor {
5
- constructor(el: ElementRef);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueAccessor, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<SelectValueAccessor, "ix-select[ngModel],ix-select[formControlName],ix-select[formControl]", never, {}, {}, never>;
8
- }