@brandsync/angular 1.8.0 → 1.10.0

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.
@@ -2,6 +2,8 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/co
2
2
  import type { Components } from '@brandsync/wc/dist/components';
3
3
  import type { BsAccordionCustomEvent } from '@brandsync/wc/dist/components';
4
4
  import type { BsAttachmentCustomEvent } from '@brandsync/wc/dist/components';
5
+ import type { BsBreadcrumbCustomEvent } from '@brandsync/wc/dist/components';
6
+ import type { BsBreadcrumbOverflowCustomEvent } from '@brandsync/wc/dist/components';
5
7
  import type { BsCarouselCustomEvent } from '@brandsync/wc/dist/components';
6
8
  import type { BsChatbotFeedbackCustomEvent } from '@brandsync/wc/dist/components';
7
9
  import type { BsChatbotHeaderCustomEvent } from '@brandsync/wc/dist/components';
@@ -14,6 +16,8 @@ import type { BsChipInputCustomEvent } from '@brandsync/wc/dist/components';
14
16
  import type { BsComposerCustomEvent } from '@brandsync/wc/dist/components';
15
17
  import type { BsComposerStatusBannerCustomEvent } from '@brandsync/wc/dist/components';
16
18
  import type { BsDataTableCustomEvent } from '@brandsync/wc/dist/components';
19
+ import type { BsDatepickerCustomEvent } from '@brandsync/wc/dist/components';
20
+ import type { BsDatepickerChange as IBsDatepickerBsDatepickerChange } from '@brandsync/wc/dist/components';
17
21
  import type { BsDialogCustomEvent } from '@brandsync/wc/dist/components';
18
22
  import type { BsFileUploadCustomEvent } from '@brandsync/wc/dist/components';
19
23
  import type { BsFileUploadItemCustomEvent } from '@brandsync/wc/dist/components';
@@ -29,6 +33,9 @@ import type { BsSnackbarCustomEvent } from '@brandsync/wc/dist/components';
29
33
  import type { BsSourceLinkCustomEvent } from '@brandsync/wc/dist/components';
30
34
  import type { BsSwitchCustomEvent } from '@brandsync/wc/dist/components';
31
35
  import type { BsTabCustomEvent } from '@brandsync/wc/dist/components';
36
+ import type { BsTabsCustomEvent } from '@brandsync/wc/dist/components';
37
+ import type { BsTimepickerCustomEvent } from '@brandsync/wc/dist/components';
38
+ import type { BsTimepickerChange as IBsTimepickerBsTimepickerChange } from '@brandsync/wc/dist/components';
32
39
  import type { BsToastCustomEvent } from '@brandsync/wc/dist/components';
33
40
  import * as i0 from "@angular/core";
34
41
  export declare class BsAccordion {
@@ -117,20 +124,44 @@ export declare interface BsBadge extends Components.BsBadge {
117
124
  export declare class BsBreadcrumb {
118
125
  protected z: NgZone;
119
126
  protected el: HTMLBsBreadcrumbElement;
127
+ bsNavigate: EventEmitter<BsBreadcrumbCustomEvent<{
128
+ href: string;
129
+ }>>;
120
130
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
121
131
  static ɵfac: i0.ɵɵFactoryDeclaration<BsBreadcrumb, never>;
122
- static ɵcmp: i0.ɵɵComponentDeclaration<BsBreadcrumb, "bs-breadcrumb", never, { "current": { "alias": "current"; "required": false; }; "href": { "alias": "href"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], true, never>;
132
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsBreadcrumb, "bs-breadcrumb", never, { "current": { "alias": "current"; "required": false; }; "href": { "alias": "href"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "bsNavigate": "bsNavigate"; }, never, ["*"], true, never>;
123
133
  }
124
134
  export declare interface BsBreadcrumb extends Components.BsBreadcrumb {
135
+ /**
136
+ * Fires when the crumb's link is clicked, before the browser navigates. **Cancelable**: call
137
+ `event.preventDefault()` to stop the native navigation and route it yourself (an SPA router).
138
+ Detail is `{ href }`. Only a plain primary-button click emits it -- ctrl/cmd/shift/alt-clicks
139
+ and middle-clicks (open in a new tab/window) are left to the browser. Bubbles and is composed,
140
+ so one listener on the surrounding `<bs-breadcrumbs>` covers every crumb.
141
+ */
142
+ bsNavigate: EventEmitter<BsBreadcrumbCustomEvent<{
143
+ href: string;
144
+ }>>;
125
145
  }
126
146
  export declare class BsBreadcrumbOverflow {
127
147
  protected z: NgZone;
128
148
  protected el: HTMLBsBreadcrumbOverflowElement;
149
+ bsNavigate: EventEmitter<BsBreadcrumbOverflowCustomEvent<{
150
+ href: string;
151
+ }>>;
129
152
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
130
153
  static ɵfac: i0.ɵɵFactoryDeclaration<BsBreadcrumbOverflow, never>;
131
- static ɵcmp: i0.ɵɵComponentDeclaration<BsBreadcrumbOverflow, "bs-breadcrumb-overflow", never, { "items": { "alias": "items"; "required": false; }; "overflowLabel": { "alias": "overflowLabel"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], true, never>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsBreadcrumbOverflow, "bs-breadcrumb-overflow", never, { "items": { "alias": "items"; "required": false; }; "overflowLabel": { "alias": "overflowLabel"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "bsNavigate": "bsNavigate"; }, never, ["*"], true, never>;
132
155
  }
133
156
  export declare interface BsBreadcrumbOverflow extends Components.BsBreadcrumbOverflow {
157
+ /**
158
+ * Fires when one of the popup's links is clicked, before the browser navigates. **Cancelable**
159
+ -- see `bs-breadcrumb`'s `bsNavigate`, which this mirrors (same detail, same modified-click
160
+ rule). Detail is `{ href }`.
161
+ */
162
+ bsNavigate: EventEmitter<BsBreadcrumbOverflowCustomEvent<{
163
+ href: string;
164
+ }>>;
134
165
  }
135
166
  export declare class BsBreadcrumbs {
136
167
  protected z: NgZone;
@@ -478,6 +509,22 @@ export declare interface BsDataTable extends Components.BsDataTable {
478
509
  selected: boolean;
479
510
  }>>;
480
511
  }
512
+ export declare class BsDatepicker {
513
+ protected z: NgZone;
514
+ protected el: HTMLBsDatepickerElement;
515
+ bsChange: EventEmitter<BsDatepickerCustomEvent<IBsDatepickerBsDatepickerChange>>;
516
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
517
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepicker, never>;
518
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsDatepicker, "bs-datepicker", never, { "end": { "alias": "end"; "required": false; }; "endLabel": { "alias": "endLabel"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "monthLabel": { "alias": "monthLabel"; "required": false; }; "name": { "alias": "name"; "required": false; }; "nextLabel": { "alias": "nextLabel"; "required": false; }; "previousLabel": { "alias": "previousLabel"; "required": false; }; "range": { "alias": "range"; "required": false; }; "start": { "alias": "start"; "required": false; }; "startLabel": { "alias": "startLabel"; "required": false; }; "value": { "alias": "value"; "required": false; }; "yearLabel": { "alias": "yearLabel"; "required": false; }; }, { "bsChange": "bsChange"; }, never, ["*"], true, never>;
519
+ }
520
+ export declare interface BsDatepicker extends Components.BsDatepicker {
521
+ /**
522
+ * Fires when the user changes the selection. Single mode: `{ value }`. Range mode: `{ start,
523
+ end }` -- fired once for the first click (with an empty `end`) and again when the range is
524
+ completed. Not fired when the props are set programmatically.
525
+ */
526
+ bsChange: EventEmitter<BsDatepickerCustomEvent<IBsDatepickerBsDatepickerChange>>;
527
+ }
481
528
  export declare class BsDialog {
482
529
  protected z: NgZone;
483
530
  protected el: HTMLBsDialogElement;
@@ -544,7 +591,7 @@ export declare class BsInlineTab {
544
591
  bsSelect: EventEmitter<BsInlineTabCustomEvent<void>>;
545
592
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
546
593
  static ɵfac: i0.ɵɵFactoryDeclaration<BsInlineTab, never>;
547
- static ɵcmp: i0.ɵɵComponentDeclaration<BsInlineTab, "bs-inline-tab", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "tabbable": { "alias": "tabbable"; "required": false; }; }, { "bsSelect": "bsSelect"; }, never, ["*"], true, never>;
594
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsInlineTab, "bs-inline-tab", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "tabbable": { "alias": "tabbable"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "bsSelect": "bsSelect"; }, never, ["*"], true, never>;
548
595
  }
549
596
  export declare interface BsInlineTab extends Components.BsInlineTab {
550
597
  /**
@@ -628,9 +675,10 @@ export declare class BsNavigationDrawer {
628
675
  protected el: HTMLBsNavigationDrawerElement;
629
676
  bsCollapse: EventEmitter<BsNavigationDrawerCustomEvent<boolean>>;
630
677
  bsSearchClick: EventEmitter<BsNavigationDrawerCustomEvent<void>>;
678
+ bsClose: EventEmitter<BsNavigationDrawerCustomEvent<void>>;
631
679
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
632
680
  static ɵfac: i0.ɵɵFactoryDeclaration<BsNavigationDrawer, never>;
633
- static ɵcmp: i0.ɵɵComponentDeclaration<BsNavigationDrawer, "bs-navigation-drawer", never, { "collapsed": { "alias": "collapsed"; "required": false; }; "collapsible": { "alias": "collapsible"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "logoBackground": { "alias": "logoBackground"; "required": false; }; "showLogo": { "alias": "showLogo"; "required": false; }; }, { "bsCollapse": "bsCollapse"; "bsSearchClick": "bsSearchClick"; }, never, ["*"], true, never>;
681
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsNavigationDrawer, "bs-navigation-drawer", never, { "collapsed": { "alias": "collapsed"; "required": false; }; "collapsible": { "alias": "collapsible"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "logoBackground": { "alias": "logoBackground"; "required": false; }; "open": { "alias": "open"; "required": false; }; "showLogo": { "alias": "showLogo"; "required": false; }; }, { "bsCollapse": "bsCollapse"; "bsSearchClick": "bsSearchClick"; "bsClose": "bsClose"; }, never, ["*"], true, never>;
634
682
  }
635
683
  export declare interface BsNavigationDrawer extends Components.BsNavigationDrawer {
636
684
  /**
@@ -644,6 +692,11 @@ export declare interface BsNavigationDrawer extends Components.BsNavigationDrawe
644
692
  itself once shrunk to icon size.
645
693
  */
646
694
  bsSearchClick: EventEmitter<BsNavigationDrawerCustomEvent<void>>;
695
+ /**
696
+ * Fires when the user dismisses the overlay (Escape, or a click on the backdrop), after `open`
697
+ has been set back to `false`. Does not fire when you set `open = false` yourself.
698
+ */
699
+ bsClose: EventEmitter<BsNavigationDrawerCustomEvent<void>>;
647
700
  }
648
701
  export declare class BsNavigationDrawerItem {
649
702
  protected z: NgZone;
@@ -822,7 +875,7 @@ export declare class BsTab {
822
875
  bsSelect: EventEmitter<BsTabCustomEvent<void>>;
823
876
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
824
877
  static ɵfac: i0.ɵɵFactoryDeclaration<BsTab, never>;
825
- static ɵcmp: i0.ɵɵComponentDeclaration<BsTab, "bs-tab", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "tabbable": { "alias": "tabbable"; "required": false; }; }, { "bsSelect": "bsSelect"; }, never, ["*"], true, never>;
878
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsTab, "bs-tab", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "tabbable": { "alias": "tabbable"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "bsSelect": "bsSelect"; }, never, ["*"], true, never>;
826
879
  }
827
880
  export declare interface BsTab extends Components.BsTab {
828
881
  /**
@@ -833,11 +886,42 @@ export declare interface BsTab extends Components.BsTab {
833
886
  export declare class BsTabs {
834
887
  protected z: NgZone;
835
888
  protected el: HTMLBsTabsElement;
889
+ bsChange: EventEmitter<BsTabsCustomEvent<{
890
+ value: string;
891
+ }>>;
836
892
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
837
893
  static ɵfac: i0.ɵɵFactoryDeclaration<BsTabs, never>;
838
- static ɵcmp: i0.ɵɵComponentDeclaration<BsTabs, "bs-tabs", never, { "orientation": { "alias": "orientation"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
894
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsTabs, "bs-tabs", never, { "orientation": { "alias": "orientation"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "bsChange": "bsChange"; }, never, ["*"], true, never>;
839
895
  }
840
896
  export declare interface BsTabs extends Components.BsTabs {
897
+ /**
898
+ * Fires when the user selects a different tab (click, or arrow/Home/End), with the new
899
+ `value`. Does not fire when `value` is set programmatically. `bsSelect` on the individual tab
900
+ still fires as before.
901
+ */
902
+ bsChange: EventEmitter<BsTabsCustomEvent<{
903
+ value: string;
904
+ }>>;
905
+ }
906
+ export declare class BsTimepicker {
907
+ protected z: NgZone;
908
+ protected el: HTMLBsTimepickerElement;
909
+ bsChange: EventEmitter<BsTimepickerCustomEvent<IBsTimepickerBsTimepickerChange>>;
910
+ bsCancel: EventEmitter<BsTimepickerCustomEvent<void>>;
911
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
912
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsTimepicker, never>;
913
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsTimepicker, "bs-timepicker", never, { "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "format": { "alias": "format"; "required": false; }; "formatLabel": { "alias": "formatLabel"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "hourLabel": { "alias": "hourLabel"; "required": false; }; "minuteLabel": { "alias": "minuteLabel"; "required": false; }; "minuteStep": { "alias": "minuteStep"; "required": false; }; "name": { "alias": "name"; "required": false; }; "periodLabel": { "alias": "periodLabel"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "bsChange": "bsChange"; "bsCancel": "bsCancel"; }, never, ["*"], true, never>;
914
+ }
915
+ export declare interface BsTimepicker extends Components.BsTimepicker {
916
+ /**
917
+ * Fires when the user presses Confirm: `{ value }` as 24-hour `HH:mm`. Not fired when `value` is
918
+ set programmatically.
919
+ */
920
+ bsChange: EventEmitter<BsTimepickerCustomEvent<IBsTimepickerBsTimepickerChange>>;
921
+ /**
922
+ * Fires when the user presses Cancel. The draft is reset to `value`.
923
+ */
924
+ bsCancel: EventEmitter<BsTimepickerCustomEvent<void>>;
841
925
  }
842
926
  export declare class BsToast {
843
927
  protected z: NgZone;
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import * as d from './components';
2
- export declare const DIRECTIVES: (typeof d.BsAccordion | typeof d.BsAiDisclaimer | typeof d.BsAiGreeting | typeof d.BsAiThinking | typeof d.BsAttachment | typeof d.BsAttachmentList | typeof d.BsAvatar | typeof d.BsBadge | typeof d.BsBreadcrumb | typeof d.BsBreadcrumbOverflow | typeof d.BsBreadcrumbs | typeof d.BsButton | typeof d.BsButtonSkeleton | typeof d.BsCard | typeof d.BsCarousel | typeof d.BsChatbotFeedback | typeof d.BsChatbotHeader | typeof d.BsChatbotResponseAction | typeof d.BsChatbotSourcesDrawer | typeof d.BsChatbotSuggestionButton | typeof d.BsCheckbox | typeof d.BsCheckboxSkeleton | typeof d.BsChipFilter | typeof d.BsChipInformative | typeof d.BsChipInput | typeof d.BsComposer | typeof d.BsComposerStatusBanner | typeof d.BsDataTable | typeof d.BsDialog | typeof d.BsFileUpload | typeof d.BsFileUploadItem | typeof d.BsIconButton | typeof d.BsInlineTab | typeof d.BsInput | typeof d.BsLogo | typeof d.BsMenu | typeof d.BsMenuItem | typeof d.BsNavigationDrawer | typeof d.BsNavigationDrawerItem | typeof d.BsNavigationHeader | typeof d.BsPagination | typeof d.BsProgress | typeof d.BsProgressLinear | typeof d.BsRadio | typeof d.BsSlider | typeof d.BsSnackbar | typeof d.BsSourceLink | typeof d.BsStepper | typeof d.BsStepperStep | typeof d.BsSwitch | typeof d.BsTab | typeof d.BsTabs | typeof d.BsToast | typeof d.BsTooltip)[];
2
+ export declare const DIRECTIVES: (typeof d.BsAccordion | typeof d.BsAiDisclaimer | typeof d.BsAiGreeting | typeof d.BsAiThinking | typeof d.BsAttachment | typeof d.BsAttachmentList | typeof d.BsAvatar | typeof d.BsBadge | typeof d.BsBreadcrumb | typeof d.BsBreadcrumbOverflow | typeof d.BsBreadcrumbs | typeof d.BsButton | typeof d.BsButtonSkeleton | typeof d.BsCard | typeof d.BsCarousel | typeof d.BsChatbotFeedback | typeof d.BsChatbotHeader | typeof d.BsChatbotResponseAction | typeof d.BsChatbotSourcesDrawer | typeof d.BsChatbotSuggestionButton | typeof d.BsCheckbox | typeof d.BsCheckboxSkeleton | typeof d.BsChipFilter | typeof d.BsChipInformative | typeof d.BsChipInput | typeof d.BsComposer | typeof d.BsComposerStatusBanner | typeof d.BsDataTable | typeof d.BsDatepicker | typeof d.BsDialog | typeof d.BsFileUpload | typeof d.BsFileUploadItem | typeof d.BsIconButton | typeof d.BsInlineTab | typeof d.BsInput | typeof d.BsLogo | typeof d.BsMenu | typeof d.BsMenuItem | typeof d.BsNavigationDrawer | typeof d.BsNavigationDrawerItem | typeof d.BsNavigationHeader | typeof d.BsPagination | typeof d.BsProgress | typeof d.BsProgressLinear | typeof d.BsRadio | typeof d.BsSlider | typeof d.BsSnackbar | typeof d.BsSourceLink | typeof d.BsStepper | typeof d.BsStepperStep | typeof d.BsSwitch | typeof d.BsTab | typeof d.BsTabs | typeof d.BsTimepicker | typeof d.BsToast | typeof d.BsTooltip)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandsync/angular",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "description": "Brandsync design system components as Angular standalone components",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -10,7 +10,7 @@
10
10
  "@angular/forms": "^19.0.0"
11
11
  },
12
12
  "dependencies": {
13
- "@brandsync/wc": "^1.8.0",
13
+ "@brandsync/wc": "^1.10.0",
14
14
  "tslib": "^2.3.0"
15
15
  },
16
16
  "license": "MIT",