@agnos-ui/angular-bootstrap 0.8.0 → 0.8.1
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BaseWidgetDirective, type SlotContent } from '@agnos-ui/angular-headless';
|
|
2
2
|
import type { CarouselContext, CarouselSlideContext, CarouselWidget } from './carousel.gen';
|
|
3
|
+
import type { InputSignal } from '@angular/core';
|
|
3
4
|
import { TemplateRef } from '@angular/core';
|
|
5
|
+
import type { EmblaPluginType } from 'embla-carousel';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
/**
|
|
6
8
|
* Directive that provides a template reference for the carousel structure using the {@link CarouselContext}.
|
|
@@ -60,22 +62,22 @@ export declare class CarouselComponent<SlideData extends {
|
|
|
60
62
|
/**
|
|
61
63
|
* Aria label for navigation indicators
|
|
62
64
|
*/
|
|
63
|
-
readonly ariaIndicatorLabel:
|
|
65
|
+
readonly ariaIndicatorLabel: InputSignal<((index: number) => string) | undefined>;
|
|
64
66
|
/**
|
|
65
67
|
* Aria label for previous button
|
|
66
68
|
*/
|
|
67
|
-
readonly ariaPrevLabel:
|
|
69
|
+
readonly ariaPrevLabel: InputSignal<string | undefined>;
|
|
68
70
|
/**
|
|
69
71
|
* Aria label for next button
|
|
70
72
|
*/
|
|
71
|
-
readonly ariaNextLabel:
|
|
73
|
+
readonly ariaNextLabel: InputSignal<string | undefined>;
|
|
72
74
|
/**
|
|
73
75
|
* Choose content direction between `ltr` and `rtl`
|
|
74
76
|
*
|
|
75
77
|
* @see {@link https://www.embla-carousel.com/api/options/#direction}
|
|
76
78
|
* @defaultValue `'ltr'`
|
|
77
79
|
*/
|
|
78
|
-
readonly direction:
|
|
80
|
+
readonly direction: InputSignal<"ltr" | "rtl" | undefined>;
|
|
79
81
|
/**
|
|
80
82
|
* Enables momentum scrolling
|
|
81
83
|
*
|
|
@@ -123,45 +125,45 @@ export declare class CarouselComponent<SlideData extends {
|
|
|
123
125
|
* Plugins to extend the carousel with additional features
|
|
124
126
|
* @defaultValue `[]`
|
|
125
127
|
*/
|
|
126
|
-
readonly plugins:
|
|
128
|
+
readonly plugins: InputSignal<EmblaPluginType[] | undefined>;
|
|
127
129
|
/**
|
|
128
130
|
* Align the slides relative to the carousel viewport
|
|
129
131
|
*
|
|
130
132
|
* @see {@link https://www.embla-carousel.com/api/options/#align}
|
|
131
133
|
* @defaultValue `'center'`
|
|
132
134
|
*/
|
|
133
|
-
readonly align:
|
|
135
|
+
readonly align: InputSignal<"start" | "center" | "end" | undefined>;
|
|
134
136
|
/**
|
|
135
137
|
* Enables choosing a custom container element which holds the slides. By default, Embla will choose the first direct child element of the root element. Provide a valid CSS selector string.
|
|
136
138
|
*
|
|
137
139
|
* @see {@link https://www.embla-carousel.com/api/options/#container}
|
|
138
140
|
*/
|
|
139
|
-
readonly container:
|
|
141
|
+
readonly container: InputSignal<string | null | undefined>;
|
|
140
142
|
/**
|
|
141
143
|
* Clear leading and trailing empty space that causes excessive scrolling
|
|
142
144
|
*
|
|
143
145
|
* @see {@link https://www.embla-carousel.com/api/options/#containScroll}
|
|
144
146
|
* @defaultValue `'trimSnaps'`
|
|
145
147
|
*/
|
|
146
|
-
readonly containScroll:
|
|
148
|
+
readonly containScroll: InputSignal<false | "trimSnaps" | "keepSnaps" | undefined>;
|
|
147
149
|
/**
|
|
148
150
|
* CSS classes to be applied on the widget main container
|
|
149
151
|
*
|
|
150
152
|
* @defaultValue `''`
|
|
151
153
|
*/
|
|
152
|
-
readonly className:
|
|
154
|
+
readonly className: InputSignal<string | undefined>;
|
|
153
155
|
/**
|
|
154
156
|
* Class name to apply to the container of the carousel.
|
|
155
157
|
*
|
|
156
158
|
* @defaultValue `''`
|
|
157
159
|
*/
|
|
158
|
-
readonly containerClass:
|
|
160
|
+
readonly containerClass: InputSignal<string | undefined>;
|
|
159
161
|
/**
|
|
160
162
|
* Class name to apply to each slide in the carousel.
|
|
161
163
|
*
|
|
162
164
|
* @defaultValue `''`
|
|
163
165
|
*/
|
|
164
|
-
readonly slideClass:
|
|
166
|
+
readonly slideClass: InputSignal<string | ((slideContext: {
|
|
165
167
|
id: string;
|
|
166
168
|
index: number;
|
|
167
169
|
active: boolean;
|
|
@@ -171,31 +173,31 @@ export declare class CarouselComponent<SlideData extends {
|
|
|
171
173
|
*
|
|
172
174
|
* @defaultValue `'polite'`
|
|
173
175
|
*/
|
|
174
|
-
readonly ariaLive:
|
|
176
|
+
readonly ariaLive: InputSignal<string | undefined>;
|
|
175
177
|
/**
|
|
176
178
|
* The data for each slide in the carousel.
|
|
177
179
|
*
|
|
178
180
|
* @defaultValue `[]`
|
|
179
181
|
*/
|
|
180
|
-
readonly slidesData:
|
|
182
|
+
readonly slidesData: InputSignal<SlideData[] | undefined>;
|
|
181
183
|
/**
|
|
182
184
|
* The structure of the carousel.
|
|
183
185
|
*
|
|
184
186
|
* @defaultValue `undefined`
|
|
185
187
|
*/
|
|
186
|
-
readonly structure:
|
|
188
|
+
readonly structure: InputSignal<SlotContent<CarouselContext<SlideData>>>;
|
|
187
189
|
/**
|
|
188
190
|
* The navigation layer of the carousel.
|
|
189
191
|
*
|
|
190
192
|
* @defaultValue `undefined`
|
|
191
193
|
*/
|
|
192
|
-
readonly navigation:
|
|
194
|
+
readonly navigation: InputSignal<SlotContent<CarouselContext<SlideData>>>;
|
|
193
195
|
/**
|
|
194
196
|
* The content of each slide in the carousel.
|
|
195
197
|
*
|
|
196
198
|
* @defaultValue `undefined`
|
|
197
199
|
*/
|
|
198
|
-
readonly slide:
|
|
200
|
+
readonly slide: InputSignal<SlotContent<CarouselSlideContext<SlideData>>>;
|
|
199
201
|
readonly slotSlideFromContent: import("@angular/core").Signal<CarouselSlideDirective<any> | undefined>;
|
|
200
202
|
readonly slotStructureFromContent: import("@angular/core").Signal<CarouselStructureDirective<any> | undefined>;
|
|
201
203
|
readonly slotNavigationFromContent: import("@angular/core").Signal<CarouselNavigationDirective<any> | undefined>;
|
|
@@ -4930,7 +4930,7 @@ class CarouselDefaultSlotsComponent {
|
|
|
4930
4930
|
`,
|
|
4931
4931
|
}]
|
|
4932
4932
|
}], null, null); })();
|
|
4933
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CarouselDefaultSlotsComponent, { className: "CarouselDefaultSlotsComponent", filePath: "components/carousel/carousel.component.ts", lineNumber:
|
|
4933
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CarouselDefaultSlotsComponent, { className: "CarouselDefaultSlotsComponent", filePath: "components/carousel/carousel.component.ts", lineNumber: 108 }); })();
|
|
4934
4934
|
/**
|
|
4935
4935
|
* The default slot for the structure
|
|
4936
4936
|
*/
|
|
@@ -5121,7 +5121,7 @@ class CarouselComponent extends BaseWidgetDirective {
|
|
|
5121
5121
|
template: ` <ng-template [auSlot]="state.structure()" [auSlotProps]="{state, api, directives}" /> `,
|
|
5122
5122
|
}]
|
|
5123
5123
|
}], () => [], null); })();
|
|
5124
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CarouselComponent, { className: "CarouselComponent", filePath: "components/carousel/carousel.component.ts", lineNumber:
|
|
5124
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CarouselComponent, { className: "CarouselComponent", filePath: "components/carousel/carousel.component.ts", lineNumber: 139 }); })();
|
|
5125
5125
|
|
|
5126
5126
|
class ToasterService extends ToasterService$1 {
|
|
5127
5127
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵToasterService_BaseFactory; return function ToasterService_Factory(__ngFactoryType__) { return (ɵToasterService_BaseFactory || (ɵToasterService_BaseFactory = i0.ɵɵgetInheritedFactory(ToasterService)))(__ngFactoryType__ || ToasterService); }; })(); }
|