@jdpo2008/ngx-ds 0.3.0 → 0.4.0
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
|
@@ -137,6 +137,12 @@ interface NgxDsLabels {
|
|
|
137
137
|
prevMonth: string;
|
|
138
138
|
nextMonth: string;
|
|
139
139
|
selectDateRange: string;
|
|
140
|
+
timePlaceholder: string;
|
|
141
|
+
selectTime: string;
|
|
142
|
+
clearTime: string;
|
|
143
|
+
hours: string;
|
|
144
|
+
minutes: string;
|
|
145
|
+
timePeriod: string;
|
|
140
146
|
pagination: string;
|
|
141
147
|
prevPage: string;
|
|
142
148
|
nextPage: string;
|
|
@@ -178,6 +184,16 @@ interface NgxDsLabels {
|
|
|
178
184
|
daysAgo: (n: number) => string;
|
|
179
185
|
confirm: string;
|
|
180
186
|
cancel: string;
|
|
187
|
+
carousel: string;
|
|
188
|
+
slide: string;
|
|
189
|
+
prevSlide: string;
|
|
190
|
+
nextSlide: string;
|
|
191
|
+
goToSlide: (n: number) => string;
|
|
192
|
+
slideOf: (n: number, total: number) => string;
|
|
193
|
+
pauseAutoplay: string;
|
|
194
|
+
playAutoplay: string;
|
|
195
|
+
lightbox: string;
|
|
196
|
+
resizePanels: string;
|
|
181
197
|
}
|
|
182
198
|
declare const NGX_DS_LABELS_ES: NgxDsLabels;
|
|
183
199
|
declare const NGX_DS_LABELS_EN: NgxDsLabels;
|
|
@@ -556,6 +572,7 @@ declare class InputComponent implements ControlValueAccessor {
|
|
|
556
572
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
557
573
|
readonly value: _angular_core.ModelSignal<string>;
|
|
558
574
|
readonly id: string;
|
|
575
|
+
readonly messageId: string;
|
|
559
576
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
560
577
|
readonly isFocused: _angular_core.Signal<boolean>;
|
|
561
578
|
readonly eyeIcon: _angular_core.Signal<LucideIconData>;
|
|
@@ -601,6 +618,7 @@ declare class TextareaComponent implements ControlValueAccessor {
|
|
|
601
618
|
readonly showCount: _angular_core.InputSignal<boolean>;
|
|
602
619
|
readonly value: _angular_core.ModelSignal<string>;
|
|
603
620
|
readonly id: string;
|
|
621
|
+
readonly messageId: string;
|
|
604
622
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
605
623
|
readonly isFocused: _angular_core.Signal<boolean>;
|
|
606
624
|
readonly hasError: _angular_core.Signal<boolean>;
|
|
@@ -647,6 +665,7 @@ declare class SelectComponent implements ControlValueAccessor {
|
|
|
647
665
|
readonly touched: _angular_core.InputSignal<boolean>;
|
|
648
666
|
readonly value: _angular_core.ModelSignal<SelectValue | SelectValue[] | null>;
|
|
649
667
|
readonly id: string;
|
|
668
|
+
readonly messageId: string;
|
|
650
669
|
readonly ChevronDown: lucide_angular.LucideIconData;
|
|
651
670
|
readonly ChevronUp: lucide_angular.LucideIconData;
|
|
652
671
|
readonly CheckIcon: lucide_angular.LucideIconData;
|
|
@@ -710,6 +729,7 @@ declare class DropdownComponent implements ControlValueAccessor {
|
|
|
710
729
|
readonly touched: _angular_core.InputSignal<boolean>;
|
|
711
730
|
readonly value: _angular_core.ModelSignal<DropdownValue | null>;
|
|
712
731
|
readonly id: string;
|
|
732
|
+
readonly messageId: string;
|
|
713
733
|
readonly ChevronDown: lucide_angular.LucideIconData;
|
|
714
734
|
readonly ChevronUp: lucide_angular.LucideIconData;
|
|
715
735
|
readonly CheckIcon: lucide_angular.LucideIconData;
|
|
@@ -779,6 +799,7 @@ declare class AutocompleteComponent implements ControlValueAccessor, OnDestroy {
|
|
|
779
799
|
/** Emits the current search string (debounced) — use for async data loading */
|
|
780
800
|
readonly searchChange: _angular_core.OutputEmitterRef<string>;
|
|
781
801
|
readonly id: string;
|
|
802
|
+
readonly messageId: string;
|
|
782
803
|
readonly SearchIcon: LucideIconData;
|
|
783
804
|
readonly XIcon: LucideIconData;
|
|
784
805
|
readonly isOpen: _angular_core.Signal<boolean>;
|
|
@@ -853,6 +874,7 @@ declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
853
874
|
readonly showToday: _angular_core.InputSignal<boolean>;
|
|
854
875
|
readonly value: _angular_core.ModelSignal<Date | null>;
|
|
855
876
|
readonly id: string;
|
|
877
|
+
readonly messageId: string;
|
|
856
878
|
readonly CalendarIcon: lucide_angular.LucideIconData;
|
|
857
879
|
readonly XIcon: lucide_angular.LucideIconData;
|
|
858
880
|
readonly ChevronLeft: lucide_angular.LucideIconData;
|
|
@@ -1032,6 +1054,10 @@ declare class OtpInputComponent implements ControlValueAccessor {
|
|
|
1032
1054
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1033
1055
|
readonly masked: _angular_core.InputSignal<boolean>;
|
|
1034
1056
|
readonly error: _angular_core.InputSignal<boolean>;
|
|
1057
|
+
/** Set by Signal Forms `[formField]`. Its errors show once the field is touched. */
|
|
1058
|
+
readonly errors: _angular_core.InputSignal<FieldErrors>;
|
|
1059
|
+
readonly touched: _angular_core.InputSignal<boolean>;
|
|
1060
|
+
readonly hasError: _angular_core.Signal<boolean>;
|
|
1035
1061
|
readonly value: _angular_core.ModelSignal<string>;
|
|
1036
1062
|
readonly complete: _angular_core.OutputEmitterRef<string>;
|
|
1037
1063
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
@@ -1056,7 +1082,7 @@ declare class OtpInputComponent implements ControlValueAccessor {
|
|
|
1056
1082
|
registerOnTouched(fn: () => void): void;
|
|
1057
1083
|
setDisabledState(disabled: boolean): void;
|
|
1058
1084
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OtpInputComponent, never>;
|
|
1059
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OtpInputComponent, "ngx-ds-otp-input", never, { "length": { "alias": "length"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "masked": { "alias": "masked"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "complete": "complete"; }, never, never, true, never>;
|
|
1085
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OtpInputComponent, "ngx-ds-otp-input", never, { "length": { "alias": "length"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "masked": { "alias": "masked"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "complete": "complete"; }, never, never, true, never>;
|
|
1060
1086
|
}
|
|
1061
1087
|
|
|
1062
1088
|
type SliderColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
@@ -1200,6 +1226,7 @@ declare class NumberInputComponent implements ControlValueAccessor {
|
|
|
1200
1226
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1201
1227
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
1202
1228
|
readonly id: string;
|
|
1229
|
+
readonly messageId: string;
|
|
1203
1230
|
protected readonly PlusIcon: lucide_angular.LucideIconData;
|
|
1204
1231
|
protected readonly MinusIcon: lucide_angular.LucideIconData;
|
|
1205
1232
|
readonly iconSize: _angular_core.Signal<number>;
|
|
@@ -1241,6 +1268,7 @@ declare class MultiSelectComponent implements ControlValueAccessor {
|
|
|
1241
1268
|
readonly maxSelected: _angular_core.InputSignal<number | null>;
|
|
1242
1269
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1243
1270
|
readonly id: string;
|
|
1271
|
+
readonly messageId: string;
|
|
1244
1272
|
protected readonly ChevronDownIcon: lucide_angular.LucideIconData;
|
|
1245
1273
|
protected readonly XIcon: lucide_angular.LucideIconData;
|
|
1246
1274
|
protected readonly CheckIcon: lucide_angular.LucideIconData;
|
|
@@ -1354,6 +1382,7 @@ declare class DateRangePickerComponent implements ControlValueAccessor {
|
|
|
1354
1382
|
readonly start: _angular_core.ModelSignal<Date | null>;
|
|
1355
1383
|
readonly end: _angular_core.ModelSignal<Date | null>;
|
|
1356
1384
|
readonly id: string;
|
|
1385
|
+
readonly messageId: string;
|
|
1357
1386
|
readonly CalendarIcon: lucide_angular.LucideIconData;
|
|
1358
1387
|
readonly ChevronLeft: lucide_angular.LucideIconData;
|
|
1359
1388
|
readonly ChevronRight: lucide_angular.LucideIconData;
|
|
@@ -1506,6 +1535,141 @@ declare class FormFieldComponent {
|
|
|
1506
1535
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "ngx-ds-form-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "for": { "alias": "for"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1507
1536
|
}
|
|
1508
1537
|
|
|
1538
|
+
type TimePickerSize = Size;
|
|
1539
|
+
type TimePickerHourFormat = '12' | '24';
|
|
1540
|
+
/** One entry of the hour, minute or AM/PM column. */
|
|
1541
|
+
interface TimeOption {
|
|
1542
|
+
value: number;
|
|
1543
|
+
label: string;
|
|
1544
|
+
disabled: boolean;
|
|
1545
|
+
selected: boolean;
|
|
1546
|
+
}
|
|
1547
|
+
/** Parses `HH:mm` into minutes since midnight, or `null` when it is not a valid time. */
|
|
1548
|
+
declare function parseTime(value: string | null | undefined): number | null;
|
|
1549
|
+
/**
|
|
1550
|
+
* Time field with an hour / minute (and AM/PM) panel.
|
|
1551
|
+
* The value is a 24-hour `HH:mm` string, like a native `<input type="time">`.
|
|
1552
|
+
*/
|
|
1553
|
+
declare class TimePickerComponent implements ControlValueAccessor {
|
|
1554
|
+
#private;
|
|
1555
|
+
readonly i18n: _jdpo2008_ngx_ds.NgxDsLabels;
|
|
1556
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
1557
|
+
readonly floatingLabel: _angular_core.InputSignal<boolean>;
|
|
1558
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
1559
|
+
readonly size: _angular_core.InputSignal<Size>;
|
|
1560
|
+
readonly hint: _angular_core.InputSignal<string>;
|
|
1561
|
+
readonly errorMessage: _angular_core.InputSignal<string>;
|
|
1562
|
+
/** Set by Signal Forms `[formField]`. Its errors show once the field is touched. */
|
|
1563
|
+
readonly errors: _angular_core.InputSignal<FieldErrors>;
|
|
1564
|
+
readonly touched: _angular_core.InputSignal<boolean>;
|
|
1565
|
+
/** `'24'` shows 00–23; `'12'` shows 1–12 plus an AM/PM column. The value is always 24-hour. */
|
|
1566
|
+
readonly hourFormat: _angular_core.InputSignal<TimePickerHourFormat>;
|
|
1567
|
+
/** Gap between the minutes offered in the panel. */
|
|
1568
|
+
readonly minuteStep: _angular_core.InputSignal<number>;
|
|
1569
|
+
/** Earliest selectable time, as `HH:mm`. */
|
|
1570
|
+
readonly minTime: _angular_core.InputSignal<string | null>;
|
|
1571
|
+
/** Latest selectable time, as `HH:mm`. */
|
|
1572
|
+
readonly maxTime: _angular_core.InputSignal<string | null>;
|
|
1573
|
+
/** Selected time as `HH:mm` (24-hour), or `null`. */
|
|
1574
|
+
readonly value: _angular_core.ModelSignal<string | null>;
|
|
1575
|
+
readonly id: string;
|
|
1576
|
+
readonly messageId: string;
|
|
1577
|
+
readonly ClockIcon: lucide_angular.LucideIconData;
|
|
1578
|
+
readonly XIcon: lucide_angular.LucideIconData;
|
|
1579
|
+
readonly isOpen: _angular_core.Signal<boolean>;
|
|
1580
|
+
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
1581
|
+
readonly isFocused: _angular_core.Signal<boolean>;
|
|
1582
|
+
readonly iconSize: _angular_core.Signal<number>;
|
|
1583
|
+
readonly is12h: _angular_core.Signal<boolean>;
|
|
1584
|
+
readonly hasError: _angular_core.Signal<boolean>;
|
|
1585
|
+
readonly errorText: _angular_core.Signal<string>;
|
|
1586
|
+
readonly hasValue: _angular_core.Signal<boolean>;
|
|
1587
|
+
readonly isFloating: _angular_core.Signal<boolean>;
|
|
1588
|
+
readonly displayValue: _angular_core.Signal<string>;
|
|
1589
|
+
readonly hourOptions: _angular_core.Signal<TimeOption[]>;
|
|
1590
|
+
readonly minuteOptions: _angular_core.Signal<TimeOption[]>;
|
|
1591
|
+
readonly periodOptions: _angular_core.Signal<TimeOption[]>;
|
|
1592
|
+
readonly fieldClasses: _angular_core.Signal<string>;
|
|
1593
|
+
readonly floatLabelClasses: _angular_core.Signal<string>;
|
|
1594
|
+
private readonly triggerRef;
|
|
1595
|
+
private readonly panelRef;
|
|
1596
|
+
constructor();
|
|
1597
|
+
/** The option of a column that Tab lands on: the selected one, else the first enabled one. */
|
|
1598
|
+
isFocusTarget(options: TimeOption[], option: TimeOption): boolean;
|
|
1599
|
+
togglePanel(): void;
|
|
1600
|
+
onTriggerKeydown(event: KeyboardEvent): void;
|
|
1601
|
+
/** Arrow / Home / End move focus inside a column, skipping disabled options. */
|
|
1602
|
+
onOptionKeydown(event: KeyboardEvent): void;
|
|
1603
|
+
select(kind: 'hour' | 'minute' | 'period', option: TimeOption): void;
|
|
1604
|
+
selectHour(option: TimeOption): void;
|
|
1605
|
+
selectMinute(option: TimeOption): void;
|
|
1606
|
+
selectPeriod(option: TimeOption): void;
|
|
1607
|
+
clearValue(event: Event): void;
|
|
1608
|
+
private onChange;
|
|
1609
|
+
private onTouched;
|
|
1610
|
+
writeValue(v: string | null): void;
|
|
1611
|
+
registerOnChange(fn: (v: string | null) => void): void;
|
|
1612
|
+
registerOnTouched(fn: () => void): void;
|
|
1613
|
+
setDisabledState(disabled: boolean): void;
|
|
1614
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
1615
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimePickerComponent, "ngx-ds-time-picker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "floatingLabel": { "alias": "floatingLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "hourFormat": { "alias": "hourFormat"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "minTime": { "alias": "minTime"; "required": false; "isSignal": true; }; "maxTime": { "alias": "maxTime"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
type TagInputSize = Size;
|
|
1619
|
+
declare class TagInputComponent implements ControlValueAccessor {
|
|
1620
|
+
#private;
|
|
1621
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
1622
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
1623
|
+
readonly size: _angular_core.InputSignal<Size>;
|
|
1624
|
+
readonly hint: _angular_core.InputSignal<string>;
|
|
1625
|
+
readonly errorMessage: _angular_core.InputSignal<string>;
|
|
1626
|
+
/** Set by Signal Forms `[formField]`. Its errors show once the field is touched. */
|
|
1627
|
+
readonly errors: _angular_core.InputSignal<FieldErrors>;
|
|
1628
|
+
readonly touched: _angular_core.InputSignal<boolean>;
|
|
1629
|
+
/**
|
|
1630
|
+
* Keys that turn the typed text into a tag. `Enter` is a key name; any other
|
|
1631
|
+
* entry is a character, which also splits pasted text.
|
|
1632
|
+
*/
|
|
1633
|
+
readonly separators: _angular_core.InputSignal<string[]>;
|
|
1634
|
+
/** Maximum number of tags. `null` means no limit. */
|
|
1635
|
+
readonly maxTags: _angular_core.InputSignal<number | null>;
|
|
1636
|
+
readonly allowDuplicates: _angular_core.InputSignal<boolean>;
|
|
1637
|
+
/** Adds the pending text as a tag when the field loses focus. */
|
|
1638
|
+
readonly addOnBlur: _angular_core.InputSignal<boolean>;
|
|
1639
|
+
readonly value: _angular_core.ModelSignal<string[]>;
|
|
1640
|
+
readonly added: _angular_core.OutputEmitterRef<string>;
|
|
1641
|
+
readonly removed: _angular_core.OutputEmitterRef<string>;
|
|
1642
|
+
readonly id: string;
|
|
1643
|
+
readonly messageId: string;
|
|
1644
|
+
private readonly native;
|
|
1645
|
+
readonly text: _angular_core.WritableSignal<string>;
|
|
1646
|
+
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
1647
|
+
readonly isFocused: _angular_core.Signal<boolean>;
|
|
1648
|
+
readonly isFull: _angular_core.Signal<boolean>;
|
|
1649
|
+
readonly hasError: _angular_core.Signal<boolean>;
|
|
1650
|
+
readonly errorText: _angular_core.Signal<string>;
|
|
1651
|
+
/** The placeholder only shows while there are no tags. */
|
|
1652
|
+
readonly effectivePlaceholder: _angular_core.Signal<string>;
|
|
1653
|
+
readonly fieldClasses: _angular_core.Signal<string>;
|
|
1654
|
+
private onChange;
|
|
1655
|
+
private onTouched;
|
|
1656
|
+
writeValue(value: string[] | null): void;
|
|
1657
|
+
registerOnChange(fn: (value: string[]) => void): void;
|
|
1658
|
+
registerOnTouched(fn: () => void): void;
|
|
1659
|
+
setDisabledState(disabled: boolean): void;
|
|
1660
|
+
/** Adds the given labels, skipping blanks, duplicates and anything past `maxTags`. */
|
|
1661
|
+
addTags(labels: string[]): void;
|
|
1662
|
+
remove(index: number): void;
|
|
1663
|
+
focusInput(): void;
|
|
1664
|
+
onInput(event: Event): void;
|
|
1665
|
+
onKeydown(event: KeyboardEvent): void;
|
|
1666
|
+
onPaste(event: ClipboardEvent): void;
|
|
1667
|
+
onFocus(): void;
|
|
1668
|
+
onBlur(): void;
|
|
1669
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TagInputComponent, never>;
|
|
1670
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TagInputComponent, "ngx-ds-tag-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "separators": { "alias": "separators"; "required": false; "isSignal": true; }; "maxTags": { "alias": "maxTags"; "required": false; "isSignal": true; }; "allowDuplicates": { "alias": "allowDuplicates"; "required": false; "isSignal": true; }; "addOnBlur": { "alias": "addOnBlur"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "added": "added"; "removed": "removed"; }, never, never, true, never>;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1509
1673
|
declare class PaginationComponent {
|
|
1510
1674
|
readonly i18n: _jdpo2008_ngx_ds.NgxDsLabels;
|
|
1511
1675
|
readonly totalPages: _angular_core.InputSignal<number>;
|
|
@@ -2193,5 +2357,147 @@ declare class SidebarComponent {
|
|
|
2193
2357
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidebarComponent, "ngx-ds-sidebar", never, { "sections": { "alias": "sections"; "required": true; "isSignal": true; }; "activeId": { "alias": "activeId"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "itemClick": "itemClick"; }, never, ["[sidebar-header]", "[sidebar-footer]"], true, never>;
|
|
2194
2358
|
}
|
|
2195
2359
|
|
|
2196
|
-
|
|
2197
|
-
|
|
2360
|
+
/** One image of a Carousel or Lightbox. */
|
|
2361
|
+
interface CarouselItem {
|
|
2362
|
+
src: string;
|
|
2363
|
+
/** Alternative text. Use `''` only for decorative images. */
|
|
2364
|
+
alt: string;
|
|
2365
|
+
caption?: string;
|
|
2366
|
+
}
|
|
2367
|
+
/**
|
|
2368
|
+
* Moves `index` by `delta` inside a list of `count` items. With `loop` it wraps
|
|
2369
|
+
* around; without it, it stops at the first and last item.
|
|
2370
|
+
*/
|
|
2371
|
+
declare function stepIndex(index: number, delta: number, count: number, loop: boolean): number;
|
|
2372
|
+
|
|
2373
|
+
type CarouselFit = 'cover' | 'contain';
|
|
2374
|
+
declare class CarouselComponent {
|
|
2375
|
+
#private;
|
|
2376
|
+
readonly i18n: _jdpo2008_ngx_ds.NgxDsLabels;
|
|
2377
|
+
protected readonly icons: {
|
|
2378
|
+
ChevronLeft: lucide_angular.LucideIconData;
|
|
2379
|
+
ChevronRight: lucide_angular.LucideIconData;
|
|
2380
|
+
Pause: lucide_angular.LucideIconData;
|
|
2381
|
+
Play: lucide_angular.LucideIconData;
|
|
2382
|
+
};
|
|
2383
|
+
readonly items: _angular_core.InputSignal<CarouselItem[]>;
|
|
2384
|
+
/** Index of the visible slide. Two-way bindable. */
|
|
2385
|
+
readonly index: _angular_core.ModelSignal<number>;
|
|
2386
|
+
/** After the last slide comes the first one again. */
|
|
2387
|
+
readonly loop: _angular_core.InputSignal<boolean>;
|
|
2388
|
+
/** Milliseconds between slides. `0` turns autoplay off. */
|
|
2389
|
+
readonly autoplay: _angular_core.InputSignal<number>;
|
|
2390
|
+
readonly showArrows: _angular_core.InputSignal<boolean>;
|
|
2391
|
+
readonly showIndicators: _angular_core.InputSignal<boolean>;
|
|
2392
|
+
/** CSS `aspect-ratio` of the viewport. */
|
|
2393
|
+
readonly aspectRatio: _angular_core.InputSignal<string>;
|
|
2394
|
+
readonly fit: _angular_core.InputSignal<CarouselFit>;
|
|
2395
|
+
/** Accessible name of the carousel region. */
|
|
2396
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
2397
|
+
/** Emitted when a slide image is clicked, e.g. to open a Lightbox. */
|
|
2398
|
+
readonly itemClick: _angular_core.OutputEmitterRef<{
|
|
2399
|
+
item: CarouselItem;
|
|
2400
|
+
index: number;
|
|
2401
|
+
}>;
|
|
2402
|
+
readonly count: _angular_core.Signal<number>;
|
|
2403
|
+
readonly current: _angular_core.Signal<number>;
|
|
2404
|
+
readonly hasAutoplay: _angular_core.Signal<boolean>;
|
|
2405
|
+
readonly isPlaying: _angular_core.Signal<boolean>;
|
|
2406
|
+
readonly isUserPaused: _angular_core.Signal<boolean>;
|
|
2407
|
+
readonly canPrev: _angular_core.Signal<boolean>;
|
|
2408
|
+
readonly canNext: _angular_core.Signal<boolean>;
|
|
2409
|
+
readonly trackTransform: _angular_core.Signal<string>;
|
|
2410
|
+
constructor();
|
|
2411
|
+
goTo(index: number): void;
|
|
2412
|
+
prev(): void;
|
|
2413
|
+
next(): void;
|
|
2414
|
+
toggleAutoplay(): void;
|
|
2415
|
+
onKeydown(event: KeyboardEvent): void;
|
|
2416
|
+
onMouseEnter(): void;
|
|
2417
|
+
onMouseLeave(): void;
|
|
2418
|
+
onFocusIn(): void;
|
|
2419
|
+
onFocusOut(event: FocusEvent): void;
|
|
2420
|
+
onPointerDown(event: PointerEvent): void;
|
|
2421
|
+
onPointerUp(event: PointerEvent): void;
|
|
2422
|
+
onPointerCancel(): void;
|
|
2423
|
+
onItemClick(item: CarouselItem, index: number): void;
|
|
2424
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CarouselComponent, never>;
|
|
2425
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CarouselComponent, "ngx-ds-carousel", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; "loop": { "alias": "loop"; "required": false; "isSignal": true; }; "autoplay": { "alias": "autoplay"; "required": false; "isSignal": true; }; "showArrows": { "alias": "showArrows"; "required": false; "isSignal": true; }; "showIndicators": { "alias": "showIndicators"; "required": false; "isSignal": true; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; "isSignal": true; }; "fit": { "alias": "fit"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "index": "indexChange"; "itemClick": "itemClick"; }, never, never, true, never>;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
declare class LightboxComponent implements OnDestroy {
|
|
2429
|
+
#private;
|
|
2430
|
+
readonly i18n: _jdpo2008_ngx_ds.NgxDsLabels;
|
|
2431
|
+
private readonly doc;
|
|
2432
|
+
protected readonly icons: {
|
|
2433
|
+
ChevronLeft: lucide_angular.LucideIconData;
|
|
2434
|
+
ChevronRight: lucide_angular.LucideIconData;
|
|
2435
|
+
X: lucide_angular.LucideIconData;
|
|
2436
|
+
};
|
|
2437
|
+
readonly items: _angular_core.InputSignal<CarouselItem[]>;
|
|
2438
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
2439
|
+
/** Index of the visible image. Two-way bindable. */
|
|
2440
|
+
readonly index: _angular_core.ModelSignal<number>;
|
|
2441
|
+
readonly loop: _angular_core.InputSignal<boolean>;
|
|
2442
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
2443
|
+
readonly count: _angular_core.Signal<number>;
|
|
2444
|
+
readonly current: _angular_core.Signal<number>;
|
|
2445
|
+
readonly item: _angular_core.Signal<CarouselItem | undefined>;
|
|
2446
|
+
readonly canPrev: _angular_core.Signal<boolean>;
|
|
2447
|
+
readonly canNext: _angular_core.Signal<boolean>;
|
|
2448
|
+
constructor();
|
|
2449
|
+
ngOnDestroy(): void;
|
|
2450
|
+
close(): void;
|
|
2451
|
+
prev(): void;
|
|
2452
|
+
next(): void;
|
|
2453
|
+
onKeydown(event: KeyboardEvent): void;
|
|
2454
|
+
onPointerDown(event: PointerEvent): void;
|
|
2455
|
+
onPointerUp(event: PointerEvent): void;
|
|
2456
|
+
onPointerCancel(): void;
|
|
2457
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LightboxComponent, never>;
|
|
2458
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LightboxComponent, "ngx-ds-lightbox", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; "loop": { "alias": "loop"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "index": "indexChange"; "closed": "closed"; }, never, never, true, never>;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
type SplitterOrientation = 'horizontal' | 'vertical';
|
|
2462
|
+
/**
|
|
2463
|
+
* Two resizable panes with a draggable divider. Project the panes with the
|
|
2464
|
+
* `splitter-start` and `splitter-end` attributes.
|
|
2465
|
+
*/
|
|
2466
|
+
declare class SplitterComponent {
|
|
2467
|
+
#private;
|
|
2468
|
+
readonly i18n: _jdpo2008_ngx_ds.NgxDsLabels;
|
|
2469
|
+
private readonly host;
|
|
2470
|
+
/** `horizontal` puts the panes side by side; `vertical` stacks them. */
|
|
2471
|
+
readonly orientation: _angular_core.InputSignal<SplitterOrientation>;
|
|
2472
|
+
/** Size of the first pane, in % of the available space. Two-way bindable. */
|
|
2473
|
+
readonly size: _angular_core.ModelSignal<number>;
|
|
2474
|
+
readonly min: _angular_core.InputSignal<number>;
|
|
2475
|
+
readonly max: _angular_core.InputSignal<number>;
|
|
2476
|
+
/** Percentage moved by each arrow key press. */
|
|
2477
|
+
readonly step: _angular_core.InputSignal<number>;
|
|
2478
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
2479
|
+
/** Accessible name of the divider. */
|
|
2480
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
2481
|
+
/** Emitted with the final size after a drag or a keyboard change. */
|
|
2482
|
+
readonly resizeEnd: _angular_core.OutputEmitterRef<number>;
|
|
2483
|
+
readonly paneId: string;
|
|
2484
|
+
readonly isDragging: _angular_core.Signal<boolean>;
|
|
2485
|
+
readonly isHorizontal: _angular_core.Signal<boolean>;
|
|
2486
|
+
readonly current: _angular_core.Signal<number>;
|
|
2487
|
+
readonly template: _angular_core.Signal<string>;
|
|
2488
|
+
/** A splitter that puts panes side by side has a vertical divider. */
|
|
2489
|
+
readonly separatorOrientation: _angular_core.Signal<"horizontal" | "vertical">;
|
|
2490
|
+
onKeydown(event: KeyboardEvent): void;
|
|
2491
|
+
/** Collapses the first pane to `min`, or restores the size it had before. */
|
|
2492
|
+
toggleCollapse(): void;
|
|
2493
|
+
onPointerDown(event: PointerEvent): void;
|
|
2494
|
+
onPointerMove(event: PointerEvent): void;
|
|
2495
|
+
onPointerUp(event: PointerEvent): void;
|
|
2496
|
+
private setSize;
|
|
2497
|
+
private clamp;
|
|
2498
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitterComponent, never>;
|
|
2499
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitterComponent, "ngx-ds-splitter", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "resizeEnd": "resizeEnd"; }, never, ["[splitter-start]", "[splitter-end]"], true, never>;
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
export { ACCORDION_CONTROLLER, AccordionComponent, AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CalendarComponent, CardComponent, CarouselComponent, CheckboxComponent, ChipGroupComponent, ColorPickerComponent, CommandPaletteComponent, ConfirmationComponent, ConfirmationService, ContextMenuComponent, DateRangePickerComponent, DatepickerComponent, DividerComponent, DrawerComponent, DropdownComponent, EmptyStateComponent, FileUploadComponent, FocusTrapDirective, FormFieldComponent, IconButtonComponent, IconComponent, InputComponent, KbdComponent, LightboxComponent, MenuButtonComponent, MenuComponent, ModalComponent, MultiSelectComponent, NGX_DS_LABELS, NGX_DS_LABELS_EN, NGX_DS_LABELS_ES, NGX_DS_LOCALE, NotificationCenterComponent, NotificationItemComponent, NumberInputComponent, OtpInputComponent, PaginationComponent, PasswordStrengthComponent, PopoverComponent, ProgressBarComponent, RadioComponent, RangeSliderComponent, RatingComponent, SearchInputComponent, SegmentedControlComponent, SelectComponent, SidebarComponent, SkeletonComponent, SpinnerComponent, SplitterComponent, StepComponent, StepperComponent, SwitchComponent, TabComponent, TabContentDirective, TableComponent, TabsComponent, TagComponent, TagInputComponent, TextareaComponent, TimePickerComponent, TimelineComponent, TimelineItemComponent, ToastComponent, ToastrService, TooltipDirective, TreeNodeComponent, TreeViewComponent, UserMenuComponent, formatDayLabel, monthNames, parseTime, provideNgxDs, provideNgxDsLabels, provideNgxDsLocale, stepIndex, weekdayNames };
|
|
2503
|
+
export type { AccordionController, AccordionSize, AccordionVariant, ActionColor, AlertType, AlertVariant, AutocompleteOption, AutocompleteSize, AutocompleteValue, AvatarColor, AvatarShape, AvatarSize, AvatarStatus, BadgeColor, BadgeSize, BadgeVariant, BreadcrumbItem, BreadcrumbSize, ButtonColor, ButtonSize, ButtonVariant, CalendarDayCell, CardPadding, CardShadow, CarouselFit, CarouselItem, CheckboxColor, CheckboxSize, ChipGroupSize, ChipGroupVariant, ChipItem, ColumnAlign, ColumnType, CommandItem, ConfirmationOptions, ConfirmationState, DateRange, DateRangePickerSize, DatepickerSize, DayCell, DayCellBase, DividerAlign, DividerOrientation, DividerVariant, DrawerSide, DrawerSize, DropdownOption, DropdownSize, DropdownValue, EmptyStateSize, FileUploadState, FileUploadStatus, InputSize, InputType, KbdSize, MenuButtonColor, MenuButtonSize, MenuItem, MenuSize, ModalSize, MultiSelectOption, MultiSelectSize, NgxDsConfig, NgxDsLabels, NgxDsTheme, NgxNotification, NotificationFilter, NotificationType, NumberInputSize, OtpSize, OtpType, PasswordCriterion, PasswordStrengthLevel, PopoverPlacement, ProgressBarColor, ProgressBarSize, RadioColor, RadioSize, RadioValue, RatingSize, SearchSize, SegmentOption, SegmentedControlSize, SelectMode, SelectOption, SelectSize, SelectValue, SidebarItem, SidebarSection, SkeletonVariant, SliderColor, SortDirection, SpinnerColor, SpinnerSize, SplitterOrientation, StepperOrientation, SwitchColor, SwitchSize, TableAction, TableColumn, TablePageEvent, TableSort, TabsSize, TabsVariant, TagColor, TagInputSize, TagSize, TagVariant, TextareaResize, TextareaSize, TimeOption, TimePickerHourFormat, TimePickerSize, TimelineItemStatus, TimelineVariant, Toast, ToastOptions, ToastPosition, ToastType, TooltipPlacement, TreeNode, UploadedFile, UserMenuAction, UserMenuUser };
|