@corto-ai/gds-angular 2.1.3-dev.1 → 2.1.3-dev.3

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,29 +1,39 @@
1
1
  {
2
2
  "name": "@corto-ai/gds-angular",
3
- "version": "2.1.3-dev.1",
4
- "devVersion": "1",
3
+ "version": "2.1.3-dev.3",
4
+ "devVersion": "3",
5
+ "exports": {
6
+ "./assets/*": "./assets/*",
7
+ "./package.json": {
8
+ "default": "./package.json"
9
+ },
10
+ ".": {
11
+ "types": "./types/corto-ai-gds-angular.d.ts",
12
+ "default": "./fesm2022/corto-ai-gds-angular.mjs"
13
+ }
14
+ },
5
15
  "peerDependencies": {
6
16
  "@angular/common": "^21.0.0",
7
17
  "@angular/core": "^21.0.0",
8
18
  "@angular/cdk": "^21.0.0",
9
- "@angular/forms": "^21.0.0"
19
+ "@angular/forms": "^21.0.0",
20
+ "@angular/material": "^21.0.0",
21
+ "@angular/animations": "^21.0.0",
22
+ "@ngx-translate/core": "^17.0.0"
10
23
  },
11
24
  "dependencies": {
12
25
  "@ngneat/svg-icon": "^7.1.0",
13
26
  "date-fns": "^4.1.0",
27
+ "uuid": "^11.1.1",
28
+ "@ng-select/ng-select": "21.1.5",
29
+ "@ngneat/helipopper": "12.1.0",
30
+ "ngx-toastr": "19.0.0",
31
+ "tippy.js": "^6.3.7",
32
+ "ngx-device-detector": "11.0.0",
14
33
  "tslib": "^2.3.0"
15
34
  },
16
35
  "module": "fesm2022/corto-ai-gds-angular.mjs",
17
36
  "typings": "types/corto-ai-gds-angular.d.ts",
18
- "exports": {
19
- "./package.json": {
20
- "default": "./package.json"
21
- },
22
- ".": {
23
- "types": "./types/corto-ai-gds-angular.d.ts",
24
- "default": "./fesm2022/corto-ai-gds-angular.mjs"
25
- }
26
- },
27
37
  "sideEffects": false,
28
38
  "type": "module"
29
39
  }
@@ -1,7 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { TemplateRef, OnInit, OnDestroy, ElementRef, AfterViewInit, EventEmitter, Signal, Type, ModelSignal, AfterContentInit, PipeTransform, ApplicationRef, InjectionToken, EnvironmentProviders, ModuleWithProviders } from '@angular/core';
2
+ import { TemplateRef, OnInit, OnDestroy, ElementRef, AfterViewInit, InjectionToken, EventEmitter, Signal, Type, ModelSignal, AfterContentInit, PipeTransform, ApplicationRef, EnvironmentProviders, ModuleWithProviders } from '@angular/core';
3
3
  import { SvgIcons, SvgIconComponent } from '@ngneat/svg-icon';
4
- import { BrandEnum, GdsContextMenuItemVariantType, HistoryItemVM } from '@corto/utils/types';
5
4
  import * as i1 from '@angular/cdk/menu';
6
5
  import { CdkMenuItem, CdkMenuTrigger } from '@angular/cdk/menu';
7
6
  import { Observable, Subject } from 'rxjs';
@@ -108,12 +107,13 @@ declare class ButtonBaseDirective {
108
107
  disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
109
108
  size: _angular_core.InputSignal<"small" | "default" | "medium" | "large">;
110
109
  variant: _angular_core.InputSignal<"default" | "primary" | "invisible">;
110
+ tabIndex: _angular_core.InputSignal<number>;
111
111
  clicked: _angular_core.OutputEmitterRef<MouseEvent>;
112
112
  isDisabled: _angular_core.Signal<boolean>;
113
113
  nativeElement: HTMLButtonElement;
114
114
  handleClick(event: MouseEvent): void;
115
115
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonBaseDirective, never>;
116
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonBaseDirective, never, never, { "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
116
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonBaseDirective, never, never, { "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
117
117
  }
118
118
 
119
119
  declare class GdsButtonComponent extends ButtonBaseDirective {
@@ -169,10 +169,83 @@ declare class GdsFocusOnInitDirective implements AfterViewInit {
169
169
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GdsFocusOnInitDirective, "[focusOnInit]", never, { "selectOnInit": { "alias": "selectOnInit"; "required": false; }; "focusOnInit": { "alias": "focusOnInit"; "required": false; }; }, {}, never, never, true, never>;
170
170
  }
171
171
 
172
+ declare const gdsButtonVariants: readonly ["default", "primary", "invisible"];
173
+ type GdsButtonVariant = (typeof gdsButtonVariants)[number];
174
+ declare const gdsButtonSizes: readonly ["small", "default", "medium", "large"];
175
+ type GdsButtonSize = (typeof gdsButtonSizes)[number];
176
+ type GdsButtonSharedCssProperties = {
177
+ color?: string;
178
+ borderColor?: string;
179
+ backgroundColor?: string;
180
+ outlineColor?: string;
181
+ colorHover?: string;
182
+ borderColorHover?: string;
183
+ backgroundColorHover?: string;
184
+ colorDisabled?: string;
185
+ borderColorDisabled?: string;
186
+ backgroundColorDisabled?: string;
187
+ };
188
+ type GdsButtonSharedSlotProperties = {
189
+ ngContent?: string;
190
+ };
191
+ type GdsButtonSharedProperties = ButtonBaseDirective & GdsButtonSharedCssProperties;
192
+
193
+ declare const ngSelectDropdownPositions: DropdownPosition[];
194
+
195
+ declare const gdsDropdownPositionsX: string[];
196
+ declare const gdsDropdownPositionsY: string[];
197
+ type GdsDropdownPositionX = (typeof gdsDropdownPositionsX)[number];
198
+ type GdsDropdownPositionY = (typeof gdsDropdownPositionsY)[number];
199
+
200
+ declare const CDN_URL: InjectionToken<string>;
201
+
202
+ declare const gdsUserPromptSecondaryTextVariants: readonly ["default", "error"];
203
+ type GdsUserPromptSecondaryTextVariant = (typeof gdsUserPromptSecondaryTextVariants)[number];
204
+
205
+ declare const GDS_BRANDS: {
206
+ readonly Corto: "corto";
207
+ readonly CortoDark: "corto dark";
208
+ readonly LawY: "lawy";
209
+ readonly Acctivity: "acctivity";
210
+ readonly Leap: "leap";
211
+ readonly StandardIntegration: "standardIntegration";
212
+ };
213
+ type GdsBrand = (typeof GDS_BRANDS)[keyof typeof GDS_BRANDS];
214
+ declare const BrandEnum: {
215
+ readonly Corto: "corto";
216
+ readonly CortoDark: "corto dark";
217
+ readonly LawY: "lawy";
218
+ readonly Acctivity: "acctivity";
219
+ readonly Leap: "leap";
220
+ readonly StandardIntegration: "standardIntegration";
221
+ };
222
+ type BrandEnum = GdsBrand;
223
+
224
+ type GdsContextMenuItemVariantType = `${GdsContextMenuItemVariantEnum}`;
225
+ declare enum GdsContextMenuItemVariantEnum {
226
+ Default = "default",
227
+ Radio = "radio",
228
+ Check = "check",
229
+ Indent = "indent",
230
+ DoubleIndent = "double-indent",
231
+ Heading = "heading",
232
+ Switch = "switch"
233
+ }
234
+
235
+ type HistoryItemVM<T = unknown> = {
236
+ badgeType: 'icon' | 'text';
237
+ badgeData: string;
238
+ title: string;
239
+ labels: string[];
240
+ versionId: string;
241
+ author?: string;
242
+ data?: T;
243
+ };
244
+
172
245
  declare abstract class OnBrandChanged implements OnInit, OnDestroy {
173
246
  #private;
174
247
  onBrandChanged?(): void;
175
- brand: _angular_core.WritableSignal<BrandEnum>;
248
+ brand: _angular_core.WritableSignal<GdsBrand>;
176
249
  brandIsExternal: _angular_core.Signal<boolean>;
177
250
  constructor();
178
251
  ngOnInit(): void;
@@ -1054,39 +1127,6 @@ declare class TreeViewListItemDirective {
1054
1127
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewListItemDirective, "[tree-view-list-item-content]", never, {}, {}, never, never, true, never>;
1055
1128
  }
1056
1129
 
1057
- declare const gdsButtonVariants: readonly ["default", "primary", "invisible"];
1058
- type GdsButtonVariant = (typeof gdsButtonVariants)[number];
1059
- declare const gdsButtonSizes: readonly ["small", "default", "medium", "large"];
1060
- type GdsButtonSize = (typeof gdsButtonSizes)[number];
1061
- type GdsButtonSharedCssProperties = {
1062
- color?: string;
1063
- borderColor?: string;
1064
- backgroundColor?: string;
1065
- outlineColor?: string;
1066
- colorHover?: string;
1067
- borderColorHover?: string;
1068
- backgroundColorHover?: string;
1069
- colorDisabled?: string;
1070
- borderColorDisabled?: string;
1071
- backgroundColorDisabled?: string;
1072
- };
1073
- type GdsButtonSharedSlotProperties = {
1074
- ngContent?: string;
1075
- };
1076
- type GdsButtonSharedProperties = ButtonBaseDirective & GdsButtonSharedCssProperties;
1077
-
1078
- declare const ngSelectDropdownPositions: DropdownPosition[];
1079
-
1080
- declare const gdsDropdownPositionsX: string[];
1081
- declare const gdsDropdownPositionsY: string[];
1082
- type GdsDropdownPositionX = (typeof gdsDropdownPositionsX)[number];
1083
- type GdsDropdownPositionY = (typeof gdsDropdownPositionsY)[number];
1084
-
1085
- declare const CDN_URL: InjectionToken<string>;
1086
-
1087
- declare const gdsUserPromptSecondaryTextVariants: readonly ["default", "error"];
1088
- type GdsUserPromptSecondaryTextVariant = (typeof gdsUserPromptSecondaryTextVariants)[number];
1089
-
1090
1130
  interface GdsUserPromptVM {
1091
1131
  title: string;
1092
1132
  description: string | TemplateRef<unknown>;
@@ -1145,7 +1185,7 @@ declare class GdsChatExpandableListComponent {
1145
1185
  }
1146
1186
 
1147
1187
  declare class GdsMessageInputComponent {
1148
- mode: _angular_core.InputSignal<"cancel" | "type">;
1188
+ mode: _angular_core.InputSignal<"type" | "cancel">;
1149
1189
  placeholder: _angular_core.InputSignal<string>;
1150
1190
  disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
1151
1191
  suppressClearOnSubmit: _angular_core.InputSignalWithTransform<boolean, unknown>;
@@ -1226,6 +1266,8 @@ declare const parseLocalizedDate: (dateString: string) => Date;
1226
1266
 
1227
1267
  declare const getIconsByPrefix: (prefix: string) => string[];
1228
1268
 
1269
+ declare const isGdsBrand: (value: string | null | undefined) => value is GdsBrand;
1270
+
1229
1271
  declare class GdsDatePipe implements PipeTransform {
1230
1272
  transform(value: string | Date, option: 'short' | 'short+time'): string;
1231
1273
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsDatePipe, never>;
@@ -1375,6 +1417,8 @@ declare abstract class GdsListboxBaseDirective implements OnDestroy {
1375
1417
  protected _keyManager: FocusKeyManager<FocusableOption>;
1376
1418
  protected _activeId: _angular_core.WritableSignal<string | null>;
1377
1419
  ngOnDestroy(): void;
1420
+ onPointerDown(): void;
1421
+ onPointerUp(): void;
1378
1422
  onFocus(): void;
1379
1423
  onKeydown(event: KeyboardEvent): void;
1380
1424
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsListboxBaseDirective, never>;
@@ -1435,7 +1479,7 @@ declare const provideToaster: (customOptions?: Partial<GlobalConfig>) => Environ
1435
1479
 
1436
1480
  declare class GdsModule {
1437
1481
  static forRoot({ brand, env }: {
1438
- brand?: BrandEnum;
1482
+ brand?: GdsBrand;
1439
1483
  env?: 'local' | 'dev' | 'test' | 'staging' | 'live' | 'liveb';
1440
1484
  }): ModuleWithProviders<GdsModule>;
1441
1485
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsModule, never>;
@@ -1443,5 +1487,5 @@ declare class GdsModule {
1443
1487
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<GdsModule>;
1444
1488
  }
1445
1489
 
1446
- export { CDN_URL, CONTACT_INITIALS_REGEX, GDS_EMPTY_STATE_VARIANTS, GdsAccountingService, GdsAutoRoundCurrencyDirective, GdsAutofocusDirective, GdsAvatarComponent, GdsBadgeColorType, GdsBadgeComponent, GdsBadgeVariantType, GdsBannerComponent, GdsBreadcrumbsComponent, GdsBuildOptionConfigPipe, GdsButtonComponent, GdsButtonRadioOptionComponent, GdsChatExpandableListComponent, GdsChatPromptComponent, GdsChatSuggestionComponent, GdsCheckboxComponent, GdsChipColorsMap, GdsChipComponent, GdsCollapsibleAsideLayoutComponent, GdsCompositeOptionPrimaryDirective, GdsCompositeOptionSecondaryDirective, GdsContextMenuHeadingComponent, GdsContextMenuItemComponent, GdsContextMenuSwitchComponent, GdsDateInputComponent, GdsDatePipe, GdsDialogBaseDirective, GdsDialogComponent, GdsDialogOverlayComponent, GdsDialogService, GdsDoctypeService, GdsDoctypeToIconPipe, GdsDocumentItemComponent, GdsDropdownComponent, GdsEmptyStateComponent, GdsFeatureBlockComponent, GdsFeedbackButtonComponent, GdsFileUploadComponent, GdsFilenameToIconPipe, GdsFilterChipComponent, GdsFocusOnInitDirective, GdsFormControlComponent, GdsHistoryComponent, GdsIconButtonComponent, GdsIconComponent, GdsIconDoctypeComponent, GdsIconService, GdsInputAutocompleteDirective, GdsItemDisplayComponent, GdsKeyboardNavigationHost, GdsKeyboardNavigationItem, GdsListboxCompositeOptionDirective, GdsListboxDirective, GdsListboxOptionDirective, GdsLoadingCarouselComponent, GdsMapArrayToRadioOptionsPipe, GdsMathFloorPipe, GdsMathMaxPipe, GdsMathMinPipe, GdsMessageInputComponent, GdsModule, GdsNativeInputDirective, GdsNativeTextareaDirective, GdsNavAsideComponent, GdsNavAsideItemComponent, GdsNestedSelectComponent, GdsProgressBarComponent, GdsRadioComponent, GdsRadioOptionDirective, GdsReferenceComponent, GdsReferenceLinkComponent, GdsRegexFilterDirective, GdsResizedDirective, GdsResizedEvent, GdsResponseComponent, GdsScrollOutOfViewDirective, GdsScrollOutOfViewScrollStatus, GdsScrollOutOfViewService, GdsScrollToBottomDirective, GdsScrollToFirstInvalidDirective, GdsSearchBarComponent, GdsSelectComponent, GdsSelectOnFocusDirective, GdsSidebarItemBodyComponent, GdsSidebarItemComponent, GdsSkeletonLoadingComponent, GdsSliderComponent, GdsSpinnerComponent, GdsSplitButtonComponent, GdsSvgIconPipe, GdsSwitchComponent, GdsTextInputComponent, GdsTextareaComponent, GdsTimelineItemComponent, GdsToastComponent, GdsTooltipComponent, GdsTreeViewListItemComponent, GdsUserPromptService, GdsVirtualScrollListboxDirective, MapperPipe, OnBrandChanged, RoundMode, TreeViewListItemDirective, chipColor, chipSize, chipTypes, chipWidth, formatToISO, gdsButtonSizes, gdsButtonVariants, gdsDropdownPositionsX, gdsDropdownPositionsY, gdsSelectWidths, gdsServices, gdsUserPromptSecondaryTextVariants, getIconsByPrefix, ngSelectDropdownPositions, parseLocalizedDate, provideToaster, shortDate, shortDateTime, transformDateFormat, transformDurationToSeconds, transformSecondsToDuration };
1447
- export type { FeatureDescriptionConfigVM, GdsAvatarOrganizationType, GdsAvatarSize, GdsAvatarVariant, GdsBannerState, GdsBreadCrumbSize, GdsBreadCrumbVM, GdsButtonSharedCssProperties, GdsButtonSharedProperties, GdsButtonSharedSlotProperties, GdsButtonSize, GdsButtonVariant, GdsChipColor, GdsChipColorType, GdsChipSize, GdsChipTypes, GdsChipWidth, GdsDropdownPositionX, GdsDropdownPositionY, GdsEmptyStateSize, GdsEmptyStateVariant, GdsNativeRadioProps, GdsRadioOption, GdsRadioOptionConfig, GdsScrollOutOfViewScrollStatusType, GdsSelectWidth, GdsTimelineConnectorType, GdsUserPromptSecondaryTextVariant };
1490
+ export { BrandEnum, CDN_URL, CONTACT_INITIALS_REGEX, GDS_BRANDS, GDS_EMPTY_STATE_VARIANTS, GdsAccountingService, GdsAutoRoundCurrencyDirective, GdsAutofocusDirective, GdsAvatarComponent, GdsBadgeColorType, GdsBadgeComponent, GdsBadgeVariantType, GdsBannerComponent, GdsBreadcrumbsComponent, GdsBuildOptionConfigPipe, GdsButtonComponent, GdsButtonRadioOptionComponent, GdsChatExpandableListComponent, GdsChatPromptComponent, GdsChatSuggestionComponent, GdsCheckboxComponent, GdsChipColorsMap, GdsChipComponent, GdsCollapsibleAsideLayoutComponent, GdsCompositeOptionPrimaryDirective, GdsCompositeOptionSecondaryDirective, GdsContextMenuHeadingComponent, GdsContextMenuItemComponent, GdsContextMenuItemVariantEnum, GdsContextMenuSwitchComponent, GdsDateInputComponent, GdsDatePipe, GdsDialogBaseDirective, GdsDialogComponent, GdsDialogOverlayComponent, GdsDialogService, GdsDoctypeService, GdsDoctypeToIconPipe, GdsDocumentItemComponent, GdsDropdownComponent, GdsEmptyStateComponent, GdsFeatureBlockComponent, GdsFeedbackButtonComponent, GdsFileUploadComponent, GdsFilenameToIconPipe, GdsFilterChipComponent, GdsFocusOnInitDirective, GdsFormControlComponent, GdsHistoryComponent, GdsIconButtonComponent, GdsIconComponent, GdsIconDoctypeComponent, GdsIconService, GdsInputAutocompleteDirective, GdsItemDisplayComponent, GdsKeyboardNavigationHost, GdsKeyboardNavigationItem, GdsListboxCompositeOptionDirective, GdsListboxDirective, GdsListboxOptionDirective, GdsLoadingCarouselComponent, GdsMapArrayToRadioOptionsPipe, GdsMathFloorPipe, GdsMathMaxPipe, GdsMathMinPipe, GdsMessageInputComponent, GdsModule, GdsNativeInputDirective, GdsNativeTextareaDirective, GdsNavAsideComponent, GdsNavAsideItemComponent, GdsNestedSelectComponent, GdsProgressBarComponent, GdsRadioComponent, GdsRadioOptionDirective, GdsReferenceComponent, GdsReferenceLinkComponent, GdsRegexFilterDirective, GdsResizedDirective, GdsResizedEvent, GdsResponseComponent, GdsScrollOutOfViewDirective, GdsScrollOutOfViewScrollStatus, GdsScrollOutOfViewService, GdsScrollToBottomDirective, GdsScrollToFirstInvalidDirective, GdsSearchBarComponent, GdsSelectComponent, GdsSelectOnFocusDirective, GdsSidebarItemBodyComponent, GdsSidebarItemComponent, GdsSkeletonLoadingComponent, GdsSliderComponent, GdsSpinnerComponent, GdsSplitButtonComponent, GdsSvgIconPipe, GdsSwitchComponent, GdsTextInputComponent, GdsTextareaComponent, GdsTimelineItemComponent, GdsToastComponent, GdsTooltipComponent, GdsTreeViewListItemComponent, GdsUserPromptService, GdsVirtualScrollListboxDirective, MapperPipe, OnBrandChanged, RoundMode, TreeViewListItemDirective, chipColor, chipSize, chipTypes, chipWidth, formatToISO, gdsButtonSizes, gdsButtonVariants, gdsDropdownPositionsX, gdsDropdownPositionsY, gdsSelectWidths, gdsServices, gdsUserPromptSecondaryTextVariants, getIconsByPrefix, isGdsBrand, ngSelectDropdownPositions, parseLocalizedDate, provideToaster, shortDate, shortDateTime, transformDateFormat, transformDurationToSeconds, transformSecondsToDuration };
1491
+ export type { FeatureDescriptionConfigVM, GdsAvatarOrganizationType, GdsAvatarSize, GdsAvatarVariant, GdsBannerState, GdsBrand, GdsBreadCrumbSize, GdsBreadCrumbVM, GdsButtonSharedCssProperties, GdsButtonSharedProperties, GdsButtonSharedSlotProperties, GdsButtonSize, GdsButtonVariant, GdsChipColor, GdsChipColorType, GdsChipSize, GdsChipTypes, GdsChipWidth, GdsContextMenuItemVariantType, GdsDropdownPositionX, GdsDropdownPositionY, GdsEmptyStateSize, GdsEmptyStateVariant, GdsNativeRadioProps, GdsRadioOption, GdsRadioOptionConfig, GdsScrollOutOfViewScrollStatusType, GdsSelectWidth, GdsTimelineConnectorType, GdsUserPromptSecondaryTextVariant, HistoryItemVM };