@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-core-datetime.mjs","sources":["../../../../projects/cute-widgets/base/core/datetime/src/date-adapter.ts","../../../../projects/cute-widgets/base/core/datetime/src/date-format.ts","../../../../projects/cute-widgets/base/core/datetime/src/native-date-adapter.ts","../../../../projects/cute-widgets/base/core/datetime/src/native-date-format.ts","../../../../projects/cute-widgets/base/core/datetime/src/datetime.module.ts","../../../../projects/cute-widgets/base/core/datetime/cute-widgets-base-core-datetime.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 {inject, InjectionToken, LOCALE_ID} from '@angular/core';\r\nimport {Observable, Subject} from 'rxjs';\r\n\r\n/** InjectionToken for datepicker that can be used to override default locale code. */\r\nexport const CUTE_DATE_LOCALE = new InjectionToken<{}>('CUTE_DATE_LOCALE', {\r\n providedIn: 'root',\r\n factory: CUTE_DATE_LOCALE_FACTORY,\r\n});\r\n\r\n/**\r\n * @docs-private\r\n * @deprecated No longer used, will be removed.\r\n * @breaking-change 21.0.0\r\n */\r\nexport function CUTE_DATE_LOCALE_FACTORY(): {} {\r\n return inject(LOCALE_ID);\r\n}\r\n\r\nconst NOT_IMPLEMENTED = 'Method not implemented';\r\n\r\n/** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */\r\nexport abstract class DateAdapter<D, L = any> {\r\n /** The locale to use for all dates. */\r\n protected locale: L | undefined;\r\n protected readonly _localeChanges = new Subject<void>();\r\n\r\n /** A stream that emits when the locale changes. */\r\n readonly localeChanges: Observable<void> = this._localeChanges;\r\n\r\n /**\r\n * Gets the year component of the given date.\r\n * @param date The date to extract the year from.\r\n * @returns The year component.\r\n */\r\n abstract getYear(date: D): number;\r\n\r\n /**\r\n * Gets the month component of the given date.\r\n * @param date The date to extract the month from.\r\n * @returns The month component (0-indexed, 0 = January).\r\n */\r\n abstract getMonth(date: D): number;\r\n\r\n /**\r\n * Gets the date of the month component of the given date.\r\n * @param date The date to extract the date of the month from.\r\n * @returns The month component (1-indexed, 1 = first of month).\r\n */\r\n abstract getDate(date: D): number;\r\n\r\n /**\r\n * Gets the day of the week component of the given date.\r\n * @param date The date to extract the day of the week from.\r\n * @returns The month component (0-indexed, 0 = Sunday).\r\n */\r\n abstract getDayOfWeek(date: D): number;\r\n\r\n /**\r\n * Gets a list of names for the months.\r\n * @param style The naming style (e.g. long = 'January', short = 'Jan', narrow = 'J').\r\n * @returns An ordered list of all month names, starting with January.\r\n */\r\n abstract getMonthNames(style: 'long' | 'short' | 'narrow'): string[];\r\n\r\n /**\r\n * Gets a list of names for the dates of the month.\r\n * @returns An ordered list of all date of the month names, starting with '1'.\r\n */\r\n abstract getDateNames(): string[];\r\n\r\n /**\r\n * Gets a list of names for the days of the week.\r\n * @param style The naming style (e.g., long = 'Sunday', short = 'Sun', narrow = 'S').\r\n * @returns An ordered list of all weekday names, starting with Sunday.\r\n */\r\n abstract getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];\r\n\r\n /**\r\n * Gets the name for the year of the given date.\r\n * @param date The date to get the year name for.\r\n * @returns The name of the given year (e.g. '2017').\r\n */\r\n abstract getYearName(date: D): string;\r\n\r\n /**\r\n * Gets the first day of the week.\r\n * @returns The first day of the week (0-indexed, 0 = Sunday).\r\n */\r\n abstract getFirstDayOfWeek(): number;\r\n\r\n /**\r\n * Gets the number of days in the month of the given date.\r\n * @param date The date whose month should be checked.\r\n * @returns The number of days in the month of the given date.\r\n */\r\n abstract getNumDaysInMonth(date: D): number;\r\n\r\n /**\r\n * Clones the given date.\r\n * @param date The date to clone\r\n * @returns A new date equal to the given date.\r\n */\r\n abstract clone(date: D): D;\r\n\r\n /**\r\n * Creates a date with the given year, month, and date. Does not allow over/under-flow of the\r\n * month and date.\r\n * @param year The full year of the date. (e.g. 89 means the year 89, not the year 1989).\r\n * @param month The month of the date (0-indexed, 0 = January). Must be an integer 0 - 11.\r\n * @param date The date of month of the date. Must be an integer 1 - length of the given month.\r\n * @returns The new date, or null if invalid.\r\n */\r\n abstract createDate(year: number, month: number, date: number): D;\r\n\r\n /**\r\n * Gets today's date.\r\n * @returns Today's date.\r\n */\r\n abstract today(): D;\r\n\r\n /**\r\n * Parses a date from a user-provided value.\r\n * @param value The value to parse.\r\n * @param parseFormat The expected format of the value being parsed\r\n * (type is implementation-dependent).\r\n * @returns The parsed date.\r\n */\r\n abstract parse(value: any, parseFormat: any): D | null;\r\n\r\n /**\r\n * Formats a date as a string according to the given format.\r\n * @param date The value to format.\r\n * @param displayFormat The format to use to display the date as a string.\r\n * @returns The formatted date string.\r\n */\r\n abstract format(date: D, displayFormat: any): string;\r\n\r\n /**\r\n * Adds the given number of years to the date. Years are counted as if flipping 12 pages on the\r\n * calendar for each year and then finding the closest date in the new month. For example when\r\n * adding 1 year to Feb 29, 2016, the resulting date will be Feb 28, 2017.\r\n * @param date The date to add years to.\r\n * @param years The number of years to add (maybe negative).\r\n * @returns A new date equal to the given one with the specified number of years added.\r\n */\r\n abstract addCalendarYears(date: D, years: number): D;\r\n\r\n /**\r\n * Adds the given number of months to the date. Months are counted as if flipping a page on the\r\n * calendar for each month and then finding the closest date in the new month. For example when\r\n * adding 1 month to Jan 31, 2017, the resulting date will be Feb 28, 2017.\r\n * @param date The date to add months to.\r\n * @param months The number of months to add (maybe negative).\r\n * @returns A new date equal to the given one with the specified number of months added.\r\n */\r\n abstract addCalendarMonths(date: D, months: number): D;\r\n\r\n /**\r\n * Adds the given number of days to the date. Days are counted as if moving one cell on the\r\n * calendar for each day.\r\n * @param date The date to add days to.\r\n * @param days The number of days to add (maybe negative).\r\n * @returns A new date equal to the given one with the specified number of days added.\r\n */\r\n abstract addCalendarDays(date: D, days: number): D;\r\n\r\n /**\r\n * Gets the RFC 3339 compatible string (https://tools.ietf.org/html/rfc3339) for the given date.\r\n * This method is used to generate date strings that are compatible with native HTML attributes\r\n * such as the `min` or `max` attribute of an `<input>`.\r\n * @param date The date to get the ISO date string for.\r\n * @returns The ISO date string date string.\r\n */\r\n abstract toIso8601(date: D): string;\r\n\r\n /**\r\n * Checks whether the given object is considered a date instance by this DateAdapter.\r\n * @param obj The object to check\r\n * @returns Whether the object is a date instance.\r\n */\r\n abstract isDateInstance(obj: any): boolean;\r\n\r\n /**\r\n * Checks whether the given date is valid.\r\n * @param date The date to check.\r\n * @returns Whether the date is valid.\r\n */\r\n abstract isValid(date: D): boolean;\r\n\r\n /**\r\n * Gets date instance that is not valid.\r\n * @returns An invalid date.\r\n */\r\n abstract invalid(): D;\r\n\r\n /**\r\n * Sets the time of one date to the time of another.\r\n * @param target Date whose time will be set.\r\n * @param hours New hours to set on the date object.\r\n * @param minutes New minutes to set on the date object.\r\n * @param seconds New seconds to set on the date object.\r\n */\r\n setTime(target: D, hours: number, minutes: number, seconds: number): D {\r\n throw new Error(NOT_IMPLEMENTED);\r\n }\r\n\r\n /**\r\n * Gets the hours component of the given date.\r\n * @param date The date to extract the hours from.\r\n */\r\n getHours(date: D): number {\r\n throw new Error(NOT_IMPLEMENTED);\r\n }\r\n\r\n /**\r\n * Gets the minutes component of the given date.\r\n * @param date The date to extract the minutes from.\r\n */\r\n getMinutes(date: D): number {\r\n throw new Error(NOT_IMPLEMENTED);\r\n }\r\n\r\n /**\r\n * Gets the seconds component of the given date.\r\n * @param date The date to extract the seconds from.\r\n */\r\n getSeconds(date: D): number {\r\n throw new Error(NOT_IMPLEMENTED);\r\n }\r\n\r\n /**\r\n * Parses a date with a specific time from a user-provided value.\r\n * @param value The value to parse.\r\n * @param parseFormat The expected format of the value being parsed\r\n * (type is implementation-dependent).\r\n */\r\n parseTime(value: any, parseFormat: any): D | null {\r\n throw new Error(NOT_IMPLEMENTED);\r\n }\r\n\r\n /**\r\n * Adds an amount of seconds to the specified date.\r\n * @param date Date to which to add the seconds.\r\n * @param amount Amount of seconds to add to the date.\r\n */\r\n addSeconds(date: D, amount: number): D {\r\n throw new Error(NOT_IMPLEMENTED);\r\n }\r\n\r\n /**\r\n * Given a potential date object, returns that same date object if it is\r\n * a valid date, or `null` if it's not a valid date.\r\n * @param obj The object to check.\r\n * @returns A date or `null`.\r\n */\r\n getValidDateOrNull(obj: unknown): D | null {\r\n return this.isDateInstance(obj) && this.isValid(obj as D) ? (obj as D) : null;\r\n }\r\n\r\n /**\r\n * Attempts to deserialize a value to a valid date object. This is different from parsing in that\r\n * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601\r\n * string). The default implementation does not allow any deserialization, it simply checks that\r\n * the given value is already a valid date object or null. The `<mat-datepicker>` will call this\r\n * method on all of its `@Input()` properties that accept dates. It is therefore possible to\r\n * support passing values from your backend directly to these properties by overriding this method\r\n * to also deserialize the format used by your backend.\r\n * @param value The value to be deserialized into a date object.\r\n * @returns The deserialized date object, either a valid date, null if the value can be\r\n * deserialized into a null date (e.g. the empty string), or an invalid date.\r\n */\r\n deserialize(value: any): D | null {\r\n if (value == null || (this.isDateInstance(value) && this.isValid(value))) {\r\n return value;\r\n }\r\n return this.invalid();\r\n }\r\n\r\n /**\r\n * Sets the locale used for all dates.\r\n * @param locale The new locale.\r\n */\r\n setLocale(locale: L) {\r\n this.locale = locale;\r\n this._localeChanges.next();\r\n }\r\n\r\n /**\r\n * Compares two dates.\r\n * @param first The first date to compare.\r\n * @param second The second date to compare.\r\n * @returns 0 if the dates are equal, a number less than 0 if the first date is earlier,\r\n * a number greater than 0 if the first date is later.\r\n */\r\n compareDate(first: D, second: D): number {\r\n return (\r\n this.getYear(first) - this.getYear(second) ||\r\n this.getMonth(first) - this.getMonth(second) ||\r\n this.getDate(first) - this.getDate(second)\r\n );\r\n }\r\n\r\n /**\r\n * Compares the time values of two dates.\r\n * @param first First date to compare.\r\n * @param second Second date to compare.\r\n * @returns 0 if the times are equal, a number less than 0 if the first time is earlier,\r\n * a number greater than 0 if the first time is later.\r\n */\r\n compareTime(first: D, second: D): number {\r\n return (\r\n this.getHours(first) - this.getHours(second) ||\r\n this.getMinutes(first) - this.getMinutes(second) ||\r\n this.getSeconds(first) - this.getSeconds(second)\r\n );\r\n }\r\n\r\n /**\r\n * Checks if two dates are equal.\r\n * @param first The first date to check.\r\n * @param second The second date to check.\r\n * @returns Whether the two dates are equal.\r\n * Null dates are considered equal to other null dates.\r\n */\r\n sameDate(first: D | null, second: D | null): boolean {\r\n if (first && second) {\r\n let firstValid = this.isValid(first);\r\n let secondValid = this.isValid(second);\r\n if (firstValid && secondValid) {\r\n return !this.compareDate(first, second);\r\n }\r\n return firstValid == secondValid;\r\n }\r\n return first == second;\r\n }\r\n\r\n /**\r\n * Checks if the times of two dates are equal.\r\n * @param first The first date to check.\r\n * @param second The second date to check.\r\n * @returns Whether the times of the two dates are equal.\r\n * Null dates are considered equal to other null dates.\r\n */\r\n sameTime(first: D | null, second: D | null): boolean {\r\n if (first && second) {\r\n const firstValid = this.isValid(first);\r\n const secondValid = this.isValid(second);\r\n if (firstValid && secondValid) {\r\n return !this.compareTime(first, second);\r\n }\r\n return firstValid == secondValid;\r\n }\r\n return first == second;\r\n }\r\n\r\n /**\r\n * Clamp the given date between min and max dates.\r\n * @param date The date to clamp.\r\n * @param min The minimum value to allow. If null or omitted, no min is enforced.\r\n * @param max The maximum value to allow. If null or omitted, no max is enforced.\r\n * @returns `min` if `date` is less than `min`, `max` if date is greater than `max`,\r\n * otherwise `date`.\r\n */\r\n clampDate(date: D, min?: D | null, max?: D | null): D {\r\n if (min && this.compareDate(date, min) < 0) {\r\n return min;\r\n }\r\n if (max && this.compareDate(date, max) > 0) {\r\n return max;\r\n }\r\n return date;\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 {InjectionToken} from '@angular/core';\r\n\r\nexport type CuteDateFormats = {\r\n parse: {\r\n dateInput: any;\r\n timeInput?: any;\r\n };\r\n display: {\r\n dateInput: any;\r\n monthLabel?: any;\r\n monthYearLabel: any;\r\n dateA11yLabel: any;\r\n monthYearA11yLabel: any;\r\n timeInput?: any;\r\n timeOptionLabel?: any;\r\n };\r\n};\r\n\r\nexport const CUTE_DATE_FORMATS = new InjectionToken<CuteDateFormats>('cute-date-formats');\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 {inject, Injectable, isDevMode} from '@angular/core';\r\nimport {DateAdapter, CUTE_DATE_LOCALE} from './date-adapter';\r\n\r\n/**\r\n * Matches strings that have the form of a valid RFC 3339 string\r\n * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date\r\n * because the regex will match strings and without of bounds month, date, etc.\r\n */\r\nconst ISO_8601_REGEX =\r\n /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/;\r\n\r\n/**\r\n * Matches a time string. Supported formats:\r\n * - {{hours}}:{{minutes}}\r\n * - {{hours}}:{{minutes}}:{{seconds}}\r\n * - {{hours}}:{{minutes}} AM/PM\r\n * - {{hours}}:{{minutes}}:{{seconds}} AM/PM\r\n * - {{hours}}.{{minutes}}\r\n * - {{hours}}.{{minutes}}.{{seconds}}\r\n * - {{hours}}.{{minutes}} AM/PM\r\n * - {{hours}}.{{minutes}}.{{seconds}} AM/PM\r\n */\r\nconst TIME_REGEX = /^(\\d?\\d)[:.](\\d?\\d)(?:[:.](\\d?\\d))?\\s*(AM|PM)?$/i;\r\n\r\n/** Creates an array and fills it with values. */\r\nfunction range<T>(length: number, valueFunction: (index: number) => T): T[] {\r\n const valuesArray = Array(length);\r\n for (let i = 0; i < length; i++) {\r\n valuesArray[i] = valueFunction(i);\r\n }\r\n return valuesArray;\r\n}\r\n\r\n/** Adapts the native JS Date for use with cdk-based components that work with dates. */\r\n@Injectable()\r\nexport class NativeDateAdapter extends DateAdapter<Date> {\r\n\r\n /** The injected locale. */\r\n private readonly _cuteDateLocale = inject(CUTE_DATE_LOCALE, {optional: true});\r\n\r\n constructor(...args: unknown[]);\r\n constructor() {\r\n super();\r\n\r\n const cuteDateLocale = inject(CUTE_DATE_LOCALE, {optional: true});\r\n\r\n if (cuteDateLocale !== undefined) {\r\n this._cuteDateLocale = cuteDateLocale;\r\n }\r\n super.setLocale(this._cuteDateLocale);\r\n }\r\n\r\n getYear(date: Date): number { return date.getFullYear(); }\r\n getMonth(date: Date): number { return date.getMonth(); }\r\n getDate(date: Date): number { return date.getDate(); }\r\n getDayOfWeek(date: Date): number { return date.getDay(); }\r\n\r\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n const dtf = new Intl.DateTimeFormat(this.locale, {month: style, timeZone: 'utc'});\r\n return range(12, i => this._format(dtf, new Date(2017, i, 1)));\r\n }\r\n\r\n getDateNames(): string[] {\r\n const dtf = new Intl.DateTimeFormat(this.locale, {day: 'numeric', timeZone: 'utc'});\r\n return range(31, i => this._format(dtf, new Date(2017, 0, i + 1)));\r\n }\r\n\r\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n const dtf = new Intl.DateTimeFormat(this.locale, {weekday: style, timeZone: 'utc'});\r\n return range(7, i => this._format(dtf, new Date(2017, 0, i + 1)));\r\n }\r\n\r\n getYearName(date: Date): string {\r\n const dtf = new Intl.DateTimeFormat(this.locale, {year: 'numeric', timeZone: 'utc'});\r\n return this._format(dtf, date);\r\n }\r\n\r\n getFirstDayOfWeek(): number {\r\n // At the time of writing `Intl.Locale` isn't available\r\n // in the internal types, so we need to cast to `any`.\r\n if (typeof Intl !== 'undefined' && (Intl as any).Locale) {\r\n const locale = new (Intl as any).Locale(this.locale) as {\r\n getWeekInfo?: () => {firstDay: number};\r\n weekInfo?: {firstDay: number};\r\n };\r\n\r\n // Some browsers implement a `getWeekInfo` method while others have a `weekInfo` getter.\r\n // Note that this isn't supported in all browsers, so we need to null check it.\r\n const firstDay = (locale.getWeekInfo?.() || locale.weekInfo)?.firstDay ?? 0;\r\n\r\n // `weekInfo.firstDay` is a number between 1 and 7 where, starting from Monday,\r\n // whereas our representation is 0 to 6 where 0 is Sunday, so we need to normalize it.\r\n return firstDay === 7 ? 0 : firstDay;\r\n }\r\n\r\n // Default to Sunday if the browser doesn't provide the week information.\r\n return 0;\r\n }\r\n\r\n getNumDaysInMonth(date: Date): number {\r\n return this.getDate(\r\n this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0),\r\n );\r\n }\r\n\r\n clone(date: Date): Date {\r\n return new Date(date.getTime());\r\n }\r\n\r\n createDate(year: number, month: number, date: number): Date {\r\n if (isDevMode()) {\r\n // Check for invalid month and date (except upper bound on date which we have to check after\r\n // creating the Date).\r\n if (month < 0 || month > 11) {\r\n throw Error(`Invalid month index \"${month}\". Month index has to be between 0 and 11.`);\r\n }\r\n\r\n if (date < 1) {\r\n throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`);\r\n }\r\n }\r\n\r\n let result = this._createDateWithOverflow(year, month, date);\r\n // Check that the date wasn't above the upper bound for the month, causing the month to overflow\r\n if (result.getMonth() != month && isDevMode()) {\r\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\r\n }\r\n\r\n return result;\r\n }\r\n\r\n today(): Date {\r\n return new Date();\r\n }\r\n\r\n parse(value: any, parseFormat?: any): Date | null {\r\n // We have no way using the native JS Date to set the parse format or locale, so we ignore these\r\n // parameters.\r\n if (typeof value == 'number') {\r\n return new Date(value);\r\n }\r\n return value ? new Date(Date.parse(value)) : null;\r\n }\r\n\r\n format(date: Date, displayFormat: Object): string {\r\n if (!this.isValid(date)) {\r\n throw Error('NativeDateAdapter: Cannot format invalid date.');\r\n }\r\n\r\n const dtf = new Intl.DateTimeFormat(this.locale, {...displayFormat, timeZone: 'utc'});\r\n return this._format(dtf, date);\r\n }\r\n\r\n addCalendarYears(date: Date, years: number): Date {\r\n return this.addCalendarMonths(date, years * 12);\r\n }\r\n\r\n addCalendarMonths(date: Date, months: number): Date {\r\n let newDate = this._createDateWithOverflow(\r\n this.getYear(date),\r\n this.getMonth(date) + months,\r\n this.getDate(date),\r\n );\r\n\r\n // It's possible to wind up in the wrong month if the original month has more days than the new\r\n // month. In this case we want to go to the last day of the desired month.\r\n // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't\r\n // guarantee this.\r\n if (this.getMonth(newDate) != (((this.getMonth(date) + months) % 12) + 12) % 12) {\r\n newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);\r\n }\r\n\r\n return newDate;\r\n }\r\n\r\n addCalendarDays(date: Date, days: number): Date {\r\n return this._createDateWithOverflow(\r\n this.getYear(date),\r\n this.getMonth(date),\r\n this.getDate(date) + days,\r\n );\r\n }\r\n\r\n toIso8601(date: Date): string {\r\n return [\r\n date.getUTCFullYear(),\r\n this._2digit(date.getUTCMonth() + 1),\r\n this._2digit(date.getUTCDate()),\r\n ].join('-');\r\n }\r\n\r\n /**\r\n * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings\r\n * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an\r\n * invalid date for all other values.\r\n */\r\n override deserialize(value: any): Date | null {\r\n if (typeof value === 'string') {\r\n if (!value) {\r\n return null;\r\n }\r\n // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\r\n // string is the right format first.\r\n if (ISO_8601_REGEX.test(value)) {\r\n let date = new Date(value);\r\n if (this.isValid(date)) {\r\n return date;\r\n }\r\n }\r\n }\r\n return super.deserialize(value);\r\n }\r\n\r\n isDateInstance(obj: any) {\r\n return obj instanceof Date;\r\n }\r\n\r\n isValid(date: Date) {\r\n return !isNaN(date.getTime());\r\n }\r\n\r\n invalid(): Date {\r\n return new Date(NaN);\r\n }\r\n\r\n override setTime(target: Date, hours: number, minutes: number, seconds: number): Date {\r\n if (isDevMode()) {\r\n if (!inRange(hours, 0, 23)) {\r\n throw Error(`Invalid hours \"${hours}\". Hours value must be between 0 and 23.`);\r\n }\r\n\r\n if (!inRange(minutes, 0, 59)) {\r\n throw Error(`Invalid minutes \"${minutes}\". Minutes value must be between 0 and 59.`);\r\n }\r\n\r\n if (!inRange(seconds, 0, 59)) {\r\n throw Error(`Invalid seconds \"${seconds}\". Seconds value must be between 0 and 59.`);\r\n }\r\n }\r\n\r\n const clone = this.clone(target);\r\n clone.setHours(hours, minutes, seconds, 0);\r\n return clone;\r\n }\r\n\r\n override getHours(date: Date): number {\r\n return date.getHours();\r\n }\r\n\r\n override getMinutes(date: Date): number {\r\n return date.getMinutes();\r\n }\r\n\r\n override getSeconds(date: Date): number {\r\n return date.getSeconds();\r\n }\r\n\r\n override parseTime(userValue: any, parseFormat?: any): Date | null {\r\n if (typeof userValue !== 'string') {\r\n return userValue instanceof Date ? new Date(userValue.getTime()) : null;\r\n }\r\n\r\n const value = userValue.trim();\r\n\r\n if (value.length === 0) {\r\n return null;\r\n }\r\n\r\n // Attempt to parse the value directly.\r\n let result = this._parseTimeString(value);\r\n\r\n // Some locales add extra characters around the time, but are otherwise parseable\r\n // (e.g. `00:05 ч.` in bg-BG). Try replacing all non-number and non-colon characters.\r\n if (result === null) {\r\n const withoutExtras = value.replace(/[^0-9:(AM|PM)]/gi, '').trim();\r\n\r\n if (withoutExtras.length > 0) {\r\n result = this._parseTimeString(withoutExtras);\r\n }\r\n }\r\n\r\n return result || this.invalid();\r\n }\r\n\r\n override addSeconds(date: Date, amount: number): Date {\r\n return new Date(date.getTime() + amount * 1000);\r\n }\r\n\r\n /** Creates a date but allows the month and date to overflow. */\r\n private _createDateWithOverflow(year: number, month: number, date: number) {\r\n // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\r\n // To work around this, we use `setFullYear` and `setHours` instead.\r\n const d = new Date();\r\n d.setFullYear(year, month, date);\r\n d.setHours(0, 0, 0, 0);\r\n return d;\r\n }\r\n\r\n /**\r\n * Pads a number to make it two digits.\r\n * @param n The number to pad.\r\n * @returns The padded number.\r\n */\r\n private _2digit(n: number) {\r\n return ('00' + n).slice(-2);\r\n }\r\n\r\n /**\r\n * When converting a Date object to string, javascript built-in functions may return wrong\r\n * results because it applies its internal DST rules. The DST rules around the world change\r\n * very frequently, and the current valid rule is not always valid in previous years though.\r\n * We work around this problem building a new Date object which has its internal UTC\r\n * representation with the local date and time.\r\n * @param dtf Intl.DateTimeFormat object, containing the desired string format. It must have\r\n * timeZone set to 'utc' to work fine.\r\n * @param date Date from which we want to get the string representation according to dtf\r\n * @returns A Date object with its UTC representation based on the passed in date info\r\n */\r\n private _format(dtf: Intl.DateTimeFormat, date: Date) {\r\n // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\r\n // To work around this, we use `setUTCFullYear` and `setUTCHours` instead.\r\n const d = new Date();\r\n d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());\r\n d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\r\n return dtf.format(d);\r\n }\r\n\r\n /**\r\n * Attempts to parse a time string into a date object. Returns null if it cannot be parsed.\r\n * @param value Time string to parse.\r\n */\r\n private _parseTimeString(value: string): Date | null {\r\n // Note: we can technically rely on the browser for the time parsing by generating\r\n // an ISO string and appending the string to the end of it. We don't do it, because\r\n // browsers aren't consistent in what they support. Some examples:\r\n // - Safari doesn't support AM/PM.\r\n // - Firefox produces a valid date object if the time string has overflows (e.g. 12:75) while\r\n // other browsers produce an invalid date.\r\n // - Safari doesn't allow padded numbers.\r\n const parsed = value.toUpperCase().match(TIME_REGEX);\r\n\r\n if (parsed) {\r\n let hours = parseInt(parsed[1]);\r\n const minutes = parseInt(parsed[2]);\r\n let seconds: number | undefined = parsed[3] == null ? undefined : parseInt(parsed[3]);\r\n const amPm = parsed[4] as 'AM' | 'PM' | undefined;\r\n\r\n if (hours === 12) {\r\n hours = amPm === 'AM' ? 0 : hours;\r\n } else if (amPm === 'PM') {\r\n hours += 12;\r\n }\r\n\r\n if (\r\n inRange(hours, 0, 23) &&\r\n inRange(minutes, 0, 59) &&\r\n (seconds == null || inRange(seconds, 0, 59))\r\n ) {\r\n return this.setTime(this.today(), hours, minutes, seconds || 0);\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n}\r\n\r\n/** Checks whether a number is within a certain range. */\r\nfunction inRange(value: number, min: number, max: number): boolean {\r\n return !isNaN(value) && value >= min && value <= max;\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 {CuteDateFormats} from './date-format';\r\n\r\nexport const CUTE_NATIVE_DATE_FORMATS: CuteDateFormats = {\r\n parse: {\r\n dateInput: null,\r\n timeInput: null,\r\n },\r\n display: {\r\n dateInput: {year: 'numeric', month: 'numeric', day: 'numeric'},\r\n timeInput: {hour: 'numeric', minute: 'numeric'},\r\n monthYearLabel: {year: 'numeric', month: 'short'},\r\n dateA11yLabel: {year: 'numeric', month: 'long', day: 'numeric'},\r\n monthYearA11yLabel: {year: 'numeric', month: 'long'},\r\n timeOptionLabel: {hour: 'numeric', minute: 'numeric'},\r\n },\r\n};\r\n","import {NgModule, Provider} from '@angular/core';\r\nimport {DateAdapter} from \"./date-adapter\";\r\nimport {NativeDateAdapter} from \"./native-date-adapter\";\r\nimport {CUTE_NATIVE_DATE_FORMATS} from \"./native-date-format\";\r\nimport {CuteDateFormats, CUTE_DATE_FORMATS} from \"./date-format\";\r\n\r\n@NgModule({\r\n providers: [{provide: DateAdapter, useClass: NativeDateAdapter}],\r\n})\r\nexport class NativeDateModule {}\r\n\r\n@NgModule({\r\n providers: [provideNativeDateAdapter()],\r\n})\r\nexport class CuteNativeDateModule {}\r\n\r\nexport function provideNativeDateAdapter(\r\n formats: CuteDateFormats = CUTE_NATIVE_DATE_FORMATS,\r\n): Provider[] {\r\n return [\r\n {provide: DateAdapter, useClass: NativeDateAdapter},\r\n {provide: CUTE_DATE_FORMATS, useValue: formats},\r\n ];\r\n}\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;AAUG;AAIH;MACa,gBAAgB,GAAG,IAAI,cAAc,CAAK,kBAAkB,EAAE;AACzE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,wBAAwB;AAClC,CAAA;AAED;;;;AAIG;SACa,wBAAwB,GAAA;AACtC,IAAA,OAAO,MAAM,CAAC,SAAS,CAAC;AAC1B;AAEA,MAAM,eAAe,GAAG,wBAAwB;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AhB,gBAAgB,EAAA,SAAA,EAFhB,CAAC,EAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAC,CAAC,EAAA,CAAA,CAAA;;4FAErD,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAC,CAAC;AACjE,iBAAA;;MAMY,oBAAoB,CAAA;+GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAApB,oBAAoB,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EAAA,SAAA,EAFpB,CAAC,wBAAwB,EAAE,CAAC,EAAA,CAAA,CAAA;;4FAE5B,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE,CAAC,wBAAwB,EAAE,CAAC;AACxC,iBAAA;;AAGK,SAAU,wBAAwB,CACtC,OAAA,GAA2B,wBAAwB,EAAA;IAEnD,OAAO;AACL,QAAA,EAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAC;AACnD,QAAA,EAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,EAAC;KAChD;AACH;;ACvBA;;AAEG;;;;"}
@@ -0,0 +1,404 @@
1
+ import * as i0 from '@angular/core';
2
+ import { HostListener, Directive, inject, ElementRef, EventEmitter, Output, Input, Renderer2, TemplateRef, ViewContainerRef, SecurityContext, HostAttributeToken, booleanAttribute } from '@angular/core';
3
+ import { bsBreakpoints } from '@cute-widgets/base/core/layout';
4
+ import { DomSanitizer } from '@angular/platform-browser';
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
+ * Allows users to disable the context menu that appears when they right-click
16
+ */
17
+ class CuteDisableContextMenu {
18
+ onContextMenu(event) {
19
+ event.preventDefault();
20
+ }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteDisableContextMenu, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
22
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: CuteDisableContextMenu, isStandalone: true, selector: "[cuteDisableContextMenu]", host: { listeners: { "contextmenu": "onContextMenu($event)" } }, ngImport: i0 }); }
23
+ }
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteDisableContextMenu, decorators: [{
25
+ type: Directive,
26
+ args: [{
27
+ selector: '[cuteDisableContextMenu]',
28
+ standalone: true,
29
+ }]
30
+ }], propDecorators: { onContextMenu: [{
31
+ type: HostListener,
32
+ args: ['contextmenu', ['$event']]
33
+ }] } });
34
+
35
+ /**
36
+ * @license Apache-2.0
37
+ *
38
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
39
+ *
40
+ * You may not use this file except in compliance with the License
41
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
42
+ */
43
+ /**
44
+ * Tracks a click outside the target element.
45
+ * @example
46
+ * <div cuteClickOutside (clickOutside)="closeDropdown()">
47
+ * <button (click)="toggleDropdown()">Toggle Dropdown</button>
48
+ * <div *ngIf="dropdownOpen" class="dropdown">
49
+ * Dropdown content
50
+ * </div>
51
+ * </div>
52
+ */
53
+ class CuteClickOutside {
54
+ constructor() {
55
+ this._elementRef = inject(ElementRef);
56
+ /** Emitted when the user clicks on a document outside the parent element. */
57
+ this.cuteClickOutside = new EventEmitter();
58
+ }
59
+ onClick(event) {
60
+ if (!this._elementRef.nativeElement.contains(event.target)) {
61
+ this.cuteClickOutside.emit(event);
62
+ }
63
+ }
64
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteClickOutside, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
65
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: CuteClickOutside, isStandalone: true, selector: "[cuteClickOutside]", outputs: { cuteClickOutside: "cuteClickOutside" }, host: { listeners: { "document:click": "onClick($event)" } }, ngImport: i0 }); }
66
+ }
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteClickOutside, decorators: [{
68
+ type: Directive,
69
+ args: [{
70
+ selector: '[cuteClickOutside]'
71
+ }]
72
+ }], ctorParameters: () => [], propDecorators: { cuteClickOutside: [{
73
+ type: Output
74
+ }], onClick: [{
75
+ type: HostListener,
76
+ args: ['document:click', ['$event']]
77
+ }] } });
78
+
79
+ /**
80
+ * @license Apache-2.0
81
+ *
82
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
83
+ *
84
+ * You may not use this file except in compliance with the License
85
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
86
+ */
87
+ /**
88
+ * Allows users to copy a text to _system_ clipboard using the `Clipboard API`. The Clipboard API allows users to
89
+ * programmatically read and write text and other kinds of data to and from the system clipboard in _secure contexts_.
90
+ *
91
+ * @example
92
+ * ```HTML
93
+ * <button [cuteCopyToClipboard]="'Text to copy'"> Copy to Clipboard </button>
94
+ * ```
95
+ */
96
+ class CuteCopyToClipboard {
97
+ constructor() {
98
+ this.el = inject(ElementRef);
99
+ /** Emits when some text is copied to the clipboard. The emitted value indicates whether copying was successful. */
100
+ this.cuteCopyToClipboardCopied = new EventEmitter();
101
+ }
102
+ onClick() {
103
+ if (this.data) {
104
+ if (window.isSecureContext) {
105
+ try {
106
+ let dataToWrite;
107
+ if (this.data instanceof Function) {
108
+ dataToWrite = this.data();
109
+ }
110
+ else {
111
+ dataToWrite = this.data;
112
+ }
113
+ if (typeof dataToWrite === "string") {
114
+ navigator.clipboard
115
+ .writeText(dataToWrite)
116
+ .then(() => this.cuteCopyToClipboardCopied.next(true))
117
+ .catch(() => {
118
+ this.cuteCopyToClipboardCopied.next(false);
119
+ });
120
+ }
121
+ else {
122
+ let items;
123
+ if (dataToWrite instanceof ClipboardItem) {
124
+ items = [dataToWrite];
125
+ }
126
+ else {
127
+ items = dataToWrite;
128
+ }
129
+ navigator.clipboard
130
+ .write(items)
131
+ .then(() => this.cuteCopyToClipboardCopied.next(true))
132
+ .catch(() => {
133
+ this.cuteCopyToClipboardCopied.next(false);
134
+ });
135
+ }
136
+ }
137
+ catch (err) {
138
+ console.error(err.message);
139
+ }
140
+ }
141
+ else {
142
+ console.error("The Clipboard API is available only in secure contexts (HTTPS)");
143
+ this.cuteCopyToClipboardCopied.next(false);
144
+ }
145
+ }
146
+ else {
147
+ this.cuteCopyToClipboardCopied.next(false);
148
+ }
149
+ }
150
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteCopyToClipboard, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
151
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: CuteCopyToClipboard, isStandalone: true, selector: "[cuteCopyToClipboard]", inputs: { data: ["cuteCopyToClipboard", "data"] }, outputs: { cuteCopyToClipboardCopied: "cuteCopyToClipboardCopied" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
152
+ }
153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteCopyToClipboard, decorators: [{
154
+ type: Directive,
155
+ args: [{
156
+ selector: '[cuteCopyToClipboard]',
157
+ standalone: true,
158
+ }]
159
+ }], ctorParameters: () => [], propDecorators: { data: [{
160
+ type: Input,
161
+ args: ["cuteCopyToClipboard"]
162
+ }], cuteCopyToClipboardCopied: [{
163
+ type: Output
164
+ }], onClick: [{
165
+ type: HostListener,
166
+ args: ['click']
167
+ }] } });
168
+
169
+ /**
170
+ * @license Apache-2.0
171
+ *
172
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
173
+ *
174
+ * You may not use this file except in compliance with the License
175
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
176
+ */
177
+ class CuteTimeAgo {
178
+ constructor() {
179
+ this.el = inject(ElementRef);
180
+ this.renderer = inject(Renderer2);
181
+ }
182
+ ngOnChanges(changes) {
183
+ if (changes["cuteTimeAgo"]) {
184
+ this.updateTimeAgo();
185
+ }
186
+ }
187
+ updateTimeAgo() {
188
+ if (this.cuteTimeAgo instanceof Date) {
189
+ const timeDifference = Date.now() - this.cuteTimeAgo.getTime();
190
+ const secondsAgo = Math.floor(timeDifference / 1000);
191
+ let text;
192
+ if (secondsAgo < 60) {
193
+ text = 'just now';
194
+ }
195
+ else if (secondsAgo < 3600) {
196
+ const minutes = Math.floor(secondsAgo / 60);
197
+ text = `${minutes} minute${minutes > 1 ? 's' : ''} ago`;
198
+ }
199
+ else if (secondsAgo < 86400) {
200
+ const hours = Math.floor(secondsAgo / 3600);
201
+ text = `${hours} hour${hours > 1 ? 's' : ''} ago`;
202
+ }
203
+ else {
204
+ const days = Math.floor(secondsAgo / 86400);
205
+ text = `${days} day${days > 1 ? 's' : ''} ago`;
206
+ }
207
+ this.renderer.setProperty(this.el.nativeElement, 'textContent', text);
208
+ }
209
+ }
210
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteTimeAgo, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
211
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: CuteTimeAgo, isStandalone: true, selector: "[cuteTimeAgo]", inputs: { cuteTimeAgo: "cuteTimeAgo" }, usesOnChanges: true, ngImport: i0 }); }
212
+ }
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteTimeAgo, decorators: [{
214
+ type: Directive,
215
+ args: [{
216
+ selector: '[cuteTimeAgo]',
217
+ standalone: true,
218
+ }]
219
+ }], ctorParameters: () => [], propDecorators: { cuteTimeAgo: [{
220
+ type: Input
221
+ }] } });
222
+
223
+ /**
224
+ * @license Apache-2.0
225
+ *
226
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
227
+ *
228
+ * You may not use this file except in compliance with the License
229
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
230
+ */
231
+ /**
232
+ * ```HTML
233
+ * <div cuteResponsive="md, lg">
234
+ * This content is visible on medium and large screens.
235
+ * </div>
236
+ * ```
237
+ */
238
+ class CuteResponsive {
239
+ constructor() {
240
+ this.templateRef = inject(TemplateRef);
241
+ this.viewContainer = inject(ViewContainerRef);
242
+ }
243
+ ngOnInit() {
244
+ this.detectScreenSize();
245
+ }
246
+ detectScreenSize() {
247
+ const screenWidth = this.getScreenWidth();
248
+ if (this.breakPoints?.includes(screenWidth)) {
249
+ this.viewContainer.createEmbeddedView(this.templateRef);
250
+ }
251
+ else {
252
+ this.viewContainer.clear();
253
+ }
254
+ }
255
+ getScreenWidth() {
256
+ const width = window.innerWidth;
257
+ if (width >= bsBreakpoints.grid.xxl) {
258
+ return 'xxl';
259
+ }
260
+ else if (width >= bsBreakpoints.grid.xl) {
261
+ return 'xl';
262
+ }
263
+ else if (width >= bsBreakpoints.grid.lg) {
264
+ return 'lg';
265
+ }
266
+ else if (width >= bsBreakpoints.grid.md) {
267
+ return 'md';
268
+ }
269
+ else if (width >= bsBreakpoints.grid.sm) {
270
+ return 'sm';
271
+ }
272
+ else {
273
+ return 'xs';
274
+ }
275
+ }
276
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteResponsive, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
277
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: CuteResponsive, isStandalone: true, selector: "[cuteResponsive]", inputs: { breakPoints: ["cuteResponsive", "breakPoints"] }, ngImport: i0 }); }
278
+ }
279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteResponsive, decorators: [{
280
+ type: Directive,
281
+ args: [{
282
+ selector: '[cuteResponsive]',
283
+ standalone: true,
284
+ }]
285
+ }], ctorParameters: () => [], propDecorators: { breakPoints: [{
286
+ type: Input,
287
+ args: ["cuteResponsive"]
288
+ }] } });
289
+
290
+ /**
291
+ * @license Apache-2.0
292
+ *
293
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
294
+ *
295
+ * You may not use this file except in compliance with the License
296
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
297
+ */
298
+ /**
299
+ * Appends `<use href=[symbolPath]>` as a child element of the SVG.
300
+ * @example
301
+ * ```html
302
+ * <svg width="1em" height="1em" [cuteSvgSymbol]="BOOTSTRAP_ICONS+'#collection'"></svg>
303
+ * ```
304
+ */
305
+ class CuteSvgSymbol {
306
+ constructor() {
307
+ this._elementRef = inject(ElementRef);
308
+ this._sanitizer = inject(DomSanitizer);
309
+ /** Path to SVG **symbol** element including its `id` prefixed with **#**. */
310
+ this.svgSymbol = null;
311
+ }
312
+ ngOnInit() {
313
+ const url = this._sanitizer.sanitize(SecurityContext.URL, this.svgSymbol);
314
+ if (url) {
315
+ this._elementRef.nativeElement.innerHTML = `<use href="${url}"></use>`;
316
+ }
317
+ }
318
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteSvgSymbol, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
319
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: CuteSvgSymbol, isStandalone: true, selector: "svg[cuteSvgSymbol]", inputs: { svgSymbol: ["cuteSvgSymbol", "svgSymbol"] }, host: { attributes: { "ngSkipHydration": "true" }, properties: { "attr.cuteSvgSymbol": "null" } }, ngImport: i0 }); }
320
+ }
321
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteSvgSymbol, decorators: [{
322
+ type: Directive,
323
+ args: [{
324
+ selector: 'svg[cuteSvgSymbol]',
325
+ host: {
326
+ '[attr.cuteSvgSymbol]': 'null',
327
+ 'ngSkipHydration': 'true',
328
+ },
329
+ standalone: true,
330
+ }]
331
+ }], ctorParameters: () => [], propDecorators: { svgSymbol: [{
332
+ type: Input,
333
+ args: [{ alias: "cuteSvgSymbol", required: true }]
334
+ }] } });
335
+
336
+ /**
337
+ * @license Apache-2.0
338
+ *
339
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
340
+ *
341
+ * You may not use this file except in compliance with the License
342
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
343
+ */
344
+ /**
345
+ * The icon link helper directive modifies the default link styles to enhance their appearance and
346
+ * quickly align any pairing of icon and text.
347
+ */
348
+ class CuteIconLink /* extends ... */ {
349
+ constructor() {
350
+ this.noHRef = false;
351
+ /** Whether to move the icon to the right on hover. */
352
+ this.hovered = false;
353
+ const href = inject(new HostAttributeToken("href"), { optional: true });
354
+ this.noHRef = !href;
355
+ }
356
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteIconLink /* extends ... */, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
357
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.3.15", type: CuteIconLink /* extends ... */, isStandalone: true, selector: "a[cuteIconLink]", inputs: { hovered: ["hovered", "hovered", booleanAttribute] }, host: { properties: { "class.icon-link-hover": "hovered" }, classAttribute: "icon-link" }, exportAs: ["cuteIconLink"], ngImport: i0 }); }
358
+ }
359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteIconLink /* extends ... */, decorators: [{
360
+ type: Directive,
361
+ args: [{
362
+ selector: 'a[cuteIconLink]',
363
+ exportAs: 'cuteIconLink',
364
+ host: {
365
+ 'class': 'icon-link',
366
+ '[class.icon-link-hover]': 'hovered',
367
+ //'[style.cursor]': 'noHRef ? "pointer" : undefined',
368
+ },
369
+ standalone: true,
370
+ }]
371
+ }], ctorParameters: () => [], propDecorators: { hovered: [{
372
+ type: Input,
373
+ args: [{ transform: booleanAttribute }]
374
+ }] } });
375
+
376
+ /**
377
+ * @license Apache-2.0
378
+ *
379
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
380
+ *
381
+ * You may not use this file except in compliance with the License
382
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
383
+ */
384
+ class CuteFocusInitial {
385
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteFocusInitial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
386
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: CuteFocusInitial, isStandalone: true, selector: "[cuteFocusInitial]", host: { properties: { "attr.cdkFocusInitial": "true" } }, ngImport: i0 }); }
387
+ }
388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CuteFocusInitial, decorators: [{
389
+ type: Directive,
390
+ args: [{
391
+ selector: '[cuteFocusInitial]',
392
+ standalone: true,
393
+ host: {
394
+ '[attr.cdkFocusInitial]': 'true',
395
+ }
396
+ }]
397
+ }] });
398
+
399
+ /**
400
+ * Generated bundle index. Do not edit.
401
+ */
402
+
403
+ export { CuteClickOutside, CuteCopyToClipboard, CuteDisableContextMenu, CuteFocusInitial, CuteIconLink, CuteResponsive, CuteSvgSymbol, CuteTimeAgo };
404
+ //# sourceMappingURL=cute-widgets-base-core-directives.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cute-widgets-base-core-directives.mjs","sources":["../../../../projects/cute-widgets/base/core/directives/src/disable-context-menu.ts","../../../../projects/cute-widgets/base/core/directives/src/click-outside.ts","../../../../projects/cute-widgets/base/core/directives/src/copy-to-clipboard.ts","../../../../projects/cute-widgets/base/core/directives/src/time-ago.ts","../../../../projects/cute-widgets/base/core/directives/src/responsive.ts","../../../../projects/cute-widgets/base/core/directives/src/svg-symbol.ts","../../../../projects/cute-widgets/base/core/directives/src/icon-link.ts","../../../../projects/cute-widgets/base/core/directives/src/focus-initial.ts","../../../../projects/cute-widgets/base/core/directives/cute-widgets-base-core-directives.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\nimport { Directive, HostListener } from '@angular/core';\r\n\r\n/**\r\n * Allows users to disable the context menu that appears when they right-click\r\n */\r\n@Directive({\r\n selector: '[cuteDisableContextMenu]',\r\n standalone: true,\r\n})\r\nexport class CuteDisableContextMenu {\r\n @HostListener('contextmenu', ['$event'])\r\n onContextMenu(event: Event): void {\r\n event.preventDefault();\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\nimport {Directive, ElementRef, Output, EventEmitter, HostListener, inject} from '@angular/core';\r\n\r\n/**\r\n * Tracks a click outside the target element.\r\n * @example\r\n * <div cuteClickOutside (clickOutside)=\"closeDropdown()\">\r\n * <button (click)=\"toggleDropdown()\">Toggle Dropdown</button>\r\n * <div *ngIf=\"dropdownOpen\" class=\"dropdown\">\r\n * Dropdown content\r\n * </div>\r\n * </div>\r\n */\r\n@Directive({\r\n selector: '[cuteClickOutside]'\r\n})\r\nexport class CuteClickOutside {\r\n private _elementRef = inject(ElementRef);\r\n\r\n /** Emitted when the user clicks on a document outside the parent element. */\r\n @Output() cuteClickOutside = new EventEmitter<MouseEvent>();\r\n\r\n constructor() {}\r\n\r\n @HostListener('document:click', ['$event'])\r\n onClick(event: MouseEvent): void {\r\n if (!this._elementRef.nativeElement.contains(event.target)) {\r\n this.cuteClickOutside.emit(event);\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\nimport {Directive, Input, ElementRef, HostListener, inject, Output, EventEmitter} from '@angular/core';\r\n\r\n/**\r\n * Allows users to copy a text to _system_ clipboard using the `Clipboard API`. The Clipboard API allows users to\r\n * programmatically read and write text and other kinds of data to and from the system clipboard in _secure contexts_.\r\n *\r\n * @example\r\n * ```HTML\r\n * <button [cuteCopyToClipboard]=\"'Text to copy'\"> Copy to Clipboard </button>\r\n * ```\r\n */\r\n@Directive({\r\n selector: '[cuteCopyToClipboard]',\r\n standalone: true,\r\n})\r\nexport class CuteCopyToClipboard {\r\n private el = inject(ElementRef);\r\n\r\n /** Text to copy to clipboard when the user clicks on the element that directive belongs to */\r\n @Input(\"cuteCopyToClipboard\") data?: string | ClipboardItem | ClipboardItems | (() => string|ClipboardItem|ClipboardItems);\r\n\r\n /** Emits when some text is copied to the clipboard. The emitted value indicates whether copying was successful. */\r\n @Output() cuteCopyToClipboardCopied = new EventEmitter<boolean>();\r\n\r\n constructor() {}\r\n\r\n @HostListener('click')\r\n onClick() {\r\n if (this.data) {\r\n if (window.isSecureContext) {\r\n try {\r\n let dataToWrite;\r\n if (this.data instanceof Function) {\r\n dataToWrite = this.data()\r\n } else {\r\n dataToWrite = this.data;\r\n }\r\n if (typeof dataToWrite === \"string\") {\r\n navigator.clipboard\r\n .writeText(dataToWrite)\r\n .then(() => this.cuteCopyToClipboardCopied.next(true))\r\n .catch(() => {\r\n this.cuteCopyToClipboardCopied.next(false);\r\n });\r\n } else {\r\n let items: ClipboardItems;\r\n if (dataToWrite instanceof ClipboardItem) {\r\n items = [dataToWrite];\r\n } else {\r\n items = dataToWrite;\r\n }\r\n navigator.clipboard\r\n .write(items)\r\n .then(() => this.cuteCopyToClipboardCopied.next(true))\r\n .catch(() => {\r\n this.cuteCopyToClipboardCopied.next(false);\r\n });\r\n }\r\n } catch (err: any) {\r\n console.error(err.message);\r\n }\r\n } else {\r\n console.error(\"The Clipboard API is available only in secure contexts (HTTPS)\");\r\n this.cuteCopyToClipboardCopied.next(false);\r\n }\r\n } else {\r\n this.cuteCopyToClipboardCopied.next(false);\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\r\nimport {Directive, Input, ElementRef, Renderer2, OnChanges, SimpleChanges, inject} from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[cuteTimeAgo]',\r\n standalone: true,\r\n})\r\nexport class CuteTimeAgo implements OnChanges {\r\n private el = inject<ElementRef<HTMLElement>>(ElementRef);\r\n private renderer = inject(Renderer2);\r\n\r\n @Input() cuteTimeAgo?: Date;\r\n\r\n constructor() {}\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes[\"cuteTimeAgo\"]) {\r\n this.updateTimeAgo();\r\n }\r\n }\r\n\r\n private updateTimeAgo(): void {\r\n if (this.cuteTimeAgo instanceof Date) {\r\n const timeDifference = Date.now() - this.cuteTimeAgo.getTime();\r\n const secondsAgo = Math.floor(timeDifference / 1000);\r\n\r\n let text: string;\r\n\r\n if (secondsAgo < 60) {\r\n text = 'just now';\r\n } else if (secondsAgo < 3600) {\r\n const minutes = Math.floor(secondsAgo / 60);\r\n text = `${minutes} minute${minutes > 1 ? 's' : ''} ago`;\r\n } else if (secondsAgo < 86400) {\r\n const hours = Math.floor(secondsAgo / 3600);\r\n text = `${hours} hour${hours > 1 ? 's' : ''} ago`;\r\n } else {\r\n const days = Math.floor(secondsAgo / 86400);\r\n text = `${days} day${days > 1 ? 's' : ''} ago`;\r\n }\r\n\r\n this.renderer.setProperty(this.el.nativeElement, 'textContent', text);\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\r\nimport {Directive, inject, Input, OnInit, TemplateRef, ViewContainerRef} from '@angular/core';\r\nimport {LayoutBreakpoint} from \"@cute-widgets/base/core/types\";\r\nimport {bsBreakpoints} from \"@cute-widgets/base/core/layout\";\r\n\r\n/**\r\n * ```HTML\r\n * <div cuteResponsive=\"md, lg\">\r\n * This content is visible on medium and large screens.\r\n * </div>\r\n * ```\r\n */\r\n@Directive({\r\n selector: '[cuteResponsive]',\r\n standalone: true,\r\n})\r\nexport class CuteResponsive implements OnInit {\r\n private templateRef = inject(TemplateRef);\r\n private viewContainer = inject(ViewContainerRef);\r\n\r\n /** Comma-separated screen size breakpoints (e.g., 'md, lg') or an array of it. */\r\n @Input(\"cuteResponsive\") breakPoints?: string | LayoutBreakpoint[];\r\n\r\n constructor() {}\r\n\r\n ngOnInit() {\r\n this.detectScreenSize();\r\n }\r\n\r\n private detectScreenSize() {\r\n const screenWidth = this.getScreenWidth();\r\n if (this.breakPoints?.includes(screenWidth)) {\r\n this.viewContainer.createEmbeddedView(this.templateRef);\r\n } else {\r\n this.viewContainer.clear();\r\n }\r\n }\r\n\r\n private getScreenWidth(): LayoutBreakpoint {\r\n const width = window.innerWidth;\r\n if (width >= bsBreakpoints.grid.xxl) { return 'xxl'; } else\r\n if (width >= bsBreakpoints.grid.xl) { return 'xl'; } else\r\n if (width >= bsBreakpoints.grid.lg) { return 'lg'; } else\r\n if (width >= bsBreakpoints.grid.md) { return 'md'; } else\r\n if (width >= bsBreakpoints.grid.sm) { return 'sm'; } else\r\n { return 'xs'; }\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\nimport {Directive, ElementRef, inject, Input, OnInit, SecurityContext} from \"@angular/core\";\r\nimport {DomSanitizer} from \"@angular/platform-browser\";\r\n\r\n/**\r\n * Appends `<use href=[symbolPath]>` as a child element of the SVG.\r\n * @example\r\n * ```html\r\n * <svg width=\"1em\" height=\"1em\" [cuteSvgSymbol]=\"BOOTSTRAP_ICONS+'#collection'\"></svg>\r\n * ```\r\n */\r\n@Directive({\r\n selector: 'svg[cuteSvgSymbol]',\r\n host: {\r\n '[attr.cuteSvgSymbol]': 'null',\r\n 'ngSkipHydration': 'true',\r\n },\r\n standalone: true,\r\n})\r\nexport class CuteSvgSymbol implements OnInit {\r\n private _elementRef = inject<ElementRef<SVGElement>>(ElementRef);\r\n private _sanitizer = inject(DomSanitizer);\r\n\r\n /** Path to SVG **symbol** element including its `id` prefixed with **#**. */\r\n @Input({alias: \"cuteSvgSymbol\", required: true}) svgSymbol: string|null = null ;\r\n\r\n constructor() {\r\n }\r\n\r\n ngOnInit() {\r\n const url = this._sanitizer.sanitize(SecurityContext.URL, this.svgSymbol);\r\n if (url) {\r\n this._elementRef.nativeElement.innerHTML = `<use href=\"${url}\"></use>`;\r\n }\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\r\nimport {booleanAttribute, Directive, HostAttributeToken, inject, Input} from \"@angular/core\";\r\n\r\n/**\r\n * The icon link helper directive modifies the default link styles to enhance their appearance and\r\n * quickly align any pairing of icon and text.\r\n */\r\n@Directive({\r\n selector: 'a[cuteIconLink]',\r\n exportAs: 'cuteIconLink',\r\n host: {\r\n 'class': 'icon-link',\r\n '[class.icon-link-hover]': 'hovered',\r\n //'[style.cursor]': 'noHRef ? \"pointer\" : undefined',\r\n },\r\n standalone: true,\r\n})\r\nexport class CuteIconLink /* extends ... */ {\r\n\r\n protected noHRef: boolean = false;\r\n\r\n /** Whether to move the icon to the right on hover. */\r\n @Input({transform: booleanAttribute})\r\n hovered: boolean = false;\r\n\r\n constructor() {\r\n const href = inject(new HostAttributeToken(\"href\"), {optional: true});\r\n this.noHRef = !href;\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\nimport {Directive} from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[cuteFocusInitial]',\r\n standalone: true,\r\n host: {\r\n '[attr.cdkFocusInitial]': 'true',\r\n }\r\n})\r\nexport class CuteFocusInitial {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;;;;;;;AAOG;AAGH;;AAEG;MAKU,sBAAsB,CAAA;AAEjC,IAAA,aAAa,CAAC,KAAY,EAAA;QACxB,KAAK,CAAC,cAAc,EAAE;IACxB;+GAJW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAA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