@corto-ai/gds-angular 2.1.4 → 2.1.5-test.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corto-ai/gds-angular",
3
- "version": "2.1.4",
3
+ "version": "2.1.5-test.1",
4
4
  "devVersion": "1",
5
5
  "exports": {
6
6
  "./assets/*": "./assets/*",
@@ -7,7 +7,7 @@ import { Observable, Subject } from 'rxjs';
7
7
  import * as i1$1 from '@angular/cdk/a11y';
8
8
  import { FocusableOption, FocusOrigin, FocusKeyManager } from '@angular/cdk/a11y';
9
9
  import * as _angular_forms_signals from '@angular/forms/signals';
10
- import { FormCheckboxControl, FormField, FormValueControl } from '@angular/forms/signals';
10
+ import { FormField, FormValueControl, FormCheckboxControl } from '@angular/forms/signals';
11
11
  import { MatCalendarView } from '@angular/material/datepicker';
12
12
  import * as _corto_ai_gds_angular from '@corto-ai/gds-angular';
13
13
  import * as i2 from '@ng-select/ng-select';
@@ -460,6 +460,77 @@ declare class GdsDocumentItemComponent {
460
460
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<GdsDocumentItemComponent, "gds-document-item", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; "clicked": "clicked"; }, never, never, true, never>;
461
461
  }
462
462
 
463
+ declare class GdsSignalFormContainer {
464
+ protected readonly nestedField: _angular_core.Signal<FormField<any> | undefined>;
465
+ formField: _angular_core.Signal<_angular_forms_signals.FieldState<any, string | number> | undefined>;
466
+ formFieldInvalid: _angular_core.Signal<boolean>;
467
+ formFieldTouched: _angular_core.Signal<boolean>;
468
+ formFieldError: _angular_core.Signal<string | undefined>;
469
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsSignalFormContainer, never>;
470
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GdsSignalFormContainer, never, never, {}, {}, ["nestedField"], never, true, never>;
471
+ }
472
+ /**
473
+ * From https://angular.dev/guide/forms/signals/custom-controls#adding-state-signals
474
+ * This base class should be extended by any custom form control that we expect to use with signal forms directly
475
+ * i.e. that we directly apply the [formField] directive to.
476
+ * It adds the common interaction state signals and sets up host bindings
477
+ * All of these signals are automatically kept in sync by the form field directive
478
+ */
479
+ declare abstract class GdsSignalFormControl<T> implements FormValueControl<T> {
480
+ abstract value: ModelSignal<T>;
481
+ touched: ModelSignal<boolean>;
482
+ disabled: _angular_core.InputSignal<boolean>;
483
+ readonly: _angular_core.InputSignal<boolean>;
484
+ hidden: _angular_core.InputSignal<boolean>;
485
+ invalid: _angular_core.InputSignal<boolean>;
486
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsSignalFormControl<any>, never>;
487
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GdsSignalFormControl<any>, never, never, { "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; }, never, never, true, never>;
488
+ }
489
+
490
+ declare class GdsDrilldownSelectComponent<T extends {
491
+ children?: T[];
492
+ }> extends GdsSignalFormControl<string[]> implements AfterViewInit {
493
+ #private;
494
+ options: _angular_core.InputSignal<T[]>;
495
+ bindValue: _angular_core.InputSignal<keyof T>;
496
+ bindLabel: _angular_core.InputSignal<keyof T>;
497
+ clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
498
+ searchable: _angular_core.InputSignalWithTransform<boolean, unknown>;
499
+ maxMenuHeight: _angular_core.InputSignal<string>;
500
+ placeholder: _angular_core.InputSignal<string>;
501
+ searchPlaceholder: _angular_core.InputSignal<string>;
502
+ mobileCancelLabel: _angular_core.InputSignal<string>;
503
+ resetLabel: _angular_core.InputSignal<string>;
504
+ emptyText: _angular_core.InputSignal<string>;
505
+ backAriaLabel: _angular_core.InputSignal<string>;
506
+ value: _angular_core.ModelSignal<string[]>;
507
+ dropdownWidth: _angular_core.WritableSignal<number>;
508
+ isOpen: _angular_core.WritableSignal<boolean>;
509
+ navStack: _angular_core.WritableSignal<T[]>;
510
+ searchText: _angular_core.WritableSignal<string>;
511
+ menu: _angular_core.Signal<TemplateRef<HTMLElement>>;
512
+ displayedOptions: _angular_core.Signal<T[]>;
513
+ label: _angular_core.Signal<string>;
514
+ activeItems: _angular_core.Signal<T[keyof T][]>;
515
+ hasNavHeader: _angular_core.Signal<boolean>;
516
+ constructor();
517
+ ngAfterViewInit(): void;
518
+ onItemClick: (option: T) => void;
519
+ onDrilldownClick: (option: T) => void;
520
+ onBack: () => void;
521
+ onReset: () => void;
522
+ onBreadcrumbClick: (index: number) => void;
523
+ onSearch: (event: Event) => void;
524
+ onSearchKeydown: (event: KeyboardEvent) => void;
525
+ onEscape: () => void;
526
+ openMenu: () => void;
527
+ optionLabel: (option: T) => string;
528
+ onArrowRight: (option: T) => void;
529
+ onArrowLeft: () => void;
530
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsDrilldownSelectComponent<any>, never>;
531
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<GdsDrilldownSelectComponent<any>, "gds-drilldown-select", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": true; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": true; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "maxMenuHeight": { "alias": "maxMenuHeight"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "mobileCancelLabel": { "alias": "mobileCancelLabel"; "required": false; "isSignal": true; }; "resetLabel": { "alias": "resetLabel"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "backAriaLabel": { "alias": "backAriaLabel"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, [{ directive: typeof i1.CdkMenuTrigger; inputs: {}; outputs: {}; }]>;
532
+ }
533
+
463
534
  declare class GdsDropdownComponent {
464
535
  #private;
465
536
  triggerElement: _angular_core.InputSignal<HTMLButtonElement | undefined>;
@@ -574,33 +645,6 @@ declare class GdsNativeTextareaDirective {
574
645
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GdsNativeTextareaDirective, "textarea", never, {}, {}, never, never, true, never>;
575
646
  }
576
647
 
577
- declare class GdsSignalFormContainer {
578
- protected readonly nestedField: _angular_core.Signal<FormField<any> | undefined>;
579
- formField: _angular_core.Signal<_angular_forms_signals.FieldState<any, string | number> | undefined>;
580
- formFieldInvalid: _angular_core.Signal<boolean>;
581
- formFieldTouched: _angular_core.Signal<boolean>;
582
- formFieldError: _angular_core.Signal<string | undefined>;
583
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsSignalFormContainer, never>;
584
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GdsSignalFormContainer, never, never, {}, {}, ["nestedField"], never, true, never>;
585
- }
586
- /**
587
- * From https://angular.dev/guide/forms/signals/custom-controls#adding-state-signals
588
- * This base class should be extended by any custom form control that we expect to use with signal forms directly
589
- * i.e. that we directly apply the [formField] directive to.
590
- * It adds the common interaction state signals and sets up host bindings
591
- * All of these signals are automatically kept in sync by the form field directive
592
- */
593
- declare abstract class GdsSignalFormControl<T> implements FormValueControl<T> {
594
- abstract value: ModelSignal<T>;
595
- touched: ModelSignal<boolean>;
596
- disabled: _angular_core.InputSignal<boolean>;
597
- readonly: _angular_core.InputSignal<boolean>;
598
- hidden: _angular_core.InputSignal<boolean>;
599
- invalid: _angular_core.InputSignal<boolean>;
600
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsSignalFormControl<any>, never>;
601
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GdsSignalFormControl<any>, never, never, { "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; }, never, never, true, never>;
602
- }
603
-
604
648
  declare class GdsDateInputComponent extends GdsSignalFormContainer implements AfterViewInit, AfterContentInit, OnDestroy {
605
649
  #private;
606
650
  dropdownPositionX: _angular_core.InputSignal<string>;
@@ -1170,6 +1214,7 @@ declare class GdsTreeViewListItemComponent {
1170
1214
  expanded: _angular_core.InputSignalWithTransform<boolean, unknown>;
1171
1215
  hasChildren: _angular_core.InputSignalWithTransform<boolean, unknown>;
1172
1216
  ariaLabel: _angular_core.InputSignal<string>;
1217
+ disableChevron: _angular_core.InputSignal<boolean | undefined>;
1173
1218
  clicked: _angular_core.OutputEmitterRef<Event>;
1174
1219
  doubleClicked: _angular_core.OutputEmitterRef<void>;
1175
1220
  toggleExpanded: _angular_core.OutputEmitterRef<void>;
@@ -1182,7 +1227,7 @@ declare class GdsTreeViewListItemComponent {
1182
1227
  private _clicked;
1183
1228
  private _clearClickTimeout;
1184
1229
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GdsTreeViewListItemComponent, never>;
1185
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<GdsTreeViewListItemComponent, "gds-tree-view-list-item", never, { "tier": { "alias": "tier"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "nowrap": { "alias": "nowrap"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "hasChildren": { "alias": "hasChildren"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "doubleClicked": "doubleClicked"; "toggleExpanded": "toggleExpanded"; }, ["checkbox"], ["[checkbox]", "*", "[end-content]", "[expanded-content]"], true, [{ directive: typeof GdsListboxOptionDirective; inputs: {}; outputs: {}; }]>;
1230
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<GdsTreeViewListItemComponent, "gds-tree-view-list-item", never, { "tier": { "alias": "tier"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "nowrap": { "alias": "nowrap"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "hasChildren": { "alias": "hasChildren"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "disableChevron": { "alias": "disableChevron"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "doubleClicked": "doubleClicked"; "toggleExpanded": "toggleExpanded"; }, ["checkbox"], ["[checkbox]", "*", "[end-content]", "[expanded-content]"], true, [{ directive: typeof GdsListboxOptionDirective; inputs: {}; outputs: {}; }]>;
1186
1231
  }
1187
1232
 
1188
1233
  declare class TreeViewListItemDirective {
@@ -1550,5 +1595,5 @@ declare class GdsModule {
1550
1595
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<GdsModule>;
1551
1596
  }
1552
1597
 
1553
- export { BrandEnum, CDN_URL, CONTACT_INITIALS_REGEX, GDS_BRANDS, GDS_EMPTY_STATE_VARIANTS, GDS_TOASTER_CONFIG, GDS_TOAST_CONTAINER, 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, ToastrService, TreeViewListItemDirective, chipColor, chipSize, chipTypes, chipWidth, formatToISO, gdsButtonSizes, gdsButtonVariants, gdsDropdownPositionsX, gdsDropdownPositionsY, gdsSelectWidths, gdsServices, gdsUserPromptSecondaryTextVariants, getIconsByPrefix, isGdsBrand, ngSelectDropdownPositions, parseLocalizedDate, provideToaster, shortDate, shortDateTime, transformDateFormat, transformDurationToSeconds, transformSecondsToDuration };
1598
+ export { BrandEnum, CDN_URL, CONTACT_INITIALS_REGEX, GDS_BRANDS, GDS_EMPTY_STATE_VARIANTS, GDS_TOASTER_CONFIG, GDS_TOAST_CONTAINER, 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, GdsDrilldownSelectComponent, 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, ToastrService, TreeViewListItemDirective, chipColor, chipSize, chipTypes, chipWidth, formatToISO, gdsButtonSizes, gdsButtonVariants, gdsDropdownPositionsX, gdsDropdownPositionsY, gdsSelectWidths, gdsServices, gdsUserPromptSecondaryTextVariants, getIconsByPrefix, isGdsBrand, ngSelectDropdownPositions, parseLocalizedDate, provideToaster, shortDate, shortDateTime, transformDateFormat, transformDurationToSeconds, transformSecondsToDuration };
1554
1599
  export type { FeatureDescriptionConfigVM, GdsActiveToast, 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, GdsToastConfig, GdsToastConfigPayload, GdsToastGlobalConfig, GdsToastInstance, GdsToastStatus, GdsToastType, GdsUserPromptSecondaryTextVariant, HistoryItemVM };