@corto-ai/gds-angular 2.1.3-dev.1 → 2.1.3-test.2
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/README.md +5 -5
- package/fesm2022/corto-ai-gds-angular.mjs +353 -111
- package/fesm2022/corto-ai-gds-angular.mjs.map +1 -1
- package/package.json +12 -3
- package/types/corto-ai-gds-angular.d.ts +81 -40
package/package.json
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corto-ai/gds-angular",
|
|
3
|
-
"version": "2.1.3-
|
|
4
|
-
"devVersion": "
|
|
3
|
+
"version": "2.1.3-test.2",
|
|
4
|
+
"devVersion": "2",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/cdk": "^21.0.0",
|
|
9
|
-
"@angular/forms": "^21.0.0"
|
|
9
|
+
"@angular/forms": "^21.0.0",
|
|
10
|
+
"@angular/material": "^21.0.0",
|
|
11
|
+
"@angular/animations": "^21.0.0",
|
|
12
|
+
"@ngx-translate/core": "^17.0.0"
|
|
10
13
|
},
|
|
11
14
|
"dependencies": {
|
|
12
15
|
"@ngneat/svg-icon": "^7.1.0",
|
|
13
16
|
"date-fns": "^4.1.0",
|
|
17
|
+
"uuid": "^11.1.1",
|
|
18
|
+
"@ng-select/ng-select": "21.1.5",
|
|
19
|
+
"@ngneat/helipopper": "12.1.0",
|
|
20
|
+
"ngx-toastr": "19.0.0",
|
|
21
|
+
"tippy.js": "^6.3.7",
|
|
22
|
+
"ngx-device-detector": "11.0.0",
|
|
14
23
|
"tslib": "^2.3.0"
|
|
15
24
|
},
|
|
16
25
|
"module": "fesm2022/corto-ai-gds-angular.mjs",
|
|
@@ -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,
|
|
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';
|
|
@@ -169,10 +168,83 @@ declare class GdsFocusOnInitDirective implements AfterViewInit {
|
|
|
169
168
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GdsFocusOnInitDirective, "[focusOnInit]", never, { "selectOnInit": { "alias": "selectOnInit"; "required": false; }; "focusOnInit": { "alias": "focusOnInit"; "required": false; }; }, {}, never, never, true, never>;
|
|
170
169
|
}
|
|
171
170
|
|
|
171
|
+
declare const gdsButtonVariants: readonly ["default", "primary", "invisible"];
|
|
172
|
+
type GdsButtonVariant = (typeof gdsButtonVariants)[number];
|
|
173
|
+
declare const gdsButtonSizes: readonly ["small", "default", "medium", "large"];
|
|
174
|
+
type GdsButtonSize = (typeof gdsButtonSizes)[number];
|
|
175
|
+
type GdsButtonSharedCssProperties = {
|
|
176
|
+
color?: string;
|
|
177
|
+
borderColor?: string;
|
|
178
|
+
backgroundColor?: string;
|
|
179
|
+
outlineColor?: string;
|
|
180
|
+
colorHover?: string;
|
|
181
|
+
borderColorHover?: string;
|
|
182
|
+
backgroundColorHover?: string;
|
|
183
|
+
colorDisabled?: string;
|
|
184
|
+
borderColorDisabled?: string;
|
|
185
|
+
backgroundColorDisabled?: string;
|
|
186
|
+
};
|
|
187
|
+
type GdsButtonSharedSlotProperties = {
|
|
188
|
+
ngContent?: string;
|
|
189
|
+
};
|
|
190
|
+
type GdsButtonSharedProperties = ButtonBaseDirective & GdsButtonSharedCssProperties;
|
|
191
|
+
|
|
192
|
+
declare const ngSelectDropdownPositions: DropdownPosition[];
|
|
193
|
+
|
|
194
|
+
declare const gdsDropdownPositionsX: string[];
|
|
195
|
+
declare const gdsDropdownPositionsY: string[];
|
|
196
|
+
type GdsDropdownPositionX = (typeof gdsDropdownPositionsX)[number];
|
|
197
|
+
type GdsDropdownPositionY = (typeof gdsDropdownPositionsY)[number];
|
|
198
|
+
|
|
199
|
+
declare const CDN_URL: InjectionToken<string>;
|
|
200
|
+
|
|
201
|
+
declare const gdsUserPromptSecondaryTextVariants: readonly ["default", "error"];
|
|
202
|
+
type GdsUserPromptSecondaryTextVariant = (typeof gdsUserPromptSecondaryTextVariants)[number];
|
|
203
|
+
|
|
204
|
+
declare const GDS_BRANDS: {
|
|
205
|
+
readonly Corto: "corto";
|
|
206
|
+
readonly CortoDark: "corto dark";
|
|
207
|
+
readonly LawY: "lawy";
|
|
208
|
+
readonly Acctivity: "acctivity";
|
|
209
|
+
readonly Leap: "leap";
|
|
210
|
+
readonly StandardIntegration: "standardIntegration";
|
|
211
|
+
};
|
|
212
|
+
type GdsBrand = (typeof GDS_BRANDS)[keyof typeof GDS_BRANDS];
|
|
213
|
+
declare const BrandEnum: {
|
|
214
|
+
readonly Corto: "corto";
|
|
215
|
+
readonly CortoDark: "corto dark";
|
|
216
|
+
readonly LawY: "lawy";
|
|
217
|
+
readonly Acctivity: "acctivity";
|
|
218
|
+
readonly Leap: "leap";
|
|
219
|
+
readonly StandardIntegration: "standardIntegration";
|
|
220
|
+
};
|
|
221
|
+
type BrandEnum = GdsBrand;
|
|
222
|
+
|
|
223
|
+
type GdsContextMenuItemVariantType = `${GdsContextMenuItemVariantEnum}`;
|
|
224
|
+
declare enum GdsContextMenuItemVariantEnum {
|
|
225
|
+
Default = "default",
|
|
226
|
+
Radio = "radio",
|
|
227
|
+
Check = "check",
|
|
228
|
+
Indent = "indent",
|
|
229
|
+
DoubleIndent = "double-indent",
|
|
230
|
+
Heading = "heading",
|
|
231
|
+
Switch = "switch"
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
type HistoryItemVM<T = unknown> = {
|
|
235
|
+
badgeType: 'icon' | 'text';
|
|
236
|
+
badgeData: string;
|
|
237
|
+
title: string;
|
|
238
|
+
labels: string[];
|
|
239
|
+
versionId: string;
|
|
240
|
+
author?: string;
|
|
241
|
+
data?: T;
|
|
242
|
+
};
|
|
243
|
+
|
|
172
244
|
declare abstract class OnBrandChanged implements OnInit, OnDestroy {
|
|
173
245
|
#private;
|
|
174
246
|
onBrandChanged?(): void;
|
|
175
|
-
brand: _angular_core.WritableSignal<
|
|
247
|
+
brand: _angular_core.WritableSignal<GdsBrand>;
|
|
176
248
|
brandIsExternal: _angular_core.Signal<boolean>;
|
|
177
249
|
constructor();
|
|
178
250
|
ngOnInit(): void;
|
|
@@ -1054,39 +1126,6 @@ declare class TreeViewListItemDirective {
|
|
|
1054
1126
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewListItemDirective, "[tree-view-list-item-content]", never, {}, {}, never, never, true, never>;
|
|
1055
1127
|
}
|
|
1056
1128
|
|
|
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
1129
|
interface GdsUserPromptVM {
|
|
1091
1130
|
title: string;
|
|
1092
1131
|
description: string | TemplateRef<unknown>;
|
|
@@ -1145,7 +1184,7 @@ declare class GdsChatExpandableListComponent {
|
|
|
1145
1184
|
}
|
|
1146
1185
|
|
|
1147
1186
|
declare class GdsMessageInputComponent {
|
|
1148
|
-
mode: _angular_core.InputSignal<"
|
|
1187
|
+
mode: _angular_core.InputSignal<"type" | "cancel">;
|
|
1149
1188
|
placeholder: _angular_core.InputSignal<string>;
|
|
1150
1189
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1151
1190
|
suppressClearOnSubmit: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -1226,6 +1265,8 @@ declare const parseLocalizedDate: (dateString: string) => Date;
|
|
|
1226
1265
|
|
|
1227
1266
|
declare const getIconsByPrefix: (prefix: string) => string[];
|
|
1228
1267
|
|
|
1268
|
+
declare const isGdsBrand: (value: string | null | undefined) => value is GdsBrand;
|
|
1269
|
+
|
|
1229
1270
|
declare class GdsDatePipe implements PipeTransform {
|
|
1230
1271
|
transform(value: string | Date, option: 'short' | 'short+time'): string;
|
|
1231
1272
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsDatePipe, never>;
|
|
@@ -1435,7 +1476,7 @@ declare const provideToaster: (customOptions?: Partial<GlobalConfig>) => Environ
|
|
|
1435
1476
|
|
|
1436
1477
|
declare class GdsModule {
|
|
1437
1478
|
static forRoot({ brand, env }: {
|
|
1438
|
-
brand?:
|
|
1479
|
+
brand?: GdsBrand;
|
|
1439
1480
|
env?: 'local' | 'dev' | 'test' | 'staging' | 'live' | 'liveb';
|
|
1440
1481
|
}): ModuleWithProviders<GdsModule>;
|
|
1441
1482
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsModule, never>;
|
|
@@ -1443,5 +1484,5 @@ declare class GdsModule {
|
|
|
1443
1484
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GdsModule>;
|
|
1444
1485
|
}
|
|
1445
1486
|
|
|
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 };
|
|
1487
|
+
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 };
|
|
1488
|
+
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 };
|