{"version":3,"file":"ng-primitives-progress.mjs","sources":["../../../../packages/ng-primitives/progress/src/progress/progress-state.ts","../../../../packages/ng-primitives/progress/src/progress-indicator/progress-indicator-state.ts","../../../../packages/ng-primitives/progress/src/progress-indicator/progress-indicator.ts","../../../../packages/ng-primitives/progress/src/progress-label/progress-label-state.ts","../../../../packages/ng-primitives/progress/src/progress-label/progress-label.ts","../../../../packages/ng-primitives/progress/src/progress-track/progress-track-state.ts","../../../../packages/ng-primitives/progress/src/progress-track/progress-track.ts","../../../../packages/ng-primitives/progress/src/progress-value/progress-value-state.ts","../../../../packages/ng-primitives/progress/src/progress-value/progress-value.ts","../../../../packages/ng-primitives/progress/src/progress/progress.ts","../../../../packages/ng-primitives/progress/src/ng-primitives-progress.ts"],"sourcesContent":["import { computed, signal, Signal, WritableSignal } from '@angular/core';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport {\n  attrBinding,\n  controlled,\n  createPrimitive,\n  dataBinding,\n  deprecatedSetter,\n} from 'ng-primitives/state';\nimport { uniqueId } from 'ng-primitives/utils';\nimport { NgpProgressValueTextFn } from './progress';\n\nexport interface NgpProgressProps {\n  /**\n   * The unique identifier for the progress.\n   */\n  readonly id?: Signal<string>;\n\n  /**\n   * Define the progress value.\n   */\n  readonly value?: Signal<number | null>;\n\n  /**\n   * Define the progress min value.\n   * @default '0'\n   */\n  readonly min?: Signal<number>;\n\n  /**\n   * Define the progress max value.\n   * @default 100\n   */\n  readonly max?: Signal<number>;\n\n  /**\n   * Define a function that returns the progress value label.\n   * @param value The current value\n   * @param max The maximum value\n   * @returns The value label\n   */\n  readonly valueLabel?: Signal<NgpProgressValueTextFn>;\n}\n\nexport interface NgpProgressState {\n  /**\n   * The unique identifier for the progress.\n   */\n  readonly id: Signal<string>;\n\n  /**\n   * Define the progress value.\n   */\n  readonly value: WritableSignal<number | null>;\n\n  /**\n   * Define the progress min value.\n   * @default '0'\n   */\n  readonly min: WritableSignal<number>;\n\n  /**\n   * Define the progress max value.\n   * @default 100\n   */\n  readonly max: WritableSignal<number>;\n\n  /**\n   * Get the progress value text. An empty string while the progress is\n   * indeterminate (the `aria-valuetext` attribute is omitted in that case).\n   */\n  readonly valueText: Signal<string>;\n\n  /**\n   * The id of label associated with the progress bar.\n   * @internal\n   */\n  readonly labelId: Signal<string | undefined>;\n\n  /**\n   * Determine if the progress is indeterminate.\n   * @internal\n   */\n  readonly indeterminate: Signal<boolean>;\n\n  /**\n   * Determine if the progress is in a progressing state.\n   * @internal\n   */\n  readonly progressing: Signal<boolean>;\n\n  /**\n   * Determine if the progress is complete.\n   * @internal\n   */\n  readonly complete: Signal<boolean>;\n\n  /**\n   * Set the label of the progress bar.\n   */\n  setLabel(id: string): void;\n\n  /**\n   * Remove the label of the progress bar.\n   */\n  removeLabel(id: string): void;\n\n  /**\n   * Set the value of the progress bar.\n   * @param value The progress value\n   */\n  setValue(value: number | null): void;\n\n  /**\n   * Set the minimum value of the progress bar.\n   * @param min The minimum value\n   */\n  setMin(min: number): void;\n\n  /**\n   * Set the maximum value of the progress bar.\n   * @param max The maximum value\n   */\n  setMax(max: number): void;\n}\n\nexport const [NgpProgressStateToken, ngpProgress, injectProgressState, provideProgressState] =\n  createPrimitive(\n    'NgpProgress',\n    ({\n      valueLabel: _valueLabel = signal(\n        (value, max, min) =>\n          `${max === min ? 0 : Math.round(((value - min) / (max - min)) * 100)}%`,\n      ),\n      value: _value = signal(null),\n      min: _min = signal(0),\n      max: _max = signal(100),\n      id = signal(uniqueId('ngp-progress')),\n    }: NgpProgressProps) => {\n      const element = injectElementRef();\n\n      // Controlled properties\n      const value = controlled(_value);\n      const min = controlled(_min);\n      const max = controlled(_max);\n      const valueLabel = controlled(_valueLabel);\n\n      /**\n       * Determine if the progress is indeterminate.\n       * @internal\n       */\n      const indeterminate = computed(() => value() === null);\n\n      /**\n       * Determine if the progress is in a progressing state.\n       */\n      const progressing = computed(\n        () => !indeterminate() && valueNow()! > min() && valueNow()! < max(),\n      );\n\n      /**\n       * Determine if the progress is complete.\n       */\n      const complete = computed(() => !indeterminate() && valueNow()! >= max() && max() > min());\n\n      /**\n       * The raw value exposed via `aria-valuenow`, clamped to the [min, max] range.\n       * Per the ARIA progressbar pattern, `aria-valuenow` is the actual value on the\n       * same scale as `aria-valuemin`/`aria-valuemax`, not a 0-100 percentage. It is\n       * omitted entirely (null) while the progress is indeterminate.\n       */\n      const valueNow = computed(() => {\n        const currentValue = value();\n\n        if (currentValue == null) {\n          return null;\n        }\n\n        return Math.min(Math.max(currentValue, min()), max());\n      });\n\n      /**\n       * Get the progress value text. Empty while indeterminate; the\n       * aria-valuetext binding omits the attribute in that case.\n       */\n      const valueText = computed(() => {\n        const currentValue = valueNow();\n\n        if (currentValue == null) {\n          return '';\n        }\n\n        // use the clamped value so aria-valuetext stays consistent with aria-valuenow\n        return valueLabel()(currentValue, max(), min());\n      });\n\n      const labelId = signal<string | undefined>(undefined);\n\n      // `setLabel` only accepts a concrete id, but the label id signal permits undefined, so the\n      // deprecated setter routes through this instead of asserting the id is defined.\n      function setLabelId(id: string | undefined): void {\n        labelId.set(id);\n      }\n\n      function setLabel(id: string) {\n        setLabelId(id);\n      }\n\n      function removeLabel(id: string): void {\n        // Only clear if this label is still the active one, so a newer label that has\n        // taken over isn't clobbered when an old label is torn down.\n        if (labelId() === id) {\n          setLabelId(undefined);\n        }\n      }\n\n      // Attribute bindings\n      attrBinding(element, 'role', 'progressbar');\n      attrBinding(element, 'id', id);\n      attrBinding(element, 'aria-valuemax', max);\n      attrBinding(element, 'aria-valuemin', min);\n      attrBinding(element, 'aria-valuenow', valueNow);\n      // omit the attribute entirely while indeterminate rather than binding an empty string\n      attrBinding(element, 'aria-valuetext', () => (indeterminate() ? null : valueText()));\n      attrBinding(element, 'aria-labelledby', () => (labelId() ? labelId() : null));\n      dataBinding(element, 'data-progressing', () => progressing());\n      dataBinding(element, 'data-indeterminate', () => indeterminate());\n      dataBinding(element, 'data-complete', () => complete());\n\n      function setMax(newMax: number): void {\n        max.set(newMax);\n      }\n\n      function setMin(newMin: number): void {\n        min.set(newMin);\n      }\n\n      function setValue(newValue: number | null): void {\n        value.set(newValue);\n      }\n\n      return {\n        max: deprecatedSetter(max, 'setMax', setMax),\n        min: deprecatedSetter(min, 'setMin', setMin),\n        value: deprecatedSetter(value, 'setValue', setValue),\n        labelId: deprecatedSetter(labelId, 'setLabel', setLabelId),\n        valueText,\n        id,\n        indeterminate,\n        progressing,\n        complete,\n        setLabel,\n        removeLabel,\n        setValue,\n        setMin,\n        setMax,\n      } satisfies NgpProgressState;\n    },\n  );\n","import { computed } from '@angular/core';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { createPrimitive, styleBinding } from 'ng-primitives/state';\nimport { injectProgressState } from '../progress/progress-state';\n\nexport interface NgpProgressIndicatorState {}\n\nexport interface NgpProgressIndicatorProps {}\n\nexport const [NgpProgressIndicatorStateToken, ngpProgressIndicator] = createPrimitive(\n  'NgpProgressIndicator',\n  ({}: NgpProgressIndicatorProps) => {\n    const element = injectElementRef();\n\n    const state = injectProgressState();\n\n    const percentage = computed(() => {\n      const min = state().min();\n      const max = state().max();\n      const value = state().value();\n      if (value === null) {\n        return null;\n      }\n      // guard the zero-length range so we never divide by zero (NaN width)\n      if (max <= min) {\n        return value >= max ? 100 : 0;\n      }\n      // clamp so an out-of-range value can't push the bar past its track or negative\n      return Math.min(100, Math.max(0, ((value - min) / (max - min)) * 100));\n    });\n\n    styleBinding(element, 'width.%', percentage);\n\n    return {} satisfies NgpProgressIndicatorState;\n  },\n);\n","import { Directive } from '@angular/core';\nimport { ngpProgressIndicator } from './progress-indicator-state';\n\n/**\n * Apply the `ngpProgressIndicator` directive to an element that represents the current progress.\n * The width of this element can be set to the percentage of the progress value.\n */\n@Directive({\n  selector: '[ngpProgressIndicator]',\n})\nexport class NgpProgressIndicator {\n  constructor() {\n    ngpProgressIndicator({});\n  }\n}\n","import { signal, Signal } from '@angular/core';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { attrBinding, createPrimitive, dataBinding, onDestroy } from 'ng-primitives/state';\nimport { onChange, uniqueId } from 'ng-primitives/utils';\nimport { injectProgressState } from '../progress/progress-state';\n\nexport interface NgpProgressLabelState {}\n\nexport interface NgpProgressLabelProps {\n  /**\n   * The unique identifier for the progress label.\n   */\n  readonly id?: Signal<string>;\n}\n\nexport const [NgpProgressLabelStateToken, ngpProgressLabel] = createPrimitive(\n  'NgpProgressLabel',\n  ({ id = signal(uniqueId('ngp-progress-label')) }: NgpProgressLabelProps) => {\n    const element = injectElementRef();\n\n    const state = injectProgressState();\n\n    attrBinding(element, 'id', id);\n    attrBinding(element, 'for', element.nativeElement.tagName === 'LABEL' ? state().id?.() : null);\n    dataBinding(element, 'data-progressing', () => state().progressing());\n    dataBinding(element, 'data-indeterminate', () => state().indeterminate());\n    dataBinding(element, 'data-complete', () => state().complete());\n\n    // Keep the progress `aria-labelledby` in sync with the label id. On teardown the\n    // label removes itself so `aria-labelledby` never points at an element that has\n    // been removed from the DOM.\n    onChange(id, (currentId, previousId) => {\n      if (previousId) {\n        state().removeLabel(previousId);\n      }\n      state().setLabel(currentId);\n    });\n\n    onDestroy(() => state().removeLabel(id()));\n\n    return {} satisfies NgpProgressLabelState;\n  },\n);\n","import { Directive, input } from '@angular/core';\nimport { uniqueId } from 'ng-primitives/utils';\nimport { ngpProgressLabel } from './progress-label-state';\n\n@Directive({\n  selector: '[ngpProgressLabel]',\n  exportAs: 'ngpProgressLabel',\n})\nexport class NgpProgressLabel {\n  /**\n   * The unique identifier for the progress label.\n   */\n  readonly id = input<string>(uniqueId('ngp-progress-label'));\n\n  constructor() {\n    ngpProgressLabel({ id: this.id });\n  }\n}\n","import { injectElementRef } from 'ng-primitives/internal';\nimport { createPrimitive, dataBinding } from 'ng-primitives/state';\nimport { injectProgressState } from '../progress/progress-state';\n\nexport interface NgpProgressTrackState {}\n\nexport interface NgpProgressTrackProps {}\n\nexport const [NgpProgressTrackStateToken, ngpProgressTrack] = createPrimitive(\n  'NgpProgressTrack',\n  ({}: NgpProgressTrackProps) => {\n    const element = injectElementRef();\n    const state = injectProgressState();\n\n    dataBinding(element, 'data-progressing', () => state().progressing());\n    dataBinding(element, 'data-indeterminate', () => state().indeterminate());\n    dataBinding(element, 'data-complete', () => state().complete());\n\n    return {} satisfies NgpProgressTrackState;\n  },\n);\n","import { Directive } from '@angular/core';\nimport { ngpProgressTrack } from './progress-track-state';\n\n@Directive({\n  selector: '[ngpProgressTrack]',\n  exportAs: 'ngpProgressTrack',\n})\nexport class NgpProgressTrack {\n  constructor() {\n    ngpProgressTrack({});\n  }\n}\n","import { injectElementRef } from 'ng-primitives/internal';\nimport { attrBinding, createPrimitive, dataBinding } from 'ng-primitives/state';\nimport { injectProgressState } from '../progress/progress-state';\n\nexport interface NgpProgressValueState {}\n\nexport interface NgpProgressValueProps {}\n\nexport const [NgpProgressValueStateToken, ngpProgressValue] = createPrimitive(\n  'NgpProgressValue',\n  ({}: NgpProgressValueProps) => {\n    const element = injectElementRef();\n\n    const state = injectProgressState();\n    // Host bindings using helper functions\n    attrBinding(element, 'aria-hidden', 'true');\n    dataBinding(element, 'data-progressing', () => state().progressing());\n    dataBinding(element, 'data-indeterminate', () => state().indeterminate());\n    dataBinding(element, 'data-complete', () => state().complete());\n\n    return {} satisfies NgpProgressValueState;\n  },\n);\n","import { Directive } from '@angular/core';\nimport { ngpProgressValue } from './progress-value-state';\n\n@Directive({\n  selector: '[ngpProgressValue]',\n  exportAs: 'ngpProgressValue',\n})\nexport class NgpProgressValue {\n  constructor() {\n    ngpProgressValue({});\n  }\n}\n","import { NumberInput } from '@angular/cdk/coercion';\nimport { Directive, input, numberAttribute } from '@angular/core';\nimport { uniqueId } from 'ng-primitives/utils';\nimport { ngpProgress, provideProgressState } from './progress-state';\n\n/**\n * Apply the `ngpProgress` directive to an element that represents the progress bar.\n */\n@Directive({\n  selector: '[ngpProgress]',\n  providers: [provideProgressState()],\n})\nexport class NgpProgress {\n  /**\n   * Define the progress value.\n   */\n  readonly value = input<number | null, NumberInput>(0, {\n    alias: 'ngpProgressValue',\n    transform: v => (v == null ? null : numberAttribute(v)),\n  });\n\n  /**\n   * Define the progress min value.\n   * @default '0'\n   */\n  readonly min = input<number, NumberInput>(0, {\n    alias: 'ngpProgressMin',\n    transform: numberAttribute,\n  });\n\n  /**\n   * Define the progress max value.\n   * @default 100\n   */\n  readonly max = input<number, NumberInput>(100, {\n    alias: 'ngpProgressMax',\n    transform: numberAttribute,\n  });\n\n  /**\n   * Define a function that returns the progress value label.\n   * @param value The current value\n   * @param max The maximum value\n   * @param min The minimum value\n   * @returns The value label\n   */\n  readonly valueLabel = input<NgpProgressValueTextFn>(\n    (value, max, min) => `${max === min ? 0 : Math.round(((value - min) / (max - min)) * 100)}%`,\n    {\n      alias: 'ngpProgressValueLabel',\n    },\n  );\n\n  /**\n   * The unique identifier for the progress.\n   */\n  readonly id = input<string>(uniqueId('ngp-progress'));\n\n  /**\n   * The state of the progress bar.\n   * @internal\n   */\n  private readonly state = ngpProgress({\n    value: this.value,\n    min: this.min,\n    max: this.max,\n    valueLabel: this.valueLabel,\n    id: this.id,\n  });\n\n  /**\n   * Get the progress value text.\n   */\n  protected readonly valueText = this.state.valueText;\n}\n\nexport type NgpProgressValueTextFn = (value: number, max: number, min: number) => string;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MA8Ha,CAAC,qBAAqB,EAAE,WAAW,EAAE,mBAAmB,EAAE,oBAAoB,CAAC,GAC1F,eAAe,CACb,aAAa,EACb,CAAC,EACC,UAAU,EAAE,WAAW,GAAG,MAAM,CAC9B,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,KACd,CAAA,EAAG,GAAG,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,KAAK,GAAG,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC,CAAA,CAAA,CAAG,CAC1E,EACD,KAAK,EAAE,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