@siemens/ix-angular 0.0.0-20240419081748
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 +9 -0
- package/README.md +4 -0
- package/angular-component-lib/utils.d.ts +9 -0
- package/app-initialize.d.ts +1 -0
- package/boolean-value-accessor.d.ts +9 -0
- package/components.d.ts +1162 -0
- package/declare-components.d.ts +2 -0
- package/dropdown/trigger.directive.d.ts +10 -0
- package/esm2020/angular-component-lib/utils.mjs +59 -0
- package/esm2020/app-initialize.mjs +26 -0
- package/esm2020/boolean-value-accessor.mjs +38 -0
- package/esm2020/components.mjs +2366 -0
- package/esm2020/declare-components.mjs +97 -0
- package/esm2020/dropdown/trigger.directive.mjs +29 -0
- package/esm2020/index.mjs +20 -0
- package/esm2020/ix-icon.mjs +38 -0
- package/esm2020/modal/index.mjs +11 -0
- package/esm2020/modal/modal-ref.mjs +39 -0
- package/esm2020/modal/modal.config.mjs +10 -0
- package/esm2020/modal/modal.service.mjs +86 -0
- package/esm2020/module.mjs +66 -0
- package/esm2020/select-value-accessor.mjs +35 -0
- package/esm2020/siemens-ix-angular.mjs +5 -0
- package/esm2020/theme/index.mjs +10 -0
- package/esm2020/theme/theme.service.mjs +38 -0
- package/esm2020/toast/index.mjs +10 -0
- package/esm2020/toast/toast.config.mjs +10 -0
- package/esm2020/toast/toast.service.mjs +52 -0
- package/esm2020/tree/index.mjs +10 -0
- package/esm2020/tree/tree.mjs +81 -0
- package/esm2020/value-accessor.mjs +40 -0
- package/fesm2015/siemens-ix-angular.mjs +2966 -0
- package/fesm2015/siemens-ix-angular.mjs.map +1 -0
- package/fesm2020/siemens-ix-angular.mjs +2984 -0
- package/fesm2020/siemens-ix-angular.mjs.map +1 -0
- package/index.d.ts +11 -0
- package/ix-icon.d.ts +12 -0
- package/modal/index.d.ts +2 -0
- package/modal/modal-ref.d.ts +21 -0
- package/modal/modal.config.d.ts +6 -0
- package/modal/modal.service.d.ts +15 -0
- package/module.d.ts +14 -0
- package/package.json +45 -0
- package/select-value-accessor.d.ts +8 -0
- package/theme/index.d.ts +1 -0
- package/theme/theme.service.d.ts +14 -0
- package/toast/index.d.ts +1 -0
- package/toast/toast.config.d.ts +5 -0
- package/toast/toast.service.d.ts +9 -0
- package/tree/index.d.ts +1 -0
- package/tree/tree.d.ts +26 -0
- package/value-accessor.d.ts +18 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
|
|
2
|
+
import { ModalConfig } from './modal.config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ModalService {
|
|
5
|
+
private appRef;
|
|
6
|
+
private componentFactoryResolver;
|
|
7
|
+
private injector;
|
|
8
|
+
constructor(appRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector);
|
|
9
|
+
open<TData = any, TReason = any>(config: ModalConfig<TData>): Promise<import("@siemens/ix").ModalInstance<TReason>>;
|
|
10
|
+
private createContentByComponentType;
|
|
11
|
+
private createContentByTemplateRef;
|
|
12
|
+
private createModalInstance;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
|
|
15
|
+
}
|
package/module.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./components";
|
|
4
|
+
import * as i2 from "./tree/tree";
|
|
5
|
+
import * as i3 from "./dropdown/trigger.directive";
|
|
6
|
+
import * as i4 from "./ix-icon";
|
|
7
|
+
import * as i5 from "./select-value-accessor";
|
|
8
|
+
import * as i6 from "./boolean-value-accessor";
|
|
9
|
+
export declare class IxModule {
|
|
10
|
+
static forRoot(): ModuleWithProviders<IxModule>;
|
|
11
|
+
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]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IxModule>;
|
|
14
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@siemens/ix-angular",
|
|
3
|
+
"homepage": "https://ix.siemens.io",
|
|
4
|
+
"bugs": "https://github.com/siemens/ix/issues",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/siemens/ix",
|
|
8
|
+
"directory": "packages/angular"
|
|
9
|
+
},
|
|
10
|
+
"version": "0.0.0-20240419081748",
|
|
11
|
+
"description": "Siemens iX for Angular",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@siemens/ix": "0.0.0-20240419081748",
|
|
15
|
+
"tslib": "^2.3.0"
|
|
16
|
+
},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"@angular/core": ">=13.4.0",
|
|
19
|
+
"@angular/forms": ">=13.4.0",
|
|
20
|
+
"@siemens/ix-icons": "^2.0.0"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"directory": "dist"
|
|
24
|
+
},
|
|
25
|
+
"module": "fesm2015/siemens-ix-angular.mjs",
|
|
26
|
+
"es2020": "fesm2020/siemens-ix-angular.mjs",
|
|
27
|
+
"esm2020": "esm2020/siemens-ix-angular.mjs",
|
|
28
|
+
"fesm2020": "fesm2020/siemens-ix-angular.mjs",
|
|
29
|
+
"fesm2015": "fesm2015/siemens-ix-angular.mjs",
|
|
30
|
+
"typings": "index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
"./package.json": {
|
|
33
|
+
"default": "./package.json"
|
|
34
|
+
},
|
|
35
|
+
".": {
|
|
36
|
+
"types": "./index.d.ts",
|
|
37
|
+
"esm2020": "./esm2020/siemens-ix-angular.mjs",
|
|
38
|
+
"es2020": "./fesm2020/siemens-ix-angular.mjs",
|
|
39
|
+
"es2015": "./fesm2015/siemens-ix-angular.mjs",
|
|
40
|
+
"node": "./fesm2015/siemens-ix-angular.mjs",
|
|
41
|
+
"default": "./fesm2020/siemens-ix-angular.mjs"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"sideEffects": false
|
|
45
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
package/theme/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './theme.service';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use themeSwitcher from core package `import { themeSwitcher } from '@siemens/ix';`
|
|
5
|
+
*/
|
|
6
|
+
export declare class ThemeService {
|
|
7
|
+
themeChanged: EventEmitter<string>;
|
|
8
|
+
private themeSwitcher;
|
|
9
|
+
constructor();
|
|
10
|
+
toggleMode(): void;
|
|
11
|
+
setTheme(themeName: string): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
14
|
+
}
|
package/toast/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toast.service';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ToastConfig } from './toast.config';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ToastService {
|
|
4
|
+
setPosition(position: 'bottom-right' | 'top-right'): void;
|
|
5
|
+
getPosition(): "bottom-right" | "top-right";
|
|
6
|
+
show(config: ToastConfig): Promise<import("@siemens/ix").ShowToastResult>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
9
|
+
}
|
package/tree/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tree';
|
package/tree/tree.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EmbeddedViewRef, EventEmitter, NgZone, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import type { Components, TreeContext as ICwTreeTreeContext, TreeContext, UpdateCallback } from '@siemens/ix';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare interface IxTree extends Omit<Components.IxTree, 'renderItem'> {
|
|
6
|
+
/**
|
|
7
|
+
* Context changed
|
|
8
|
+
*/
|
|
9
|
+
contextChange: EventEmitter<CustomEvent<ICwTreeTreeContext>>;
|
|
10
|
+
/**
|
|
11
|
+
* Emits removed nodes
|
|
12
|
+
*/
|
|
13
|
+
nodeRemoved: EventEmitter<CustomEvent<any>>;
|
|
14
|
+
}
|
|
15
|
+
export declare class IxTree implements OnDestroy {
|
|
16
|
+
protected z: NgZone;
|
|
17
|
+
renderCache: Map<HTMLElement, EmbeddedViewRef<any>>;
|
|
18
|
+
set renderItem(template: TemplateRef<any>);
|
|
19
|
+
protected el: HTMLElement;
|
|
20
|
+
onRemovedSubscription: Subscription;
|
|
21
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
generateItemRenderer(templateRef: TemplateRef<any>): (_: number, itemData: any, __: any[], context: TreeContext, update: (callback: UpdateCallback) => void) => HTMLIxTreeItemElement;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IxTree, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IxTree, "ix-tree", never, { "context": "context"; "model": "model"; "root": "root"; "renderItem": "renderItem"; }, {}, never, ["*"]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ValueAccessor implements ControlValueAccessor {
|
|
5
|
+
protected el: ElementRef;
|
|
6
|
+
private onChange;
|
|
7
|
+
private onTouched;
|
|
8
|
+
protected lastValue: any;
|
|
9
|
+
constructor(el: ElementRef);
|
|
10
|
+
writeValue(value: any): void;
|
|
11
|
+
handleChangeEvent(value: any): void;
|
|
12
|
+
_handleBlurEvent(): void;
|
|
13
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
14
|
+
registerOnTouched(fn: () => void): void;
|
|
15
|
+
setDisabledState(isDisabled: boolean): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueAccessor, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueAccessor, never, never, {}, {}, never>;
|
|
18
|
+
}
|