@corto-ai/gds-angular 2.1.8-dev.5 → 2.1.8-dev.7

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@corto-ai/gds-angular",
3
- "version": "2.1.8-dev.5",
4
- "devVersion": "5",
3
+ "version": "2.1.8-dev.7",
4
+ "devVersion": "7",
5
5
  "exports": {
6
6
  "./assets/*": "./assets/*",
7
7
  "./package.json": {
@@ -115,22 +115,30 @@ export declare enum GdsBadgeVariantType {
115
115
  }
116
116
  export type GdsBannerState = 'collapsed' | 'expanded' | 'hidden';
117
117
  export declare class GdsBannerComponent {
118
- iconKey: import("@angular/core").InputSignal<SvgIcons>;
119
- label: import("@angular/core").InputSignal<string>;
118
+ label: import("@angular/core").InputSignal<string | undefined>;
119
+ labelSecondary: import("@angular/core").InputSignal<string | undefined>;
120
+ iconKey: import("@angular/core").InputSignal<SvgIcons | undefined>;
120
121
  btnLabel: import("@angular/core").InputSignal<string | undefined>;
121
122
  state: import("@angular/core").ModelSignal<GdsBannerState>;
123
+ suppressDismissBtn: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
124
+ layoutTmpl: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
122
125
  actionBtnClick: import("@angular/core").OutputEmitterRef<void>;
123
126
  contentExpanded: import("@angular/core").Signal<boolean>;
124
127
  static ɵfac: i0.ɵɵFactoryDeclaration<GdsBannerComponent, never>;
125
128
  static ɵcmp: i0.ɵɵComponentDeclaration<GdsBannerComponent, "gds-banner", never, {
126
- "iconKey": {
127
- "alias": "iconKey";
129
+ "label": {
130
+ "alias": "label";
128
131
  "required": false;
129
132
  "isSignal": true;
130
133
  };
131
- "label": {
132
- "alias": "label";
133
- "required": true;
134
+ "labelSecondary": {
135
+ "alias": "labelSecondary";
136
+ "required": false;
137
+ "isSignal": true;
138
+ };
139
+ "iconKey": {
140
+ "alias": "iconKey";
141
+ "required": false;
134
142
  "isSignal": true;
135
143
  };
136
144
  "btnLabel": {
@@ -143,10 +151,15 @@ export declare class GdsBannerComponent {
143
151
  "required": false;
144
152
  "isSignal": true;
145
153
  };
154
+ "suppressDismissBtn": {
155
+ "alias": "suppressDismissBtn";
156
+ "required": false;
157
+ "isSignal": true;
158
+ };
146
159
  }, {
147
160
  "state": "stateChange";
148
161
  "actionBtnClick": "actionBtnClick";
149
- }, never, ["*"], true, never>;
162
+ }, ["layoutTmpl"], ["[leadingTmpl]", "[primary-label]", "[secondary-label]", "[trailingTmpl]", "[expanded-content]"], true, never>;
150
163
  }
151
164
  export declare class GdsBreadcrumbsComponent implements OnInit, OnDestroy {
152
165
  #private;
@@ -176,6 +189,7 @@ declare class ButtonBaseDirective {
176
189
  tabIndex: import("@angular/core").InputSignal<number>;
177
190
  clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
178
191
  isDisabled: import("@angular/core").Signal<boolean>;
192
+ hostTabIndex: import("@angular/core").Signal<number | null>;
179
193
  nativeElement: HTMLButtonElement;
180
194
  handleClick(event: MouseEvent): void;
181
195
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonBaseDirective, never>;
@@ -2134,6 +2148,124 @@ export declare class GdsSkeletonLoadingComponent {
2134
2148
  static ɵfac: i0.ɵɵFactoryDeclaration<GdsSkeletonLoadingComponent, never>;
2135
2149
  static ɵcmp: i0.ɵɵComponentDeclaration<GdsSkeletonLoadingComponent, "gds-skeleton-loading", never, {}, {}, never, never, true, never>;
2136
2150
  }
2151
+ declare abstract class GdsListboxBaseDirective implements OnDestroy {
2152
+ #private;
2153
+ tabindex: import("@angular/core").WritableSignal<number>;
2154
+ protected readonly items: import("@angular/core").WritableSignal<FocusableOption[]>;
2155
+ protected _keyManager: FocusKeyManager<FocusableOption>;
2156
+ protected _activeId: import("@angular/core").WritableSignal<string | null>;
2157
+ ngOnDestroy(): void;
2158
+ onPointerDown(): void;
2159
+ onPointerUp(): void;
2160
+ onFocus(): void;
2161
+ onKeydown(event: KeyboardEvent): void;
2162
+ static ɵfac: i0.ɵɵFactoryDeclaration<GdsListboxBaseDirective, never>;
2163
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GdsListboxBaseDirective, never, never, {}, {}, never, never, true, never>;
2164
+ }
2165
+ declare abstract class GdsListboxOption implements FocusableOption {
2166
+ abstract focus: (origin?: FocusOrigin) => void;
2167
+ }
2168
+ export declare class GdsListboxDirective extends GdsListboxBaseDirective {
2169
+ #private;
2170
+ onNavigatePastLastOption: import("@angular/core").InputSignal<(() => Promise<void>) | undefined>;
2171
+ options: import("@angular/core").Signal<readonly GdsListboxOption[]>;
2172
+ onKeydown(event: KeyboardEvent): void;
2173
+ static ɵfac: i0.ɵɵFactoryDeclaration<GdsListboxDirective, never>;
2174
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GdsListboxDirective, "[gdsListbox]", never, {
2175
+ "onNavigatePastLastOption": {
2176
+ "alias": "onNavigatePastLastOption";
2177
+ "required": false;
2178
+ "isSignal": true;
2179
+ };
2180
+ }, {}, ["options"], never, true, never>;
2181
+ }
2182
+ export declare class GdsCompositeOptionPrimaryDirective implements FocusableOption {
2183
+ #private;
2184
+ tabindex: import("@angular/core").WritableSignal<number>;
2185
+ get element(): HTMLElement;
2186
+ focus: () => void;
2187
+ static ɵfac: i0.ɵɵFactoryDeclaration<GdsCompositeOptionPrimaryDirective, never>;
2188
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GdsCompositeOptionPrimaryDirective, "[gdsCompositeOptionPrimary]", never, {}, {}, never, never, true, never>;
2189
+ }
2190
+ export declare class GdsCompositeOptionSecondaryDirective extends GdsCompositeOptionPrimaryDirective {
2191
+ onArrowY: (event: Event) => void;
2192
+ static ɵfac: i0.ɵɵFactoryDeclaration<GdsCompositeOptionSecondaryDirective, never>;
2193
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GdsCompositeOptionSecondaryDirective, "[gdsCompositeOptionSecondary]", never, {}, {}, never, never, true, never>;
2194
+ }
2195
+ export declare class GdsListboxCompositeOptionDirective implements GdsListboxOption {
2196
+ primaryElement: import("@angular/core").Signal<GdsCompositeOptionPrimaryDirective | undefined>;
2197
+ secondaryElement: import("@angular/core").Signal<GdsCompositeOptionSecondaryDirective | undefined>;
2198
+ primaryElementOverride: import("@angular/core").ModelSignal<GdsCompositeOptionPrimaryDirective | undefined>;
2199
+ secondaryElementOverride: import("@angular/core").ModelSignal<GdsCompositeOptionSecondaryDirective | undefined>;
2200
+ primaryEle: import("@angular/core").Signal<GdsCompositeOptionPrimaryDirective>;
2201
+ secondaryEle: import("@angular/core").Signal<GdsCompositeOptionSecondaryDirective | undefined>;
2202
+ onMoveY: () => void;
2203
+ onMoveX: (event: Event) => void;
2204
+ focus: () => void;
2205
+ static ɵfac: i0.ɵɵFactoryDeclaration<GdsListboxCompositeOptionDirective, never>;
2206
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GdsListboxCompositeOptionDirective, "[gdsListboxCompositeOption]", never, {
2207
+ "primaryElementOverride": {
2208
+ "alias": "primaryElement";
2209
+ "required": false;
2210
+ "isSignal": true;
2211
+ };
2212
+ "secondaryElementOverride": {
2213
+ "alias": "secondaryElement";
2214
+ "required": false;
2215
+ "isSignal": true;
2216
+ };
2217
+ }, {
2218
+ "primaryElementOverride": "primaryElementChange";
2219
+ "secondaryElementOverride": "secondaryElementChange";
2220
+ }, ["primaryElement", "secondaryElement"], never, true, never>;
2221
+ }
2222
+ export declare class GdsListboxOptionDirective implements GdsListboxOption {
2223
+ #private;
2224
+ tabindex: import("@angular/core").WritableSignal<number>;
2225
+ element: import("@angular/core").ModelSignal<HTMLElement>;
2226
+ focus(): void;
2227
+ static ɵfac: i0.ɵɵFactoryDeclaration<GdsListboxOptionDirective, never>;
2228
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GdsListboxOptionDirective, "[gdsListboxOption]", never, {
2229
+ "element": {
2230
+ "alias": "element";
2231
+ "required": false;
2232
+ "isSignal": true;
2233
+ };
2234
+ }, {
2235
+ "element": "elementChange";
2236
+ }, never, never, true, never>;
2237
+ }
2238
+ export declare class GdsVirtualScrollListboxDirective extends GdsListboxBaseDirective {
2239
+ #private;
2240
+ protected options: import("@angular/core").Signal<readonly GdsListboxOption[]>;
2241
+ total: import("@angular/core").InputSignal<number>;
2242
+ optionIndexAttribute: import("@angular/core").InputSignal<string>;
2243
+ scrollBehavior: import("@angular/core").InputSignal<ScrollBehavior>;
2244
+ currentFocusedIndex: import("@angular/core").OutputEmitterRef<number>;
2245
+ onFocus: () => void;
2246
+ onFocusIn: (event: FocusEvent) => void;
2247
+ onKeydown: (event: KeyboardEvent) => void;
2248
+ static ɵfac: i0.ɵɵFactoryDeclaration<GdsVirtualScrollListboxDirective, never>;
2249
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GdsVirtualScrollListboxDirective, "[gdsListboxVirtualScroll]", never, {
2250
+ "total": {
2251
+ "alias": "total";
2252
+ "required": true;
2253
+ "isSignal": true;
2254
+ };
2255
+ "optionIndexAttribute": {
2256
+ "alias": "optionIndexAttribute";
2257
+ "required": false;
2258
+ "isSignal": true;
2259
+ };
2260
+ "scrollBehavior": {
2261
+ "alias": "scrollBehavior";
2262
+ "required": false;
2263
+ "isSignal": true;
2264
+ };
2265
+ }, {
2266
+ "currentFocusedIndex": "currentFocusedIndex";
2267
+ }, ["options"], never, true, never>;
2268
+ }
2137
2269
  export declare class GdsSplitButtonComponent extends ButtonBaseDirective {
2138
2270
  #private;
2139
2271
  trailingDropdown: import("@angular/core").InputSignal<TemplateRef<unknown>>;
@@ -2141,9 +2273,13 @@ export declare class GdsSplitButtonComponent extends ButtonBaseDirective {
2141
2273
  leadingAriaLabel: import("@angular/core").InputSignal<string | undefined>;
2142
2274
  trailingAriaLabel: import("@angular/core").InputSignal<string | undefined>;
2143
2275
  menuPosition: import("@angular/core").InputSignal<ConnectedPosition[]>;
2276
+ compositeOption: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
2144
2277
  leadingBtn: import("@angular/core").Signal<GdsButtonComponent>;
2145
2278
  trailingBtn: import("@angular/core").Signal<GdsButtonComponent>;
2146
2279
  menuTrigger: import("@angular/core").Signal<CdkMenuTrigger>;
2280
+ primaryOption: import("@angular/core").Signal<GdsCompositeOptionPrimaryDirective | undefined>;
2281
+ secondaryOption: import("@angular/core").Signal<GdsCompositeOptionSecondaryDirective | undefined>;
2282
+ hostTabIndex: import("@angular/core").Signal<number | null>;
2147
2283
  onEnter(): void;
2148
2284
  onArrowDown(): void;
2149
2285
  onMenuClosed(): void;
@@ -2174,6 +2310,11 @@ export declare class GdsSplitButtonComponent extends ButtonBaseDirective {
2174
2310
  "required": false;
2175
2311
  "isSignal": true;
2176
2312
  };
2313
+ "compositeOption": {
2314
+ "alias": "compositeOption";
2315
+ "required": false;
2316
+ "isSignal": true;
2317
+ };
2177
2318
  }, {}, never, ["*"], true, never>;
2178
2319
  }
2179
2320
  export type GdsTimelineConnectorType = 'content' | 'tag';
@@ -2388,28 +2529,6 @@ export declare class GdsTooltipComponent extends OnBrandChanged {
2388
2529
  outputs: {};
2389
2530
  }]>;
2390
2531
  }
2391
- declare abstract class GdsListboxOption implements FocusableOption {
2392
- abstract focus: (origin?: FocusOrigin) => void;
2393
- }
2394
- declare namespace listbox_option_directive_d_exports {
2395
- export { GdsListboxOptionDirective };
2396
- }
2397
- export declare class GdsListboxOptionDirective implements GdsListboxOption {
2398
- #private;
2399
- tabindex: import("@angular/core").WritableSignal<number>;
2400
- element: import("@angular/core").ModelSignal<HTMLElement>;
2401
- focus(): void;
2402
- static ɵfac: i0.ɵɵFactoryDeclaration<GdsListboxOptionDirective, never>;
2403
- static ɵdir: i0.ɵɵDirectiveDeclaration<GdsListboxOptionDirective, "[gdsListboxOption]", never, {
2404
- "element": {
2405
- "alias": "element";
2406
- "required": false;
2407
- "isSignal": true;
2408
- };
2409
- }, {
2410
- "element": "elementChange";
2411
- }, never, never, true, never>;
2412
- }
2413
2532
  export declare class GdsTreeViewListItemComponent {
2414
2533
  #private;
2415
2534
  private _clickTimer?;
@@ -3034,105 +3153,6 @@ export declare class GdsInputAutocompleteDirective<T> implements OnInit {
3034
3153
  };
3035
3154
  }]>;
3036
3155
  }
3037
- declare abstract class GdsListboxBaseDirective implements OnDestroy {
3038
- #private;
3039
- tabindex: import("@angular/core").WritableSignal<number>;
3040
- protected readonly items: import("@angular/core").WritableSignal<FocusableOption[]>;
3041
- protected _keyManager: FocusKeyManager<FocusableOption>;
3042
- protected _activeId: import("@angular/core").WritableSignal<string | null>;
3043
- ngOnDestroy(): void;
3044
- onPointerDown(): void;
3045
- onPointerUp(): void;
3046
- onFocus(): void;
3047
- onKeydown(event: KeyboardEvent): void;
3048
- static ɵfac: i0.ɵɵFactoryDeclaration<GdsListboxBaseDirective, never>;
3049
- static ɵdir: i0.ɵɵDirectiveDeclaration<GdsListboxBaseDirective, never, never, {}, {}, never, never, true, never>;
3050
- }
3051
- export declare class GdsListboxDirective extends GdsListboxBaseDirective {
3052
- #private;
3053
- onNavigatePastLastOption: import("@angular/core").InputSignal<(() => Promise<void>) | undefined>;
3054
- options: import("@angular/core").Signal<readonly GdsListboxOption[]>;
3055
- onKeydown(event: KeyboardEvent): void;
3056
- static ɵfac: i0.ɵɵFactoryDeclaration<GdsListboxDirective, never>;
3057
- static ɵdir: i0.ɵɵDirectiveDeclaration<GdsListboxDirective, "[gdsListbox]", never, {
3058
- "onNavigatePastLastOption": {
3059
- "alias": "onNavigatePastLastOption";
3060
- "required": false;
3061
- "isSignal": true;
3062
- };
3063
- }, {}, ["options"], never, true, never>;
3064
- }
3065
- export declare class GdsCompositeOptionPrimaryDirective implements FocusableOption {
3066
- #private;
3067
- tabindex: import("@angular/core").WritableSignal<number>;
3068
- get element(): HTMLElement;
3069
- focus: () => void;
3070
- static ɵfac: i0.ɵɵFactoryDeclaration<GdsCompositeOptionPrimaryDirective, never>;
3071
- static ɵdir: i0.ɵɵDirectiveDeclaration<GdsCompositeOptionPrimaryDirective, "[gdsCompositeOptionPrimary]", never, {}, {}, never, never, true, never>;
3072
- }
3073
- export declare class GdsCompositeOptionSecondaryDirective extends GdsCompositeOptionPrimaryDirective {
3074
- onArrowY: (event: Event) => void;
3075
- static ɵfac: i0.ɵɵFactoryDeclaration<GdsCompositeOptionSecondaryDirective, never>;
3076
- static ɵdir: i0.ɵɵDirectiveDeclaration<GdsCompositeOptionSecondaryDirective, "[gdsCompositeOptionSecondary]", never, {}, {}, never, never, true, never>;
3077
- }
3078
- export declare class GdsListboxCompositeOptionDirective implements GdsListboxOption {
3079
- primaryElement: import("@angular/core").Signal<GdsCompositeOptionPrimaryDirective | undefined>;
3080
- secondaryElement: import("@angular/core").Signal<GdsCompositeOptionSecondaryDirective | undefined>;
3081
- primaryElementOverride: import("@angular/core").ModelSignal<GdsCompositeOptionPrimaryDirective | undefined>;
3082
- secondaryElementOverride: import("@angular/core").ModelSignal<GdsCompositeOptionSecondaryDirective | undefined>;
3083
- primaryEle: import("@angular/core").Signal<GdsCompositeOptionPrimaryDirective>;
3084
- secondaryEle: import("@angular/core").Signal<GdsCompositeOptionSecondaryDirective | undefined>;
3085
- onMoveY: () => void;
3086
- onMoveX: (event: Event) => void;
3087
- focus: () => void;
3088
- static ɵfac: i0.ɵɵFactoryDeclaration<GdsListboxCompositeOptionDirective, never>;
3089
- static ɵdir: i0.ɵɵDirectiveDeclaration<GdsListboxCompositeOptionDirective, "[gdsListboxCompositeOption]", never, {
3090
- "primaryElementOverride": {
3091
- "alias": "primaryElement";
3092
- "required": false;
3093
- "isSignal": true;
3094
- };
3095
- "secondaryElementOverride": {
3096
- "alias": "secondaryElement";
3097
- "required": false;
3098
- "isSignal": true;
3099
- };
3100
- }, {
3101
- "primaryElementOverride": "primaryElementChange";
3102
- "secondaryElementOverride": "secondaryElementChange";
3103
- }, ["primaryElement", "secondaryElement"], never, true, never>;
3104
- }
3105
- export declare class GdsVirtualScrollListboxDirective extends GdsListboxBaseDirective {
3106
- #private;
3107
- protected options: import("@angular/core").Signal<readonly GdsListboxOption[]>;
3108
- total: import("@angular/core").InputSignal<number>;
3109
- optionIndexAttribute: import("@angular/core").InputSignal<string>;
3110
- scrollBehavior: import("@angular/core").InputSignal<ScrollBehavior>;
3111
- currentFocusedIndex: import("@angular/core").OutputEmitterRef<number>;
3112
- onFocus: () => void;
3113
- onFocusIn: (event: FocusEvent) => void;
3114
- onKeydown: (event: KeyboardEvent) => void;
3115
- static ɵfac: i0.ɵɵFactoryDeclaration<GdsVirtualScrollListboxDirective, never>;
3116
- static ɵdir: i0.ɵɵDirectiveDeclaration<GdsVirtualScrollListboxDirective, "[gdsListboxVirtualScroll]", never, {
3117
- "total": {
3118
- "alias": "total";
3119
- "required": true;
3120
- "isSignal": true;
3121
- };
3122
- "optionIndexAttribute": {
3123
- "alias": "optionIndexAttribute";
3124
- "required": false;
3125
- "isSignal": true;
3126
- };
3127
- "scrollBehavior": {
3128
- "alias": "scrollBehavior";
3129
- "required": false;
3130
- "isSignal": true;
3131
- };
3132
- }, {
3133
- "currentFocusedIndex": "currentFocusedIndex";
3134
- }, ["options"], never, true, never>;
3135
- }
3136
3156
  export declare class GdsModule {
3137
3157
  static forRoot({ brand, env }: {
3138
3158
  brand?: GdsBrand;