@cute-widgets/base 20.0.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.
Files changed (183) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/LICENSE.md +191 -0
  3. package/README.md +190 -0
  4. package/abstract/index.d.ts +327 -0
  5. package/alert/index.d.ts +68 -0
  6. package/autocomplete/index.d.ts +442 -0
  7. package/badge/index.d.ts +26 -0
  8. package/bottom-sheet/index.d.ts +231 -0
  9. package/button/index.d.ts +182 -0
  10. package/button-toggle/index.d.ts +225 -0
  11. package/card/index.d.ts +163 -0
  12. package/checkbox/index.d.ts +174 -0
  13. package/chips/index.d.ts +963 -0
  14. package/collapse/index.d.ts +97 -0
  15. package/core/animation/index.d.ts +43 -0
  16. package/core/datetime/index.d.ts +404 -0
  17. package/core/directives/index.d.ts +168 -0
  18. package/core/error/index.d.ts +74 -0
  19. package/core/index.d.ts +1039 -0
  20. package/core/interfaces/index.d.ts +114 -0
  21. package/core/layout/index.d.ts +53 -0
  22. package/core/line/index.d.ts +37 -0
  23. package/core/nav/index.d.ts +321 -0
  24. package/core/observers/index.d.ts +124 -0
  25. package/core/option/index.d.ts +185 -0
  26. package/core/pipes/index.d.ts +53 -0
  27. package/core/ripple/index.d.ts +66 -0
  28. package/core/testing/index.d.ts +154 -0
  29. package/core/theming/index.d.ts +118 -0
  30. package/core/types/index.d.ts +53 -0
  31. package/core/utils/index.d.ts +129 -0
  32. package/cute-widgets-base-20.0.1.tgz +0 -0
  33. package/datepicker/index.d.ts +1817 -0
  34. package/dialog/index.d.ts +484 -0
  35. package/divider/index.d.ts +24 -0
  36. package/expansion/README.md +8 -0
  37. package/expansion/index.d.ts +308 -0
  38. package/fesm2022/cute-widgets-base-abstract.mjs +547 -0
  39. package/fesm2022/cute-widgets-base-abstract.mjs.map +1 -0
  40. package/fesm2022/cute-widgets-base-alert.mjs +198 -0
  41. package/fesm2022/cute-widgets-base-alert.mjs.map +1 -0
  42. package/fesm2022/cute-widgets-base-autocomplete.mjs +1217 -0
  43. package/fesm2022/cute-widgets-base-autocomplete.mjs.map +1 -0
  44. package/fesm2022/cute-widgets-base-badge.mjs +75 -0
  45. package/fesm2022/cute-widgets-base-badge.mjs.map +1 -0
  46. package/fesm2022/cute-widgets-base-bottom-sheet.mjs +416 -0
  47. package/fesm2022/cute-widgets-base-bottom-sheet.mjs.map +1 -0
  48. package/fesm2022/cute-widgets-base-button-toggle.mjs +640 -0
  49. package/fesm2022/cute-widgets-base-button-toggle.mjs.map +1 -0
  50. package/fesm2022/cute-widgets-base-button.mjs +546 -0
  51. package/fesm2022/cute-widgets-base-button.mjs.map +1 -0
  52. package/fesm2022/cute-widgets-base-card.mjs +471 -0
  53. package/fesm2022/cute-widgets-base-card.mjs.map +1 -0
  54. package/fesm2022/cute-widgets-base-checkbox.mjs +390 -0
  55. package/fesm2022/cute-widgets-base-checkbox.mjs.map +1 -0
  56. package/fesm2022/cute-widgets-base-chips.mjs +2360 -0
  57. package/fesm2022/cute-widgets-base-chips.mjs.map +1 -0
  58. package/fesm2022/cute-widgets-base-collapse.mjs +259 -0
  59. package/fesm2022/cute-widgets-base-collapse.mjs.map +1 -0
  60. package/fesm2022/cute-widgets-base-core-animation.mjs +53 -0
  61. package/fesm2022/cute-widgets-base-core-animation.mjs.map +1 -0
  62. package/fesm2022/cute-widgets-base-core-datetime.mjs +568 -0
  63. package/fesm2022/cute-widgets-base-core-datetime.mjs.map +1 -0
  64. package/fesm2022/cute-widgets-base-core-directives.mjs +404 -0
  65. package/fesm2022/cute-widgets-base-core-directives.mjs.map +1 -0
  66. package/fesm2022/cute-widgets-base-core-error.mjs +105 -0
  67. package/fesm2022/cute-widgets-base-core-error.mjs.map +1 -0
  68. package/fesm2022/cute-widgets-base-core-interfaces.mjs +22 -0
  69. package/fesm2022/cute-widgets-base-core-interfaces.mjs.map +1 -0
  70. package/fesm2022/cute-widgets-base-core-layout.mjs +74 -0
  71. package/fesm2022/cute-widgets-base-core-layout.mjs.map +1 -0
  72. package/fesm2022/cute-widgets-base-core-line.mjs +87 -0
  73. package/fesm2022/cute-widgets-base-core-line.mjs.map +1 -0
  74. package/fesm2022/cute-widgets-base-core-nav.mjs +863 -0
  75. package/fesm2022/cute-widgets-base-core-nav.mjs.map +1 -0
  76. package/fesm2022/cute-widgets-base-core-observers.mjs +304 -0
  77. package/fesm2022/cute-widgets-base-core-observers.mjs.map +1 -0
  78. package/fesm2022/cute-widgets-base-core-option.mjs +373 -0
  79. package/fesm2022/cute-widgets-base-core-option.mjs.map +1 -0
  80. package/fesm2022/cute-widgets-base-core-pipes.mjs +97 -0
  81. package/fesm2022/cute-widgets-base-core-pipes.mjs.map +1 -0
  82. package/fesm2022/cute-widgets-base-core-ripple.mjs +172 -0
  83. package/fesm2022/cute-widgets-base-core-ripple.mjs.map +1 -0
  84. package/fesm2022/cute-widgets-base-core-testing.mjs +210 -0
  85. package/fesm2022/cute-widgets-base-core-testing.mjs.map +1 -0
  86. package/fesm2022/cute-widgets-base-core-theming.mjs +314 -0
  87. package/fesm2022/cute-widgets-base-core-theming.mjs.map +1 -0
  88. package/fesm2022/cute-widgets-base-core-types.mjs +22 -0
  89. package/fesm2022/cute-widgets-base-core-types.mjs.map +1 -0
  90. package/fesm2022/cute-widgets-base-core-utils.mjs +257 -0
  91. package/fesm2022/cute-widgets-base-core-utils.mjs.map +1 -0
  92. package/fesm2022/cute-widgets-base-core.mjs +1600 -0
  93. package/fesm2022/cute-widgets-base-core.mjs.map +1 -0
  94. package/fesm2022/cute-widgets-base-datepicker.mjs +4827 -0
  95. package/fesm2022/cute-widgets-base-datepicker.mjs.map +1 -0
  96. package/fesm2022/cute-widgets-base-dialog.mjs +1046 -0
  97. package/fesm2022/cute-widgets-base-dialog.mjs.map +1 -0
  98. package/fesm2022/cute-widgets-base-divider.mjs +86 -0
  99. package/fesm2022/cute-widgets-base-divider.mjs.map +1 -0
  100. package/fesm2022/cute-widgets-base-expansion.mjs +623 -0
  101. package/fesm2022/cute-widgets-base-expansion.mjs.map +1 -0
  102. package/fesm2022/cute-widgets-base-form-field.mjs +969 -0
  103. package/fesm2022/cute-widgets-base-form-field.mjs.map +1 -0
  104. package/fesm2022/cute-widgets-base-grid-list.mjs +715 -0
  105. package/fesm2022/cute-widgets-base-grid-list.mjs.map +1 -0
  106. package/fesm2022/cute-widgets-base-icon.mjs +1105 -0
  107. package/fesm2022/cute-widgets-base-icon.mjs.map +1 -0
  108. package/fesm2022/cute-widgets-base-input.mjs +726 -0
  109. package/fesm2022/cute-widgets-base-input.mjs.map +1 -0
  110. package/fesm2022/cute-widgets-base-layout-container.mjs +95 -0
  111. package/fesm2022/cute-widgets-base-layout-container.mjs.map +1 -0
  112. package/fesm2022/cute-widgets-base-layout-stack.mjs +166 -0
  113. package/fesm2022/cute-widgets-base-layout-stack.mjs.map +1 -0
  114. package/fesm2022/cute-widgets-base-layout.mjs +250 -0
  115. package/fesm2022/cute-widgets-base-layout.mjs.map +1 -0
  116. package/fesm2022/cute-widgets-base-list.mjs +1557 -0
  117. package/fesm2022/cute-widgets-base-list.mjs.map +1 -0
  118. package/fesm2022/cute-widgets-base-menu.mjs +1283 -0
  119. package/fesm2022/cute-widgets-base-menu.mjs.map +1 -0
  120. package/fesm2022/cute-widgets-base-navbar.mjs +359 -0
  121. package/fesm2022/cute-widgets-base-navbar.mjs.map +1 -0
  122. package/fesm2022/cute-widgets-base-paginator.mjs +485 -0
  123. package/fesm2022/cute-widgets-base-paginator.mjs.map +1 -0
  124. package/fesm2022/cute-widgets-base-progress.mjs +321 -0
  125. package/fesm2022/cute-widgets-base-progress.mjs.map +1 -0
  126. package/fesm2022/cute-widgets-base-radio.mjs +637 -0
  127. package/fesm2022/cute-widgets-base-radio.mjs.map +1 -0
  128. package/fesm2022/cute-widgets-base-select.mjs +1208 -0
  129. package/fesm2022/cute-widgets-base-select.mjs.map +1 -0
  130. package/fesm2022/cute-widgets-base-sidenav.mjs +1095 -0
  131. package/fesm2022/cute-widgets-base-sidenav.mjs.map +1 -0
  132. package/fesm2022/cute-widgets-base-slider.mjs +99 -0
  133. package/fesm2022/cute-widgets-base-slider.mjs.map +1 -0
  134. package/fesm2022/cute-widgets-base-snack-bar.mjs +897 -0
  135. package/fesm2022/cute-widgets-base-snack-bar.mjs.map +1 -0
  136. package/fesm2022/cute-widgets-base-sort.mjs +639 -0
  137. package/fesm2022/cute-widgets-base-sort.mjs.map +1 -0
  138. package/fesm2022/cute-widgets-base-spinner.mjs +154 -0
  139. package/fesm2022/cute-widgets-base-spinner.mjs.map +1 -0
  140. package/fesm2022/cute-widgets-base-stepper.mjs +673 -0
  141. package/fesm2022/cute-widgets-base-stepper.mjs.map +1 -0
  142. package/fesm2022/cute-widgets-base-table.mjs +1023 -0
  143. package/fesm2022/cute-widgets-base-table.mjs.map +1 -0
  144. package/fesm2022/cute-widgets-base-tabs.mjs +729 -0
  145. package/fesm2022/cute-widgets-base-tabs.mjs.map +1 -0
  146. package/fesm2022/cute-widgets-base-timepicker.mjs +965 -0
  147. package/fesm2022/cute-widgets-base-timepicker.mjs.map +1 -0
  148. package/fesm2022/cute-widgets-base-toolbar.mjs +120 -0
  149. package/fesm2022/cute-widgets-base-toolbar.mjs.map +1 -0
  150. package/fesm2022/cute-widgets-base-tooltip.mjs +947 -0
  151. package/fesm2022/cute-widgets-base-tooltip.mjs.map +1 -0
  152. package/fesm2022/cute-widgets-base-tree.mjs +598 -0
  153. package/fesm2022/cute-widgets-base-tree.mjs.map +1 -0
  154. package/fesm2022/cute-widgets-base.mjs +68 -0
  155. package/fesm2022/cute-widgets-base.mjs.map +1 -0
  156. package/form-field/index.d.ts +401 -0
  157. package/grid-list/index.d.ts +361 -0
  158. package/icon/index.d.ts +477 -0
  159. package/index.d.ts +3 -0
  160. package/input/index.d.ts +256 -0
  161. package/layout/container/index.d.ts +31 -0
  162. package/layout/index.d.ts +78 -0
  163. package/layout/stack/index.d.ts +52 -0
  164. package/list/index.d.ts +659 -0
  165. package/menu/index.d.ts +497 -0
  166. package/navbar/index.d.ts +91 -0
  167. package/package.json +279 -0
  168. package/paginator/index.d.ts +216 -0
  169. package/progress/index.d.ts +130 -0
  170. package/radio/index.d.ts +259 -0
  171. package/select/index.d.ts +426 -0
  172. package/sidenav/index.d.ts +369 -0
  173. package/slider/index.d.ts +48 -0
  174. package/snack-bar/index.d.ts +374 -0
  175. package/sort/index.d.ts +334 -0
  176. package/spinner/index.d.ts +70 -0
  177. package/stepper/index.d.ts +295 -0
  178. package/table/index.d.ts +395 -0
  179. package/tabs/index.d.ts +307 -0
  180. package/timepicker/index.d.ts +350 -0
  181. package/toolbar/index.d.ts +36 -0
  182. package/tooltip/index.d.ts +299 -0
  183. package/tree/index.d.ts +314 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cute-widgets-base-sidenav.mjs","sources":["../../../../projects/cute-widgets/base/sidenav/src/drawer.ts","../../../../projects/cute-widgets/base/sidenav/src/drawer.html","../../../../projects/cute-widgets/base/sidenav/src/drawer-container.html","../../../../projects/cute-widgets/base/sidenav/src/sidenav.ts","../../../../projects/cute-widgets/base/sidenav/src/sidenav-container.html","../../../../projects/cute-widgets/base/sidenav/src/sidenav.module.ts","../../../../projects/cute-widgets/base/sidenav/cute-widgets-base-sidenav.ts"],"sourcesContent":["/**\r\n * @license Apache-2.0\r\n *\r\n * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.\r\n *\r\n * You may not use this file except in compliance with the License\r\n * that can be found at http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * This code is a modification of the `@angular/material` original\r\n * code licensed under MIT-style License (https://angular.dev/license).\r\n */\r\nimport {\r\n FocusMonitor,\r\n FocusOrigin,\r\n FocusTrap,\r\n FocusTrapFactory,\r\n InteractivityChecker,\r\n} from '@angular/cdk/a11y';\r\nimport {Directionality} from '@angular/cdk/bidi';\r\nimport {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\r\nimport {ESCAPE, hasModifierKey} from '@angular/cdk/keycodes';\r\nimport {Platform} from '@angular/cdk/platform';\r\nimport {CdkScrollable, ScrollDispatcher, ViewportRuler} from '@angular/cdk/scrolling';\r\nimport {\r\n AfterContentInit,\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n ContentChild,\r\n ContentChildren,\r\n DoCheck,\r\n ElementRef,\r\n EventEmitter,\r\n InjectionToken,\r\n Input, isDevMode,\r\n NgZone,\r\n OnDestroy,\r\n Output,\r\n QueryList,\r\n ViewChild,\r\n ViewEncapsulation,\r\n DOCUMENT, inject, Injector, afterNextRender, signal\r\n} from '@angular/core';\r\nimport {fromEvent, merge, Observable, Subject} from 'rxjs';\r\nimport {\r\n debounceTime,\r\n filter,\r\n map,\r\n startWith,\r\n take,\r\n takeUntil,\r\n} from 'rxjs/operators';\r\nimport {_animationsDisabled} from \"@cute-widgets/base/core/animation\";\r\nimport {CuteLayoutControl, Expandable} from \"@cute-widgets/base/abstract\";\r\n\r\n/**\r\n * Throws an exception when two CuteDrawer are matching the same position.\r\n */\r\nexport function throwCuteDuplicatedDrawerError(position: string) {\r\n throw Error(`A drawer was already declared for 'position=\"${position}\"'`);\r\n}\r\n\r\n/** Options for where to set focus to automatically on dialog open */\r\nexport type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';\r\n\r\n/** Result of the toggle promise that indicates the state of the drawer. */\r\nexport type CuteDrawerToggleResult = 'open' | 'close';\r\n\r\n/** Drawer and SideNav display modes. */\r\nexport type CuteDrawerMode = 'over' | 'push' | 'side';\r\n\r\n/** Configures whether drawers should use auto sizing by default. */\r\nexport const CUTE_DRAWER_DEFAULT_AUTOSIZE = new InjectionToken<boolean>(\r\n 'CUTE_DRAWER_DEFAULT_AUTOSIZE',\r\n {\r\n providedIn: 'root',\r\n factory: () => false,\r\n },\r\n);\r\n\r\n/**\r\n * Used to provide a drawer container to a drawer while avoiding circular references.\r\n */\r\nexport const CUTE_DRAWER_CONTAINER = new InjectionToken('CUTE_DRAWER_CONTAINER');\r\n\r\n/**\r\n * The main content of the 'cute-drawer' component\r\n */\r\n@Component({\r\n selector: 'cute-drawer-content',\r\n template: '<ng-content></ng-content>',\r\n host: {\r\n 'class': 'cute-drawer-content',\r\n '[class.cute-drawer-content-hidden]': '_shouldBeHidden()',\r\n '[style.margin-left.px]': '_container._contentMargins.left',\r\n '[style.margin-right.px]': '_container._contentMargins.right',\r\n },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [\r\n {\r\n provide: CdkScrollable,\r\n useExisting: CuteDrawerContent,\r\n },\r\n ],\r\n standalone: true,\r\n})\r\nexport class CuteDrawerContent extends CdkScrollable implements AfterContentInit {\r\n private _platform = inject(Platform);\r\n private _changeDetectorRef = inject(ChangeDetectorRef);\r\n _container = inject(CuteDrawerContainer);\r\n\r\n protected generateId(): string {\r\n return \"\";\r\n }\r\n\r\n constructor(...args: unknown[]);\r\n constructor() {\r\n const elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\r\n const scrollDispatcher = inject(ScrollDispatcher);\r\n const ngZone = inject(NgZone);\r\n\r\n super(elementRef, scrollDispatcher, ngZone);\r\n }\r\n\r\n ngAfterContentInit() {\r\n this._container._contentMarginChanges.subscribe(() => {\r\n this._changeDetectorRef.markForCheck();\r\n });\r\n }\r\n\r\n /** Determines whether the content element should be hidden from the user. */\r\n protected _shouldBeHidden(): boolean {\r\n // In some modes the content is pushed based on the width of the opened sidenavs, however on\r\n // the server we can't measure the sidenav so the margin is always zero. This can cause the\r\n // content to jump around when it's rendered on the server and hydrated on the client. We\r\n // avoid it by hiding the content on the initial render and then showing it once the sidenav\r\n // has been measured on the client.\r\n if (this._platform.isBrowser) {\r\n return false;\r\n }\r\n\r\n const {start, end} = this._container;\r\n return (\r\n (start != null && start.mode !== 'over' && start.opened) ||\r\n (end != null && end.mode !== 'over' && end.opened)\r\n );\r\n }\r\n\r\n}\r\n\r\n/**\r\n * This component corresponds to a drawer that can be opened on the drawer container.\r\n */\r\n@Component({\r\n selector: 'cute-drawer',\r\n exportAs: 'cuteDrawer',\r\n templateUrl: './drawer.html',\r\n host: {\r\n 'class': 'cute-drawer',\r\n // must prevent the browser from aligning text based on value\r\n '[attr.align]': 'null',\r\n '[class.cute-drawer-end]': 'position === \"end\"',\r\n '[class.cute-drawer-over]': 'mode === \"over\"',\r\n '[class.cute-drawer-push]': 'mode === \"push\"',\r\n '[class.cute-drawer-side]': 'mode === \"side\"',\r\n // The styles that render the sidenav off-screen come from the drawer container. Prior to #30235\r\n // this was also done by the animations module which some internal tests seem to depend on.\r\n // Simulate it by toggling the `hidden` attribute instead.\r\n '[style.visibility]': '(!_container && !opened) ? \"hidden\" : null', // The sidenav container should not be focused on when used in side mode. See b/286459024 for\r\n // reference. Updates tabIndex of drawer/container to default to null if in side mode.\r\n '[attr.tabIndex]': '(mode !== \"side\") ? \"-1\" : null',\r\n },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n imports: [CdkScrollable]\r\n})\r\nexport class CuteDrawer extends CuteLayoutControl implements Expandable, AfterViewInit, OnDestroy {\r\n private _focusTrapFactory = inject(FocusTrapFactory);\r\n private _focusMonitor = inject(FocusMonitor);\r\n private _platform = inject(Platform);\r\n private _ngZone = inject(NgZone);\r\n private readonly _interactivityChecker = inject(InteractivityChecker);\r\n private _doc = inject(DOCUMENT);\r\n _container? = inject<CuteDrawerContainer>(CUTE_DRAWER_CONTAINER, {optional: true});\r\n\r\n private _focusTrap: FocusTrap | undefined;\r\n private _elementFocusedBeforeDrawerWasOpened: HTMLElement | null = null;\r\n private _eventCleanups: (() => void)[] = [];\r\n\r\n /** Whether the view of the component has been attached. */\r\n private _isAttached: boolean = false;\r\n\r\n /** Anchor node used to restore the drawer to its initial position. */\r\n private _anchor: Comment | null = null;\r\n\r\n /** Subject that emits when the component has been destroyed. */\r\n protected readonly _destroyed = new Subject<void>();\r\n\r\n /** The side that the drawer is attached to. */\r\n @Input()\r\n get position(): 'start' | 'end' { return this._position; }\r\n set position(value: 'start' | 'end') {\r\n // Make sure we have a valid value.\r\n value = value === 'end' ? 'end' : 'start';\r\n if (value !== this._position) {\r\n // Static inputs in Ivy are set before the element is in the DOM.\r\n if (this._isAttached) {\r\n this._updatePositionInParent(value);\r\n }\r\n\r\n this._position = value;\r\n this.onPositionChanged.emit();\r\n }\r\n }\r\n private _position: 'start' | 'end' = 'start';\r\n\r\n /** Mode of the drawer; one of 'over', 'push' or 'side'. */\r\n @Input()\r\n get mode(): CuteDrawerMode { return this._mode; }\r\n set mode(value: CuteDrawerMode) {\r\n this._mode = value;\r\n this._updateFocusTrapState();\r\n this._modeChanged.next();\r\n }\r\n private _mode: CuteDrawerMode = 'over';\r\n\r\n /** Whether the drawer can be closed with the escape key or by clicking on the backdrop. */\r\n @Input()\r\n get disableClose(): boolean { return this._disableClose; }\r\n set disableClose(value: BooleanInput) {\r\n this._disableClose = coerceBooleanProperty(value);\r\n }\r\n private _disableClose: boolean = false;\r\n\r\n /**\r\n * Whether the drawer should focus the first focusable element automatically when opened.\r\n * Defaults to false in when `mode` is set to `side`, otherwise defaults to `true`. If explicitly\r\n * enabled, focus will be moved into the sidenav in `side` mode as well.\r\n * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or AutoFocusTarget\r\n * instead.\r\n */\r\n @Input()\r\n get autoFocus(): AutoFocusTarget | string | boolean {\r\n const value = this._autoFocus;\r\n\r\n // Note that usually we don't allow autoFocus to be set to `first-tabbable` in `side` mode,\r\n // because we don't know how the sidenav is being used, but in some cases it still makes\r\n // sense to do it. The consumer can explicitly set `autoFocus`.\r\n if (value == null) {\r\n if (this.mode === 'side') {\r\n return 'dialog';\r\n } else {\r\n return 'first-tabbable';\r\n }\r\n }\r\n return value;\r\n }\r\n set autoFocus(value: AutoFocusTarget | string | BooleanInput) {\r\n if (value === 'true' || value === 'false' || value == null) {\r\n value = coerceBooleanProperty(value);\r\n }\r\n this._autoFocus = value;\r\n }\r\n private _autoFocus: AutoFocusTarget | string | boolean | undefined;\r\n\r\n /**\r\n * Whether the drawer is opened. We overload this because we trigger an event when it\r\n * starts or ends.\r\n */\r\n @Input()\r\n get opened(): boolean { return this._opened(); }\r\n set opened(value: BooleanInput) {\r\n this.toggle(coerceBooleanProperty(value));\r\n }\r\n private _opened = signal(false);\r\n\r\n /** How the sidenav was opened (keypress, mouse click etc.) */\r\n private _openedVia: FocusOrigin | null = null;\r\n\r\n /** Emits whenever the drawer has started animating. */\r\n readonly _animationStarted = new Subject();\r\n\r\n /** Emits whenever the drawer is done animating. */\r\n readonly _animationEnd = new Subject();\r\n\r\n /** Event emitted when the drawer open state is changed. */\r\n @Output() readonly openedChange: EventEmitter<boolean> =\r\n // Note this has to be async to avoid some issues with two-bindings (see #8872).\r\n new EventEmitter<boolean>(/* isAsync */ true);\r\n\r\n /** Event emitted when the drawer has been opened. */\r\n @Output('opened')\r\n readonly _openedStream: Observable<void> = this.openedChange.pipe(\r\n filter(o => o),\r\n map(() => {}),\r\n );\r\n\r\n /** Event emitted when the drawer has started opening. */\r\n @Output()\r\n readonly openedStart: Observable<void> = this._animationStarted.pipe(\r\n filter(() => this.opened),\r\n map(() => undefined),\r\n );\r\n\r\n /** Event emitted when the drawer has been closed. */\r\n @Output('closed')\r\n readonly _closedStream = this.openedChange.pipe(\r\n filter(o => !o),\r\n map(() => {}),\r\n );\r\n\r\n /** Event emitted when the drawer has started closing. */\r\n @Output()\r\n readonly closedStart: Observable<void> = this._animationStarted.pipe(\r\n filter(() => !this.opened),\r\n map(()=> undefined),\r\n );\r\n\r\n /** Event emitted when the drawer's position changes. */\r\n @Output('positionChanged') readonly onPositionChanged = new EventEmitter<void>();\r\n\r\n /** Reference to the inner element that contains all the content. */\r\n @ViewChild('content') _content: ElementRef<HTMLElement> | undefined;\r\n\r\n /** Implementation of `Expandable` interface */\r\n get expanded(): boolean { return this.opened; }\r\n\r\n /**\r\n * An observable that emits when the drawer mode changes. This is used by the drawer container to know\r\n * when to when the mode changes, so it can adapt the margins on the content.\r\n */\r\n readonly _modeChanged = new Subject<void>();\r\n\r\n private _injector = inject(Injector);\r\n\r\n protected generateId(): string {\r\n return \"\";\r\n }\r\n\r\n constructor(...args: unknown[]);\r\n constructor() {\r\n super();\r\n this.openedChange.pipe(takeUntil(this._destroyed)).subscribe((opened: boolean) => {\r\n if (opened) {\r\n this._elementFocusedBeforeDrawerWasOpened = this._doc.activeElement as HTMLElement;\r\n this._takeFocus();\r\n } else if (this._isFocusWithinDrawer()) {\r\n this._restoreFocus(this._openedVia || 'program');\r\n }\r\n });\r\n\r\n /**\r\n * Listen to `keydown` events outside the zone so that change detection is not run every\r\n * time a key is pressed. Instead, we re-enter the zone only if the `ESC` key is pressed,\r\n * and we don't have a close disabled.\r\n */\r\n this._ngZone.runOutsideAngular(() => {\r\n const element = this._elementRef.nativeElement;\r\n (fromEvent(element, 'keydown') as Observable<KeyboardEvent>)\r\n .pipe(\r\n filter(event => {\r\n return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);\r\n }),\r\n takeUntil(this._destroyed),\r\n )\r\n .subscribe(event =>\r\n this._ngZone.run(() => {\r\n this.close();\r\n event.stopPropagation();\r\n event.preventDefault();\r\n }),\r\n );\r\n\r\n this._eventCleanups = [\r\n this._renderer.listen(element, 'transitionrun', this._handleTransitionEvent),\r\n this._renderer.listen(element, 'transitionend', this._handleTransitionEvent),\r\n this._renderer.listen(element, 'transitioncancel', this._handleTransitionEvent),\r\n ];\r\n });\r\n\r\n this._animationEnd.subscribe(() => {\r\n this.openedChange.emit(this.opened);\r\n });\r\n }\r\n\r\n /**\r\n * Focuses the provided element. If the element is not focusable, it will add a tabIndex\r\n * attribute to forcefully focus it. The attribute is removed after focus is moved.\r\n * @param element The element to focus.\r\n * @param options\r\n */\r\n private _forceFocus(element: HTMLElement, options?: FocusOptions) {\r\n if (!this._interactivityChecker.isFocusable(element)) {\r\n element.tabIndex = -1;\r\n // The tabindex attribute should be removed to avoid navigating to that element again\r\n this._ngZone.runOutsideAngular(() => {\r\n const callback = () => {\r\n cleanupBlur();\r\n cleanupMousedown();\r\n element.removeAttribute('tabindex');\r\n };\r\n\r\n const cleanupBlur = this._renderer.listen(element, 'blur', callback);\r\n const cleanupMousedown = this._renderer.listen(element, 'mousedown', callback);\r\n });\r\n }\r\n element.focus(options);\r\n }\r\n\r\n /**\r\n * Focuses the first element that matches the given selector within the focus trap.\r\n * @param selector The CSS selector for the element to set focus to.\r\n * @param options\r\n */\r\n private _focusByCssSelector(selector: string, options?: FocusOptions) {\r\n let elementToFocus = this._elementRef.nativeElement.querySelector(\r\n selector,\r\n ) as HTMLElement | null;\r\n if (elementToFocus) {\r\n this._forceFocus(elementToFocus, options);\r\n }\r\n }\r\n\r\n /**\r\n * Moves focus into the drawer. Note that this works even if\r\n * the focus trap is disabled in `side` mode.\r\n */\r\n private _takeFocus() {\r\n if (!this._focusTrap) {\r\n return;\r\n }\r\n\r\n const element = this._elementRef.nativeElement;\r\n\r\n // When autoFocus is not on the sidenav, if the element cannot be focused or does\r\n // not exist, focus the sidenav itself so the keyboard navigation still works.\r\n // We need to check that `focus` is a function due to Universal.\r\n switch (this.autoFocus) {\r\n case false:\r\n case 'dialog':\r\n return;\r\n case true:\r\n case 'first-tabbable':\r\n afterNextRender(\r\n () => {\r\n const hasMovedFocus = this._focusTrap!.focusInitialElement();\r\n if (!hasMovedFocus && typeof element.focus === 'function') {\r\n element.focus();\r\n }\r\n },\r\n {injector: this._injector},\r\n );\r\n break;\r\n case 'first-heading':\r\n this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role=\"heading\"]');\r\n break;\r\n default:\r\n this._focusByCssSelector(this.autoFocus!);\r\n break;\r\n }\r\n }\r\n\r\n /**\r\n * Restores focus to the element that was originally focused when the drawer opened.\r\n * If no element was focused at that time, the focus will be restored to the drawer.\r\n */\r\n private _restoreFocus(focusOrigin: Exclude<FocusOrigin, null>) {\r\n if (this.autoFocus === 'dialog') {\r\n return;\r\n }\r\n\r\n if (this._elementFocusedBeforeDrawerWasOpened) {\r\n this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened, focusOrigin);\r\n } else {\r\n this._elementRef.nativeElement.blur();\r\n }\r\n\r\n this._elementFocusedBeforeDrawerWasOpened = null;\r\n }\r\n\r\n /** Whether focus is currently within the drawer. */\r\n private _isFocusWithinDrawer(): boolean {\r\n const activeEl = this._doc.activeElement;\r\n return !!activeEl && this._elementRef.nativeElement.contains(activeEl);\r\n }\r\n\r\n override ngAfterViewInit() {\r\n super.ngAfterViewInit();\r\n\r\n this._isAttached = true;\r\n\r\n // Only update the DOM position when the sidenav is positioned at\r\n // the end since we project the sidenav before the content by default.\r\n if (this._position === 'end') {\r\n this._updatePositionInParent('end');\r\n }\r\n\r\n // Needs to happen after the position is updated\r\n // so the focus trap anchors are in the right place.\r\n if (this._platform.isBrowser) {\r\n this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);\r\n this._updateFocusTrapState();\r\n }\r\n }\r\n\r\n override ngOnDestroy() {\r\n super.ngOnDestroy();\r\n this._eventCleanups.forEach(cleanup => cleanup());\r\n this._focusTrap?.destroy();\r\n this._anchor?.remove();\r\n this._anchor = null;\r\n this._animationStarted.complete();\r\n this._animationEnd.complete();\r\n this._modeChanged.complete();\r\n this._destroyed.next();\r\n this._destroyed.complete();\r\n }\r\n\r\n /**\r\n * Open the drawer.\r\n * @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.\r\n * Used for focus management after the sidenav is closed.\r\n */\r\n open(openedVia?: FocusOrigin): Promise<CuteDrawerToggleResult> {\r\n return this.toggle(true, openedVia);\r\n }\r\n\r\n /** Close the drawer. */\r\n close(): Promise<CuteDrawerToggleResult> {\r\n return this.toggle(false);\r\n }\r\n\r\n /** Closes the drawer with context that the backdrop was clicked. */\r\n _closeViaBackdropClick(): Promise<CuteDrawerToggleResult> {\r\n // If the drawer is closed upon a backdrop click, we always want to restore focus. We\r\n // don't need to check whether focus is currently in the drawer, as clicking on the\r\n // backdrop causes to blur the active element.\r\n return this._setOpen(/* isOpen */ false, /* restoreFocus */ true, 'mouse');\r\n }\r\n\r\n /**\r\n * Toggle this drawer.\r\n * @param isOpen Whether the drawer should be open.\r\n * @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.\r\n * Used for focus management after the sidenav is closed.\r\n */\r\n toggle(isOpen: boolean = !this.opened, openedVia?: FocusOrigin): Promise<CuteDrawerToggleResult> {\r\n // If the focus is currently inside the drawer content, and we are closing the drawer,\r\n // restore the focus to the initially focused element (when the drawer opened).\r\n if (isOpen && openedVia) {\r\n this._openedVia = openedVia;\r\n }\r\n\r\n const result = this._setOpen(\r\n isOpen,\r\n /* restoreFocus */ !isOpen && this._isFocusWithinDrawer(),\r\n this._openedVia || 'program',\r\n );\r\n\r\n if (!isOpen) {\r\n this._openedVia = null;\r\n }\r\n\r\n return result;\r\n }\r\n\r\n /**\r\n * Toggles the opened state of the drawer.\r\n * @param isOpen Whether the drawer should open or close.\r\n * @param restoreFocus Whether focus should be restored on close.\r\n * @param focusOrigin Origin to use when restoring focus.\r\n */\r\n private _setOpen(\r\n isOpen: boolean,\r\n restoreFocus: boolean,\r\n focusOrigin: Exclude<FocusOrigin, null>,\r\n ): Promise<CuteDrawerToggleResult> {\r\n if (isOpen === this.opened) {\r\n return Promise.resolve(isOpen ? 'open' : 'close');\r\n }\r\n\r\n this._opened.set(isOpen);\r\n\r\n if (this._container?._transitionsEnabled) {\r\n // Note: it's important to set this as early as possible,\r\n // otherwise the animation can look glitchy in some cases.\r\n this._setIsAnimating(true);\r\n } else {\r\n // Simulate the animation events if animations are disabled.\r\n setTimeout(() => {\r\n this._animationStarted.next(undefined);\r\n this._animationEnd.next(undefined);\r\n });\r\n }\r\n\r\n this._elementRef.nativeElement.classList.toggle('cute-drawer-opened', isOpen);\r\n\r\n if (!isOpen && restoreFocus) {\r\n this._restoreFocus(focusOrigin);\r\n }\r\n\r\n // Needed to ensure that the closing sequence fires off correctly.\r\n this._changeDetectorRef.markForCheck();\r\n this._updateFocusTrapState();\r\n\r\n return new Promise<CuteDrawerToggleResult>(resolve => {\r\n this.openedChange.pipe(take(1)).subscribe(open => resolve(open ? 'open' : 'close'));\r\n });\r\n }\r\n\r\n /** Toggles whether the drawer is currently animating. */\r\n private _setIsAnimating(isAnimating: boolean) {\r\n this._elementRef.nativeElement.classList.toggle('cute-drawer-animating', isAnimating);\r\n }\r\n\r\n _getWidth(): number {\r\n return this._elementRef.nativeElement ? this._elementRef.nativeElement.offsetWidth || 0 : 0;\r\n }\r\n\r\n /** Updates the enabled state of the focus trap. */\r\n private _updateFocusTrapState() {\r\n if (this._focusTrap) {\r\n // Trap focus only if the backdrop is enabled. Otherwise, allow end user to interact with the\r\n // sidenav content.\r\n this._focusTrap.enabled = !!this._container?.hasBackdrop && this.opened;;\r\n }\r\n }\r\n\r\n /**\r\n * Updates the position of the drawer in the DOM. We need to move the element around ourselves\r\n * when it's in the `end` position so that it comes after the content and the visual order\r\n * matches the tab order. We also need to be able to move it back to `start` if the sidenav\r\n * started off as `end` and was changed to `start`.\r\n */\r\n private _updatePositionInParent(newPosition: 'start' | 'end') {\r\n // Don't move the DOM node around on the server, because it can throw off hydration.\r\n if (!this._platform.isBrowser) {\r\n return;\r\n }\r\n\r\n const element = this._elementRef.nativeElement;\r\n const parent = element.parentNode!;\r\n\r\n if (newPosition === 'end') {\r\n if (!this._anchor) {\r\n this._anchor = this._doc.createComment('cute-drawer-anchor')!;\r\n parent.insertBefore(this._anchor!, element);\r\n }\r\n\r\n parent.appendChild(element);\r\n } else if (this._anchor) {\r\n this._anchor.parentNode!.insertBefore(element, this._anchor);\r\n }\r\n }\r\n\r\n /** Event handler for animation events. */\r\n private _handleTransitionEvent = (event: TransitionEvent) => {\r\n const element = this._elementRef.nativeElement;\r\n\r\n if (event.target === element) {\r\n this._ngZone.run(() => {\r\n if (event.type === 'transitionrun') {\r\n this._animationStarted.next(event);\r\n } else {\r\n // Don't toggle the animating state on `transitioncancel` since another animation should\r\n // start afterwards. This prevents the drawer from blinking if an animation is interrupted.\r\n if (event.type === 'transitionend') {\r\n this._setIsAnimating(false);\r\n }\r\n\r\n this._animationEnd.next(event);\r\n }\r\n });\r\n }\r\n };\r\n}\r\n\r\n/**\r\n * `<cute-drawer-container>` component.\r\n *\r\n * This is the parent component to one or two `<cute-drawer>`s that validates the state internally\r\n * and coordinates the backdrop and content styling.\r\n */\r\n@Component({\r\n selector: 'cute-drawer-container',\r\n exportAs: 'cuteDrawerContainer',\r\n templateUrl: './drawer-container.html',\r\n styleUrls: ['./drawer.scss'],\r\n host: {\r\n 'class': 'cute-drawer-container',\r\n '[class.cute-drawer-container-explicit-backdrop]': '_backdropOverride',\r\n },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [\r\n {\r\n provide: CUTE_DRAWER_CONTAINER,\r\n useExisting: CuteDrawerContainer,\r\n },\r\n ],\r\n imports: [CuteDrawerContent]\r\n})\r\nexport class CuteDrawerContainer extends CuteLayoutControl implements AfterContentInit, DoCheck, OnDestroy {\r\n private _dir = inject(Directionality, {optional: true});\r\n private _element = inject<ElementRef<HTMLElement>>(ElementRef);\r\n private _ngZone = inject(NgZone);\r\n private _animationDisabled = _animationsDisabled();\r\n _transitionsEnabled = false;\r\n\r\n /** All drawers in the container. Includes drawers from inside nested containers. */\r\n @ContentChildren(CuteDrawer, {\r\n // We need to use `descendants: true`, because Ivy will no longer match\r\n // indirect descendants if it's left as false.\r\n descendants: true,\r\n })\r\n _allDrawers: QueryList<CuteDrawer> | undefined;\r\n\r\n /** Drawers that belong to this container. */\r\n _drawers = new QueryList<CuteDrawer>();\r\n\r\n @ContentChild(CuteDrawerContent) _content: CuteDrawerContent | undefined;\r\n @ViewChild(CuteDrawerContent) _userContent: CuteDrawerContent | undefined;\r\n\r\n /** The drawer child with the `start` position. */\r\n get start(): CuteDrawer | null {\r\n return this._start;\r\n }\r\n\r\n /** The drawer child with the `end` position. */\r\n get end(): CuteDrawer | null {\r\n return this._end;\r\n }\r\n\r\n /**\r\n * Whether to automatically resize the container whenever\r\n * the size of its drawers changes.\r\n *\r\n * **Use at your own risk!** Enabling this option can cause layout thrashing by measuring\r\n * the drawers on every change detection cycle. Can be configured globally via the\r\n * `CUTE_DRAWER_DEFAULT_AUTOSIZE` token.\r\n */\r\n @Input()\r\n get autosize(): boolean { return this._autosize; }\r\n set autosize(value: BooleanInput) {\r\n this._autosize = coerceBooleanProperty(value);\r\n }\r\n private _autosize: boolean = false;\r\n\r\n /**\r\n * Whether the drawer container should have a backdrop while one of the `sidenav`s is open.\r\n * If explicitly set to `true`, the backdrop will be enabled for drawers in the `side`\r\n * mode as well.\r\n */\r\n @Input()\r\n get hasBackdrop(): boolean {\r\n return this._drawerHasBackdrop(this._start) || this._drawerHasBackdrop(this._end);\r\n }\r\n set hasBackdrop(value: BooleanInput) {\r\n this._backdropOverride = value == null ? null : coerceBooleanProperty(value);\r\n }\r\n _backdropOverride: boolean | null = null;\r\n\r\n /** Event emitted when the drawer backdrop is clicked. */\r\n @Output() readonly backdropClick: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n /** The drawer at the start/end position, independent of a direction. */\r\n private _start: CuteDrawer | null = null;\r\n private _end: CuteDrawer | null = null;\r\n\r\n /**\r\n * The drawer at the left/right. When a direction changes, these will change as well.\r\n * They're used as aliases for the above to set the left/right style properly.\r\n * In LTR, _left == _start and _right == _end.\r\n * In RTL, _left == _end and _right == _start.\r\n */\r\n private _left: CuteDrawer | null = null;\r\n private _right: CuteDrawer | null = null;\r\n\r\n /** Emits on every ngDoCheck. Used for debouncing reflows. */\r\n private readonly _doCheckSubject = new Subject<void>();\r\n\r\n /** Subject that emits when the component has been destroyed. */\r\n private readonly _destroyed = new Subject<void>();\r\n\r\n /**\r\n * Margins to be applied to the content. These are used to push / shrink the drawer content when a\r\n * drawer is open. We use margin rather than transform even for push mode because transform breaks\r\n * fixed position elements inside of the transformed element.\r\n */\r\n _contentMargins: {left: number | null; right: number | null} = {left: null, right: null};\r\n\r\n readonly _contentMarginChanges = new Subject<{left: number | null; right: number | null}>();\r\n\r\n /** Reference to the CdkScrollable instance that wraps the scrollable content. */\r\n get scrollable(): CdkScrollable {\r\n return (this._userContent || this._content)!;\r\n }\r\n\r\n protected generateId(): string {\r\n return \"\";\r\n }\r\n\r\n private _injector = inject(Injector);\r\n\r\n constructor(...args: unknown[]);\r\n\r\n constructor() {\r\n super();\r\n\r\n const platform = inject(Platform);\r\n const viewportRuler = inject(ViewportRuler);\r\n const defaultAutosize = inject(CUTE_DRAWER_DEFAULT_AUTOSIZE, {optional: true});\r\n this._autosize = defaultAutosize ?? false;\r\n\r\n // If a `Dir` directive exists up the tree, listen to direction changes\r\n // and update the left/right properties to point to the proper start/end.\r\n this._dir?.change.pipe(takeUntil(this._destroyed)).subscribe(() => {\r\n this._validateDrawers();\r\n this.updateContentMargins();\r\n });\r\n\r\n // Since the minimum width of the sidenav depends on the viewport width,\r\n // we need to recompute the margins if the viewport changes.\r\n viewportRuler\r\n .change()\r\n .pipe(takeUntil(this._destroyed))\r\n .subscribe(() => this.updateContentMargins());\r\n\r\n if (!this._animationDisabled && platform.isBrowser) {\r\n this._ngZone.runOutsideAngular(() => {\r\n // Enable the animations after a delay in order to skip\r\n // the initial transition if a drawer is open by default.\r\n setTimeout(() => {\r\n this._element.nativeElement.classList.add('cute-drawer-transition');\r\n this._transitionsEnabled = true;\r\n }, 200);\r\n });\r\n }\r\n }\r\n\r\n override ngAfterContentInit() {\r\n super.ngAfterContentInit();\r\n this._allDrawers?.changes\r\n .pipe(startWith(this._allDrawers), takeUntil(this._destroyed))\r\n .subscribe((drawer: QueryList<CuteDrawer>) => {\r\n this._drawers.reset(drawer.filter(item => !item._container || item._container === this));\r\n this._drawers.notifyOnChanges();\r\n });\r\n\r\n this._drawers.changes.pipe(startWith(null)).subscribe(() => {\r\n this._validateDrawers();\r\n\r\n this._drawers.forEach((drawer: CuteDrawer) => {\r\n this._watchDrawerToggle(drawer);\r\n this._watchDrawerPosition(drawer);\r\n this._watchDrawerMode(drawer);\r\n });\r\n\r\n if (\r\n !this._drawers.length ||\r\n this._isDrawerOpen(this._start) ||\r\n this._isDrawerOpen(this._end)\r\n ) {\r\n this.updateContentMargins();\r\n }\r\n\r\n this._changeDetectorRef.markForCheck();\r\n });\r\n\r\n // Avoid hitting the NgZone through the debounce timeout.\r\n this._ngZone.runOutsideAngular(() => {\r\n this._doCheckSubject\r\n .pipe(\r\n debounceTime(10), // Arbitrary debounce time, less than a frame at 60fps\r\n takeUntil(this._destroyed),\r\n )\r\n .subscribe(() => this.updateContentMargins());\r\n });\r\n }\r\n\r\n override ngOnDestroy() {\r\n super.ngOnDestroy();\r\n this._contentMarginChanges.complete();\r\n this._doCheckSubject.complete();\r\n this._drawers.destroy();\r\n this._destroyed.next();\r\n this._destroyed.complete();\r\n }\r\n\r\n /** Calls `open` of both start and end drawers */\r\n open(): void {\r\n this._drawers.forEach(drawer => drawer.open());\r\n }\r\n\r\n /** Calls `close` of both start and end drawers */\r\n close(): void {\r\n this._drawers.forEach(drawer => drawer.close());\r\n }\r\n\r\n /**\r\n * Recalculates and updates the inline styles for the content. Note that this should be used\r\n * sparingly, because it causes a reflow.\r\n */\r\n updateContentMargins() {\r\n // 1. For drawers in `over` mode, they don't affect the content.\r\n // 2. For drawers in `side` mode they should shrink the content. We do this by adding to the\r\n // left margin (for left drawer) or right margin (for right the drawer).\r\n // 3. For drawers in `push` mode the should shift the content without resizing it. We do this by\r\n // adding to the left or right margin and simultaneously subtracting the same amount of\r\n // margin from the other side.\r\n let left = 0;\r\n let right = 0;\r\n\r\n if (this._left && this._left.opened) {\r\n if (this._left.mode == 'side') {\r\n left += this._left._getWidth();\r\n } else if (this._left.mode == 'push') {\r\n const width = this._left._getWidth();\r\n left += width;\r\n right -= width;\r\n }\r\n }\r\n\r\n if (this._right && this._right.opened) {\r\n if (this._right.mode == 'side') {\r\n right += this._right._getWidth();\r\n } else if (this._right.mode == 'push') {\r\n const width = this._right._getWidth();\r\n right += width;\r\n left -= width;\r\n }\r\n }\r\n\r\n // If either `right` or `left` is zero, don't set a style to the element. This\r\n // allows users to specify a custom size via CSS class in SSR scenarios where the\r\n // measured widths will always be zero. Note that we reset to `null` here, rather\r\n // than below, in order to ensure that the types in the `if` below are consistent.\r\n left = left || null!;\r\n right = right || null!;\r\n\r\n if (left !== this._contentMargins.left || right !== this._contentMargins.right) {\r\n this._contentMargins = {left, right};\r\n\r\n // Pull back into the NgZone since in some cases we could be outside. We need to be careful\r\n // to do it only when something changed, otherwise we can end up hitting the zone too often.\r\n this._ngZone.run(() => this._contentMarginChanges.next(this._contentMargins));\r\n }\r\n }\r\n\r\n ngDoCheck() {\r\n // If users opted into autosizing, do a check every change detection cycle.\r\n if (this._autosize && this._isPushed()) {\r\n // Run outside the NgZone, otherwise the debouncer will throw us into an infinite loop.\r\n this._ngZone.runOutsideAngular(() => this._doCheckSubject.next());\r\n }\r\n }\r\n\r\n /**\r\n * Subscribes to drawer events in order to set a class on the main container element when the\r\n * drawer is open and the backdrop is visible. This ensures any overflow on the container element\r\n * is properly hidden.\r\n */\r\n private _watchDrawerToggle(drawer: CuteDrawer): void {\r\n drawer._animationStarted.pipe(takeUntil(this._drawers.changes)).subscribe(() => {\r\n this.updateContentMargins();\r\n this._changeDetectorRef.markForCheck();\r\n });\r\n\r\n if (drawer.mode !== 'side') {\r\n drawer.openedChange\r\n .pipe(takeUntil(this._drawers.changes))\r\n .subscribe(() => this._setContainerClass(drawer.opened));\r\n }\r\n }\r\n\r\n /**\r\n * Subscribes to drawer onPositionChanged event in order to\r\n * re-validate drawers when the position changes.\r\n */\r\n private _watchDrawerPosition(drawer: CuteDrawer): void {\r\n if (!drawer) {\r\n return;\r\n }\r\n // NOTE: We need to wait for the microtask queue to be empty before validating,\r\n // since both drawers may be swapping positions at the same time.\r\n drawer.onPositionChanged.pipe(takeUntil(this._drawers.changes)).subscribe(() => {\r\n afterNextRender({read: () => this._validateDrawers()}, {injector: this._injector});\r\n });\r\n }\r\n\r\n /** Subscribes to changes in drawer mode so we can run change detection. */\r\n private _watchDrawerMode(drawer: CuteDrawer): void {\r\n drawer._modeChanged\r\n .pipe(takeUntil(merge(this._drawers.changes, this._destroyed)))\r\n .subscribe(() => {\r\n this.updateContentMargins();\r\n this._changeDetectorRef.markForCheck();\r\n });\r\n }\r\n\r\n /** Toggles the 'cute-drawer-opened' class on the main 'cute-drawer-container' element. */\r\n private _setContainerClass(isAdd: boolean): void {\r\n const classList = this._element.nativeElement.classList;\r\n const className = 'cute-drawer-container-has-open';\r\n\r\n if (isAdd) {\r\n classList.add(className);\r\n } else {\r\n classList.remove(className);\r\n }\r\n }\r\n\r\n /** Validate the state of the drawer children components. */\r\n private _validateDrawers() {\r\n this._start = this._end = null;\r\n\r\n // Ensure that we have at most one start and one end drawer.\r\n this._drawers.forEach(drawer => {\r\n if (drawer.position == 'end') {\r\n if (this._end != null && isDevMode()) {\r\n throwCuteDuplicatedDrawerError('end');\r\n }\r\n this._end = drawer;\r\n } else {\r\n if (this._start != null && isDevMode()) {\r\n throwCuteDuplicatedDrawerError('start');\r\n }\r\n this._start = drawer;\r\n }\r\n });\r\n\r\n this._right = this._left = null;\r\n\r\n // Detect if we're LTR or RTL.\r\n if (this._dir && this._dir.value === 'rtl') {\r\n this._left = this._end;\r\n this._right = this._start;\r\n } else {\r\n this._left = this._start;\r\n this._right = this._end;\r\n }\r\n }\r\n\r\n /** Whether the container is being pushed to the side by one of the drawers. */\r\n private _isPushed() {\r\n return (\r\n (this._isDrawerOpen(this._start) && this._start.mode != 'over') ||\r\n (this._isDrawerOpen(this._end) && this._end.mode != 'over')\r\n );\r\n }\r\n\r\n _onBackdropClicked() {\r\n this.backdropClick.emit();\r\n this._closeModalDrawersViaBackdrop();\r\n }\r\n\r\n _closeModalDrawersViaBackdrop() {\r\n // Close all open drawers where closing is not disabled and the mode is not `side`.\r\n [this._start, this._end]\r\n .filter(drawer => drawer && !drawer.disableClose && this._drawerHasBackdrop(drawer))\r\n .forEach(drawer => drawer!._closeViaBackdropClick());\r\n }\r\n\r\n _isShowingBackdrop(): boolean {\r\n return (\r\n (this._isDrawerOpen(this._start) && this._drawerHasBackdrop(this._start)) ||\r\n (this._isDrawerOpen(this._end) && this._drawerHasBackdrop(this._end))\r\n );\r\n }\r\n\r\n private _isDrawerOpen(drawer: CuteDrawer | null): drawer is CuteDrawer {\r\n return drawer != null && drawer.opened;\r\n }\r\n\r\n // Whether argument drawer should have a backdrop when it opens\r\n private _drawerHasBackdrop(drawer: CuteDrawer | null) {\r\n if (this._backdropOverride == null) {\r\n return !!drawer && drawer.mode !== 'side';\r\n }\r\n\r\n return this._backdropOverride;\r\n }\r\n\r\n}\r\n","<div class=\"cute-drawer-inner-container\" cdkScrollable #content>\r\n <ng-content></ng-content>\r\n</div>\r\n","@if (hasBackdrop) {\r\n <div class=\"cute-drawer-backdrop\" (click)=\"_onBackdropClicked()\"\r\n [class.cute-drawer-shown]=\"_isShowingBackdrop()\"></div>\r\n}\r\n\r\n<ng-content select=\"cute-drawer\"></ng-content>\r\n\r\n<ng-content select=\"cute-drawer-content\"></ng-content>\r\n\r\n@if (!_content) {\r\n <cute-drawer-content>\r\n <ng-content></ng-content>\r\n </cute-drawer-content>\r\n}\r\n","/**\r\n * @license Apache-2.0\r\n *\r\n * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.\r\n *\r\n * You may not use this file except in compliance with the License\r\n * that can be found at http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * This code is a modification of the `@angular/material` original\r\n * code licensed under MIT-style License (https://angular.dev/license).\r\n */\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ContentChild,\r\n ContentChildren,\r\n Input,\r\n ViewEncapsulation,\r\n QueryList,\r\n} from '@angular/core';\r\nimport {\r\n BooleanInput,\r\n coerceBooleanProperty,\r\n coerceNumberProperty,\r\n NumberInput,\r\n} from '@angular/cdk/coercion';\r\nimport {CdkScrollable} from '@angular/cdk/scrolling';\r\nimport {CuteDrawer, CuteDrawerContainer, CuteDrawerContent, CUTE_DRAWER_CONTAINER} from './drawer';\r\n\r\n@Component({\r\n selector: 'cute-sidenav-content',\r\n template: '<ng-content></ng-content>',\r\n host: {\r\n 'class': 'cute-drawer-content cute-sidenav-content',\r\n },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [\r\n {\r\n provide: CdkScrollable,\r\n useExisting: CuteSidenavContent,\r\n },\r\n ],\r\n standalone: true,\r\n})\r\nexport class CuteSidenavContent extends CuteDrawerContent {}\r\n\r\n@Component({\r\n selector: 'cute-sidenav',\r\n exportAs: 'cuteSidenav',\r\n templateUrl: './drawer.html',\r\n host: {\r\n 'class': 'cute-drawer cute-sidenav',\r\n // The sidenav container should not be focused on when used in side mode. See b/286459024 for\r\n // reference. Updates tabIndex of drawer/container to default to null if in side mode.\r\n '[attr.tabIndex]': '(mode !== \"side\") ? \"-1\" : null',\r\n // must prevent the browser from aligning text based on value\r\n '[attr.align]': 'null',\r\n '[class.cute-drawer-end]': 'position === \"end\"',\r\n '[class.cute-drawer-over]': 'mode === \"over\"',\r\n '[class.cute-drawer-push]': 'mode === \"push\"',\r\n '[class.cute-drawer-side]': 'mode === \"side\"',\r\n '[class.cute-sidenav-fixed]': 'fixedInViewport',\r\n '[style.top.px]': 'fixedInViewport ? fixedTopGap : null',\r\n '[style.bottom.px]': 'fixedInViewport ? fixedBottomGap : null',\r\n },\r\n imports: [CdkScrollable],\r\n providers: [{provide: CuteDrawer, useExisting: CuteSidenav}],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n standalone: true,\r\n})\r\nexport class CuteSidenav extends CuteDrawer {\r\n /** Whether the sidenav is fixed in the viewport. */\r\n @Input()\r\n get fixedInViewport(): boolean { return this._fixedInViewport; }\r\n set fixedInViewport(value: BooleanInput) {\r\n this._fixedInViewport = coerceBooleanProperty(value);\r\n }\r\n private _fixedInViewport = false;\r\n\r\n /**\r\n * The gap between the top of the sidenav and the top of the viewport when the sidenav is in fixed\r\n * mode.\r\n */\r\n @Input()\r\n get fixedTopGap(): number { return this._fixedTopGap; }\r\n set fixedTopGap(value: NumberInput) {\r\n this._fixedTopGap = coerceNumberProperty(value);\r\n }\r\n private _fixedTopGap = 0;\r\n\r\n /**\r\n * The gap between the bottom of the sidenav and the bottom of the viewport when the sidenav is in\r\n * fixed mode.\r\n */\r\n @Input()\r\n get fixedBottomGap(): number { return this._fixedBottomGap; }\r\n set fixedBottomGap(value: NumberInput) {\r\n this._fixedBottomGap = coerceNumberProperty(value);\r\n }\r\n private _fixedBottomGap = 0;\r\n}\r\n\r\n@Component({\r\n selector: 'cute-sidenav-container',\r\n exportAs: 'cuteSidenavContainer',\r\n templateUrl: './sidenav-container.html',\r\n styleUrls: ['./drawer.scss'],\r\n host: {\r\n 'class': 'cute-drawer-container cute-sidenav-container',\r\n '[class.cute-drawer-container-explicit-backdrop]': '_backdropOverride',\r\n },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [\r\n {\r\n provide: CUTE_DRAWER_CONTAINER,\r\n useExisting: CuteSidenavContainer,\r\n },\r\n {\r\n provide: CuteDrawerContainer,\r\n useExisting: CuteSidenavContainer,\r\n },\r\n ],\r\n imports: [\r\n CuteSidenavContent\r\n ]\r\n})\r\nexport class CuteSidenavContainer extends CuteDrawerContainer {\r\n @ContentChildren(CuteSidenav, {\r\n // We need to use `descendants: true`, because Ivy will no longer match\r\n // indirect descendants if it's left as false.\r\n descendants: true,\r\n })\r\n // We need an initializer here to avoid a TS error.\r\n override _allDrawers: QueryList<CuteSidenav> = undefined!;\r\n\r\n // We need an initializer here to avoid a TS error.\r\n @ContentChild(CuteSidenavContent) override _content: CuteSidenavContent = undefined!;\r\n}\r\n","@if (hasBackdrop) {\r\n <div class=\"cute-drawer-backdrop\" (click)=\"_onBackdropClicked()\"\r\n [class.cute-drawer-shown]=\"_isShowingBackdrop()\"></div>\r\n}\r\n\r\n<ng-content select=\"cute-sidenav\"></ng-content>\r\n\r\n<ng-content select=\"cute-sidenav-content\"></ng-content>\r\n\r\n@if (!_content) {\r\n <cute-sidenav-content>\r\n <ng-content></ng-content>\r\n </cute-sidenav-content>\r\n}\r\n","/**\r\n * @license Apache-2.0\r\n *\r\n * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.\r\n *\r\n * You may not use this file except in compliance with the License\r\n * that can be found at http://www.apache.org/licenses/LICENSE-2.0\r\n */\r\nimport {NgModule, Type} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {CdkScrollableModule} from \"@angular/cdk/scrolling\";\r\nimport {CuteDrawer, CuteDrawerContainer, CuteDrawerContent} from \"./drawer\";\r\nimport {CuteSidenav, CuteSidenavContainer, CuteSidenavContent} from \"./sidenav\";\r\n\r\nconst TYPES: (Type<any>)[] = [\r\n CuteDrawer,\r\n CuteDrawerContainer,\r\n CuteDrawerContent,\r\n CuteSidenav,\r\n CuteSidenavContainer,\r\n CuteSidenavContent,\r\n];\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [CommonModule, CdkScrollableModule, ...TYPES],\r\n exports: TYPES,\r\n})\r\nexport class CuteSidenavModule {\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;AAUG;AA8CH;;AAEG;AACG,SAAU,8BAA8B,CAAC,QAAgB,EAAA;AAC7D,IAAA,MAAM,KAAK,CAAC,CAAA,6CAAA,EAAgD,QAAQ,CAAA,EAAA,CAAI,CAAC;AAC3E;AAWA;MACa,4BAA4B,GAAG,IAAI,cAAc,CAC5D,8BAA8B,EAC9B;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,KAAK;AACrB,CAAA;AAGH;;AAEG;MACU,qBAAqB,GAAG,IAAI,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AAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAAA,OAAA,EAAA,CAHhB,YAAY,EAAE,mBAAmB,EAV3C,UAAU;YACV,mBAAmB;YACnB,iBAAiB;YACjB,WAAW;YACX,oBAAoB;AACpB,YAAA,kBAAkB,aALlB,UAAU;YACV,mBAAmB;YACnB,iBAAiB;YACjB,WAAW;YACX,oBAAoB;YACpB,kBAAkB,CAAA,EAAA,CAAA,CAAA;gHAQT,iBAAiB,EAAA,OAAA,EAAA,CAHhB,YAAY,EAAE,mBAAmB,CAAA,EAAA,CAAA,CAAA;;4FAGlC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,EAAG,GAAG,KAAK,CAAC;AACvD,oBAAA,OAAO,EAAE,KAAK;AACjB,iBAAA;;;AC3BD;;AAEG;;;;"}
@@ -0,0 +1,99 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive, NgModule } from '@angular/core';
3
+ import { CuteInput } from '@cute-widgets/base/input';
4
+ import { CommonModule } from '@angular/common';
5
+
6
+ /**
7
+ * @license Apache-2.0
8
+ *
9
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
10
+ *
11
+ * You may not use this file except in compliance with the License
12
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
13
+ */
14
+ /**
15
+ * Injection token that can be used for a `CuteSlider` to provide itself as a
16
+ * parent to the `CuteSliderThumb` and `CuteSliderRangeThumb`.
17
+ * Used primarily to avoid circular imports.
18
+ * @docs-private
19
+ */
20
+ const CUTE_SLIDER = new InjectionToken('CUTE-SLIDER');
21
+ class CuteSlider /* extends ... */ {
22
+ constructor() {
23
+ }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteSlider /* extends ... */, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: CuteSlider /* extends ... */, isStandalone: true, selector: "cute-slider", providers: [
26
+ { provide: CUTE_SLIDER, useExisting: CuteSlider },
27
+ ], exportAs: ["cuteSlider"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
28
+ }
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteSlider /* extends ... */, decorators: [{
30
+ type: Component,
31
+ args: [{ selector: 'cute-slider', template: `<ng-content></ng-content>`, exportAs: 'cuteSlider', host: {}, providers: [
32
+ { provide: CUTE_SLIDER, useExisting: CuteSlider },
33
+ ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None }]
34
+ }], ctorParameters: () => [] });
35
+
36
+ /**
37
+ * @license Apache-2.0
38
+ *
39
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
40
+ *
41
+ * You may not use this file except in compliance with the License
42
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
43
+ *
44
+ * This code is a modification of the `@angular/material` original
45
+ * code licensed under MIT-style License (https://angular.dev/license).
46
+ */
47
+ /**
48
+ * Directive that adds slider-specific behaviors to an input element inside `<cute-slider>`.
49
+ * Up to two may be placed inside a `<cute-slider>`.
50
+ *
51
+ * If one is used, the selector `cuteSliderThumb` must be used, and the outcome will be a normal
52
+ * slider. If two are used, the selectors `cuteSliderStartThumb` and `cuteSliderEndThumb` must be
53
+ * used, and the outcome will be a range slider with two slider thumbs.
54
+ */
55
+ class CuteSliderThumb extends CuteInput {
56
+ constructor() {
57
+ super();
58
+ this.type = "range";
59
+ }
60
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteSliderThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
61
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: CuteSliderThumb, isStandalone: true, selector: "input[cuteSliderThumb]", host: { classAttribute: "cute-slider-thumb" }, exportAs: ["cuteSliderThumb"], usesInheritance: true, ngImport: i0 }); }
62
+ }
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteSliderThumb, decorators: [{
64
+ type: Directive,
65
+ args: [{
66
+ selector: 'input[cuteSliderThumb]',
67
+ exportAs: 'cuteSliderThumb',
68
+ host: {
69
+ 'class': 'cute-slider-thumb',
70
+ },
71
+ }]
72
+ }], ctorParameters: () => [] });
73
+
74
+ const TYPES = [
75
+ CuteSlider,
76
+ CuteSliderThumb
77
+ ];
78
+ class CuteSliderModule {
79
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
80
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: CuteSliderModule, imports: [CommonModule, CuteSlider,
81
+ CuteSliderThumb], exports: [CuteSlider,
82
+ CuteSliderThumb] }); }
83
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteSliderModule, imports: [CommonModule] }); }
84
+ }
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteSliderModule, decorators: [{
86
+ type: NgModule,
87
+ args: [{
88
+ imports: [CommonModule, ...TYPES],
89
+ exports: TYPES,
90
+ declarations: [],
91
+ }]
92
+ }] });
93
+
94
+ /**
95
+ * Generated bundle index. Do not edit.
96
+ */
97
+
98
+ export { CUTE_SLIDER, CuteSlider, CuteSliderModule, CuteSliderThumb };
99
+ //# sourceMappingURL=cute-widgets-base-slider.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cute-widgets-base-slider.mjs","sources":["../../../../projects/cute-widgets/base/slider/src/slider.ts","../../../../projects/cute-widgets/base/slider/src/slider-thumb.ts","../../../../projects/cute-widgets/base/slider/src/slider.module.ts","../../../../projects/cute-widgets/base/slider/cute-widgets-base-slider.ts"],"sourcesContent":["/**\r\n * @license Apache-2.0\r\n *\r\n * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.\r\n *\r\n * You may not use this file except in compliance with the License\r\n * that can be found at http://www.apache.org/licenses/LICENSE-2.0\r\n */\r\n\r\nimport {ChangeDetectionStrategy, Component, InjectionToken, ViewEncapsulation} from \"@angular/core\";\r\n\r\n/**\r\n * Injection token that can be used for a `CuteSlider` to provide itself as a\r\n * parent to the `CuteSliderThumb` and `CuteSliderRangeThumb`.\r\n * Used primarily to avoid circular imports.\r\n * @docs-private\r\n */\r\nexport const CUTE_SLIDER = new InjectionToken<CuteSlider>('CUTE-SLIDER');\r\n\r\n\r\n@Component({\r\n selector: 'cute-slider',\r\n template: `<ng-content></ng-content>`,\r\n styles: [`\r\n `],\r\n exportAs: 'cuteSlider',\r\n host: {},\r\n providers: [\r\n {provide: CUTE_SLIDER, useExisting: CuteSlider},\r\n ],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class CuteSlider /* extends ... */ {\r\n\r\n constructor() {\r\n }\r\n\r\n}\r\n","/**\r\n * @license Apache-2.0\r\n *\r\n * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.\r\n *\r\n * You may not use this file except in compliance with the License\r\n * that can be found at http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * This code is a modification of the `@angular/material` original\r\n * code licensed under MIT-style License (https://angular.dev/license).\r\n */\r\nimport {Directive} from '@angular/core';\r\nimport {CuteInput} from '@cute-widgets/base/input';\r\n\r\n/**\r\n * Directive that adds slider-specific behaviors to an input element inside `<cute-slider>`.\r\n * Up to two may be placed inside a `<cute-slider>`.\r\n *\r\n * If one is used, the selector `cuteSliderThumb` must be used, and the outcome will be a normal\r\n * slider. If two are used, the selectors `cuteSliderStartThumb` and `cuteSliderEndThumb` must be\r\n * used, and the outcome will be a range slider with two slider thumbs.\r\n */\r\n@Directive({\r\n selector: 'input[cuteSliderThumb]',\r\n exportAs: 'cuteSliderThumb',\r\n host: {\r\n 'class': 'cute-slider-thumb',\r\n },\r\n})\r\nexport class CuteSliderThumb extends CuteInput {\r\n constructor() {\r\n super();\r\n this.type = \"range\";\r\n }\r\n}\r\n\r\n","import {NgModule, Type} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {CuteSlider} from './slider';\r\nimport {CuteSliderThumb} from './slider-thumb';\r\n\r\nconst TYPES: (any | Type<any>)[] = [\r\n CuteSlider,\r\n CuteSliderThumb\r\n];\r\n\r\n@NgModule({\r\n imports: [CommonModule, ...TYPES],\r\n exports: TYPES,\r\n declarations: [],\r\n})\r\nexport class CuteSliderModule {\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;;;;;;;AAOG;AAIH;;;;;AAKG;MACU,WAAW,GAAG,IAAI,cAAc,CAAa,aAAa;AAgBjE,MAAO,UAAU,mBAAkB;AAEvC,IAAA,WAAA,GAAA;IACA;AAHW,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,oBAAkB,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA5B,UAAU,oBAAkB,YAAA,EAAA,IAA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