@agnos-ui/angular-bootstrap 0.10.0-next.1 → 0.10.0-next.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,24 +1,22 @@
1
1
  {
2
2
  "name": "@agnos-ui/angular-bootstrap",
3
3
  "description": "Bootstrap-based component library for Angular.",
4
- "version": "0.10.0-next.1",
4
+ "version": "0.10.0-next.3",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
8
- "types": "./index.d.ts",
9
- "esm2022": "./esm2022/agnos-ui-angular-bootstrap.mjs",
10
- "esm": "./esm2022/agnos-ui-angular-bootstrap.mjs",
8
+ "types": "./types/agnos-ui-angular-bootstrap.d.ts",
11
9
  "default": "./fesm2022/agnos-ui-angular-bootstrap.mjs"
12
10
  }
13
11
  },
14
12
  "peerDependencies": {
15
13
  "@amadeus-it-group/tansu": "^2.0.0",
16
- "@angular/common": "^20.0.0",
17
- "@angular/core": "^20.0.0"
14
+ "@angular/common": "^21.0.0",
15
+ "@angular/core": "^21.0.0"
18
16
  },
19
17
  "dependencies": {
20
- "@agnos-ui/angular-headless": "0.10.0-next.1",
21
- "@agnos-ui/core-bootstrap": "0.10.0-next.1",
18
+ "@agnos-ui/angular-headless": "0.10.0-next.3",
19
+ "@agnos-ui/core-bootstrap": "0.10.0-next.3",
22
20
  "tslib": "^2.8.1"
23
21
  },
24
22
  "sideEffects": false,
@@ -6230,6 +6230,13 @@ interface DrawerState {
6230
6230
  * @defaultValue `false`
6231
6231
  */
6232
6232
  resizable: boolean;
6233
+ /**
6234
+ * Size of the drawer in pixel once the user start interacting.
6235
+ * It corresponds to the height or the width depending on the drawer orientation
6236
+ *
6237
+ * @defaultValue `null`
6238
+ */
6239
+ size: number | null;
6233
6240
  /**
6234
6241
  * Global template for the drawer component
6235
6242
  */
@@ -6289,18 +6296,6 @@ interface DrawerProps {
6289
6296
  * @defaultValue `''`
6290
6297
  */
6291
6298
  ariaDescribedBy: string;
6292
- /**
6293
- * The width of the drawer in pixels.
6294
- *
6295
- * @defaultValue `200`
6296
- */
6297
- width: number;
6298
- /**
6299
- * The height of the drawer in pixels.
6300
- *
6301
- * @defaultValue `200`
6302
- */
6303
- height: number;
6304
6299
  /**
6305
6300
  * If `true` displays the backdrop element and disables the body scrolling, otherwise the body of the document is navigable
6306
6301
  *
@@ -6332,38 +6327,54 @@ interface DrawerProps {
6332
6327
  */
6333
6328
  onShown: () => void;
6334
6329
  /**
6335
- * An event emitted when the width is changed.
6330
+ * An event emitted when the drawer size changes (width or height depending on the orientation).
6336
6331
  *
6337
- * Event payload is equal to the newly selected width.
6332
+ * Event payload is equal to the newly selected width or height.
6338
6333
  *
6339
6334
  * @defaultValue
6340
6335
  * ```ts
6341
6336
  * () => {}
6342
6337
  * ```
6343
6338
  */
6344
- onWidthChange: (width: number) => void;
6339
+ onSizeChange: (size: number | null) => void;
6345
6340
  /**
6346
- * An event emitted when the height is changed.
6341
+ * Event to be triggered when the visible property changes.
6347
6342
  *
6348
- * Event payload is equal to the newly selected height.
6343
+ * @param visible - new value of the visible propery
6349
6344
  *
6350
6345
  * @defaultValue
6351
6346
  * ```ts
6352
6347
  * () => {}
6353
6348
  * ```
6354
6349
  */
6355
- onHeightChange: (width: number) => void;
6350
+ onVisibleChange: (visible: boolean) => void;
6356
6351
  /**
6357
- * Event to be triggered when the visible property changes.
6352
+ * Event to be triggered when the minimized state changes.
6358
6353
  *
6359
- * @param visible - new value of the visible propery
6354
+ * @defaultValue
6355
+ * ```ts
6356
+ * () => {}
6357
+ * ```
6358
+ */
6359
+ onMinimizedChange: (isMinimized: boolean) => void;
6360
+ /**
6361
+ * Event to be triggered when the maximized state changes.
6360
6362
  *
6361
6363
  * @defaultValue
6362
6364
  * ```ts
6363
6365
  * () => {}
6364
6366
  * ```
6365
6367
  */
6366
- onVisibleChange: (visible: boolean) => void;
6368
+ onMaximizedChange: (isMaximized: boolean) => void;
6369
+ /**
6370
+ * Event to be triggered when the user starts or stops resizing the drawer.
6371
+ *
6372
+ * @defaultValue
6373
+ * ```ts
6374
+ * () => {}
6375
+ * ```
6376
+ */
6377
+ onResizingChange: (isResizing: boolean) => void;
6367
6378
  /**
6368
6379
  * CSS classes to be applied on the widget main container
6369
6380
  *
@@ -6399,6 +6410,13 @@ interface DrawerProps {
6399
6410
  * @defaultValue `false`
6400
6411
  */
6401
6412
  resizable: boolean;
6413
+ /**
6414
+ * Size of the drawer in pixel once the user start interacting.
6415
+ * It corresponds to the height or the width depending on the drawer orientation
6416
+ *
6417
+ * @defaultValue `null`
6418
+ */
6419
+ size: number | null;
6402
6420
  /**
6403
6421
  * Global template for the drawer component
6404
6422
  */
@@ -6581,6 +6599,13 @@ declare class DrawerComponent extends BaseWidgetDirective<DrawerWidget> {
6581
6599
  * @defaultValue `false`
6582
6600
  */
6583
6601
  readonly bodyScroll: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
6602
+ /**
6603
+ * Size of the drawer in pixel once the user start interacting.
6604
+ * It corresponds to the height or the width depending on the drawer orientation
6605
+ *
6606
+ * @defaultValue `null`
6607
+ */
6608
+ readonly size: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
6584
6609
  /**
6585
6610
  * Classes to add on the backdrop DOM element.
6586
6611
  *
@@ -6600,50 +6625,54 @@ declare class DrawerComponent extends BaseWidgetDirective<DrawerWidget> {
6600
6625
  */
6601
6626
  readonly resizable: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
6602
6627
  /**
6603
- * The width of the drawer in pixels.
6628
+ * An event emitted when the drawer size changes (width or height depending on the orientation).
6604
6629
  *
6605
- * @defaultValue `200`
6606
- */
6607
- readonly width: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
6608
- /**
6609
- * The height of the drawer in pixels.
6630
+ * Event payload is equal to the newly selected width or height.
6610
6631
  *
6611
- * @defaultValue `200`
6632
+ * @defaultValue
6633
+ * ```ts
6634
+ * () => {}
6635
+ * ```
6612
6636
  */
6613
- readonly height: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
6637
+ readonly sizeChange: _angular_core.OutputEmitterRef<number | null>;
6614
6638
  /**
6615
- * An event emitted when the width is changed.
6639
+ * Event to be triggered when the visible property changes.
6616
6640
  *
6617
- * Event payload is equal to the newly selected width.
6641
+ * @param visible - new value of the visible propery
6618
6642
  *
6619
6643
  * @defaultValue
6620
6644
  * ```ts
6621
6645
  * () => {}
6622
6646
  * ```
6623
6647
  */
6624
- readonly widthChange: _angular_core.OutputEmitterRef<number>;
6648
+ readonly visibleChange: _angular_core.OutputEmitterRef<boolean>;
6625
6649
  /**
6626
- * An event emitted when the height is changed.
6627
- *
6628
- * Event payload is equal to the newly selected height.
6650
+ * Event to be triggered when the minimized state changes.
6629
6651
  *
6630
6652
  * @defaultValue
6631
6653
  * ```ts
6632
6654
  * () => {}
6633
6655
  * ```
6634
6656
  */
6635
- readonly heightChange: _angular_core.OutputEmitterRef<number>;
6657
+ readonly minimizedChange: _angular_core.OutputEmitterRef<boolean>;
6636
6658
  /**
6637
- * Event to be triggered when the visible property changes.
6659
+ * Event to be triggered when the maximized state changes.
6638
6660
  *
6639
- * @param visible - new value of the visible propery
6661
+ * @defaultValue
6662
+ * ```ts
6663
+ * () => {}
6664
+ * ```
6665
+ */
6666
+ readonly maximizedChange: _angular_core.OutputEmitterRef<boolean>;
6667
+ /**
6668
+ * Event to be triggered when the user starts or stops resizing the drawer.
6640
6669
  *
6641
6670
  * @defaultValue
6642
6671
  * ```ts
6643
6672
  * () => {}
6644
6673
  * ```
6645
6674
  */
6646
- readonly visibleChange: _angular_core.OutputEmitterRef<boolean>;
6675
+ readonly resizingChange: _angular_core.OutputEmitterRef<boolean>;
6647
6676
  /**
6648
6677
  * Event to be triggered when the transition is completed and the drawer is not visible.
6649
6678
  *
@@ -6680,7 +6709,7 @@ declare class DrawerComponent extends BaseWidgetDirective<DrawerWidget> {
6680
6709
  readonly slotBodyFromContent: _angular_core.Signal<DrawerBodyDirective | undefined>;
6681
6710
  readonly slotChildren: _angular_core.Signal<TemplateRef<void> | undefined>;
6682
6711
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DrawerComponent, never>;
6683
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DrawerComponent, "[auDrawer]", never, { "animated": { "alias": "auAnimated"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "auAriaLabelledBy"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "auAriaDescribedBy"; "required": false; "isSignal": true; }; "visible": { "alias": "auVisible"; "required": false; "isSignal": true; }; "verticalTransition": { "alias": "auVerticalTransition"; "required": false; "isSignal": true; }; "transition": { "alias": "auTransition"; "required": false; "isSignal": true; }; "backdropTransition": { "alias": "auBackdropTransition"; "required": false; "isSignal": true; }; "container": { "alias": "auContainer"; "required": false; "isSignal": true; }; "backdrop": { "alias": "auBackdrop"; "required": false; "isSignal": true; }; "bodyScroll": { "alias": "auBodyScroll"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "auBackdropClass"; "required": false; "isSignal": true; }; "className": { "alias": "auClassName"; "required": false; "isSignal": true; }; "resizable": { "alias": "auResizable"; "required": false; "isSignal": true; }; "width": { "alias": "auWidth"; "required": false; "isSignal": true; }; "height": { "alias": "auHeight"; "required": false; "isSignal": true; }; "structure": { "alias": "auStructure"; "required": false; "isSignal": true; }; "header": { "alias": "auHeader"; "required": false; "isSignal": true; }; "children": { "alias": "auChildren"; "required": false; "isSignal": true; }; }, { "widthChange": "auWidthChange"; "heightChange": "auHeightChange"; "visibleChange": "auVisibleChange"; "hidden": "auHidden"; "shown": "auShown"; }, ["slotStructureFromContent", "slotHeaderFromContent", "slotBodyFromContent"], ["*"], true, never>;
6712
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DrawerComponent, "[auDrawer]", never, { "animated": { "alias": "auAnimated"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "auAriaLabelledBy"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "auAriaDescribedBy"; "required": false; "isSignal": true; }; "visible": { "alias": "auVisible"; "required": false; "isSignal": true; }; "verticalTransition": { "alias": "auVerticalTransition"; "required": false; "isSignal": true; }; "transition": { "alias": "auTransition"; "required": false; "isSignal": true; }; "backdropTransition": { "alias": "auBackdropTransition"; "required": false; "isSignal": true; }; "container": { "alias": "auContainer"; "required": false; "isSignal": true; }; "backdrop": { "alias": "auBackdrop"; "required": false; "isSignal": true; }; "bodyScroll": { "alias": "auBodyScroll"; "required": false; "isSignal": true; }; "size": { "alias": "auSize"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "auBackdropClass"; "required": false; "isSignal": true; }; "className": { "alias": "auClassName"; "required": false; "isSignal": true; }; "resizable": { "alias": "auResizable"; "required": false; "isSignal": true; }; "structure": { "alias": "auStructure"; "required": false; "isSignal": true; }; "header": { "alias": "auHeader"; "required": false; "isSignal": true; }; "children": { "alias": "auChildren"; "required": false; "isSignal": true; }; }, { "sizeChange": "auSizeChange"; "visibleChange": "auVisibleChange"; "minimizedChange": "auMinimizedChange"; "maximizedChange": "auMaximizedChange"; "resizingChange": "auResizingChange"; "hidden": "auHidden"; "shown": "auShown"; }, ["slotStructureFromContent", "slotHeaderFromContent", "slotBodyFromContent"], ["*"], true, never>;
6684
6713
  }
6685
6714
 
6686
6715
  declare class AgnosUIAngularModule {