@porsche-design-system/components-angular 2.13.0-rc.2 → 2.13.0-rc.5

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.
@@ -0,0 +1,15 @@
1
+ import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
2
+ import type { IconName } from '../types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PSegmentedControlItem {
5
+ protected z: NgZone;
6
+ protected el: HTMLElement;
7
+ disabled: boolean;
8
+ icon: IconName;
9
+ iconSource: string;
10
+ label: string;
11
+ value: string | number;
12
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<PSegmentedControlItem, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<PSegmentedControlItem, "p-segmented-control-item,[p-segmented-control-item]", never, { "disabled": "disabled"; "icon": "icon"; "iconSource": "iconSource"; "label": "label"; "value": "value"; }, {}, never, ["*"]>;
15
+ }
@@ -0,0 +1,14 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
2
+ import type { SegmentedControlBackgroundColor, SegmentedControlChangeEvent, Theme } from '../types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PSegmentedControl {
5
+ protected z: NgZone;
6
+ protected el: HTMLElement;
7
+ backgroundColor: SegmentedControlBackgroundColor;
8
+ theme: Theme;
9
+ value: string | number;
10
+ segmentedControlChange: EventEmitter<CustomEvent<SegmentedControlChangeEvent>>;
11
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<PSegmentedControl, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<PSegmentedControl, "p-segmented-control,[p-segmented-control]", never, { "backgroundColor": "backgroundColor"; "theme": "theme"; "value": "value"; }, { "segmentedControlChange": "segmentedControlChange"; }, never, ["*"]>;
14
+ }
@@ -0,0 +1,12 @@
1
+ import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
2
+ import type { StepperState } from '../types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PStepperHorizontalItem {
5
+ protected z: NgZone;
6
+ protected el: HTMLElement;
7
+ disabled: boolean;
8
+ state: StepperState;
9
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PStepperHorizontalItem, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<PStepperHorizontalItem, "p-stepper-horizontal-item,[p-stepper-horizontal-item]", never, { "disabled": "disabled"; "state": "state"; }, {}, never, ["*"]>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
2
+ import type { StepChangeEvent, Theme } from '../types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PStepperHorizontal {
5
+ protected z: NgZone;
6
+ protected el: HTMLElement;
7
+ theme: Theme;
8
+ stepChange: EventEmitter<CustomEvent<StepChangeEvent>>;
9
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PStepperHorizontal, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<PStepperHorizontal, "p-stepper-horizontal,[p-stepper-horizontal]", never, { "theme": "theme"; }, { "stepChange": "stepChange"; }, never, ["*"]>;
12
+ }
package/lib/types.d.ts CHANGED
@@ -21,6 +21,12 @@ export declare type BreakpointValues<T> = {
21
21
  base: T;
22
22
  };
23
23
  export declare type BreakpointCustomizable<T> = T | BreakpointValues<T>;
24
+ export declare type GradientColorTheme = "default" | "surface";
25
+ export declare type ScrollToPosition = {
26
+ scrollPosition: number;
27
+ isSmooth?: boolean;
28
+ };
29
+ export declare type PrevNextButtonJssStyle = any;
24
30
  declare const TEXT_SIZES: readonly [
25
31
  "x-small",
26
32
  "small",
@@ -465,12 +471,14 @@ declare const POPOVER_DIRECTIONS: readonly [
465
471
  "left"
466
472
  ];
467
473
  export declare type PopoverDirection = typeof POPOVER_DIRECTIONS[number];
468
- export declare type GradientColorTheme = "default" | "surface";
469
- export declare type ScrollToPosition = {
470
- scrollPosition: number;
471
- isSmooth?: boolean;
474
+ declare const SEGMENTED_CONTROL_BACKGROUND_COLORS: readonly [
475
+ "background-surface",
476
+ "background-default"
477
+ ];
478
+ export declare type SegmentedControlBackgroundColor = typeof SEGMENTED_CONTROL_BACKGROUND_COLORS[number];
479
+ export declare type SegmentedControlChangeEvent = {
480
+ value: string | number;
472
481
  };
473
- export declare type PrevNextButtonJssStyle = any;
474
482
  export declare type DropdownDirectionInternal = "down" | "up";
475
483
  export declare type DropdownDirection = DropdownDirectionInternal | "auto";
476
484
  declare const SPINNER_SIZES: readonly [
@@ -485,6 +493,10 @@ declare const SPINNER_ARIA_ATTRIBUTES: readonly [
485
493
  "aria-label"
486
494
  ];
487
495
  export declare type SpinnerAriaAttributes = typeof SPINNER_ARIA_ATTRIBUTES[number];
496
+ export declare type StepChangeEvent = {
497
+ activeStepIndex: number;
498
+ };
499
+ export declare type StepperState = "current" | "complete" | "warning";
488
500
  export declare type SwitchChangeEvent = {
489
501
  checked: boolean;
490
502
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-angular",
3
- "version": "2.13.0-rc.2",
3
+ "version": "2.13.0-rc.5",
4
4
  "description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
5
5
  "keywords": [
6
6
  "porsche",
@@ -17,7 +17,7 @@
17
17
  "license": "SEE LICENSE IN LICENSE",
18
18
  "homepage": "https://designsystem.porsche.com",
19
19
  "dependencies": {
20
- "@porsche-design-system/components-js": "2.13.0-rc.2",
20
+ "@porsche-design-system/components-js": "2.13.0-rc.5",
21
21
  "tslib": "^2.0.1"
22
22
  },
23
23
  "peerDependencies": {