@datarailsshared/datarailsshared 1.6.415 → 1.6.417
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/assets/styles/_storybook-styles.scss +10 -0
- package/assets/styles/vars.scss +9 -0
- package/datarailsshared-datarailsshared-1.6.417.tgz +0 -0
- package/esm2022/lib/dr-badge-new/dr-badge-new.component.mjs +84 -0
- package/esm2022/lib/dr-inputs/dr-select/dr-select.component.mjs +4 -3
- package/esm2022/lib/dr-modal/components/dr-modal-container/dr-modal-container.component.mjs +6 -6
- package/esm2022/lib/dr-modal/dr-modal.service.mjs +3 -1
- package/esm2022/lib/dr-modal/dr-modal.slots.mjs +21 -31
- package/esm2022/local-api.mjs +2 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +205 -135
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-badge-new/dr-badge-new.component.d.ts +21 -0
- package/lib/dr-inputs/dr-select/dr-select.component.d.ts +2 -1
- package/lib/dr-modal/components/dr-modal-container/dr-modal-container.component.d.ts +2 -2
- package/lib/dr-modal/dr-modal.slots.d.ts +5 -2
- package/local-api.d.ts +1 -0
- package/package.json +1 -1
- package/styles.scss +18 -0
- package/datarailsshared-datarailsshared-1.6.415.tgz +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "../dr-tooltip/dr-tooltip.directive";
|
|
3
|
+
export type TBadgeNewSize = 'medium' | 'small' | 'x-small';
|
|
4
|
+
export type TBadgeNewBgColor = 'light-purple' | 'water' | 'baby-blue' | 'baby-pink' | 'light-turquoise' | 'bright-green' | 'stone' | 'peach' | 'soft-coral' | 'pale-yellow' | 'pastel-olive' | 'powder-blue-grey' | 'muted-plum' | 'purple' | 'transparent' | 'status-info' | 'status-progress' | 'status-error' | 'status-warning' | 'status-success' | 'status-regular';
|
|
5
|
+
export type TBadgeNewTextColor = 'main' | 'secondary' | 'white' | 'status-info' | 'status-progress' | 'status-error' | 'status-warning' | 'status-success' | 'status-regular';
|
|
6
|
+
export type TBadgeNewTextStyle = 'caption-1' | 'caption-2' | 'caption-3';
|
|
7
|
+
export declare class DrBadgeNewComponent {
|
|
8
|
+
bgColor: TBadgeNewBgColor;
|
|
9
|
+
textColor: TBadgeNewTextColor;
|
|
10
|
+
textStyle: TBadgeNewTextStyle;
|
|
11
|
+
size: TBadgeNewSize;
|
|
12
|
+
showDot: boolean;
|
|
13
|
+
icon: string;
|
|
14
|
+
spinIcon: boolean;
|
|
15
|
+
suffixIcon: string;
|
|
16
|
+
tooltip: string;
|
|
17
|
+
tooltipClass: string;
|
|
18
|
+
get elementClasses(): string;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrBadgeNewComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrBadgeNewComponent, "dr-badge-new", never, { "bgColor": { "alias": "bgColor"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "textStyle": { "alias": "textStyle"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showDot": { "alias": "showDot"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "spinIcon": { "alias": "spinIcon"; "required": false; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipClass": { "alias": "tooltipClass"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.DrTooltipDirective; inputs: { "drTooltip": "tooltip"; "drTooltipClass": "tooltipClass"; }; outputs: {}; }]>;
|
|
21
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, Renderer2, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, InjectionToken, OnDestroy, Renderer2, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const DR_SELECT_APPEND_TO: InjectionToken<string>;
|
|
5
6
|
export declare class DrSelectComponent implements ControlValueAccessor, OnDestroy {
|
|
6
7
|
private elementRef;
|
|
7
8
|
private renderer;
|
|
@@ -11,8 +11,8 @@ export declare class DrModalContainerComponent extends CdkDialogContainer {
|
|
|
11
11
|
readonly animationState: import("@angular/core").WritableSignal<DrModalAnimationState>;
|
|
12
12
|
readonly animationClass: import("@angular/core").Signal<string>;
|
|
13
13
|
readonly animationTime: import("@angular/core").Signal<number>;
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
14
|
+
readonly labelledBy: import("@angular/core").WritableSignal<string>;
|
|
15
|
+
readonly describedBy: import("@angular/core").WritableSignal<string>;
|
|
16
16
|
private readonly elementRef;
|
|
17
17
|
protected _contentAttached(): void;
|
|
18
18
|
animateClose(): void;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
import { DrModalRef } from './dr-modal-ref';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class DrModalHeaderDirective {
|
|
3
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrModalHeaderDirective, never>;
|
|
4
5
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DrModalHeaderDirective, "dr-modal-header, [dr-modal-header], [drModalHeader]", never, {}, {}, never, never, true, never>;
|
|
5
6
|
}
|
|
6
7
|
export declare class DrModalTitleDirective {
|
|
8
|
+
private readonly modalRef;
|
|
7
9
|
protected readonly id: string;
|
|
8
|
-
constructor();
|
|
10
|
+
constructor(modalRef: DrModalRef);
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrModalTitleDirective, never>;
|
|
10
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DrModalTitleDirective, "dr-modal-title, [dr-modal-title], [drModalTitle]", never, {}, {}, never, never, true, never>;
|
|
11
13
|
}
|
|
12
14
|
export declare class DrModalSubtitleDirective {
|
|
15
|
+
private readonly modalRef;
|
|
13
16
|
protected readonly id: string;
|
|
14
|
-
constructor();
|
|
17
|
+
constructor(modalRef: DrModalRef);
|
|
15
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrModalSubtitleDirective, never>;
|
|
16
19
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DrModalSubtitleDirective, "dr-modal-subtitle, [dr-modal-subtitle], [drModalSubtitle]", never, {}, {}, never, never, true, never>;
|
|
17
20
|
}
|
package/local-api.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export { DrChipComponent } from './lib/dr-chip/dr-chip.component';
|
|
|
135
135
|
export { DrGalleryComponent } from './lib/dr-gallery/dr-gallery.component';
|
|
136
136
|
export { DrProgressBarComponent, TProgressBarTheme } from './lib/dr-progress-bar/dr-progress-bar.component';
|
|
137
137
|
export { DrBadgeComponent, TBadgeColor, TBadgeSize } from './lib/dr-badge/dr-badge.component';
|
|
138
|
+
export { DrBadgeNewComponent, TBadgeNewSize, TBadgeNewBgColor, TBadgeNewTextColor, TBadgeNewTextStyle, } from './lib/dr-badge-new/dr-badge-new.component';
|
|
138
139
|
export { DrSystemMessageComponent, TSystemMessageTheme } from './lib/dr-system-message/dr-system-message.component';
|
|
139
140
|
export * from './lib/dr-modal/public-api';
|
|
140
141
|
export * from './lib/drawer/public-api';
|
package/package.json
CHANGED
package/styles.scss
CHANGED
|
@@ -567,6 +567,14 @@ $dr-chat-avatar-right-indent: 16px;
|
|
|
567
567
|
$dr-chat-header-text-indent: 20px;
|
|
568
568
|
$dr-chat-box-shadow: 0px 2px 36px 0px rgba(0, 0, 0, 0.15);
|
|
569
569
|
|
|
570
|
+
// DR border radius variables
|
|
571
|
+
$dr-border-radius-small: 4px;
|
|
572
|
+
$dr-border-radius-medium: 6px;
|
|
573
|
+
$dr-border-radius-regular: 8px;
|
|
574
|
+
$dr-border-radius-large: 12px;
|
|
575
|
+
$dr-border-radius-x-large: 16px;
|
|
576
|
+
$dr-border-radius-round: 32px;
|
|
577
|
+
|
|
570
578
|
// DR spacing variables (margin, paddings, etc.)
|
|
571
579
|
$dr-spacing-xxx-small: 2px;
|
|
572
580
|
$dr-spacing-xx-small: 4px;
|
|
@@ -577,6 +585,7 @@ $dr-spacing-large: 32px;
|
|
|
577
585
|
$dr-spacing-x-large: 40px;
|
|
578
586
|
$dr-spacing-xx-large: 48px;
|
|
579
587
|
$dr-spacing-xxx-large: 56px;
|
|
588
|
+
$dr-spacing-xxxx-large: 64px;
|
|
580
589
|
|
|
581
590
|
// DR font variables (family, weight, size, line-height)
|
|
582
591
|
$dr-primary-font-family: 'Poppins', sans-serif;
|
|
@@ -728,6 +737,14 @@ $dr-chat-avatar-right-indent: 16px;
|
|
|
728
737
|
$dr-chat-header-text-indent: 20px;
|
|
729
738
|
$dr-chat-box-shadow: 0px 2px 36px 0px rgba(0, 0, 0, 0.15);
|
|
730
739
|
|
|
740
|
+
// DR border radius variables
|
|
741
|
+
$dr-border-radius-small: 4px;
|
|
742
|
+
$dr-border-radius-medium: 6px;
|
|
743
|
+
$dr-border-radius-regular: 8px;
|
|
744
|
+
$dr-border-radius-large: 12px;
|
|
745
|
+
$dr-border-radius-x-large: 16px;
|
|
746
|
+
$dr-border-radius-round: 32px;
|
|
747
|
+
|
|
731
748
|
// DR spacing variables (margin, paddings, etc.)
|
|
732
749
|
$dr-spacing-xxx-small: 2px;
|
|
733
750
|
$dr-spacing-xx-small: 4px;
|
|
@@ -738,6 +755,7 @@ $dr-spacing-large: 32px;
|
|
|
738
755
|
$dr-spacing-x-large: 40px;
|
|
739
756
|
$dr-spacing-xx-large: 48px;
|
|
740
757
|
$dr-spacing-xxx-large: 56px;
|
|
758
|
+
$dr-spacing-xxxx-large: 64px;
|
|
741
759
|
|
|
742
760
|
// DR font variables (family, weight, size, line-height)
|
|
743
761
|
$dr-primary-font-family: 'Poppins', sans-serif;
|
|
Binary file
|