Files

546 lines
46 KiB
JavaScript
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
import { Component, forwardRef, Input, ViewEncapsulation, } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { isInteger, isNumber, padNumber, toInteger } from '../util/util';
import { NgbTime } from './ngb-time';
import { NgIf } from '@angular/common';
import * as i0 from "@angular/core";
import * as i1 from "./timepicker-config";
import * as i2 from "./ngb-time-adapter";
import * as i3 from "./timepicker-i18n";
const FILTER_REGEX = /[^0-9]/g;
/**
* A directive that helps with wth picking hours, minutes and seconds.
*/
export class NgbTimepicker {
constructor(_config, _ngbTimeAdapter, _cd, i18n) {
this._config = _config;
this._ngbTimeAdapter = _ngbTimeAdapter;
this._cd = _cd;
this.i18n = i18n;
this.onChange = (_) => { };
this.onTouched = () => { };
this.meridian = _config.meridian;
this.spinners = _config.spinners;
this.seconds = _config.seconds;
this.hourStep = _config.hourStep;
this.minuteStep = _config.minuteStep;
this.secondStep = _config.secondStep;
this.disabled = _config.disabled;
this.readonlyInputs = _config.readonlyInputs;
this.size = _config.size;
}
/**
* The number of hours to add/subtract when clicking hour spinners.
*/
set hourStep(step) {
this._hourStep = isInteger(step) ? step : this._config.hourStep;
}
get hourStep() {
return this._hourStep;
}
/**
* The number of minutes to add/subtract when clicking minute spinners.
*/
set minuteStep(step) {
this._minuteStep = isInteger(step) ? step : this._config.minuteStep;
}
get minuteStep() {
return this._minuteStep;
}
/**
* The number of seconds to add/subtract when clicking second spinners.
*/
set secondStep(step) {
this._secondStep = isInteger(step) ? step : this._config.secondStep;
}
get secondStep() {
return this._secondStep;
}
writeValue(value) {
const structValue = this._ngbTimeAdapter.fromModel(value);
this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime();
if (!this.seconds && (!structValue || !isNumber(structValue.second))) {
this.model.second = 0;
}
this._cd.markForCheck();
}
registerOnChange(fn) {
this.onChange = fn;
}
registerOnTouched(fn) {
this.onTouched = fn;
}
setDisabledState(isDisabled) {
this.disabled = isDisabled;
}
/**
* Increments the hours by the given step.
*/
changeHour(step) {
this.model?.changeHour(step);
this.propagateModelChange();
}
/**
* Increments the minutes by the given step.
*/
changeMinute(step) {
this.model?.changeMinute(step);
this.propagateModelChange();
}
/**
* Increments the seconds by the given step.
*/
changeSecond(step) {
this.model?.changeSecond(step);
this.propagateModelChange();
}
/**
* Update hours with the new value.
*/
updateHour(newVal) {
const isPM = this.model ? this.model.hour >= 12 : false;
const enteredHour = toInteger(newVal);
if (this.meridian && ((isPM && enteredHour < 12) || (!isPM && enteredHour === 12))) {
this.model?.updateHour(enteredHour + 12);
}
else {
this.model?.updateHour(enteredHour);
}
this.propagateModelChange();
}
/**
* Update minutes with the new value.
*/
updateMinute(newVal) {
this.model?.updateMinute(toInteger(newVal));
this.propagateModelChange();
}
/**
* Update seconds with the new value.
*/
updateSecond(newVal) {
this.model?.updateSecond(toInteger(newVal));
this.propagateModelChange();
}
toggleMeridian() {
if (this.meridian) {
this.changeHour(12);
}
}
formatInput(input) {
input.value = input.value.replace(FILTER_REGEX, '');
}
formatHour(value) {
if (isNumber(value)) {
if (this.meridian) {
return padNumber(value % 12 === 0 ? 12 : value % 12);
}
else {
return padNumber(value % 24);
}
}
else {
return padNumber(NaN);
}
}
formatMinSec(value) {
return padNumber(isNumber(value) ? value : NaN);
}
handleBlur() {
this.onTouched();
}
get isSmallSize() {
return this.size === 'small';
}
get isLargeSize() {
return this.size === 'large';
}
ngOnChanges(changes) {
if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) {
this.model.second = 0;
this.propagateModelChange(false);
}
}
propagateModelChange(touched = true) {
if (touched) {
this.onTouched();
}
if (this.model?.isValid(this.seconds)) {
this.onChange(this._ngbTimeAdapter.toModel({ hour: this.model.hour, minute: this.model.minute, second: this.model.second }));
}
else {
this.onChange(this._ngbTimeAdapter.toModel(null));
}
}
}
NgbTimepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NgbTimepicker, deps: [{ token: i1.NgbTimepickerConfig }, { token: i2.NgbTimeAdapter }, { token: i0.ChangeDetectorRef }, { token: i3.NgbTimepickerI18n }], target: i0.ɵɵFactoryTarget.Component });
NgbTimepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: NgbTimepicker, isStandalone: true, selector: "ngb-timepicker", inputs: { meridian: "meridian", spinners: "spinners", seconds: "seconds", hourStep: "hourStep", minuteStep: "minuteStep", secondStep: "secondStep", readonlyInputs: "readonlyInputs", size: "size" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NgbTimepicker), multi: true }], exportAs: ["ngbTimepicker"], usesOnChanges: true, ngImport: i0, template: `
<fieldset [disabled]="disabled" [class.disabled]="disabled">
<div class="ngb-tp">
<div class="ngb-tp-input-container ngb-tp-hour">
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeHour(hourStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.increment-hours">Increment hours</span>
</button>
<input
type="text"
class="ngb-tp-input form-control"
[class.form-control-sm]="isSmallSize"
[class.form-control-lg]="isLargeSize"
maxlength="2"
inputmode="numeric"
placeholder="HH"
i18n-placeholder="@@ngb.timepicker.HH"
[value]="formatHour(model?.hour)"
(change)="updateHour($any($event).target.value)"
[readOnly]="readonlyInputs"
[disabled]="disabled"
aria-label="Hours"
i18n-aria-label="@@ngb.timepicker.hours"
(blur)="handleBlur()"
(input)="formatInput($any($event).target)"
(keydown.ArrowUp)="changeHour(hourStep); $event.preventDefault()"
(keydown.ArrowDown)="changeHour(-hourStep); $event.preventDefault()"
/>
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeHour(-hourStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron bottom"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.decrement-hours">Decrement hours</span>
</button>
</div>
<div class="ngb-tp-spacer">:</div>
<div class="ngb-tp-input-container ngb-tp-minute">
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeMinute(minuteStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.increment-minutes">Increment minutes</span>
</button>
<input
type="text"
class="ngb-tp-input form-control"
[class.form-control-sm]="isSmallSize"
[class.form-control-lg]="isLargeSize"
maxlength="2"
inputmode="numeric"
placeholder="MM"
i18n-placeholder="@@ngb.timepicker.MM"
[value]="formatMinSec(model?.minute)"
(change)="updateMinute($any($event).target.value)"
[readOnly]="readonlyInputs"
[disabled]="disabled"
aria-label="Minutes"
i18n-aria-label="@@ngb.timepicker.minutes"
(blur)="handleBlur()"
(input)="formatInput($any($event).target)"
(keydown.ArrowUp)="changeMinute(minuteStep); $event.preventDefault()"
(keydown.ArrowDown)="changeMinute(-minuteStep); $event.preventDefault()"
/>
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeMinute(-minuteStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron bottom"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.decrement-minutes">Decrement minutes</span>
</button>
</div>
<div *ngIf="seconds" class="ngb-tp-spacer">:</div>
<div *ngIf="seconds" class="ngb-tp-input-container ngb-tp-second">
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeSecond(secondStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.increment-seconds">Increment seconds</span>
</button>
<input
type="text"
class="ngb-tp-input form-control"
[class.form-control-sm]="isSmallSize"
[class.form-control-lg]="isLargeSize"
maxlength="2"
inputmode="numeric"
placeholder="SS"
i18n-placeholder="@@ngb.timepicker.SS"
[value]="formatMinSec(model?.second)"
(change)="updateSecond($any($event).target.value)"
[readOnly]="readonlyInputs"
[disabled]="disabled"
aria-label="Seconds"
i18n-aria-label="@@ngb.timepicker.seconds"
(blur)="handleBlur()"
(input)="formatInput($any($event).target)"
(keydown.ArrowUp)="changeSecond(secondStep); $event.preventDefault()"
(keydown.ArrowDown)="changeSecond(-secondStep); $event.preventDefault()"
/>
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeSecond(-secondStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron bottom"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.decrement-seconds">Decrement seconds</span>
</button>
</div>
<div *ngIf="meridian" class="ngb-tp-spacer"></div>
<div *ngIf="meridian" class="ngb-tp-meridian">
<button
type="button"
class="btn btn-outline-primary"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[disabled]="disabled"
[class.disabled]="disabled"
(click)="toggleMeridian()"
>
<ng-container *ngIf="model && model.hour >= 12; else am" i18n="@@ngb.timepicker.PM">{{
i18n.getAfternoonPeriod()
}}</ng-container>
<ng-template #am i18n="@@ngb.timepicker.AM">{{ i18n.getMorningPeriod() }}</ng-template>
</button>
</div>
</div>
</fieldset>
`, isInline: true, styles: ["ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NgbTimepicker, decorators: [{
type: Component,
args: [{ exportAs: 'ngbTimepicker', selector: 'ngb-timepicker', standalone: true, imports: [NgIf], encapsulation: ViewEncapsulation.None, template: `
<fieldset [disabled]="disabled" [class.disabled]="disabled">
<div class="ngb-tp">
<div class="ngb-tp-input-container ngb-tp-hour">
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeHour(hourStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.increment-hours">Increment hours</span>
</button>
<input
type="text"
class="ngb-tp-input form-control"
[class.form-control-sm]="isSmallSize"
[class.form-control-lg]="isLargeSize"
maxlength="2"
inputmode="numeric"
placeholder="HH"
i18n-placeholder="@@ngb.timepicker.HH"
[value]="formatHour(model?.hour)"
(change)="updateHour($any($event).target.value)"
[readOnly]="readonlyInputs"
[disabled]="disabled"
aria-label="Hours"
i18n-aria-label="@@ngb.timepicker.hours"
(blur)="handleBlur()"
(input)="formatInput($any($event).target)"
(keydown.ArrowUp)="changeHour(hourStep); $event.preventDefault()"
(keydown.ArrowDown)="changeHour(-hourStep); $event.preventDefault()"
/>
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeHour(-hourStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron bottom"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.decrement-hours">Decrement hours</span>
</button>
</div>
<div class="ngb-tp-spacer">:</div>
<div class="ngb-tp-input-container ngb-tp-minute">
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeMinute(minuteStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.increment-minutes">Increment minutes</span>
</button>
<input
type="text"
class="ngb-tp-input form-control"
[class.form-control-sm]="isSmallSize"
[class.form-control-lg]="isLargeSize"
maxlength="2"
inputmode="numeric"
placeholder="MM"
i18n-placeholder="@@ngb.timepicker.MM"
[value]="formatMinSec(model?.minute)"
(change)="updateMinute($any($event).target.value)"
[readOnly]="readonlyInputs"
[disabled]="disabled"
aria-label="Minutes"
i18n-aria-label="@@ngb.timepicker.minutes"
(blur)="handleBlur()"
(input)="formatInput($any($event).target)"
(keydown.ArrowUp)="changeMinute(minuteStep); $event.preventDefault()"
(keydown.ArrowDown)="changeMinute(-minuteStep); $event.preventDefault()"
/>
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeMinute(-minuteStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron bottom"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.decrement-minutes">Decrement minutes</span>
</button>
</div>
<div *ngIf="seconds" class="ngb-tp-spacer">:</div>
<div *ngIf="seconds" class="ngb-tp-input-container ngb-tp-second">
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeSecond(secondStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.increment-seconds">Increment seconds</span>
</button>
<input
type="text"
class="ngb-tp-input form-control"
[class.form-control-sm]="isSmallSize"
[class.form-control-lg]="isLargeSize"
maxlength="2"
inputmode="numeric"
placeholder="SS"
i18n-placeholder="@@ngb.timepicker.SS"
[value]="formatMinSec(model?.second)"
(change)="updateSecond($any($event).target.value)"
[readOnly]="readonlyInputs"
[disabled]="disabled"
aria-label="Seconds"
i18n-aria-label="@@ngb.timepicker.seconds"
(blur)="handleBlur()"
(input)="formatInput($any($event).target)"
(keydown.ArrowUp)="changeSecond(secondStep); $event.preventDefault()"
(keydown.ArrowDown)="changeSecond(-secondStep); $event.preventDefault()"
/>
<button
*ngIf="spinners"
tabindex="-1"
type="button"
(click)="changeSecond(-secondStep)"
class="btn btn-link"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[class.disabled]="disabled"
[disabled]="disabled"
>
<span class="chevron ngb-tp-chevron bottom"></span>
<span class="visually-hidden" i18n="@@ngb.timepicker.decrement-seconds">Decrement seconds</span>
</button>
</div>
<div *ngIf="meridian" class="ngb-tp-spacer"></div>
<div *ngIf="meridian" class="ngb-tp-meridian">
<button
type="button"
class="btn btn-outline-primary"
[class.btn-sm]="isSmallSize"
[class.btn-lg]="isLargeSize"
[disabled]="disabled"
[class.disabled]="disabled"
(click)="toggleMeridian()"
>
<ng-container *ngIf="model && model.hour >= 12; else am" i18n="@@ngb.timepicker.PM">{{
i18n.getAfternoonPeriod()
}}</ng-container>
<ng-template #am i18n="@@ngb.timepicker.AM">{{ i18n.getMorningPeriod() }}</ng-template>
</button>
</div>
</div>
</fieldset>
`, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NgbTimepicker), multi: true }], styles: ["ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}\n"] }]
}], ctorParameters: function () { return [{ type: i1.NgbTimepickerConfig }, { type: i2.NgbTimeAdapter }, { type: i0.ChangeDetectorRef }, { type: i3.NgbTimepickerI18n }]; }, propDecorators: { meridian: [{
type: Input
}], spinners: [{
type: Input
}], seconds: [{
type: Input
}], hourStep: [{
type: Input
}], minuteStep: [{
type: Input
}], secondStep: [{
type: Input
}], readonlyInputs: [{
type: Input
}], size: [{
type: Input
}] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy90aW1lcGlja2VyL3RpbWVwaWNrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVOLFNBQVMsRUFDVCxVQUFVLEVBQ1YsS0FBSyxFQUdMLGlCQUFpQixHQUNqQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQXdCLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFekUsT0FBTyxFQUFFLFNBQVMsRUFBRSxRQUFRLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUN6RSxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBSXJDLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBT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