@brickclay-org/ui 0.0.95 → 0.0.96
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.
- package/fesm2022/brickclay-org-ui.mjs +124 -202
- package/fesm2022/brickclay-org-ui.mjs.map +1 -1
- package/index.d.ts +8 -27
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -355,7 +355,7 @@ declare class BkScheduledDatePicker implements OnInit {
|
|
|
355
355
|
|
|
356
356
|
declare class BkTimePicker implements OnInit, OnChanges, AfterViewInit, ControlValueAccessor {
|
|
357
357
|
required: boolean;
|
|
358
|
-
/** @deprecated Prefer [(ngModel)]
|
|
358
|
+
/** @deprecated Prefer [(ngModel)] */
|
|
359
359
|
value: string | null;
|
|
360
360
|
label: string;
|
|
361
361
|
placeholder: string;
|
|
@@ -366,32 +366,25 @@ declare class BkTimePicker implements OnInit, OnChanges, AfterViewInit, ControlV
|
|
|
366
366
|
timeFormat: 12 | 24;
|
|
367
367
|
showSeconds: boolean;
|
|
368
368
|
change: EventEmitter<string | null>;
|
|
369
|
-
/** Alias for (change) for backward compatibility */
|
|
370
369
|
timeChange: EventEmitter<string | null>;
|
|
371
370
|
pickerOpened: EventEmitter<string>;
|
|
372
371
|
pickerClosed: EventEmitter<string>;
|
|
373
|
-
/** CVA: called when the control value is set (e.g. ngModel or programmatic) */
|
|
374
372
|
private onChange;
|
|
375
|
-
/** CVA: called when the control is touched (blur / close picker) */
|
|
376
373
|
private onTouched;
|
|
377
374
|
disabled: boolean;
|
|
378
375
|
timeScrollElements: QueryList<ElementRef>;
|
|
379
376
|
minuteScrollElements: QueryList<ElementRef>;
|
|
380
377
|
secondScrollElements: QueryList<ElementRef>;
|
|
381
|
-
/** Cyclic wheel: item height and cycle size (0-59). Middle block starts at CYCLE_SIZE * ITEM_HEIGHT */
|
|
382
378
|
private readonly ITEM_HEIGHT;
|
|
383
379
|
private readonly WHEEL_CYCLE;
|
|
384
380
|
private readonly MIDDLE_OFFSET;
|
|
385
|
-
private readonly VIEWPORT_HEIGHT;
|
|
386
|
-
/** Repeated 0-59 for infinite scroll (minutes and seconds) */
|
|
387
381
|
wheelMinutes: number[];
|
|
388
382
|
wheelSeconds: number[];
|
|
389
383
|
showPicker: boolean;
|
|
390
384
|
currentHour: number;
|
|
391
385
|
currentMinute: number;
|
|
392
|
-
currentAMPM: string;
|
|
393
386
|
currentSecond: number;
|
|
394
|
-
|
|
387
|
+
currentAMPM: string;
|
|
395
388
|
private _modelValue;
|
|
396
389
|
brickclayIcons: {
|
|
397
390
|
readonly arrowleft: "assets/icons/chevron-left.svg";
|
|
@@ -403,24 +396,15 @@ declare class BkTimePicker implements OnInit, OnChanges, AfterViewInit, ControlV
|
|
|
403
396
|
registerOnChange(fn: (value: string | null) => void): void;
|
|
404
397
|
registerOnTouched(fn: () => void): void;
|
|
405
398
|
setDisabledState(isDisabled: boolean): void;
|
|
406
|
-
/** Display string for the input; empty when value is null. */
|
|
407
399
|
getDisplayValue(): string;
|
|
408
|
-
/** True when a time is selected (show clear button). */
|
|
409
400
|
get hasValue(): boolean;
|
|
410
|
-
/** Reset dropdown to default time (used when opening with null value). 12h → 12:00 PM, 24h → 00:00 */
|
|
411
401
|
private setDefaultsForDropdown;
|
|
412
|
-
/** Clear the time value and notify CVA. */
|
|
413
402
|
clear(): void;
|
|
414
|
-
/** Call when control loses focus or picker closes (for CVA touched state). */
|
|
415
403
|
markAsTouched(): void;
|
|
416
404
|
ngOnInit(): void;
|
|
417
405
|
ngAfterViewInit(): void;
|
|
418
|
-
|
|
406
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
419
407
|
parseTimeValue(timeStr?: string | null): void;
|
|
420
|
-
getHours(): number[];
|
|
421
|
-
getMinutes(): number[];
|
|
422
|
-
getSeconds(): number[];
|
|
423
|
-
getAMPMOptions(): string[];
|
|
424
408
|
parseTimeStringToComponents(timeStr: string): {
|
|
425
409
|
hour: number;
|
|
426
410
|
minute: number;
|
|
@@ -435,19 +419,16 @@ declare class BkTimePicker implements OnInit, OnChanges, AfterViewInit, ControlV
|
|
|
435
419
|
onAMPMChange(ampm: string): void;
|
|
436
420
|
updateTime(): void;
|
|
437
421
|
scrollToSelectedTimes(): void;
|
|
438
|
-
/** Position wheel so the selected value is at the top of the viewport. */
|
|
439
422
|
private initMinuteWheelScroll;
|
|
440
423
|
private initSecondWheelScroll;
|
|
441
|
-
/** Scroll position -> value 0-59 (value at top of viewport). Recenter when in first or third block. */
|
|
442
|
-
private wheelScrollToValue;
|
|
443
|
-
onMinuteWheelScroll(): void;
|
|
444
|
-
onSecondWheelScroll(): void;
|
|
445
424
|
onDocumentClick(event: MouseEvent): void;
|
|
446
425
|
private previousCloseCounter;
|
|
447
|
-
|
|
448
|
-
|
|
426
|
+
getHours(): number[];
|
|
427
|
+
getAMPMOptions(): string[];
|
|
428
|
+
onMinuteWheelScroll(): void;
|
|
429
|
+
onSecondWheelScroll(): void;
|
|
449
430
|
static ɵfac: i0.ɵɵFactoryDeclaration<BkTimePicker, never>;
|
|
450
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BkTimePicker, "bk-time-picker", never, { "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "position": { "alias": "position"; "required": false; }; "pickerId": { "alias": "pickerId"; "required": false; }; "closePicker": { "alias": "closePicker"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; }, { "change": "change"; "timeChange": "timeChange"; "pickerOpened": "pickerOpened"; "pickerClosed": "pickerClosed"; }, never, never, true, never>;
|
|
431
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkTimePicker, "bk-time-picker", never, { "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "position": { "alias": "position"; "required": false; }; "pickerId": { "alias": "pickerId"; "required": false; }; "closePicker": { "alias": "closePicker"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; "timeChange": "timeChange"; "pickerOpened": "pickerOpened"; "pickerClosed": "pickerClosed"; }, never, never, true, never>;
|
|
451
432
|
}
|
|
452
433
|
|
|
453
434
|
/**
|