duck-dev-lib 0.0.85 → 0.0.87
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/package.json
CHANGED
package/tokens.css
CHANGED
|
@@ -41,23 +41,23 @@
|
|
|
41
41
|
--dd-base-accent-yellow: var(--dd-accent-yellow);
|
|
42
42
|
--dd-base-accent-blue: var(--dd-accent-blue);
|
|
43
43
|
|
|
44
|
-
/* Neobrutalism ink & paper */
|
|
45
|
-
--dd-neo-ink:
|
|
46
|
-
--dd-neo-paper:
|
|
47
|
-
--dd-neo-shadow:
|
|
44
|
+
/* Neobrutalism ink & paper — Tropical Punch */
|
|
45
|
+
--dd-neo-ink: #1a1a1a;
|
|
46
|
+
--dd-neo-paper: #FAFAF5;
|
|
47
|
+
--dd-neo-shadow: rgba(26, 26, 26, 0.18);
|
|
48
48
|
|
|
49
|
-
/* Neobrutalism analogous palette — light theme */
|
|
50
|
-
--dd-neo-ana-1:
|
|
49
|
+
/* Neobrutalism analogous palette — light theme (Tropical Punch) */
|
|
50
|
+
--dd-neo-ana-1: #FF6B6B; /* coral */
|
|
51
51
|
--dd-neo-ana-1-contrast: #000;
|
|
52
|
-
--dd-neo-ana-2:
|
|
52
|
+
--dd-neo-ana-2: #4ECDC4; /* teal */
|
|
53
53
|
--dd-neo-ana-2-contrast: #000;
|
|
54
|
-
--dd-neo-ana-3:
|
|
54
|
+
--dd-neo-ana-3: #FFD93D; /* mango */
|
|
55
55
|
--dd-neo-ana-3-contrast: #000;
|
|
56
|
-
--dd-neo-ana-4:
|
|
57
|
-
--dd-neo-ana-4-contrast: #
|
|
58
|
-
--dd-neo-ana-5:
|
|
56
|
+
--dd-neo-ana-4: #F5F5F0; /* warm white bg */
|
|
57
|
+
--dd-neo-ana-4-contrast: #000;
|
|
58
|
+
--dd-neo-ana-5: #95E06C; /* lime */
|
|
59
59
|
--dd-neo-ana-5-contrast: #000;
|
|
60
|
-
--dd-neo-ana-6:
|
|
60
|
+
--dd-neo-ana-6: #74B9FF; /* sky blue */
|
|
61
61
|
--dd-neo-ana-6-contrast: #000;
|
|
62
62
|
|
|
63
63
|
/* Animation easings */
|
package/types/duck-dev-lib.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef, TemplateRef, OnDestroy, OnInit, AfterContentInit, Signal } from '@angular/core';
|
|
2
|
+
import { ElementRef, TemplateRef, OnDestroy, OnInit, AfterContentInit, Signal, AfterViewInit } from '@angular/core';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
4
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
5
5
|
import * as duck_dev_lib from 'duck-dev-lib';
|
|
@@ -1032,30 +1032,52 @@ declare class DuckDevBreadcrumbClassic {
|
|
|
1032
1032
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DuckDevBreadcrumbClassic, "dd-breadcrumb-classic", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; }, { "navigate": "navigate"; }, never, never, true, never>;
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
|
-
declare class DuckDevBreadcrumbNeobrutal {
|
|
1035
|
+
declare class DuckDevBreadcrumbNeobrutal implements AfterViewInit {
|
|
1036
1036
|
readonly items: _angular_core.InputSignal<BreadcrumbItem[]>;
|
|
1037
1037
|
readonly color: _angular_core.InputSignal<AccentEnumColor>;
|
|
1038
1038
|
readonly isMobile: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1039
1039
|
readonly navigate: _angular_core.OutputEmitterRef<BreadcrumbItem>;
|
|
1040
1040
|
protected readonly listRef: _angular_core.Signal<ElementRef<HTMLOListElement> | undefined>;
|
|
1041
|
+
protected readonly labelRefs: _angular_core.Signal<readonly ElementRef<HTMLElement>[]>;
|
|
1041
1042
|
protected readonly visibleItems: _angular_core.Signal<BreadcrumbItem[]>;
|
|
1042
1043
|
protected readonly breadcrumbStyle: _angular_core.Signal<{
|
|
1043
1044
|
[key: string]: string;
|
|
1044
1045
|
}>;
|
|
1045
1046
|
protected readonly activePopoverIndex: _angular_core.WritableSignal<number | null>;
|
|
1046
1047
|
protected readonly isDragging: _angular_core.WritableSignal<boolean>;
|
|
1048
|
+
protected readonly leftFadeOpacity: _angular_core.WritableSignal<number>;
|
|
1049
|
+
protected readonly rightFadeOpacity: _angular_core.WritableSignal<number>;
|
|
1047
1050
|
private dragStartX;
|
|
1048
1051
|
private scrollStartX;
|
|
1049
1052
|
private hasDragged;
|
|
1050
1053
|
private readonly destroyRef;
|
|
1054
|
+
private resizeObserver;
|
|
1055
|
+
private scrollFadeFrameId;
|
|
1056
|
+
private longPressTimerId;
|
|
1057
|
+
private longPressPointerId;
|
|
1058
|
+
private longPressIndex;
|
|
1059
|
+
private longPressStartX;
|
|
1060
|
+
private longPressStartY;
|
|
1061
|
+
private longPressActivatedIndex;
|
|
1051
1062
|
private onMouseMove;
|
|
1052
1063
|
private onMouseUp;
|
|
1053
1064
|
protected onListMouseDown(e: MouseEvent): void;
|
|
1054
1065
|
constructor();
|
|
1055
|
-
|
|
1056
|
-
protected
|
|
1066
|
+
ngAfterViewInit(): void;
|
|
1067
|
+
protected onListScroll(): void;
|
|
1068
|
+
protected onNavigate(item: BreadcrumbItem, index: number, event: MouseEvent): void;
|
|
1069
|
+
protected onCurrentClick(index: number, event: Event): void;
|
|
1057
1070
|
protected isPopoverOpen(index: number): boolean;
|
|
1058
1071
|
protected closePopover(): void;
|
|
1072
|
+
protected onCrumbPointerDown(index: number, event: PointerEvent): void;
|
|
1073
|
+
protected onCrumbPointerMove(event: PointerEvent): void;
|
|
1074
|
+
protected onCrumbPointerEnd(event: PointerEvent): void;
|
|
1075
|
+
private observeScrollContainer;
|
|
1076
|
+
private queueScrollFadeUpdate;
|
|
1077
|
+
private updateScrollFades;
|
|
1078
|
+
private getScrollFadeOpacity;
|
|
1079
|
+
private clearLongPressTimer;
|
|
1080
|
+
private isLabelOverflowing;
|
|
1059
1081
|
private getPalette;
|
|
1060
1082
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DuckDevBreadcrumbNeobrutal, never>;
|
|
1061
1083
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DuckDevBreadcrumbNeobrutal, "dd-breadcrumb-neobrutal", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "isMobile": { "alias": "isMobile"; "required": false; "isSignal": true; }; }, { "navigate": "navigate"; }, never, never, true, never>;
|