@m1z23r/ngx-ui 1.1.57 → 1.1.60
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/fesm2022/m1z23r-ngx-ui.mjs +883 -2
- package/fesm2022/m1z23r-ngx-ui.mjs.map +1 -1
- package/package.json +3 -2
- package/styles/_variables.scss +30 -0
- package/types/m1z23r-ngx-ui.d.ts +303 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m1z23r/ngx-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.60",
|
|
4
4
|
"description": "A modern Angular UI component library with themeable components and responsive layout system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "m1z23r",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@angular/common": "^21.0.0",
|
|
32
32
|
"@angular/core": "^21.0.0",
|
|
33
|
-
"@angular/forms": "^21.0.0"
|
|
33
|
+
"@angular/forms": "^21.0.0",
|
|
34
|
+
"@angular/router": "^21.0.0"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"tslib": "^2.3.0"
|
package/styles/_variables.scss
CHANGED
|
@@ -115,6 +115,36 @@
|
|
|
115
115
|
--ui-option-selected-bg: color-mix(in srgb, var(--ui-primary) 10%, transparent);
|
|
116
116
|
--ui-option-selected-text: var(--ui-primary);
|
|
117
117
|
|
|
118
|
+
// Segmented control
|
|
119
|
+
--ui-segmented-track-bg: var(--ui-bg-tertiary);
|
|
120
|
+
--ui-segmented-active-bg: var(--ui-primary);
|
|
121
|
+
--ui-segmented-active-text: var(--ui-primary-text);
|
|
122
|
+
|
|
123
|
+
// Stepper
|
|
124
|
+
--ui-stepper-connector: var(--ui-border);
|
|
125
|
+
--ui-stepper-completed: var(--ui-primary);
|
|
126
|
+
--ui-stepper-completed-text: var(--ui-primary-text);
|
|
127
|
+
--ui-stepper-circle-size: 2rem;
|
|
128
|
+
|
|
129
|
+
// Skeleton
|
|
130
|
+
--ui-skeleton-base: color-mix(in srgb, var(--ui-text) 9%, var(--ui-bg));
|
|
131
|
+
--ui-skeleton-highlight: color-mix(in srgb, var(--ui-text) 3%, var(--ui-bg));
|
|
132
|
+
|
|
133
|
+
// Lightbox
|
|
134
|
+
--ui-lightbox-backdrop: rgba(0, 0, 0, 0.9);
|
|
135
|
+
--ui-lightbox-control-bg: rgba(0, 0, 0, 0.45);
|
|
136
|
+
--ui-lightbox-control-text: #ffffff;
|
|
137
|
+
|
|
138
|
+
// Carousel
|
|
139
|
+
--ui-carousel-control-bg: rgba(0, 0, 0, 0.45);
|
|
140
|
+
--ui-carousel-control-text: #ffffff;
|
|
141
|
+
--ui-carousel-counter-bg: rgba(0, 0, 0, 0.55);
|
|
142
|
+
|
|
143
|
+
// Image uploader
|
|
144
|
+
--ui-image-uploader-tile-bg: var(--ui-bg-secondary);
|
|
145
|
+
--ui-image-uploader-tile-border: var(--ui-border);
|
|
146
|
+
--ui-image-uploader-overlay-bg: rgba(0, 0, 0, 0.5);
|
|
147
|
+
|
|
118
148
|
// JSON tree value highlighting
|
|
119
149
|
--ui-json-string: #16a34a;
|
|
120
150
|
--ui-json-number: #2563eb;
|
package/types/m1z23r-ngx-ui.d.ts
CHANGED
|
@@ -260,6 +260,69 @@ declare class DialogService {
|
|
|
260
260
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DialogService>;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
interface CarouselImage {
|
|
264
|
+
src: string;
|
|
265
|
+
alt?: string;
|
|
266
|
+
}
|
|
267
|
+
declare class CarouselComponent {
|
|
268
|
+
readonly images: _angular_core.InputSignal<CarouselImage[]>;
|
|
269
|
+
readonly startIndex: _angular_core.InputSignal<number>;
|
|
270
|
+
readonly loop: _angular_core.InputSignal<boolean>;
|
|
271
|
+
readonly showCounter: _angular_core.InputSignal<boolean>;
|
|
272
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
273
|
+
readonly index: _angular_core.ModelSignal<number | undefined>;
|
|
274
|
+
/** Horizontal drag offset in px while a swipe is in progress */
|
|
275
|
+
protected readonly dragOffset: _angular_core.WritableSignal<number>;
|
|
276
|
+
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
277
|
+
private pointerId;
|
|
278
|
+
private dragStartX;
|
|
279
|
+
private dragStartY;
|
|
280
|
+
private dragAxis;
|
|
281
|
+
protected readonly currentIndex: _angular_core.Signal<number>;
|
|
282
|
+
protected readonly hasPrev: _angular_core.Signal<boolean>;
|
|
283
|
+
protected readonly hasNext: _angular_core.Signal<boolean>;
|
|
284
|
+
prev(): void;
|
|
285
|
+
next(): void;
|
|
286
|
+
protected handleKeyDown(event: KeyboardEvent): void;
|
|
287
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
288
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
289
|
+
protected onPointerUp(event: PointerEvent): void;
|
|
290
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CarouselComponent, never>;
|
|
291
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CarouselComponent, "ui-carousel", never, { "images": { "alias": "images"; "required": true; "isSignal": true; }; "startIndex": { "alias": "startIndex"; "required": false; "isSignal": true; }; "loop": { "alias": "loop"; "required": false; "isSignal": true; }; "showCounter": { "alias": "showCounter"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, { "index": "indexChange"; }, never, never, true, never>;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
interface LightboxConfig {
|
|
295
|
+
/** Images to display in the lightbox carousel */
|
|
296
|
+
images: CarouselImage[];
|
|
297
|
+
/** Index of the image to show first */
|
|
298
|
+
startIndex?: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Service for opening a fullscreen image lightbox.
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* ```typescript
|
|
306
|
+
* const ref = this.lightboxService.open({
|
|
307
|
+
* images: [{ src: '/photos/1.jpg', alt: 'Living room' }],
|
|
308
|
+
* startIndex: 0,
|
|
309
|
+
* });
|
|
310
|
+
*
|
|
311
|
+
* await ref.afterClosed();
|
|
312
|
+
* ```
|
|
313
|
+
*/
|
|
314
|
+
declare class LightboxService {
|
|
315
|
+
private readonly dialogService;
|
|
316
|
+
/**
|
|
317
|
+
* Opens the lightbox with the given images.
|
|
318
|
+
*
|
|
319
|
+
* @returns A DialogRef that resolves when the lightbox is closed
|
|
320
|
+
*/
|
|
321
|
+
open(config: LightboxConfig): DialogRef<void>;
|
|
322
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LightboxService, never>;
|
|
323
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<LightboxService>;
|
|
324
|
+
}
|
|
325
|
+
|
|
263
326
|
/**
|
|
264
327
|
* Reference to an active toast notification.
|
|
265
328
|
* Used to programmatically dismiss a toast.
|
|
@@ -591,6 +654,26 @@ declare class ModalComponent implements OnInit {
|
|
|
591
654
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "ui-modal", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[footer]"], true, never>;
|
|
592
655
|
}
|
|
593
656
|
|
|
657
|
+
/**
|
|
658
|
+
* Fullscreen image lightbox. Opened via LightboxService — not meant to be
|
|
659
|
+
* embedded directly in templates.
|
|
660
|
+
*/
|
|
661
|
+
declare class LightboxComponent {
|
|
662
|
+
protected readonly config: LightboxConfig;
|
|
663
|
+
private readonly dialogRef;
|
|
664
|
+
private readonly carousel;
|
|
665
|
+
private readonly viewport;
|
|
666
|
+
/** Tracks if mousedown started on the backdrop (to prevent close on drag-out) */
|
|
667
|
+
private readonly mouseDownOnBackdrop;
|
|
668
|
+
constructor();
|
|
669
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
670
|
+
protected onBackdropMouseDown(event: MouseEvent): void;
|
|
671
|
+
protected onBackdropClick(event: MouseEvent): void;
|
|
672
|
+
protected close(): void;
|
|
673
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LightboxComponent, never>;
|
|
674
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LightboxComponent, "ui-lightbox", never, {}, {}, never, never, true, never>;
|
|
675
|
+
}
|
|
676
|
+
|
|
594
677
|
/**
|
|
595
678
|
* Directive that connects a component's loading state to the LoadingService.
|
|
596
679
|
*
|
|
@@ -1442,7 +1525,7 @@ interface DateRangeValue {
|
|
|
1442
1525
|
start: Date;
|
|
1443
1526
|
end: Date;
|
|
1444
1527
|
}
|
|
1445
|
-
type ThumbId = 'start' | 'end';
|
|
1528
|
+
type ThumbId$1 = 'start' | 'end';
|
|
1446
1529
|
declare class RangeSliderComponent {
|
|
1447
1530
|
readonly min: _angular_core.InputSignal<Date>;
|
|
1448
1531
|
readonly max: _angular_core.InputSignal<Date>;
|
|
@@ -1459,9 +1542,9 @@ declare class RangeSliderComponent {
|
|
|
1459
1542
|
protected readonly trackEl: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
1460
1543
|
protected readonly startMs: _angular_core.WritableSignal<number>;
|
|
1461
1544
|
protected readonly endMs: _angular_core.WritableSignal<number>;
|
|
1462
|
-
protected readonly dragging: _angular_core.WritableSignal<ThumbId | null>;
|
|
1463
|
-
protected readonly focusedThumb: _angular_core.WritableSignal<ThumbId | null>;
|
|
1464
|
-
protected readonly hoveredThumb: _angular_core.WritableSignal<ThumbId | null>;
|
|
1545
|
+
protected readonly dragging: _angular_core.WritableSignal<ThumbId$1 | null>;
|
|
1546
|
+
protected readonly focusedThumb: _angular_core.WritableSignal<ThumbId$1 | null>;
|
|
1547
|
+
protected readonly hoveredThumb: _angular_core.WritableSignal<ThumbId$1 | null>;
|
|
1465
1548
|
private lastEmitted;
|
|
1466
1549
|
protected readonly minMs: _angular_core.Signal<number>;
|
|
1467
1550
|
protected readonly maxMs: _angular_core.Signal<number>;
|
|
@@ -1483,15 +1566,15 @@ declare class RangeSliderComponent {
|
|
|
1483
1566
|
constructor();
|
|
1484
1567
|
/** Push current thumb state into the value model (live, during interaction). */
|
|
1485
1568
|
private writeValue;
|
|
1486
|
-
protected onThumbPointerDown(event: PointerEvent, thumb: ThumbId): void;
|
|
1487
|
-
protected onThumbPointerMove(event: PointerEvent, thumb: ThumbId): void;
|
|
1488
|
-
protected onThumbPointerUp(event: PointerEvent, thumb: ThumbId): void;
|
|
1569
|
+
protected onThumbPointerDown(event: PointerEvent, thumb: ThumbId$1): void;
|
|
1570
|
+
protected onThumbPointerMove(event: PointerEvent, thumb: ThumbId$1): void;
|
|
1571
|
+
protected onThumbPointerUp(event: PointerEvent, thumb: ThumbId$1): void;
|
|
1489
1572
|
protected onTrackPointerDown(event: PointerEvent): void;
|
|
1490
|
-
protected onThumbKeyDown(event: KeyboardEvent, thumb: ThumbId): void;
|
|
1573
|
+
protected onThumbKeyDown(event: KeyboardEvent, thumb: ThumbId$1): void;
|
|
1491
1574
|
protected onThumbKeyUp(event: KeyboardEvent): void;
|
|
1492
|
-
protected onThumbFocus(thumb: ThumbId): void;
|
|
1575
|
+
protected onThumbFocus(thumb: ThumbId$1): void;
|
|
1493
1576
|
protected onThumbBlur(): void;
|
|
1494
|
-
protected onThumbEnter(thumb: ThumbId): void;
|
|
1577
|
+
protected onThumbEnter(thumb: ThumbId$1): void;
|
|
1495
1578
|
protected onThumbLeave(): void;
|
|
1496
1579
|
private setThumb;
|
|
1497
1580
|
private commit;
|
|
@@ -1511,6 +1594,74 @@ declare class RangeSliderComponent {
|
|
|
1511
1594
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RangeSliderComponent, "ui-range-slider", never, { "min": { "alias": "min"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "bubbles": { "alias": "bubbles"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueCommit": "valueCommit"; }, never, never, true, never>;
|
|
1512
1595
|
}
|
|
1513
1596
|
|
|
1597
|
+
type NumberRangeSliderSize = 'sm' | 'md' | 'lg';
|
|
1598
|
+
type NumberRangeSliderBubbles = 'always' | 'active' | 'never';
|
|
1599
|
+
interface NumberRangeValue {
|
|
1600
|
+
start: number;
|
|
1601
|
+
end: number;
|
|
1602
|
+
}
|
|
1603
|
+
type ThumbId = 'start' | 'end';
|
|
1604
|
+
declare class NumberRangeSliderComponent {
|
|
1605
|
+
readonly min: _angular_core.InputSignal<number>;
|
|
1606
|
+
readonly max: _angular_core.InputSignal<number>;
|
|
1607
|
+
readonly step: _angular_core.InputSignal<number>;
|
|
1608
|
+
readonly size: _angular_core.InputSignal<NumberRangeSliderSize>;
|
|
1609
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
1610
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1611
|
+
readonly bubbles: _angular_core.InputSignal<NumberRangeSliderBubbles>;
|
|
1612
|
+
readonly showRange: _angular_core.InputSignal<boolean>;
|
|
1613
|
+
readonly prefix: _angular_core.InputSignal<string>;
|
|
1614
|
+
readonly suffix: _angular_core.InputSignal<string>;
|
|
1615
|
+
readonly decimals: _angular_core.InputSignal<number>;
|
|
1616
|
+
readonly formatValue: _angular_core.InputSignal<((n: number) => string) | null>;
|
|
1617
|
+
readonly value: _angular_core.ModelSignal<NumberRangeValue | null>;
|
|
1618
|
+
readonly valueCommit: _angular_core.OutputEmitterRef<NumberRangeValue>;
|
|
1619
|
+
protected readonly trackEl: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
1620
|
+
protected readonly startVal: _angular_core.WritableSignal<number>;
|
|
1621
|
+
protected readonly endVal: _angular_core.WritableSignal<number>;
|
|
1622
|
+
protected readonly dragging: _angular_core.WritableSignal<ThumbId | null>;
|
|
1623
|
+
protected readonly focusedThumb: _angular_core.WritableSignal<ThumbId | null>;
|
|
1624
|
+
protected readonly hoveredThumb: _angular_core.WritableSignal<ThumbId | null>;
|
|
1625
|
+
private lastEmitted;
|
|
1626
|
+
protected readonly range: _angular_core.Signal<number>;
|
|
1627
|
+
protected readonly startPercent: _angular_core.Signal<number>;
|
|
1628
|
+
protected readonly endPercent: _angular_core.Signal<number>;
|
|
1629
|
+
protected readonly fillStyle: _angular_core.Signal<{
|
|
1630
|
+
left: string;
|
|
1631
|
+
width: string;
|
|
1632
|
+
}>;
|
|
1633
|
+
protected readonly startLabel: _angular_core.Signal<string>;
|
|
1634
|
+
protected readonly endLabel: _angular_core.Signal<string>;
|
|
1635
|
+
protected readonly bubbleVisible: _angular_core.Signal<{
|
|
1636
|
+
start: boolean;
|
|
1637
|
+
end: boolean;
|
|
1638
|
+
}>;
|
|
1639
|
+
protected readonly rootClasses: _angular_core.Signal<string>;
|
|
1640
|
+
constructor();
|
|
1641
|
+
/** Push current thumb state into the value model (live, during interaction). */
|
|
1642
|
+
private writeValue;
|
|
1643
|
+
protected onThumbPointerDown(event: PointerEvent, thumb: ThumbId): void;
|
|
1644
|
+
protected onThumbPointerMove(event: PointerEvent, thumb: ThumbId): void;
|
|
1645
|
+
protected onThumbPointerUp(event: PointerEvent, thumb: ThumbId): void;
|
|
1646
|
+
protected onTrackPointerDown(event: PointerEvent): void;
|
|
1647
|
+
protected onThumbKeyDown(event: KeyboardEvent, thumb: ThumbId): void;
|
|
1648
|
+
protected onThumbKeyUp(event: KeyboardEvent): void;
|
|
1649
|
+
protected onThumbFocus(thumb: ThumbId): void;
|
|
1650
|
+
protected onThumbBlur(): void;
|
|
1651
|
+
protected onThumbEnter(thumb: ThumbId): void;
|
|
1652
|
+
protected onThumbLeave(): void;
|
|
1653
|
+
protected effectiveStep(): number;
|
|
1654
|
+
private setThumb;
|
|
1655
|
+
private commit;
|
|
1656
|
+
private clamp;
|
|
1657
|
+
private snap;
|
|
1658
|
+
private toPercent;
|
|
1659
|
+
private pixelToVal;
|
|
1660
|
+
private format;
|
|
1661
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NumberRangeSliderComponent, never>;
|
|
1662
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NumberRangeSliderComponent, "ui-number-range-slider", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "bubbles": { "alias": "bubbles"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "decimals": { "alias": "decimals"; "required": false; "isSignal": true; }; "formatValue": { "alias": "formatValue"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueCommit": "valueCommit"; }, never, never, true, never>;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1514
1665
|
type ChipInputVariant = 'default' | 'outlined' | 'filled';
|
|
1515
1666
|
type ChipInputSize = 'sm' | 'md' | 'lg';
|
|
1516
1667
|
/** Context provided to custom chip templates */
|
|
@@ -1910,6 +2061,146 @@ declare class DatetimepickerComponent implements OnDestroy {
|
|
|
1910
2061
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatetimepickerComponent, "ui-datetimepicker", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeFormat": { "alias": "timeFormat"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "secondStep": { "alias": "secondStep"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
1911
2062
|
}
|
|
1912
2063
|
|
|
2064
|
+
type SegmentedSize = 'sm' | 'md' | 'lg';
|
|
2065
|
+
interface SegmentedOption<T = unknown> {
|
|
2066
|
+
value: T;
|
|
2067
|
+
label: string;
|
|
2068
|
+
disabled?: boolean;
|
|
2069
|
+
}
|
|
2070
|
+
declare class SegmentedComponent<T = unknown> {
|
|
2071
|
+
readonly options: _angular_core.InputSignal<SegmentedOption<T>[]>;
|
|
2072
|
+
readonly size: _angular_core.InputSignal<SegmentedSize>;
|
|
2073
|
+
readonly fullWidth: _angular_core.InputSignal<boolean>;
|
|
2074
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
2075
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
2076
|
+
readonly value: _angular_core.ModelSignal<T | undefined>;
|
|
2077
|
+
private readonly track;
|
|
2078
|
+
protected readonly segmentedClasses: _angular_core.Signal<string>;
|
|
2079
|
+
protected readonly selectedIndex: _angular_core.Signal<number>;
|
|
2080
|
+
protected isSegmentDisabled(option: SegmentedOption<T>): boolean;
|
|
2081
|
+
protected isTabbable(index: number): boolean;
|
|
2082
|
+
protected selectSegment(option: SegmentedOption<T>): void;
|
|
2083
|
+
protected handleKeyDown(event: KeyboardEvent, currentIndex: number): void;
|
|
2084
|
+
private focusSegment;
|
|
2085
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedComponent<any>, never>;
|
|
2086
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedComponent<any>, "ui-segmented", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
interface StepperStep {
|
|
2090
|
+
key: string;
|
|
2091
|
+
label: string;
|
|
2092
|
+
}
|
|
2093
|
+
declare class StepperComponent {
|
|
2094
|
+
readonly steps: _angular_core.InputSignal<StepperStep[]>;
|
|
2095
|
+
readonly linear: _angular_core.InputSignal<boolean>;
|
|
2096
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
2097
|
+
readonly activeIndex: _angular_core.ModelSignal<number>;
|
|
2098
|
+
readonly stepClick: _angular_core.OutputEmitterRef<number>;
|
|
2099
|
+
protected readonly stepStates: _angular_core.Signal<{
|
|
2100
|
+
step: StepperStep;
|
|
2101
|
+
index: number;
|
|
2102
|
+
completed: boolean;
|
|
2103
|
+
active: boolean;
|
|
2104
|
+
clickable: boolean;
|
|
2105
|
+
}[]>;
|
|
2106
|
+
protected selectStep(index: number, clickable: boolean): void;
|
|
2107
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StepperComponent, never>;
|
|
2108
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StepperComponent, "ui-stepper", never, { "steps": { "alias": "steps"; "required": true; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; }, { "activeIndex": "activeIndexChange"; "stepClick": "stepClick"; }, never, never, true, never>;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
declare class BreadcrumbSeparatorDirective {
|
|
2112
|
+
readonly templateRef: TemplateRef<any>;
|
|
2113
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbSeparatorDirective, never>;
|
|
2114
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BreadcrumbSeparatorDirective, "[uiBreadcrumbSeparator]", never, {}, {}, never, never, true, never>;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
interface BreadcrumbItem {
|
|
2118
|
+
label: string;
|
|
2119
|
+
url?: string;
|
|
2120
|
+
}
|
|
2121
|
+
declare class BreadcrumbComponent {
|
|
2122
|
+
readonly items: _angular_core.InputSignal<BreadcrumbItem[]>;
|
|
2123
|
+
readonly separator: _angular_core.InputSignal<string>;
|
|
2124
|
+
protected readonly separatorTemplate: _angular_core.Signal<BreadcrumbSeparatorDirective | undefined>;
|
|
2125
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
2126
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbComponent, "ui-breadcrumb", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; }, {}, ["separatorTemplate"], never, true, never>;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
type SkeletonVariant = 'line' | 'box' | 'circle';
|
|
2130
|
+
declare class SkeletonComponent {
|
|
2131
|
+
readonly variant: _angular_core.InputSignal<SkeletonVariant>;
|
|
2132
|
+
readonly width: _angular_core.InputSignal<string | undefined>;
|
|
2133
|
+
readonly height: _angular_core.InputSignal<string | undefined>;
|
|
2134
|
+
readonly count: _angular_core.InputSignal<number>;
|
|
2135
|
+
protected readonly items: _angular_core.Signal<number[]>;
|
|
2136
|
+
protected itemWidth(index: number): string | null;
|
|
2137
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SkeletonComponent, never>;
|
|
2138
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SkeletonComponent, "ui-skeleton", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
interface ImageUploaderItem {
|
|
2142
|
+
id: string;
|
|
2143
|
+
previewUrl: string;
|
|
2144
|
+
/** Upload progress 0-100; shows a progress overlay while set and below 100 */
|
|
2145
|
+
progress?: number;
|
|
2146
|
+
/** Error message; puts the tile in an error state */
|
|
2147
|
+
error?: string;
|
|
2148
|
+
}
|
|
2149
|
+
declare class ImageUploaderComponent {
|
|
2150
|
+
readonly maxCount: _angular_core.InputSignal<number>;
|
|
2151
|
+
readonly accept: _angular_core.InputSignal<string>;
|
|
2152
|
+
readonly maxFileSizeMb: _angular_core.InputSignal<number | undefined>;
|
|
2153
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
2154
|
+
readonly coverLabel: _angular_core.InputSignal<string>;
|
|
2155
|
+
readonly addLabel: _angular_core.InputSignal<string>;
|
|
2156
|
+
readonly items: _angular_core.ModelSignal<ImageUploaderItem[]>;
|
|
2157
|
+
readonly filesAdded: _angular_core.OutputEmitterRef<File[]>;
|
|
2158
|
+
readonly filesRejected: _angular_core.OutputEmitterRef<{
|
|
2159
|
+
file: File;
|
|
2160
|
+
reason: string;
|
|
2161
|
+
}[]>;
|
|
2162
|
+
readonly removed: _angular_core.OutputEmitterRef<string>;
|
|
2163
|
+
readonly reordered: _angular_core.OutputEmitterRef<string[]>;
|
|
2164
|
+
private readonly fileInput;
|
|
2165
|
+
private readonly grid;
|
|
2166
|
+
protected readonly dragOver: _angular_core.WritableSignal<boolean>;
|
|
2167
|
+
/** Id of the tile currently grabbed for keyboard reordering */
|
|
2168
|
+
protected readonly grabbedId: _angular_core.WritableSignal<string | null>;
|
|
2169
|
+
/** Announcement for screen readers after a keyboard move */
|
|
2170
|
+
protected readonly liveMessage: _angular_core.WritableSignal<string>;
|
|
2171
|
+
/** Id of the tile being pointer-dragged */
|
|
2172
|
+
protected readonly dragId: _angular_core.WritableSignal<string | null>;
|
|
2173
|
+
protected readonly ghostX: _angular_core.WritableSignal<number>;
|
|
2174
|
+
protected readonly ghostY: _angular_core.WritableSignal<number>;
|
|
2175
|
+
protected readonly ghostSize: _angular_core.WritableSignal<number>;
|
|
2176
|
+
private pointerId;
|
|
2177
|
+
private pointerDownX;
|
|
2178
|
+
private pointerDownY;
|
|
2179
|
+
private pointerDownId;
|
|
2180
|
+
private dragStarted;
|
|
2181
|
+
protected readonly canAdd: _angular_core.Signal<boolean>;
|
|
2182
|
+
protected readonly dragItem: _angular_core.Signal<ImageUploaderItem | null>;
|
|
2183
|
+
protected tileLabel(item: ImageUploaderItem, index: number): string;
|
|
2184
|
+
protected openFilePicker(): void;
|
|
2185
|
+
protected onFileSelected(event: Event): void;
|
|
2186
|
+
protected onDragOver(event: DragEvent): void;
|
|
2187
|
+
protected onDragLeave(event: DragEvent): void;
|
|
2188
|
+
protected onDrop(event: DragEvent): void;
|
|
2189
|
+
private processFiles;
|
|
2190
|
+
private isFileTypeAccepted;
|
|
2191
|
+
protected removeItem(event: Event, id: string): void;
|
|
2192
|
+
protected onTilePointerDown(event: PointerEvent, id: string): void;
|
|
2193
|
+
protected onTilePointerMove(event: PointerEvent): void;
|
|
2194
|
+
protected onTilePointerUp(event: PointerEvent): void;
|
|
2195
|
+
private findTileElement;
|
|
2196
|
+
private tileIndexAtPoint;
|
|
2197
|
+
protected onTileKeyDown(event: KeyboardEvent, id: string, index: number): void;
|
|
2198
|
+
private moveByKeyboard;
|
|
2199
|
+
private moveItem;
|
|
2200
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ImageUploaderComponent, never>;
|
|
2201
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ImageUploaderComponent, "ui-image-uploader", never, { "maxCount": { "alias": "maxCount"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "maxFileSizeMb": { "alias": "maxFileSizeMb"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "coverLabel": { "alias": "coverLabel"; "required": false; "isSignal": true; }; "addLabel": { "alias": "addLabel"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "items": "itemsChange"; "filesAdded": "filesAdded"; "filesRejected": "filesRejected"; "removed": "removed"; "reordered": "reordered"; }, never, never, true, never>;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
1913
2204
|
type ShellVariant = 'default' | 'header' | 'simple';
|
|
1914
2205
|
declare class ShellComponent {
|
|
1915
2206
|
readonly variant: _angular_core.InputSignal<ShellVariant>;
|
|
@@ -2301,5 +2592,5 @@ declare class TemplateInputComponent implements OnDestroy, AfterViewInit {
|
|
|
2301
2592
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TemplateInputComponent, "ui-template-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "variables": { "alias": "variables"; "required": true; "isSignal": true; }; }, { "value": "valueChange"; "variables": "variablesChange"; "variableHover": "variableHover"; }, ["popoverTemplate", "hasSuffix"], ["[uiTemplateInputSuffix]"], true, never>;
|
|
2302
2593
|
}
|
|
2303
2594
|
|
|
2304
|
-
export { AccordionComponent, AccordionHeaderDirective, AccordionItemComponent, AlertComponent, BadgeComponent, ButtonComponent, CardComponent, CellTemplateDirective, CellValuePipe, CheckboxComponent, ChipInputComponent, ChipTemplateDirective, CircularProgressComponent, ContentComponent, ContextMenuDirective, DIALOG_DATA, DIALOG_REF, DatepickerComponent, DatetimepickerComponent, DialogRef, DialogService, DropdownComponent, DropdownDividerComponent, DropdownItemComponent, DropdownTriggerDirective, DynamicTabsComponent, FileChooserComponent, FilePreviewPipe, FileSizePipe, FooterComponent, InputComponent, JsonTreeComponent, LOADABLE, LoadingDirective, LoadingService, ModalComponent, NavbarComponent, OptionComponent, OptionTemplateDirective, PaginationComponent, ProgressComponent, RadioComponent, RadioGroupComponent, RangeSliderComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarService, SidebarToggleComponent, SliderComponent, SpinnerComponent, SplitComponent, SplitPaneComponent, SwitchComponent, TAB_DATA, TAB_REF, TREE_HOST, TabActivePipe, TabComponent, TabIconDirective, TabRef, TableComponent, TabsComponent, TabsService, TemplateInputComponent, TemplateInputSuffixDirective, TextareaComponent, TimepickerComponent, ToastRef, ToastService, TooltipDirective, TreeComponent, TreeNodeComponent, Validators, VariablePopoverDirective, jsonToTreeNodes };
|
|
2305
|
-
export type { AccordionVariant, AlertVariant, AsyncSearchFn, AsyncSelectOption, BadgeSize, BadgeVariant, ButtonColor, ButtonSize, ButtonVariant, CardPadding, CardVariant, CheckboxSize, ChipInputSize, ChipInputVariant, ChipTemplateContext, CircularProgressSize, CircularProgressVariant, DateRange, DateRangeValue, DatepickerSize, DatepickerVariant, DatepickerView, DatetimepickerSize, DatetimepickerVariant, DatetimepickerView, DialogConfig, DropdownAlign, DropdownPosition, DynamicTabConfig, DynamicTabsSize, DynamicTabsVariant, FileChooserSize, FileChooserVariant, InputType, JsonKind, JsonNodeMeta, JsonToTreeOptions, Loadable, ModalSize, OptionTemplateContext, PaginationSize, ProgressSize, ProgressVariant, RadioGroupOrientation, RadioGroupSize, RadioGroupVariant, RangeSliderBubbles, RangeSliderMode, RangeSliderSize, SelectSize, SelectVariant, ShellVariant, SliderSize, SortDirection, SortState, SpinnerSize, SpinnerVariant, SplitGutterSize, SplitOrientation, SplitSizeChange, SwitchSize, TabRenderMode, TableColumn, TabsSize, TabsVariant, TemplateVariable, TextareaResize, TimeFormat, TimeValue, TimepickerSize, TimepickerVariant, ToastConfig, ToastPosition, ToastVariant, TooltipPosition, TreeDropPosition, TreeFormatter, TreeLabelToken, TreeNode, TreeNodeActionType, TreeNodeContextAction, TreeNodeDropEvent, ValidationError, ValidationState, ValidatorFn, VariablePopoverContext, VariableState };
|
|
2595
|
+
export { AccordionComponent, AccordionHeaderDirective, AccordionItemComponent, AlertComponent, BadgeComponent, BreadcrumbComponent, BreadcrumbSeparatorDirective, ButtonComponent, CardComponent, CarouselComponent, CellTemplateDirective, CellValuePipe, CheckboxComponent, ChipInputComponent, ChipTemplateDirective, CircularProgressComponent, ContentComponent, ContextMenuDirective, DIALOG_DATA, DIALOG_REF, DatepickerComponent, DatetimepickerComponent, DialogRef, DialogService, DropdownComponent, DropdownDividerComponent, DropdownItemComponent, DropdownTriggerDirective, DynamicTabsComponent, FileChooserComponent, FilePreviewPipe, FileSizePipe, FooterComponent, ImageUploaderComponent, InputComponent, JsonTreeComponent, LOADABLE, LightboxComponent, LightboxService, LoadingDirective, LoadingService, ModalComponent, NavbarComponent, NumberRangeSliderComponent, OptionComponent, OptionTemplateDirective, PaginationComponent, ProgressComponent, RadioComponent, RadioGroupComponent, RangeSliderComponent, SegmentedComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarService, SidebarToggleComponent, SkeletonComponent, SliderComponent, SpinnerComponent, SplitComponent, SplitPaneComponent, StepperComponent, SwitchComponent, TAB_DATA, TAB_REF, TREE_HOST, TabActivePipe, TabComponent, TabIconDirective, TabRef, TableComponent, TabsComponent, TabsService, TemplateInputComponent, TemplateInputSuffixDirective, TextareaComponent, TimepickerComponent, ToastRef, ToastService, TooltipDirective, TreeComponent, TreeNodeComponent, Validators, VariablePopoverDirective, jsonToTreeNodes };
|
|
2596
|
+
export type { AccordionVariant, AlertVariant, AsyncSearchFn, AsyncSelectOption, BadgeSize, BadgeVariant, BreadcrumbItem, ButtonColor, ButtonSize, ButtonVariant, CardPadding, CardVariant, CarouselImage, CheckboxSize, ChipInputSize, ChipInputVariant, ChipTemplateContext, CircularProgressSize, CircularProgressVariant, DateRange, DateRangeValue, DatepickerSize, DatepickerVariant, DatepickerView, DatetimepickerSize, DatetimepickerVariant, DatetimepickerView, DialogConfig, DropdownAlign, DropdownPosition, DynamicTabConfig, DynamicTabsSize, DynamicTabsVariant, FileChooserSize, FileChooserVariant, ImageUploaderItem, InputType, JsonKind, JsonNodeMeta, JsonToTreeOptions, LightboxConfig, Loadable, ModalSize, NumberRangeSliderBubbles, NumberRangeSliderSize, NumberRangeValue, OptionTemplateContext, PaginationSize, ProgressSize, ProgressVariant, RadioGroupOrientation, RadioGroupSize, RadioGroupVariant, RangeSliderBubbles, RangeSliderMode, RangeSliderSize, SegmentedOption, SegmentedSize, SelectSize, SelectVariant, ShellVariant, SkeletonVariant, SliderSize, SortDirection, SortState, SpinnerSize, SpinnerVariant, SplitGutterSize, SplitOrientation, SplitSizeChange, StepperStep, SwitchSize, TabRenderMode, TableColumn, TabsSize, TabsVariant, TemplateVariable, TextareaResize, TimeFormat, TimeValue, TimepickerSize, TimepickerVariant, ToastConfig, ToastPosition, ToastVariant, TooltipPosition, TreeDropPosition, TreeFormatter, TreeLabelToken, TreeNode, TreeNodeActionType, TreeNodeContextAction, TreeNodeDropEvent, ValidationError, ValidationState, ValidatorFn, VariablePopoverContext, VariableState };
|