@baloise/ds-angular-module 0.0.5-nightly.e56f740
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/LICENSE +201 -0
- package/README.md +45 -0
- package/app-initialize.d.ts +3 -0
- package/directives/error.component.d.ts +8 -0
- package/directives/focus.directive.d.ts +6 -0
- package/esm2020/app-initialize.mjs +28 -0
- package/esm2020/baloise-ds-angular-module.mjs +5 -0
- package/esm2020/directives/error.component.mjs +22 -0
- package/esm2020/directives/focus.directive.mjs +15 -0
- package/esm2020/generated/angular-component-lib/utils.mjs +61 -0
- package/esm2020/generated/boolean-value-accessor.mjs +39 -0
- package/esm2020/generated/number-value-accessor.mjs +40 -0
- package/esm2020/generated/proxies-list.mjs +116 -0
- package/esm2020/generated/proxies.mjs +3110 -0
- package/esm2020/generated/select-value-accessor.mjs +35 -0
- package/esm2020/generated/text-value-accessor.mjs +35 -0
- package/esm2020/generated/value-accessor.mjs +149 -0
- package/esm2020/index.mjs +10 -0
- package/esm2020/module.mjs +131 -0
- package/fesm2015/baloise-ds-angular-module.mjs +3637 -0
- package/fesm2015/baloise-ds-angular-module.mjs.map +1 -0
- package/fesm2020/baloise-ds-angular-module.mjs +3634 -0
- package/fesm2020/baloise-ds-angular-module.mjs.map +1 -0
- package/generated/angular-component-lib/utils.d.ts +9 -0
- package/generated/boolean-value-accessor.d.ts +9 -0
- package/generated/number-value-accessor.d.ts +9 -0
- package/generated/proxies-list.d.ts +2 -0
- package/generated/proxies.d.ts +1274 -0
- package/generated/select-value-accessor.d.ts +8 -0
- package/generated/text-value-accessor.d.ts +8 -0
- package/generated/value-accessor.d.ts +41 -0
- package/index.d.ts +10 -0
- package/module.d.ts +17 -0
- package/package.json +43 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementRef, Injector } 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(injector: Injector, el: ElementRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueAccessor, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectValueAccessor, "bal-radio-group, bal-checkbox-group, bal-select, bal-datepicker, bal-date, bal-input-date, bal-file-upload", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { ValueAccessor } from './value-accessor';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TextValueAccessor extends ValueAccessor {
|
|
5
|
+
constructor(injector: Injector, el: ElementRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextValueAccessor, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessor, "bal-input, bal-textarea, bal-input-slider, bal-time-input", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, Injector, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ValueAccessor implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
5
|
+
protected injector: Injector;
|
|
6
|
+
protected elementRef: ElementRef;
|
|
7
|
+
private onChange;
|
|
8
|
+
private onTouched;
|
|
9
|
+
protected lastValue: any;
|
|
10
|
+
private statusChanges?;
|
|
11
|
+
constructor(injector: Injector, elementRef: ElementRef);
|
|
12
|
+
writeValue(value: any): void;
|
|
13
|
+
/**
|
|
14
|
+
* Notifies the ControlValueAccessor of a change in the value of the control.
|
|
15
|
+
*
|
|
16
|
+
* This is called by each of the ValueAccessor directives when we want to update
|
|
17
|
+
* the status and validity of the form control. For example with text components this
|
|
18
|
+
* is called when the ionInput event is fired. For select components this is called
|
|
19
|
+
* when the ionChange event is fired.
|
|
20
|
+
*
|
|
21
|
+
* This also updates the Ionic form status classes on the element.
|
|
22
|
+
*
|
|
23
|
+
* @param el The component element.
|
|
24
|
+
* @param value The new value of the control.
|
|
25
|
+
*/
|
|
26
|
+
handleValueChange(ev: CustomEvent<any>): void;
|
|
27
|
+
_handleBlurEvent(el: any): void;
|
|
28
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
29
|
+
registerOnTouched(fn: () => void): void;
|
|
30
|
+
setDisabledState(isDisabled: boolean): void;
|
|
31
|
+
setInvalidState(isInvalid: boolean): void;
|
|
32
|
+
onStatusChange(): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
ngAfterViewInit(): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueAccessor, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueAccessor, never, never, {}, {}, never, never, false, never>;
|
|
37
|
+
}
|
|
38
|
+
export declare const findFieldComponent: (element: ElementRef) => {
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
invalid: boolean;
|
|
41
|
+
} | undefined;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { ProxyComponent, BaloiseDesignSystemAngularConfig } from '@baloise/ds-angular-common';
|
|
2
|
+
export { AngularDelegate, BalBreakpointsService, BalConfigService, BalModalService, BalOrientationService, BalSnackbarService, BalToastService, raf, parseCustomEvent, element, BalTokenUserConfig, BalTokenConfig, BalTokenToast, BalTokenSnackbar, BalTokenModal, BalTokenBreakpoints, BalTokenBreakpointSubject, BalTokenDevice, BalTokenOrientationSubject, } from '@baloise/ds-angular-common';
|
|
3
|
+
export * from './generated/proxies';
|
|
4
|
+
export { BooleanValueAccessor } from './generated/boolean-value-accessor';
|
|
5
|
+
export { NumericValueAccessor } from './generated/number-value-accessor';
|
|
6
|
+
export { SelectValueAccessor } from './generated/select-value-accessor';
|
|
7
|
+
export { TextValueAccessor } from './generated/text-value-accessor';
|
|
8
|
+
export { BalNgErrorComponent } from './directives/error.component';
|
|
9
|
+
export { BalAutoFocus } from './directives/focus.directive';
|
|
10
|
+
export { BaloiseDesignSystemModule } from './module';
|
package/module.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import type { BaloiseDesignSystemAngularConfig } from '@baloise/ds-angular-common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./generated/proxies";
|
|
5
|
+
import * as i2 from "./generated/boolean-value-accessor";
|
|
6
|
+
import * as i3 from "./generated/number-value-accessor";
|
|
7
|
+
import * as i4 from "./generated/select-value-accessor";
|
|
8
|
+
import * as i5 from "./generated/text-value-accessor";
|
|
9
|
+
import * as i6 from "./directives/focus.directive";
|
|
10
|
+
import * as i7 from "./directives/error.component";
|
|
11
|
+
import * as i8 from "@angular/common";
|
|
12
|
+
export declare class BaloiseDesignSystemModule {
|
|
13
|
+
static forRoot(config?: BaloiseDesignSystemAngularConfig): ModuleWithProviders<BaloiseDesignSystemModule>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaloiseDesignSystemModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaloiseDesignSystemModule, [typeof i1.BalAccordion, typeof i1.BalAccordionDetails, typeof i1.BalAccordionSummary, typeof i1.BalAccordionTrigger, typeof i1.BalApp, typeof i1.BalBadge, typeof i1.BalButton, typeof i1.BalButtonGroup, typeof i1.BalCard, typeof i1.BalCardActions, typeof i1.BalCardButton, typeof i1.BalCardContent, typeof i1.BalCardSubtitle, typeof i1.BalCardTitle, typeof i1.BalCarousel, typeof i1.BalCarouselItem, typeof i1.BalCheckbox, typeof i1.BalCheckboxButton, typeof i1.BalCheckboxGroup, typeof i1.BalClose, typeof i1.BalContent, typeof i1.BalData, typeof i1.BalDataItem, typeof i1.BalDataLabel, typeof i1.BalDataValue, typeof i1.BalDate, typeof i1.BalDateCalendar, typeof i1.BalDateCalendarCell, typeof i1.BalDatepicker, typeof i1.BalDivider, typeof i1.BalField, typeof i1.BalFieldControl, typeof i1.BalFieldHint, typeof i1.BalFieldLabel, typeof i1.BalFieldMessage, typeof i1.BalFileUpload, typeof i1.BalFooter, typeof i1.BalForm, typeof i1.BalFormCol, typeof i1.BalFormGrid, typeof i1.BalHeading, typeof i1.BalHint, typeof i1.BalHintText, typeof i1.BalHintTitle, typeof i1.BalIcon, typeof i1.BalInput, typeof i1.BalInputDate, typeof i1.BalInputGroup, typeof i1.BalInputSlider, typeof i1.BalInputStepper, typeof i1.BalLabel, typeof i1.BalList, typeof i1.BalListItem, typeof i1.BalListItemAccordionBody, typeof i1.BalListItemAccordionHead, typeof i1.BalListItemContent, typeof i1.BalListItemIcon, typeof i1.BalListItemSubtitle, typeof i1.BalListItemTitle, typeof i1.BalLogo, typeof i1.BalModal, typeof i1.BalModalBody, typeof i1.BalModalHeader, typeof i1.BalNav, typeof i1.BalNavLink, typeof i1.BalNavLinkGrid, typeof i1.BalNavLinkGridCol, typeof i1.BalNavLinkGroup, typeof i1.BalNavMenuBar, typeof i1.BalNavMenuFlyout, typeof i1.BalNavMetaBar, typeof i1.BalNavbar, typeof i1.BalNavbarBrand, typeof i1.BalNavbarMenu, typeof i1.BalNavbarMenuEnd, typeof i1.BalNavbarMenuStart, typeof i1.BalNotices, typeof i1.BalNotification, typeof i1.BalNumberInput, typeof i1.BalPagination, typeof i1.BalPopover, typeof i1.BalPopoverContent, typeof i1.BalPopup, typeof i1.BalProgressBar, typeof i1.BalRadio, typeof i1.BalRadioButton, typeof i1.BalRadioGroup, typeof i1.BalSelect, typeof i1.BalSelectOption, typeof i1.BalShape, typeof i1.BalSheet, typeof i1.BalSnackbar, typeof i1.BalSpinner, typeof i1.BalStack, typeof i1.BalStage, typeof i1.BalStageBackLink, typeof i1.BalStageBody, typeof i1.BalStageFoot, typeof i1.BalStageHead, typeof i1.BalStageImage, typeof i1.BalStepItem, typeof i1.BalSteps, typeof i1.BalTabItem, typeof i1.BalTable, typeof i1.BalTabs, typeof i1.BalTag, typeof i1.BalTagGroup, typeof i1.BalText, typeof i1.BalTextarea, typeof i1.BalTimeInput, typeof i1.BalToast, typeof i1.BalTooltip, typeof i2.BooleanValueAccessor, typeof i3.NumericValueAccessor, typeof i4.SelectValueAccessor, typeof i5.TextValueAccessor, typeof i6.BalAutoFocus, typeof i7.BalNgErrorComponent], [typeof i8.CommonModule], [typeof i1.BalAccordion, typeof i1.BalAccordionDetails, typeof i1.BalAccordionSummary, typeof i1.BalAccordionTrigger, typeof i1.BalApp, typeof i1.BalBadge, typeof i1.BalButton, typeof i1.BalButtonGroup, typeof i1.BalCard, typeof i1.BalCardActions, typeof i1.BalCardButton, typeof i1.BalCardContent, typeof i1.BalCardSubtitle, typeof i1.BalCardTitle, typeof i1.BalCarousel, typeof i1.BalCarouselItem, typeof i1.BalCheckbox, typeof i1.BalCheckboxButton, typeof i1.BalCheckboxGroup, typeof i1.BalClose, typeof i1.BalContent, typeof i1.BalData, typeof i1.BalDataItem, typeof i1.BalDataLabel, typeof i1.BalDataValue, typeof i1.BalDate, typeof i1.BalDateCalendar, typeof i1.BalDateCalendarCell, typeof i1.BalDatepicker, typeof i1.BalDivider, typeof i1.BalField, typeof i1.BalFieldControl, typeof i1.BalFieldHint, typeof i1.BalFieldLabel, typeof i1.BalFieldMessage, typeof i1.BalFileUpload, typeof i1.BalFooter, typeof i1.BalForm, typeof i1.BalFormCol, typeof i1.BalFormGrid, typeof i1.BalHeading, typeof i1.BalHint, typeof i1.BalHintText, typeof i1.BalHintTitle, typeof i1.BalIcon, typeof i1.BalInput, typeof i1.BalInputDate, typeof i1.BalInputGroup, typeof i1.BalInputSlider, typeof i1.BalInputStepper, typeof i1.BalLabel, typeof i1.BalList, typeof i1.BalListItem, typeof i1.BalListItemAccordionBody, typeof i1.BalListItemAccordionHead, typeof i1.BalListItemContent, typeof i1.BalListItemIcon, typeof i1.BalListItemSubtitle, typeof i1.BalListItemTitle, typeof i1.BalLogo, typeof i1.BalModal, typeof i1.BalModalBody, typeof i1.BalModalHeader, typeof i1.BalNav, typeof i1.BalNavLink, typeof i1.BalNavLinkGrid, typeof i1.BalNavLinkGridCol, typeof i1.BalNavLinkGroup, typeof i1.BalNavMenuBar, typeof i1.BalNavMenuFlyout, typeof i1.BalNavMetaBar, typeof i1.BalNavbar, typeof i1.BalNavbarBrand, typeof i1.BalNavbarMenu, typeof i1.BalNavbarMenuEnd, typeof i1.BalNavbarMenuStart, typeof i1.BalNotices, typeof i1.BalNotification, typeof i1.BalNumberInput, typeof i1.BalPagination, typeof i1.BalPopover, typeof i1.BalPopoverContent, typeof i1.BalPopup, typeof i1.BalProgressBar, typeof i1.BalRadio, typeof i1.BalRadioButton, typeof i1.BalRadioGroup, typeof i1.BalSelect, typeof i1.BalSelectOption, typeof i1.BalShape, typeof i1.BalSheet, typeof i1.BalSnackbar, typeof i1.BalSpinner, typeof i1.BalStack, typeof i1.BalStage, typeof i1.BalStageBackLink, typeof i1.BalStageBody, typeof i1.BalStageFoot, typeof i1.BalStageHead, typeof i1.BalStageImage, typeof i1.BalStepItem, typeof i1.BalSteps, typeof i1.BalTabItem, typeof i1.BalTable, typeof i1.BalTabs, typeof i1.BalTag, typeof i1.BalTagGroup, typeof i1.BalText, typeof i1.BalTextarea, typeof i1.BalTimeInput, typeof i1.BalToast, typeof i1.BalTooltip, typeof i2.BooleanValueAccessor, typeof i3.NumericValueAccessor, typeof i4.SelectValueAccessor, typeof i5.TextValueAccessor, typeof i6.BalAutoFocus, typeof i7.BalNgErrorComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BaloiseDesignSystemModule>;
|
|
17
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@baloise/ds-angular-module",
|
|
3
|
+
"version": "0.0.5-nightly.e56f740",
|
|
4
|
+
"description": "The Baloise Design-System is an open source project for styling awesome web applications that follow the Baloise corporate styling guidelines.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/baloise/design-system.git"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://design.baloise.dev",
|
|
13
|
+
"license": "Apache-2.0",
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"@angular/common": ">=15.0.0",
|
|
16
|
+
"@angular/core": ">=15.0.0"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@baloise/ds-core": "0.0.5-nightly.e56f740",
|
|
20
|
+
"@baloise/ds-angular-common": "0.0.5-nightly.e56f740",
|
|
21
|
+
"tslib": "^2.3.0"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"module": "fesm2015/baloise-ds-angular-module.mjs",
|
|
25
|
+
"es2020": "fesm2020/baloise-ds-angular-module.mjs",
|
|
26
|
+
"esm2020": "esm2020/baloise-ds-angular-module.mjs",
|
|
27
|
+
"fesm2020": "fesm2020/baloise-ds-angular-module.mjs",
|
|
28
|
+
"fesm2015": "fesm2015/baloise-ds-angular-module.mjs",
|
|
29
|
+
"typings": "index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
"./package.json": {
|
|
32
|
+
"default": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./index.d.ts",
|
|
36
|
+
"esm2020": "./esm2020/baloise-ds-angular-module.mjs",
|
|
37
|
+
"es2020": "./fesm2020/baloise-ds-angular-module.mjs",
|
|
38
|
+
"es2015": "./fesm2015/baloise-ds-angular-module.mjs",
|
|
39
|
+
"node": "./fesm2015/baloise-ds-angular-module.mjs",
|
|
40
|
+
"default": "./fesm2020/baloise-ds-angular-module.mjs"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|