{"version":3,"file":"allianz-ng-aquila-utils.mjs","names":[],"sources":["../../../projects/ng-aquila/src/utils/coercion.functions.ts","../../../projects/ng-aquila/src/utils/error-state-matcher.ts","../../../projects/ng-aquila/src/utils/id-generation.service.ts","../../../projects/ng-aquila/src/utils/testing.ts","../../../projects/ng-aquila/src/utils/text-measurement.service.ts","../../../projects/ng-aquila/src/utils/trusted-types.ts","../../../projects/ng-aquila/src/utils/type-guard.functions.ts","../../../projects/ng-aquila/src/utils/utils.ts","../../../projects/ng-aquila/src/utils/viewport.service.ts"],"sourcesContent":["import { booleanAttribute } from '@angular/core';\n\n/**\n * `booleanAttribute` that passes `undefined` through instead of coercing it to\n * `false`, so an explicit input can be told apart from an unset one and win over\n * a fallback.\n */\nexport function nxOptionalBooleanAttribute(value: unknown): boolean | undefined {\n  return value === undefined || value === null ? undefined : booleanAttribute(value);\n}\n","import { Injectable } from '@angular/core';\nimport { AbstractControl, FormGroupDirective, NgControl, NgForm } from '@angular/forms';\n\n/**\n * Provider that defines when form controls have an error.\n */\n@Injectable({\n  providedIn: 'root',\n})\nexport class ErrorStateMatcher {\n  isErrorState(\n    control: AbstractControl | NgControl | null,\n    form: FormGroupDirective | NgForm | null,\n  ): boolean {\n    return !!(control?.invalid && (control.touched || form?.submitted));\n  }\n}\n","import { APP_ID, inject, Injectable } from '@angular/core';\n\n/**\n * Service to generate unique IDs using the Angular APP_ID as a namespace.\n * If the APP_ID is the default 'ng', a random string is used instead.\n * This helps prevent ID collisions in micro frontend scenarios.\n */\n@Injectable({ providedIn: 'root' })\nexport class IdGenerationService {\n  private static _counter = 0;\n  private readonly _appId: string;\n\n  constructor() {\n    const appId = inject(APP_ID, { optional: true });\n    // If APP_ID is not provided or is the default 'ng', generate a random one\n    if (!appId || appId === 'ng') {\n      this._appId = 'ng-' + Math.random().toString(36).slice(2, 10);\n    } else {\n      this._appId = appId;\n    }\n  }\n\n  /**\n   * Generates a unique ID with the given prefix.\n   * @param prefix The prefix for the ID (e.g., component name)\n   * @returns A unique ID string\n   */\n  nextId(prefix: string): string {\n    return `${this._appId}-${prefix}-${IdGenerationService._counter++}`;\n  }\n}\n","import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';\n\n/**\n * Helper ScrollStrategy to be used in tests to test overriding the default scroll strategy.\n *\n * Example usage:\n * TestBed.resetTestingModule()\n * .configureTestingModule({\n * imports: [ScrollStrategyOverrideComponent, NxAutocompleteModule, NxInputModule],\n * providers: [\n * {\n *  provide: NX_AUTOCOMPLETE_SCROLL_STRATEGY,\n *  useFactory: () => fakeScrollStrategyFunction,\n * },\n * ],\n * })\n * .compileComponents();\n * createTestComponent(ScrollStrategyOverrideComponent);\n * expect((testInstance as ScrollStrategyOverrideComponent).scrollStrategy).toBe(fakeScrollStrategyFunction);\n *\n */\nexport class FakeScrollStrategy implements ScrollStrategy {\n  isEnabled = false;\n  overlayRef!: OverlayRef;\n\n  attach(overlayRef: OverlayRef) {\n    this.overlayRef = overlayRef;\n  }\n\n  enable() {\n    this.isEnabled = true;\n  }\n\n  disable() {\n    this.isEnabled = false;\n  }\n\n  detach() {\n    this.overlayRef = null!;\n  }\n}\n\n/** See usage at FakeScrollStrategy */\nexport const fakeScrollStrategyFunction = () => new FakeScrollStrategy();\n","import { isPlatformBrowser } from '@angular/common';\nimport { inject, Injectable, PLATFORM_ID } from '@angular/core';\n\n/**\n * Service for measuring text width using canvas context.\n */\n@Injectable({ providedIn: 'root' })\nexport class TextMeasurementService {\n  private readonly _platformId = inject(PLATFORM_ID);\n  private _textMeasureContext: CanvasRenderingContext2D | null = null;\n\n  private _getTextMeasureContext(): CanvasRenderingContext2D | null {\n    if (!isPlatformBrowser(this._platformId)) {\n      return null;\n    }\n\n    if (!this._textMeasureContext) {\n      const canvas = document.createElement('canvas');\n      this._textMeasureContext = canvas.getContext('2d');\n    }\n    return this._textMeasureContext;\n  }\n\n  /**\n   * Measure the pixel width of a text string using canvas.\n   * Optionally uses the font from a specific HTML input element.\n   * @param text The text to measure\n   * @param inputElement Optional input element to get font styles from\n   * @returns The pixel width of the text, or 0 if measurement is not possible\n   */\n  private measureTextWidth(text: string | null, inputElement?: HTMLInputElement): number {\n    if (!text) {\n      return 0;\n    }\n\n    const context = this._getTextMeasureContext();\n    if (!context) {\n      return 0;\n    }\n\n    if (inputElement) {\n      const computedStyle = window.getComputedStyle(inputElement);\n      context.font = computedStyle.font;\n    }\n\n    return Math.ceil(context.measureText(text).width);\n  }\n\n  /**\n   * Compute the optimal width for an input field based on its value and placeholder.\n   * @param value The current value of the input\n   * @param placeholder The placeholder text\n   * @param maxInputLength The maximum length of the input\n   * @param inputElement Optional input element to get font styles from\n   * @returns A CSS width string in pixels\n   */\n  computeInputWidth(\n    value: string | null,\n    placeholder: string,\n    maxInputLength: number,\n    inputElement?: HTMLInputElement,\n  ): string {\n    if (!value) {\n      const placeholderWidth = this.measureTextWidth(placeholder, inputElement);\n      return `${placeholderWidth}px`;\n    }\n    if (value.length === maxInputLength) {\n      const valueWidth = this.measureTextWidth(value, inputElement);\n      return `${Math.ceil(valueWidth)}px`;\n    }\n\n    const effectiveText = value && value.length > 0 ? value : placeholder;\n    const textWidth = this.measureTextWidth(effectiveText, inputElement);\n    const digitWidth = this.measureTextWidth('0', inputElement);\n    const inputValueWidth = Math.max(textWidth, digitWidth * maxInputLength);\n    return `${Math.ceil(inputValueWidth)}px`;\n  }\n}\n","// TypeScript's DOM lib does not ship Trusted Types typings yet.\ninterface TrustedHTML {\n  readonly __brand__: 'TrustedHTML';\n}\n\ninterface TrustedTypePolicy {\n  createHTML(input: string): TrustedHTML;\n}\n\ninterface TrustedTypePolicyFactory {\n  createPolicy(name: string, rules: { createHTML(input: string): string }): TrustedTypePolicy;\n}\n\nlet policy: TrustedTypePolicy | undefined;\nlet policyRequested = false;\n\nfunction getPolicy(): TrustedTypePolicy | undefined {\n  if (policyRequested) {\n    return policy;\n  }\n  policyRequested = true;\n\n  const trustedTypes = (globalThis as { trustedTypes?: TrustedTypePolicyFactory }).trustedTypes;\n  try {\n    policy = trustedTypes?.createPolicy('ng-aquila', { createHTML: (s) => s });\n  } catch (error) {\n    console.error(error);\n  }\n  return policy;\n}\n\n/**\n * @docs-private\n * Only pass HTML that is already sanitized or comes from a trusted source.\n */\nexport function _trustedHTML(html: string): TrustedHTML {\n  return getPolicy()?.createHTML(html) ?? (html as unknown as TrustedHTML);\n}\n","/**\n * Assert that a value is not `null` and redefine its type.\n */\nexport function notNull<T>(value: T | null): value is T {\n  return value !== null;\n}\n\n/**\n * Assert that a value is not `undefined` or `null` and redefine its type.\n */\nexport function notNullable<T>(value: T | null | undefined): value is T {\n  return value != null;\n}\n\n/**\n * Assert that a value is not `undefined` and redefine its type.\n */\nexport function notUndefined<T>(value: T | undefined): value is T {\n  return value !== undefined;\n}\n\n/**\n * Assert that a value is truthy using the double negation operator `!!` and redefine its type.\n */\nexport function isTruthy<T>(value: T | null | undefined): value is T {\n  return !!value;\n}\n\n/**\n * Assert that a value is `string` using `typeof` check and redefine its type.\n */\nexport function isString(value: unknown): value is string {\n  return typeof value === 'string';\n}\n\n/**\n * Assert that a value is `number` using `typeof` check and redefine its type.\n */\nexport function isNumber(value: unknown): value is number {\n  return typeof value === 'number';\n}\n\n/**\n * Assert that a value is `boolean` using `typeof` check and redefine its type.\n */\nexport function isBoolean(value: unknown): value is boolean {\n  return typeof value === 'boolean';\n}\n\n/**\n * Assert that a value is `true` and redefine its type.\n */\nexport function isTrue(value: unknown): value is true {\n  return value === true;\n}\n\n/**\n * Assert that a value is `false` and redefine its type.\n */\nexport function isFalse(value: unknown): value is false {\n  return value === false;\n}\n\n/**\n * Assert that a value is `null` and redefine its type.\n */\nexport function isNull(value: unknown): value is null {\n  return value === null;\n}\n\n/**\n * Assert that a value is `null` or `undefined` and redefine its type.\n */\nexport function isNullable(value: unknown): value is null | undefined {\n  return value == null;\n}\n\n/**\n * Assert that a value is `undefined` and redefine its type.\n */\nexport function isUndefined(value: unknown): value is undefined {\n  return value === undefined;\n}\n\n/**\n * Assert that a value is not `undefined` or `null` or an empty `ArrayLike` object such as `string` and redefine its type.\n */\nexport function notEmpty<T extends ArrayLike<unknown>>(value: T | null | undefined): value is T {\n  return value != null && !!value.length;\n}\n","import { ElementRef, Renderer2 } from '@angular/core';\n\n// TODO comment function purpose\nexport function pad(str: string, length = 2, padCharacter = '0'): string {\n  if (typeof str !== 'string' || str.length >= length) {\n    return str;\n  }\n  while (str.length < length) {\n    str = padCharacter + str;\n  }\n  return str;\n}\n\n// DATE -> YYYY-MM-DD\n// TODO comment function purpose\nexport function formatDate(date: Date): string {\n  return [\n    String(date.getFullYear()),\n    pad(String(date.getMonth() + 1)),\n    pad(String(date.getDate())),\n  ].join('-');\n}\n\n// TODO comment function purpose\nexport function formatDateHuman(date: Date): string {\n  return [\n    pad(String(date.getDate())),\n    pad(String(date.getMonth() + 1)),\n    String(date.getFullYear()),\n  ].join('-');\n}\n\n/**\n * The purpose of this function is to allow a list of short keywords\n * expand to longer bem class names with will then be applied to the classname value.\n *\n * This function will map a list of keys to values in a MAPPING list.\n * Whatever value is found will replace the keyword.\n * Every keyword not found will just transfered wiithmout modifying.\n */\nexport function mapClassNames(value: string, DEFAULTS: string[] = [], MAPPING = {}): string {\n  let sanitizedList: string[] = [...DEFAULTS];\n\n  if (typeof value === 'string') {\n    const mappedClasses = getClassNameList(value, MAPPING);\n\n    sanitizedList = [...sanitizedList, ...mappedClasses];\n  }\n  return sanitizedList.join(' ').trim();\n}\n\n// TODO comment function purpose\nexport function getClassNameList(value: string, MAPPING: { [k: string]: string } = {}): string[] {\n  let mappedClasses: string[] = [];\n\n  if (typeof value === 'string') {\n    const classNames = value.split(' ');\n    const keys = Object.keys(MAPPING);\n\n    mappedClasses = classNames.map((className) => {\n      if (keys.includes(className)) {\n        return MAPPING[className];\n      }\n      return className;\n    });\n  }\n  return mappedClasses;\n}\n\n/**\n * Add classes to the native element using the provided renderer.\n */\nexport function appendClasses(renderer: Renderer2, element: ElementRef, classes: string): void {\n  if (renderer && element && classes) {\n    classes.split(' ').forEach((item) => {\n      renderer.addClass(element.nativeElement, item);\n    });\n  }\n}\n\n/**\n * Remove classes from the native element using the provided renderer.\n */\nexport function removeClasses(renderer: Renderer2, element: ElementRef, classes: string): void {\n  if (renderer && element && classes) {\n    classes.split(' ').forEach((item) => {\n      renderer.removeClass(element.nativeElement, item);\n    });\n  }\n}\n\n/**\n * Create a new `Date` instance using the provided value.\n */\nexport function parseDate(dateString: string | number | Date): Date {\n  return new Date(dateString);\n}\n\n/**\n * Manually compose a font shorthand defintion as it's not guaranteed to be given by the computed style object.\n */\nexport function getFontShorthand(style: CSSStyleDeclaration): string {\n  const { font, fontStyle, fontVariant, fontWeight, fontSize, lineHeight, fontFamily } = style;\n\n  if (font.length > 0) {\n    return font;\n  }\n  return `${fontStyle} ${fontVariant} ${fontWeight} ${fontSize}/${lineHeight} ${fontFamily}`;\n}\n\n/**\n * Return the number of decimal places of a number.\n */\nexport function numberOfDecimals(number: string | number): number {\n  const parsed = Number(number);\n  if (Number.isNaN(parsed) || Number.isInteger(parsed)) {\n    return 0;\n  }\n  const match = parsed.toString().match(/(?:\\.(\\d+))?(?:E([+-]?\\d+))?$/i);\n  if (!match || !match[1]) {\n    return 0;\n  }\n  return match[1].length;\n}\n\n/**\n * Return the provided value if in specified range, the lower or upper boundary otherwise.\n */\nexport function clamp(value: number, min = 0, max = 1): number {\n  return Math.max(min, Math.min(max, value));\n}\n\n/**\n * Generate a random string.\n */\nexport function randomString(): string {\n  return Math.random().toString(36);\n}\n\n/** A CSS `<time>`: a number followed by `s` or `ms`, the only two time units CSS defines. */\nconst CSS_TIME_PATTERN = /^([+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?)(s|ms)$/i;\n\n/**\n * Convert a CSS time value, e.g. the computed value of a custom property, into milliseconds.\n * Values that are not a valid CSS time, and negative ones, are reported as 0.\n */\nexport function parseCssTimeToMs(value: string): number {\n  const match = CSS_TIME_PATTERN.exec(value.trim());\n  if (!match) {\n    return 0;\n  }\n\n  const amount = parseFloat(match[1]);\n  const milliseconds = match[2].toLowerCase() === 's' ? amount * 1000 : amount;\n\n  return Number.isFinite(milliseconds) && milliseconds > 0 ? milliseconds : 0;\n}\n","import { Platform } from '@angular/cdk/platform';\nimport { inject, Injectable } from '@angular/core';\nimport { asyncScheduler, EMPTY, fromEvent, Observable } from 'rxjs';\nimport { map, startWith, throttleTime } from 'rxjs/operators';\n\n/** Available breakpoints to subscribe to. */\nexport enum NxBreakpoints {\n  /** Min size for BREAKPOINT_MOBILE */\n  BREAKPOINT_XSMALL = 0,\n  BREAKPOINT_SMALL = 320,\n  /** Min size for BREAKPOINT_TABLET */\n  BREAKPOINT_MEDIUM = 704,\n  /** Min size for BREAKPOINT_DESKTOP */\n  BREAKPOINT_LARGE = 992,\n  BREAKPOINT_XLARGE = 1280,\n  BREAKPOINT_2XLARGE = 1472,\n  BREAKPOINT_3XLARGE = 1760,\n}\n\nconst DEFAULT_THROTTLE_TIME = 200;\n\n/**\n * Service subscribing to window resize events and providing breakpoint matching functions.\n */\n@Injectable({\n  providedIn: 'root',\n})\nexport class NxViewportService {\n  private readonly _platform = inject(Platform);\n\n  readonly viewportChange$: Observable<number> = this._platform.isBrowser\n    ? fromEvent(window, 'resize').pipe(map(() => window.innerWidth))\n    : EMPTY;\n\n  /** Returns whether the current viewport width is greater than or equal (>=) to minSize. */\n  min(minSize: NxBreakpoints, throttleTimeMs = DEFAULT_THROTTLE_TIME): Observable<boolean> {\n    if (!this._platform.isBrowser) {\n      return EMPTY;\n    }\n\n    return this.viewportChange$.pipe(\n      startWith(window.innerWidth),\n      throttleTime(throttleTimeMs, asyncScheduler, { leading: true, trailing: true }),\n      map((windowInnerWidth) => windowInnerWidth >= minSize),\n    );\n  }\n\n  /** Returns whether the current viewport width is lower (<) than maxSize. */\n  max(maxSize: NxBreakpoints, throttleTimeMs = DEFAULT_THROTTLE_TIME): Observable<boolean> {\n    if (!this._platform.isBrowser) {\n      return EMPTY;\n    }\n\n    return this.viewportChange$.pipe(\n      startWith(window.innerWidth),\n      throttleTime(throttleTimeMs, asyncScheduler, { leading: true, trailing: true }),\n      map((windowInnerWidth) => windowInnerWidth < maxSize),\n    );\n  }\n\n  /** Returns whether the current viewport width is greater than or equal (>=) to minSize and lower (<) than maxSize. */\n  between(\n    minSize: NxBreakpoints,\n    maxSize: NxBreakpoints,\n    throttleTimeMs = DEFAULT_THROTTLE_TIME,\n  ): Observable<boolean> {\n    if (!this._platform.isBrowser) {\n      return EMPTY;\n    }\n\n    return this.viewportChange$.pipe(\n      startWith(window.innerWidth),\n      throttleTime(throttleTimeMs, asyncScheduler, { leading: true, trailing: true }),\n      map((windowInnerWidth) => windowInnerWidth >= minSize && windowInnerWidth < maxSize),\n    );\n  }\n}\n"],"mappings":";;;;;;AAOA,SAAgB,2BAA2B,OAAc;CACvD,OAAO,UAAU,UAAa,UAAU,OAAO,SAAY,iBAAiB,KAAK;AACnF;ACAA,IAAa,oBAAb,MAAa,kBAAiB;CAC5B,aACE,SACA,MAAwC;EAExC,OAAO,CAAC,EAAE,SAAS,YAAY,QAAQ,WAAW,MAAM;CAC1D;CANW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAjB;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,YAFhB;EAAM,CAAA;CAAA;;AAEP,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAH7B,MAAA;EAAW,MAAA,CAAA,EACV,YAAY,OACb,CAAA;;;ACAD,IAAa,sBAAb,MAAa,oBAAmB;CACf;EAAA,KAAA,WAAW;CAAE;CAG5B,cAAA;EACE,MAAM,QAAQ,OAAO,QAAQ,EAAE,U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