@3dsource/source-ui-native 1.0.17 → 1.0.19
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 +80 -15
- package/fesm2022/3dsource-source-ui-native.mjs +120 -120
- package/fesm2022/3dsource-source-ui-native.mjs.map +1 -1
- package/index.d.ts +294 -5
- package/package.json +2 -2
- package/styles/elements/_src-button.scss +2 -0
- package/styles/elements/_src-form.scss +2 -0
- package/styles/elements/_src-icon-button.scss +82 -0
- package/styles/elements/_src-modal.scss +0 -20
- package/styles/elements/_src-popover.scss +60 -0
- package/styles/elements/elements.scss +2 -0
- package/lib/components/source-badge/components/source-badge.component.d.ts +0 -16
- package/lib/components/source-badge/constants/index.d.ts +0 -2
- package/lib/components/source-badge/constants/sourceBadgeSize.d.ts +0 -6
- package/lib/components/source-badge/constants/sourceBadgeType.d.ts +0 -9
- package/lib/components/source-badge/index.d.ts +0 -2
- package/lib/components/source-banner/components/source-banner.component.d.ts +0 -9
- package/lib/components/source-banner/constants/sourceBannerType.d.ts +0 -8
- package/lib/components/source-banner/index.d.ts +0 -2
- package/lib/components/source-button/components/source-button.component.d.ts +0 -27
- package/lib/components/source-button/constants/index.d.ts +0 -5
- package/lib/components/source-button/constants/sourceButtonAppearance.d.ts +0 -5
- package/lib/components/source-button/constants/sourceButtonColorScheme.d.ts +0 -6
- package/lib/components/source-button/constants/sourceButtonDefaultConfig.d.ts +0 -2
- package/lib/components/source-button/constants/sourceButtonSize.d.ts +0 -7
- package/lib/components/source-button/constants/sourceButtonType.d.ts +0 -6
- package/lib/components/source-button/index.d.ts +0 -3
- package/lib/components/source-button/interfaces/index.d.ts +0 -1
- package/lib/components/source-button/interfaces/sourceButton.interface.d.ts +0 -16
- package/lib/components/source-copyright/components/source-copyright.component.d.ts +0 -7
- package/lib/components/source-copyright/index.d.ts +0 -1
- package/lib/components/source-divider/components/source-divider.component.d.ts +0 -7
- package/lib/components/source-divider/index.d.ts +0 -1
- package/lib/components/source-hint/components/source-hint.component.d.ts +0 -7
- package/lib/components/source-hint/index.d.ts +0 -1
- package/lib/components/source-icon-button/components/source-icon-button.component.d.ts +0 -17
- package/lib/components/source-icon-button/constants/index.d.ts +0 -3
- package/lib/components/source-icon-button/constants/sourceIconButtonShape.d.ts +0 -5
- package/lib/components/source-icon-button/constants/sourceIconButtonSize.d.ts +0 -8
- package/lib/components/source-icon-button/constants/sourceIconButtonType.d.ts +0 -6
- package/lib/components/source-icon-button/index.d.ts +0 -2
- package/lib/components/source-loading/components/source-loading.component.d.ts +0 -18
- package/lib/components/source-loading/constants/sourceLoadingLineCap.d.ts +0 -6
- package/lib/components/source-loading/index.d.ts +0 -1
- package/lib/components/source-logo-loading/components/source-logo-loading.component.d.ts +0 -8
- package/lib/components/source-logo-loading/index.d.ts +0 -1
- package/lib/components/source-modal-element/components/source-modal-element.component.d.ts +0 -13
- package/lib/components/source-modal-element/components/source-overlay-container.component.d.ts +0 -9
- package/lib/components/source-modal-element/constants/modalData.token.d.ts +0 -3
- package/lib/components/source-modal-element/constants/sourceModalSize.const.d.ts +0 -5
- package/lib/components/source-modal-element/index.d.ts +0 -5
- package/lib/components/source-modal-element/interfaces/index.d.ts +0 -1
- package/lib/components/source-modal-element/interfaces/sourceModalElementData.interface.d.ts +0 -18
- package/lib/components/source-modal-element/services/sourceModalElement.service.d.ts +0 -11
- package/lib/components/source-slider/components/source-slider.component.d.ts +0 -25
- package/lib/components/source-slider/index.d.ts +0 -1
- package/public-api.d.ts +0 -11
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const SourceButtonColorScheme: {
|
|
2
|
-
readonly PRIMARY: "primary";
|
|
3
|
-
readonly SECONDARY: "secondary";
|
|
4
|
-
readonly DESTRUCTIVE: "destructive";
|
|
5
|
-
};
|
|
6
|
-
export type SourceButtonColorSchemeKeys = (typeof SourceButtonColorScheme)[keyof typeof SourceButtonColorScheme];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './sourceButton.interface';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SourceButtonAppearanceKeys, SourceButtonColorSchemeKeys, SourceButtonSizeKeys, SourceButtonTypeKeys } from '../constants';
|
|
2
|
-
export interface SourceButton {
|
|
3
|
-
type: SourceButtonTypeKeys;
|
|
4
|
-
appearance: SourceButtonAppearanceKeys;
|
|
5
|
-
colorScheme: SourceButtonColorSchemeKeys;
|
|
6
|
-
size: SourceButtonSizeKeys;
|
|
7
|
-
customClass: string | string[];
|
|
8
|
-
hasDisclosure: boolean;
|
|
9
|
-
isFullWidth: boolean;
|
|
10
|
-
iconButton: boolean;
|
|
11
|
-
isPressed: boolean;
|
|
12
|
-
isDisabled: boolean;
|
|
13
|
-
isLoading: boolean;
|
|
14
|
-
formID?: string;
|
|
15
|
-
testID?: string;
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class SourceCopyrightComponent {
|
|
3
|
-
linkText: import("@angular/core").InputSignal<string>;
|
|
4
|
-
isCollapsible: import("@angular/core").InputSignal<boolean>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceCopyrightComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SourceCopyrightComponent, "src-copyright", never, { "linkText": { "alias": "linkText"; "required": false; "isSignal": true; }; "isCollapsible": { "alias": "isCollapsible"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/source-copyright.component';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class SourceDividerComponent {
|
|
3
|
-
color: import("@angular/core").InputSignal<string>;
|
|
4
|
-
thickness: import("@angular/core").InputSignal<string>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceDividerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SourceDividerComponent, "src-divider", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/source-divider.component';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class SourceHintComponent {
|
|
3
|
-
isError: import("@angular/core").InputSignal<boolean>;
|
|
4
|
-
isCompact: import("@angular/core").InputSignal<boolean>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceHintComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SourceHintComponent, "src-hint", never, { "isError": { "alias": "isError"; "required": false; "isSignal": true; }; "isCompact": { "alias": "isCompact"; "required": false; "isSignal": true; }; }, {}, never, ["[srcIconPrefix]", "*"], true, never>;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/source-hint.component';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SourceIconButtonShapeKeys, SourceIconButtonSizeKeys, SourceIconButtonTypeKeys } from '../constants';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SourceIconButtonComponent {
|
|
4
|
-
name: import("@angular/core").InputSignal<unknown>;
|
|
5
|
-
type: import("@angular/core").InputSignal<SourceIconButtonTypeKeys>;
|
|
6
|
-
size: import("@angular/core").InputSignal<SourceIconButtonSizeKeys>;
|
|
7
|
-
shape: import("@angular/core").InputSignal<SourceIconButtonShapeKeys>;
|
|
8
|
-
counter: import("@angular/core").InputSignal<number | undefined>;
|
|
9
|
-
isActive: import("@angular/core").InputSignal<boolean>;
|
|
10
|
-
isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
11
|
-
testID: import("@angular/core").InputSignal<string>;
|
|
12
|
-
onClick: import("@angular/core").OutputEmitterRef<Event>;
|
|
13
|
-
classes: import("@angular/core").Signal<string[]>;
|
|
14
|
-
handleClick(event: Event): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceIconButtonComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SourceIconButtonComponent, "src-icon-button", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "counter": { "alias": "counter"; "required": false; "isSignal": true; }; "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "testID": { "alias": "data-testid"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
|
|
17
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const SourceIconButtonSize: {
|
|
2
|
-
readonly XSMALL: "xs";
|
|
3
|
-
readonly SMALL: "sm";
|
|
4
|
-
readonly MEDIUM: "md";
|
|
5
|
-
readonly LARGE: "lg";
|
|
6
|
-
readonly DEFAULT: "default";
|
|
7
|
-
};
|
|
8
|
-
export type SourceIconButtonSizeKeys = (typeof SourceIconButtonSize)[keyof typeof SourceIconButtonSize];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SourceLoadingLineCapKeys } from '../constants/sourceLoadingLineCap';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SourceLoadingComponent {
|
|
4
|
-
size: import("@angular/core").InputSignal<number>;
|
|
5
|
-
progress: import("@angular/core").InputSignal<number | null>;
|
|
6
|
-
lineCap: import("@angular/core").InputSignal<SourceLoadingLineCapKeys>;
|
|
7
|
-
backgroundStrokeColor: import("@angular/core").InputSignal<string>;
|
|
8
|
-
progressStrokeColor: import("@angular/core").InputSignal<string>;
|
|
9
|
-
strokeWidth: import("@angular/core").InputSignal<number>;
|
|
10
|
-
testID: import("@angular/core").InputSignal<string>;
|
|
11
|
-
classes: import("@angular/core").Signal<string[]>;
|
|
12
|
-
calculateRadius: import("@angular/core").Signal<number>;
|
|
13
|
-
circumference: import("@angular/core").Signal<number>;
|
|
14
|
-
viewBox: import("@angular/core").Signal<string>;
|
|
15
|
-
percentage: import("@angular/core").Signal<number>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceLoadingComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SourceLoadingComponent, "src-loading", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "progress": { "alias": "progress"; "required": false; "isSignal": true; }; "lineCap": { "alias": "lineCap"; "required": false; "isSignal": true; }; "backgroundStrokeColor": { "alias": "backgroundStrokeColor"; "required": false; "isSignal": true; }; "progressStrokeColor": { "alias": "progressStrokeColor"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "testID": { "alias": "data-testid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/source-loading.component';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class SourceLogoLoadingComponent {
|
|
3
|
-
size: import("@angular/core").InputSignal<number>;
|
|
4
|
-
strokeColor: import("@angular/core").InputSignal<string>;
|
|
5
|
-
testID: import("@angular/core").InputSignal<string>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceLogoLoadingComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SourceLogoLoadingComponent, "src-logo-loading", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "strokeColor": { "alias": "strokeColor"; "required": false; "isSignal": true; }; "testID": { "alias": "data-testid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/source-logo-loading.component';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SourceModalElementComponent {
|
|
4
|
-
data: import("@angular/core").WritableSignal<import("@3dsource/source-ui-native").SourceModalElementData>;
|
|
5
|
-
testID: import("@angular/core").WritableSignal<string>;
|
|
6
|
-
dialogEl: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
|
|
7
|
-
closeEvent: import("@angular/core").OutputEmitterRef<any>;
|
|
8
|
-
closed: import("@angular/core").OutputEmitterRef<void>;
|
|
9
|
-
open(): void;
|
|
10
|
-
close(result?: any): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceModalElementComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SourceModalElementComponent, "src-modal-element", never, {}, { "closeEvent": "closeEvent"; "closed": "closed"; }, never, never, true, never>;
|
|
13
|
-
}
|
package/lib/components/source-modal-element/components/source-overlay-container.component.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ViewContainerRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SourceOverlayContainerComponent {
|
|
4
|
-
srcModalContainerRef: import("@angular/core").Signal<ViewContainerRef | undefined>;
|
|
5
|
-
private srcModalElementService;
|
|
6
|
-
_: import("@angular/core").EffectRef;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceOverlayContainerComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SourceOverlayContainerComponent, "src-overlay-container", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './sourceModalElementData.interface';
|
package/lib/components/source-modal-element/interfaces/sourceModalElementData.interface.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { SourceModalSizeKeys } from '../constants/sourceModalSize.const';
|
|
2
|
-
export interface SourceModalElementData {
|
|
3
|
-
headerTitle?: string;
|
|
4
|
-
size?: SourceModalSizeKeys;
|
|
5
|
-
backButton?: boolean;
|
|
6
|
-
closeButton?: boolean;
|
|
7
|
-
content?: string;
|
|
8
|
-
componentData?: unknown;
|
|
9
|
-
footerButtons?: DialogButtonsData;
|
|
10
|
-
testID?: string;
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
}
|
|
13
|
-
export interface DialogButtonData {
|
|
14
|
-
srcButtonClasses?: string;
|
|
15
|
-
label: string;
|
|
16
|
-
action: (...data: any) => any;
|
|
17
|
-
}
|
|
18
|
-
export type DialogButtonsData = DialogButtonData[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { SourceModalElementData } from '../interfaces';
|
|
3
|
-
import { SourceModalElementComponent } from '../components/source-modal-element.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SourceModalElementService {
|
|
6
|
-
private viewRef?;
|
|
7
|
-
register(viewRef: ViewContainerRef): void;
|
|
8
|
-
open(data: SourceModalElementData): import("@angular/core").ComponentRef<SourceModalElementComponent>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceModalElementService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SourceModalElementService>;
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class SourceSliderComponent {
|
|
3
|
-
id: import("@angular/core").InputSignal<string | undefined>;
|
|
4
|
-
value: import("@angular/core").InputSignal<number>;
|
|
5
|
-
sliderValue: import("@angular/core").WritableSignal<number>;
|
|
6
|
-
min: import("@angular/core").InputSignal<number>;
|
|
7
|
-
max: import("@angular/core").InputSignal<number>;
|
|
8
|
-
thumbSize: import("@angular/core").InputSignal<number>;
|
|
9
|
-
trackHeight: import("@angular/core").InputSignal<number>;
|
|
10
|
-
step: import("@angular/core").InputSignal<number>;
|
|
11
|
-
showTicks: import("@angular/core").InputSignal<boolean>;
|
|
12
|
-
isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
13
|
-
orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
|
14
|
-
testID: import("@angular/core").InputSignal<string>;
|
|
15
|
-
onChange: import("@angular/core").OutputEmitterRef<number>;
|
|
16
|
-
onInput: import("@angular/core").OutputEmitterRef<number>;
|
|
17
|
-
tickPositions: import("@angular/core").Signal<string[]>;
|
|
18
|
-
thumbPosition: import("@angular/core").Signal<string>;
|
|
19
|
-
filledWidth: import("@angular/core").Signal<string>;
|
|
20
|
-
input(valueEvent: Event): void;
|
|
21
|
-
change(valueEvent: Event): void;
|
|
22
|
-
private getValue;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SourceSliderComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SourceSliderComponent, "src-slider", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "min": { "alias": "min"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": true; "isSignal": true; }; "thumbSize": { "alias": "thumbSize"; "required": false; "isSignal": true; }; "trackHeight": { "alias": "trackHeight"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "testID": { "alias": "data-testid"; "required": false; "isSignal": true; }; }, { "onChange": "onChange"; "onInput": "onInput"; }, never, ["[srcIconThumb]"], true, never>;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/source-slider.component';
|
package/public-api.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './lib/components/source-badge';
|
|
2
|
-
export * from './lib/components/source-banner';
|
|
3
|
-
export * from './lib/components/source-button';
|
|
4
|
-
export * from './lib/components/source-copyright';
|
|
5
|
-
export * from './lib/components/source-divider';
|
|
6
|
-
export * from './lib/components/source-hint';
|
|
7
|
-
export * from './lib/components/source-icon-button';
|
|
8
|
-
export * from './lib/components/source-loading';
|
|
9
|
-
export * from './lib/components/source-logo-loading';
|
|
10
|
-
export * from './lib/components/source-slider';
|
|
11
|
-
export * from './lib/components/source-modal-element';
|