@brickclay-org/ui 0.0.23 → 0.0.25
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/README.md +216 -216
- package/fesm2022/brickclay-org-ui.mjs +463 -82
- package/fesm2022/brickclay-org-ui.mjs.map +1 -1
- package/index.d.ts +126 -41
- package/package.json +1 -1
- package/src/lib/bk-select/bk-select.css +128 -0
- package/src/lib/select/select.css +128 -0
- package/src/styles.css +2 -0
package/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ interface CalendarSelection {
|
|
|
46
46
|
endDate: Date | null;
|
|
47
47
|
selectedDates?: Date[];
|
|
48
48
|
}
|
|
49
|
-
declare class
|
|
49
|
+
declare class BkCustomCalendar implements OnInit, OnDestroy, OnChanges {
|
|
50
50
|
private calendarManager;
|
|
51
51
|
enableTimepicker: boolean;
|
|
52
52
|
autoApply: boolean;
|
|
@@ -210,8 +210,8 @@ declare class CustomCalendarComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
210
210
|
applyTimeToDate(date: Date, isStart: boolean): void;
|
|
211
211
|
onTimeInputFocus(event: any): void;
|
|
212
212
|
formatAllMinuteInputs(): void;
|
|
213
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
214
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
213
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkCustomCalendar, never>;
|
|
214
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkCustomCalendar, "bk-custom-calendar", never, { "enableTimepicker": { "alias": "enableTimepicker"; "required": false; }; "autoApply": { "alias": "autoApply"; "required": false; }; "closeOnAutoApply": { "alias": "closeOnAutoApply"; "required": false; }; "showCancel": { "alias": "showCancel"; "required": false; }; "linkedCalendars": { "alias": "linkedCalendars"; "required": false; }; "singleDatePicker": { "alias": "singleDatePicker"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "showISOWeekNumbers": { "alias": "showISOWeekNumbers"; "required": false; }; "customRangeDirection": { "alias": "customRangeDirection"; "required": false; }; "lockStartDate": { "alias": "lockStartDate"; "required": false; }; "position": { "alias": "position"; "required": false; }; "drop": { "alias": "drop"; "required": false; }; "dualCalendar": { "alias": "dualCalendar"; "required": false; }; "showRanges": { "alias": "showRanges"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "enableSeconds": { "alias": "enableSeconds"; "required": false; }; "customRanges": { "alias": "customRanges"; "required": false; }; "multiDateSelection": { "alias": "multiDateSelection"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "opens": { "alias": "opens"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "isDisplayCrossIcon": { "alias": "isDisplayCrossIcon"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "displayFormat": { "alias": "displayFormat"; "required": false; }; }, { "selected": "selected"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
interface TimeConfiguration {
|
|
@@ -238,7 +238,7 @@ interface ScheduledDateSelection {
|
|
|
238
238
|
endTime: string;
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
declare class
|
|
241
|
+
declare class BkScheduledDatePicker implements OnInit {
|
|
242
242
|
timeFormat: 12 | 24;
|
|
243
243
|
enableSeconds: boolean;
|
|
244
244
|
scheduled: EventEmitter<ScheduledDateSelection>;
|
|
@@ -286,11 +286,11 @@ declare class ScheduledDatePickerComponent implements OnInit {
|
|
|
286
286
|
emitScheduled(): void;
|
|
287
287
|
clear(): void;
|
|
288
288
|
apply(): void;
|
|
289
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
290
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
289
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkScheduledDatePicker, never>;
|
|
290
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkScheduledDatePicker, "bk-scheduled-date-picker", never, { "timeFormat": { "alias": "timeFormat"; "required": false; }; "enableSeconds": { "alias": "enableSeconds"; "required": false; }; }, { "scheduled": "scheduled"; "cleared": "cleared"; }, never, never, true, never>;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
declare class
|
|
293
|
+
declare class BkTimePicker implements OnInit, OnChanges, AfterViewInit {
|
|
294
294
|
value: string;
|
|
295
295
|
label: string;
|
|
296
296
|
placeholder: string;
|
|
@@ -339,8 +339,8 @@ declare class TimePickerComponent implements OnInit, OnChanges, AfterViewInit {
|
|
|
339
339
|
private previousCloseCounter;
|
|
340
340
|
ngOnChanges(changes: SimpleChanges): void;
|
|
341
341
|
onInputKeydown(event: KeyboardEvent): void;
|
|
342
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
343
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
342
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkTimePicker, never>;
|
|
343
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkTimePicker, "bk-time-picker", never, { "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "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; }; }, { "timeChange": "timeChange"; "pickerOpened": "pickerOpened"; "pickerClosed": "pickerClosed"; }, never, never, true, never>;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
/**
|
|
@@ -356,11 +356,11 @@ declare class TimePickerComponent implements OnInit, OnChanges, AfterViewInit {
|
|
|
356
356
|
*/
|
|
357
357
|
declare class CalendarModule {
|
|
358
358
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarModule, never>;
|
|
359
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CalendarModule, never, [typeof i1.CommonModule, typeof
|
|
359
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CalendarModule, never, [typeof i1.CommonModule, typeof BkCustomCalendar, typeof BkScheduledDatePicker, typeof BkTimePicker], [typeof BkCustomCalendar, typeof BkScheduledDatePicker, typeof BkTimePicker]>;
|
|
360
360
|
static ɵinj: i0.ɵɵInjectorDeclaration<CalendarModule>;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
declare class
|
|
363
|
+
declare class BkToggle implements ControlValueAccessor {
|
|
364
364
|
label: string;
|
|
365
365
|
disabled: boolean;
|
|
366
366
|
toggleClass: string;
|
|
@@ -373,11 +373,11 @@ declare class ToggleComponent implements ControlValueAccessor {
|
|
|
373
373
|
registerOnChange(fn: any): void;
|
|
374
374
|
registerOnTouched(fn: any): void;
|
|
375
375
|
setDisabledState(isDisabled: boolean): void;
|
|
376
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
377
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
376
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkToggle, never>;
|
|
377
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkToggle, "bk-toggle", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "toggleClass": { "alias": "toggleClass"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
-
declare class
|
|
380
|
+
declare class BkCheckbox implements ControlValueAccessor {
|
|
381
381
|
checkboxClass: string;
|
|
382
382
|
label: string;
|
|
383
383
|
labelClass: string;
|
|
@@ -392,11 +392,11 @@ declare class CheckboxComponent implements ControlValueAccessor {
|
|
|
392
392
|
registerOnChange(fn: any): void;
|
|
393
393
|
registerOnTouched(fn: any): void;
|
|
394
394
|
setDisabledState(isDisabled: boolean): void;
|
|
395
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
396
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
395
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkCheckbox, never>;
|
|
396
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkCheckbox, "bk-checkbox", never, { "checkboxClass": { "alias": "checkboxClass"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
declare class
|
|
399
|
+
declare class BkRadioButton implements ControlValueAccessor {
|
|
400
400
|
radioClass: string;
|
|
401
401
|
label: string;
|
|
402
402
|
labelClass: string;
|
|
@@ -413,14 +413,14 @@ declare class RadioComponent implements ControlValueAccessor {
|
|
|
413
413
|
registerOnChange(fn: any): void;
|
|
414
414
|
registerOnTouched(fn: any): void;
|
|
415
415
|
setDisabledState(isDisabled: boolean): void;
|
|
416
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
417
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
416
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkRadioButton, never>;
|
|
417
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkRadioButton, "bk-radio-button", never, { "radioClass": { "alias": "radioClass"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
type PillVariant = 'Light' | 'Solid' | 'Outline' | 'Transparent';
|
|
421
421
|
type PillColor = 'Gray' | 'Primary' | 'Error' | 'Warning' | 'Success' | 'Purple' | 'Cyan';
|
|
422
422
|
type PillSize = 'xsm' | 'sm' | 'md' | 'lg';
|
|
423
|
-
declare class
|
|
423
|
+
declare class BkPill {
|
|
424
424
|
label: string;
|
|
425
425
|
variant: PillVariant;
|
|
426
426
|
color: PillColor;
|
|
@@ -431,14 +431,14 @@ declare class PillComponent {
|
|
|
431
431
|
clicked: EventEmitter<string>;
|
|
432
432
|
get containerClasses(): string;
|
|
433
433
|
onRemove(e: Event): void;
|
|
434
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
435
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
434
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkPill, never>;
|
|
435
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkPill, "bk-pill", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "dot": { "alias": "dot"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
type BadgeVariant = 'Light' | 'Solid' | 'Outline' | 'Transparent';
|
|
439
439
|
type BadgeColor = 'Gray' | 'Primary' | 'Error' | 'Warning' | 'Success' | 'Purple' | 'Cyan';
|
|
440
440
|
type BadgeSize = 'xsm' | 'sm' | 'md' | 'lg';
|
|
441
|
-
declare class
|
|
441
|
+
declare class BkBadge {
|
|
442
442
|
label: string;
|
|
443
443
|
variant: BadgeVariant;
|
|
444
444
|
color: BadgeColor;
|
|
@@ -449,23 +449,23 @@ declare class BadgeComponent {
|
|
|
449
449
|
clicked: EventEmitter<string>;
|
|
450
450
|
get containerClasses(): string;
|
|
451
451
|
onRemove(e: Event): void;
|
|
452
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
453
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
452
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkBadge, never>;
|
|
453
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkBadge, "bk-badge", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "dot": { "alias": "dot"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
type SpinnerSize = 'xsm' | 'sm' | 'md' | 'lg' | 'xl';
|
|
457
|
-
declare class
|
|
457
|
+
declare class BkSpinner {
|
|
458
458
|
size: SpinnerSize;
|
|
459
459
|
show: boolean;
|
|
460
460
|
color: string;
|
|
461
461
|
get classes(): string;
|
|
462
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
463
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
462
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkSpinner, never>;
|
|
463
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkSpinner, "bk-spinner", never, { "size": { "alias": "size"; "required": false; }; "show": { "alias": "show"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
type ButtonSize = 'xxsm' | 'xsm' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
467
467
|
type ButtonVariant = 'primary' | 'secondary';
|
|
468
|
-
declare class
|
|
468
|
+
declare class BkButton {
|
|
469
469
|
variant: ButtonVariant;
|
|
470
470
|
size: ButtonSize;
|
|
471
471
|
label: string;
|
|
@@ -481,13 +481,13 @@ declare class UiButton {
|
|
|
481
481
|
clicked: EventEmitter<boolean>;
|
|
482
482
|
onClick(event: Event): void;
|
|
483
483
|
get buttonClasses(): string;
|
|
484
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
485
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
484
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkButton, never>;
|
|
485
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkButton, "bk-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "iconAlt": { "alias": "iconAlt"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "textClass": { "alias": "textClass"; "required": false; }; "spinnerClass": { "alias": "spinnerClass"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
type IconButtonSize = 'xxsm' | 'xsm' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
489
489
|
type IconButtonVariant = 'primary' | 'secondary';
|
|
490
|
-
declare class
|
|
490
|
+
declare class BkIconButton {
|
|
491
491
|
icon: string;
|
|
492
492
|
alt: string;
|
|
493
493
|
variant: IconButtonVariant;
|
|
@@ -497,8 +497,8 @@ declare class UiIconButton {
|
|
|
497
497
|
clicked: EventEmitter<boolean>;
|
|
498
498
|
onClick(event: Event): void;
|
|
499
499
|
get buttonClasses(): string;
|
|
500
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
501
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
500
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkIconButton, never>;
|
|
501
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkIconButton, "bk-icon-button", never, { "icon": { "alias": "icon"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
interface GroupItem {
|
|
@@ -506,7 +506,7 @@ interface GroupItem {
|
|
|
506
506
|
value: any;
|
|
507
507
|
}
|
|
508
508
|
type GroupMode = 'single' | 'multiple';
|
|
509
|
-
declare class
|
|
509
|
+
declare class BkButtonGroup {
|
|
510
510
|
items: GroupItem[];
|
|
511
511
|
mode: GroupMode;
|
|
512
512
|
disabled: boolean;
|
|
@@ -515,11 +515,11 @@ declare class ButtonGroup {
|
|
|
515
515
|
onItemClick(itemValue: any): void;
|
|
516
516
|
isActive(itemValue: any): boolean;
|
|
517
517
|
get containerClass(): string;
|
|
518
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
519
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
518
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkButtonGroup, never>;
|
|
519
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkButtonGroup, "bk-button-group", never, { "items": { "alias": "items"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
declare class
|
|
522
|
+
declare class BkTextarea implements ControlValueAccessor {
|
|
523
523
|
private ngControl;
|
|
524
524
|
name: string;
|
|
525
525
|
id?: string;
|
|
@@ -553,8 +553,8 @@ declare class Textarea implements ControlValueAccessor {
|
|
|
553
553
|
registerOnChange(fn: any): void;
|
|
554
554
|
registerOnTouched(fn: any): void;
|
|
555
555
|
setDisabledState(isDisabled: boolean): void;
|
|
556
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
557
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
556
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkTextarea, [{ optional: true; self: true; }]>;
|
|
557
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkTextarea, "bk-textarea", never, { "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "trimWhiteSpaces": { "alias": "trimWhiteSpaces"; "required": false; }; "eventType": { "alias": "eventType"; "required": false; }; }, { "input": "input"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, never, true, never>;
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
interface TableColumn<T = any> {
|
|
@@ -607,5 +607,90 @@ declare class GridComponent<T = any> {
|
|
|
607
607
|
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent<any>, "bk-grid", never, { "draggable": { "alias": "draggable"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "result": { "alias": "result"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "actionClick": "actionClick"; "sortChange": "sortChange"; "dragDropChange": "dragDropChange"; }, never, never, true, never>;
|
|
608
608
|
}
|
|
609
609
|
|
|
610
|
-
|
|
610
|
+
declare class BkSelect implements ControlValueAccessor {
|
|
611
|
+
items: i0.InputSignal<any[]>;
|
|
612
|
+
bindLabel: i0.InputSignal<string>;
|
|
613
|
+
bindValue: i0.InputSignal<string>;
|
|
614
|
+
placeholder: i0.InputSignal<string>;
|
|
615
|
+
notFoundText: i0.InputSignal<string>;
|
|
616
|
+
loadingText: i0.InputSignal<string>;
|
|
617
|
+
clearAllText: i0.InputSignal<string>;
|
|
618
|
+
iconAlt: string;
|
|
619
|
+
label: string;
|
|
620
|
+
required: Boolean;
|
|
621
|
+
iconSrc?: string;
|
|
622
|
+
multiple: i0.InputSignal<boolean>;
|
|
623
|
+
maxLabels: i0.InputSignal<number>;
|
|
624
|
+
searchable: i0.InputSignal<boolean>;
|
|
625
|
+
clearable: i0.InputSignal<boolean>;
|
|
626
|
+
readonly: i0.InputSignal<boolean>;
|
|
627
|
+
disabled: i0.ModelSignal<boolean>;
|
|
628
|
+
loading: i0.InputSignal<boolean>;
|
|
629
|
+
closeOnSelect: i0.InputSignal<boolean>;
|
|
630
|
+
dropdownPosition: i0.InputSignal<"bottom" | "top">;
|
|
631
|
+
appendToBody: i0.InputSignal<boolean>;
|
|
632
|
+
open: i0.OutputEmitterRef<void>;
|
|
633
|
+
close: i0.OutputEmitterRef<void>;
|
|
634
|
+
focus: i0.OutputEmitterRef<void>;
|
|
635
|
+
blur: i0.OutputEmitterRef<void>;
|
|
636
|
+
search: i0.OutputEmitterRef<{
|
|
637
|
+
term: string;
|
|
638
|
+
items: any[];
|
|
639
|
+
}>;
|
|
640
|
+
clear: i0.OutputEmitterRef<void>;
|
|
641
|
+
change: i0.OutputEmitterRef<any>;
|
|
642
|
+
scrollToEnd: i0.OutputEmitterRef<void>;
|
|
643
|
+
searchInput: ElementRef<HTMLInputElement>;
|
|
644
|
+
optionsListContainer: ElementRef<HTMLDivElement>;
|
|
645
|
+
optionsRef: QueryList<ElementRef>;
|
|
646
|
+
controlWrapper: ElementRef<HTMLDivElement>;
|
|
647
|
+
private _value;
|
|
648
|
+
isOpen: i0.WritableSignal<boolean>;
|
|
649
|
+
selectedOptions: i0.WritableSignal<any[]>;
|
|
650
|
+
searchTerm: i0.WritableSignal<string>;
|
|
651
|
+
markedIndex: i0.WritableSignal<number>;
|
|
652
|
+
dropdownStyle: i0.WritableSignal<{
|
|
653
|
+
top?: string;
|
|
654
|
+
bottom?: string;
|
|
655
|
+
left: string;
|
|
656
|
+
width: string;
|
|
657
|
+
}>;
|
|
658
|
+
filteredItems: i0.Signal<any[]>;
|
|
659
|
+
isAllSelected: i0.Signal<boolean>;
|
|
660
|
+
constructor();
|
|
661
|
+
resolveLabel(item: any): string;
|
|
662
|
+
resolveValue(item: any): any;
|
|
663
|
+
isItemSelected(item: any): boolean;
|
|
664
|
+
compareWith: i0.InputSignal<(a: any, b: any) => boolean>;
|
|
665
|
+
toggleDropdown(event: Event | null): void;
|
|
666
|
+
openDropdown(): void;
|
|
667
|
+
closeDropdown(): void;
|
|
668
|
+
getTop(): string | null;
|
|
669
|
+
getBottom(): string | null;
|
|
670
|
+
updatePosition(): void;
|
|
671
|
+
onWindowEvents(): void;
|
|
672
|
+
toggleSelectAll(event: Event): void;
|
|
673
|
+
handleSelection(item: any, event?: Event): void;
|
|
674
|
+
removeOption(item: any, event: Event): void;
|
|
675
|
+
handleClear(event: Event): void;
|
|
676
|
+
private updateModel;
|
|
677
|
+
onSearchInput(event: Event): void;
|
|
678
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
679
|
+
onScroll(event: Event): void;
|
|
680
|
+
scrollToMarked(): void;
|
|
681
|
+
onChange: any;
|
|
682
|
+
onTouched: any;
|
|
683
|
+
writeValue(value: any): void;
|
|
684
|
+
registerOnChange(fn: any): void;
|
|
685
|
+
registerOnTouched(fn: any): void;
|
|
686
|
+
setDisabledState(d: boolean): void;
|
|
687
|
+
private resolveSelectedOptions;
|
|
688
|
+
private el;
|
|
689
|
+
onClickOutside(e: Event): void;
|
|
690
|
+
openFromLabel(event: MouseEvent): void;
|
|
691
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BkSelect, never>;
|
|
692
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkSelect, "bk-select", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "notFoundText": { "alias": "notFoundText"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "clearAllText": { "alias": "clearAllText"; "required": false; "isSignal": true; }; "iconAlt": { "alias": "iconAlt"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "iconSrc": { "alias": "iconSrc"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "maxLabels": { "alias": "maxLabels"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; "isSignal": true; }; "appendToBody": { "alias": "appendToBody"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "open": "open"; "close": "close"; "focus": "focus"; "blur": "blur"; "search": "search"; "clear": "clear"; "change": "change"; "scrollToEnd": "scrollToEnd"; }, never, never, true, never>;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export { BkBadge, BkButton, BkButtonGroup, BkCheckbox, BkCustomCalendar, BkIconButton, BkPill, BkRadioButton, BkScheduledDatePicker, BkSelect, BkSpinner, BkTextarea, BkTimePicker, BkToggle, BrickclayIcons, BrickclayLib, CalendarManagerService, CalendarModule, GridComponent };
|
|
611
696
|
export type { BadgeColor, BadgeSize, BadgeVariant, ButtonSize, ButtonVariant, CalendarRange, CalendarSelection, GroupItem, GroupMode, IconButtonSize, IconButtonVariant, PillColor, PillSize, PillVariant, ScheduledDateSelection, SortDirection, SpinnerSize, TableAction, TableColumn, TimeConfiguration };
|
package/package.json
CHANGED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* Container */
|
|
2
|
+
.ng-select-container {
|
|
3
|
+
@apply relative w-full box-border;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* Control */
|
|
7
|
+
.ng-select-control {
|
|
8
|
+
@apply flex items-center justify-between gap-2 w-full bg-white border border-[#E3E3E7] rounded transition-all duration-200 px-3 py-[9.2px] cursor-pointer;
|
|
9
|
+
|
|
10
|
+
&.focused { @apply border-[#6B7080] shadow-none z-10; }
|
|
11
|
+
&.disabled { @apply bg-[#F4F4F6] cursor-not-allowed opacity-60; }
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Value Container */
|
|
15
|
+
.ng-value-container {
|
|
16
|
+
@apply flex flex-1 items-center flex-wrap gap-1 relative overflow-hidden h-full;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ng-placeholder {
|
|
20
|
+
@apply text-[#6B7080] font-normal text-sm truncate w-full pointer-events-none;
|
|
21
|
+
}
|
|
22
|
+
.ng-value-label-single{
|
|
23
|
+
@apply font-normal text-sm text-[#141414] truncate w-full;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* --- NEW: Single Value --- */
|
|
27
|
+
.ng-value-label-single {
|
|
28
|
+
@apply font-normal text-sm text-[#141414] truncate w-full;
|
|
29
|
+
}
|
|
30
|
+
/* --- NEW: Multi Select Chips --- */
|
|
31
|
+
.ng-value-chips {
|
|
32
|
+
@apply flex flex-wrap gap-1 w-full;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ng-value-chip {
|
|
36
|
+
@apply flex items-center bg-gray-100 border border-gray-200 rounded px-2 py-0.5 max-w-full;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ng-value-chip .ng-value-label {
|
|
40
|
+
@apply text-[#15191E] truncate max-w-[150px];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ng-value-chip .ng-value-icon {
|
|
44
|
+
@apply ml-1 text-gray-500 hover:text-red-500 cursor-pointer text-base font-bold leading-none px-1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Actions */
|
|
48
|
+
.ng-actions {
|
|
49
|
+
@apply flex items-center gap-0.5 flex-shrink-0;
|
|
50
|
+
}
|
|
51
|
+
.ng-clear-wrapper { @apply text-gray-400 hover:text-red-500 cursor-pointer; }
|
|
52
|
+
.ng-arrow-wrapper { @apply text-gray-400 transition-transform duration-200; &.open { @apply rotate-180; }}
|
|
53
|
+
|
|
54
|
+
/* Dropdown */
|
|
55
|
+
.custom-ng-dropdown-panel {
|
|
56
|
+
@apply absolute left-0 w-full bg-white border border-[#E3E3E7] rounded-xl shadow-lg z-[99] overflow-hidden cursor-default;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ng-dropdown-search { @apply px-2 pt-2;}
|
|
60
|
+
.ng-search-wrapper { @apply flex items-center border border-[#E3E3E7] rounded-md px-3 py-[7px] bg-white transition-colors focus-within:border-[#E3E3E7]; }
|
|
61
|
+
.ng-search-input { @apply w-full outline-none font-normal text-sm text-[#141414] placeholder-[#A1A3AE] bg-transparent;}
|
|
62
|
+
|
|
63
|
+
.ng-options-list { @apply max-h-60 overflow-auto relative p-2.5 mb-3.5; }
|
|
64
|
+
|
|
65
|
+
/* Options */
|
|
66
|
+
.ng-option {
|
|
67
|
+
@apply flex items-center p-2.5 cursor-pointer transition-colors font-normal text-sm text-[#141414];
|
|
68
|
+
&:hover, &.marked { @apply bg-[#F8F8F8] rounded-md;}
|
|
69
|
+
&.selected { @apply bg-[#F8F8F8] rounded-md; }
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ng-option-disabled { @apply px-3 py-2 text-gray-400 cursor-default; }
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/* ... Previous styles ... */
|
|
77
|
+
|
|
78
|
+
.ng-value-chip.remaining-count {
|
|
79
|
+
@apply bg-gray-200 text-gray-600 font-semibold cursor-default;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Select All Row (Sticky Top) */
|
|
83
|
+
.select-all-option {
|
|
84
|
+
@apply sticky top-0 z-20 flex items-center px-3 py-2 cursor-pointer border-b border-[#E3E6EE] bg-gray-50 text-[#15191E];
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
@apply bg-gray-100;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.custom-ng-dropdown-panel[data-position="top"] {
|
|
92
|
+
margin-top: 0;
|
|
93
|
+
margin-bottom: 4px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.input-label {
|
|
97
|
+
@apply text-sm font-medium text-[#141414] tracking-[-0.28px] mb-1.5 inline-block;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.input-label-required {
|
|
101
|
+
@apply text-[#E7000B];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/* width */
|
|
106
|
+
::-webkit-scrollbar {
|
|
107
|
+
width: 10px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Track */
|
|
111
|
+
::-webkit-scrollbar-track {
|
|
112
|
+
background: transparent;
|
|
113
|
+
border-radius: 8px;
|
|
114
|
+
width: 8px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Handle */
|
|
118
|
+
::-webkit-scrollbar-thumb {
|
|
119
|
+
background: #D6D7DC;
|
|
120
|
+
border-radius: 8px;
|
|
121
|
+
transition: 0.3s ease-in-out;
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Handle on hover */
|
|
126
|
+
::-webkit-scrollbar-thumb:hover {
|
|
127
|
+
background: #909090;
|
|
128
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* Container */
|
|
2
|
+
.ng-select-container {
|
|
3
|
+
@apply relative w-full box-border;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* Control */
|
|
7
|
+
.ng-select-control {
|
|
8
|
+
@apply flex items-center justify-between gap-2 w-full bg-white border border-[#E3E3E7] rounded transition-all duration-200 px-3 py-[9.2px] cursor-pointer;
|
|
9
|
+
|
|
10
|
+
&.focused { @apply border-[#6B7080] shadow-none z-10; }
|
|
11
|
+
&.disabled { @apply bg-[#F4F4F6] cursor-not-allowed opacity-60; }
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Value Container */
|
|
15
|
+
.ng-value-container {
|
|
16
|
+
@apply flex flex-1 items-center flex-wrap gap-1 relative overflow-hidden h-full;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ng-placeholder {
|
|
20
|
+
@apply text-[#6B7080] font-normal text-sm truncate w-full pointer-events-none;
|
|
21
|
+
}
|
|
22
|
+
.ng-value-label-single{
|
|
23
|
+
@apply font-normal text-sm text-[#141414] truncate w-full;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* --- NEW: Single Value --- */
|
|
27
|
+
.ng-value-label-single {
|
|
28
|
+
@apply font-normal text-sm text-[#141414] truncate w-full;
|
|
29
|
+
}
|
|
30
|
+
/* --- NEW: Multi Select Chips --- */
|
|
31
|
+
.ng-value-chips {
|
|
32
|
+
@apply flex flex-wrap gap-1 w-full;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ng-value-chip {
|
|
36
|
+
@apply flex items-center bg-gray-100 border border-gray-200 rounded px-2 py-0.5 max-w-full;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ng-value-chip .ng-value-label {
|
|
40
|
+
@apply text-[#15191E] truncate max-w-[150px];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ng-value-chip .ng-value-icon {
|
|
44
|
+
@apply ml-1 text-gray-500 hover:text-red-500 cursor-pointer text-base font-bold leading-none px-1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Actions */
|
|
48
|
+
.ng-actions {
|
|
49
|
+
@apply flex items-center gap-0.5 flex-shrink-0;
|
|
50
|
+
}
|
|
51
|
+
.ng-clear-wrapper { @apply text-gray-400 hover:text-red-500 cursor-pointer; }
|
|
52
|
+
.ng-arrow-wrapper { @apply text-gray-400 transition-transform duration-200; &.open { @apply rotate-180; }}
|
|
53
|
+
|
|
54
|
+
/* Dropdown */
|
|
55
|
+
.custom-ng-dropdown-panel {
|
|
56
|
+
@apply absolute left-0 w-full bg-white border border-[#E3E3E7] rounded-xl shadow-lg z-[99] overflow-hidden cursor-default;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ng-dropdown-search { @apply px-2 pt-2;}
|
|
60
|
+
.ng-search-wrapper { @apply flex items-center border border-[#E3E3E7] rounded-md px-3 py-[7px] bg-white transition-colors focus-within:border-[#E3E3E7]; }
|
|
61
|
+
.ng-search-input { @apply w-full outline-none font-normal text-sm text-[#141414] placeholder-[#A1A3AE] bg-transparent;}
|
|
62
|
+
|
|
63
|
+
.ng-options-list { @apply max-h-60 overflow-auto relative p-2.5 mb-3.5 flex flex-col gap-0.5; }
|
|
64
|
+
|
|
65
|
+
/* Options */
|
|
66
|
+
.ng-option {
|
|
67
|
+
@apply flex items-center p-2.5 cursor-pointer transition-colors font-normal text-sm text-[#141414];
|
|
68
|
+
&:hover, &.marked { @apply bg-[#F8F8F8] rounded-md;}
|
|
69
|
+
&.selected { @apply bg-[#F8F8F8] rounded-md; }
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ng-option-disabled { @apply px-3 py-2 text-gray-400 cursor-default; }
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/* ... Previous styles ... */
|
|
77
|
+
|
|
78
|
+
.ng-value-chip.remaining-count {
|
|
79
|
+
@apply bg-gray-200 text-gray-600 font-semibold cursor-default;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Select All Row (Sticky Top) */
|
|
83
|
+
.select-all-option {
|
|
84
|
+
@apply sticky top-0 z-20 flex items-center px-3 py-2 cursor-pointer border-b border-[#E3E6EE] bg-gray-50 text-[#15191E];
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
@apply bg-gray-100;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.custom-ng-dropdown-panel[data-position="top"] {
|
|
92
|
+
margin-top: 0;
|
|
93
|
+
margin-bottom: 4px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.input-label {
|
|
97
|
+
@apply text-sm font-medium text-[#141414] tracking-[-0.28px] mb-1.5 inline-block;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.input-label-required {
|
|
101
|
+
@apply text-[#E7000B];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/* width */
|
|
106
|
+
::-webkit-scrollbar {
|
|
107
|
+
width: 10px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Track */
|
|
111
|
+
::-webkit-scrollbar-track {
|
|
112
|
+
background: transparent;
|
|
113
|
+
border-radius: 8px;
|
|
114
|
+
width: 8px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Handle */
|
|
118
|
+
::-webkit-scrollbar-thumb {
|
|
119
|
+
background: #D6D7DC;
|
|
120
|
+
border-radius: 8px;
|
|
121
|
+
transition: 0.3s ease-in-out;
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Handle on hover */
|
|
126
|
+
::-webkit-scrollbar-thumb:hover {
|
|
127
|
+
background: #909090;
|
|
128
|
+
}
|