@colijnit/corecomponents_v12 300.1.4 → 300.1.6
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/colijnit-corecomponents_v12.mjs +773 -492
- package/fesm2022/colijnit-corecomponents_v12.mjs.map +1 -1
- package/index.d.ts +121 -77
- package/lib/components/list-of-icons/style/_layout.scss +33 -36
- package/lib/components/list-of-icons/style/_material-definition.scss +17 -19
- package/lib/components/list-of-icons/style/_theme.scss +35 -0
- package/lib/components/list-of-values/style/_theme.scss +8 -8
- package/lib/components/tooltip/style/_layout.scss +57 -14
- package/lib/components/tooltip/style/_material-definition.scss +30 -4
- package/lib/components/tooltip/style/_theme.scss +32 -13
- package/lib/style/_variables.scss +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy, NgZone, AfterViewInit, OnInit, EventEmitter, ComponentFactoryResolver, ApplicationRef, Injector, ComponentRef, ChangeDetectorRef, ElementRef, ViewContainerRef, OnChanges, SimpleChanges, PipeTransform, TemplateRef, ModuleWithProviders, QueryList, Renderer2, ComponentFactory, AfterContentInit, DoCheck, IterableDiffers, StaticProvider, InjectionToken } from '@angular/core';
|
|
2
|
+
import { OnDestroy, NgZone, AfterViewInit, OnInit, EventEmitter, ComponentFactoryResolver, ApplicationRef, Injector, ComponentRef, ChangeDetectorRef, ElementRef, ViewContainerRef, OnChanges, SimpleChanges, PipeTransform, TemplateRef, ModuleWithProviders, QueryList, Renderer2, ComponentFactory, AfterContentInit, DoCheck, IterableDiffers, Signal, StaticProvider, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i4$1 from '@angular/forms';
|
|
4
4
|
import { UntypedFormControl, UntypedFormGroup, NgModel, ValidatorFn, AsyncValidatorFn, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
5
|
import { Subject, Observable, Subscription, BehaviorSubject } from 'rxjs';
|
|
@@ -2408,6 +2408,8 @@ declare abstract class BaseSimpleGridComponent implements DoCheck {
|
|
|
2408
2408
|
singleColumnIndex(row: Object): number;
|
|
2409
2409
|
protected dataHasChanged(): void;
|
|
2410
2410
|
protected prepareDataRow(row: any, index: number): Promise<void>;
|
|
2411
|
+
protected repeatSortOnDataChange(): void;
|
|
2412
|
+
protected setData(value: Object[]): void;
|
|
2411
2413
|
private _setColumns;
|
|
2412
2414
|
private _prepareData;
|
|
2413
2415
|
private _prepareDataRows;
|
|
@@ -2429,6 +2431,7 @@ declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
2429
2431
|
private _formMaster;
|
|
2430
2432
|
readonly defaultTextAlign: ColumnAlign;
|
|
2431
2433
|
readonly scrollDirections: typeof ScrollDirection;
|
|
2434
|
+
private _previouslySortedColumn;
|
|
2432
2435
|
set headerCells(cells: any);
|
|
2433
2436
|
rowElements: QueryList<ElementRef>;
|
|
2434
2437
|
showAdd: boolean;
|
|
@@ -2486,7 +2489,8 @@ declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
2486
2489
|
toggleSettingsMenu(): void;
|
|
2487
2490
|
toggleColumnMenu(col: any): void;
|
|
2488
2491
|
hideColumn(col: any): void;
|
|
2489
|
-
sortColumn(col: any, columnValue: string): void;
|
|
2492
|
+
sortColumn(col: any, columnValue: string, preserveSortDirection?: boolean): void;
|
|
2493
|
+
protected repeatSortOnDataChange(): void;
|
|
2490
2494
|
showAllColumns(): void;
|
|
2491
2495
|
exportToExcel(): void;
|
|
2492
2496
|
goToPreviousPage(): void;
|
|
@@ -2497,6 +2501,9 @@ declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
2497
2501
|
private _filterSelectedOrReturnAll;
|
|
2498
2502
|
private _resetDblClick;
|
|
2499
2503
|
/**
|
|
2504
|
+
* Cell indexes are expressed in `headerColumnsCopy` space, because that is the
|
|
2505
|
+
* collection the rows are rendered from. Using `columns` here would drift as soon
|
|
2506
|
+
* as a column is hidden or marked as single column.
|
|
2500
2507
|
*
|
|
2501
2508
|
* @param next; Move to next or previous cell
|
|
2502
2509
|
* @param start; Start from cellindex
|
|
@@ -2505,6 +2512,7 @@ declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
2505
2512
|
private _nextAvailableCellToEdit;
|
|
2506
2513
|
private _getNextEditCellIndex;
|
|
2507
2514
|
private _getPreviousEditCellIndex;
|
|
2515
|
+
private _isCellEditable;
|
|
2508
2516
|
private _getNextEditRowIndex;
|
|
2509
2517
|
private _getPreviousEditRowIndex;
|
|
2510
2518
|
private _saveRow;
|
|
@@ -2519,16 +2527,12 @@ declare class SimpleGridCellComponent implements OnInit {
|
|
|
2519
2527
|
private _changeDetector;
|
|
2520
2528
|
private _injector;
|
|
2521
2529
|
private _formComponent;
|
|
2522
|
-
|
|
2523
|
-
set editMode(value: boolean);
|
|
2530
|
+
editMode: boolean;
|
|
2524
2531
|
readonly defaultTextAlign: ColumnAlign;
|
|
2525
|
-
set
|
|
2526
|
-
set noEditTemplateContent(template: any);
|
|
2527
|
-
set noTemplateContent(template: any);
|
|
2532
|
+
set cellFieldContent(element: ElementRef<HTMLElement>);
|
|
2528
2533
|
column: SimpleGridColumnDirective;
|
|
2529
2534
|
row: {};
|
|
2530
2535
|
columnInjector: Injector;
|
|
2531
|
-
private _editMode;
|
|
2532
2536
|
set fieldEditMode(value: boolean);
|
|
2533
2537
|
get fieldEditMode(): boolean;
|
|
2534
2538
|
cellClick: EventEmitter<MouseEvent>;
|
|
@@ -2536,9 +2540,7 @@ declare class SimpleGridCellComponent implements OnInit {
|
|
|
2536
2540
|
handleClick(event: MouseEvent): void;
|
|
2537
2541
|
private _fieldEditMode;
|
|
2538
2542
|
private _focused;
|
|
2539
|
-
private
|
|
2540
|
-
private _template;
|
|
2541
|
-
private _inputTemplate;
|
|
2543
|
+
private _cellField;
|
|
2542
2544
|
constructor(_changeDetector: ChangeDetectorRef, _injector: Injector, _formComponent: FormComponent);
|
|
2543
2545
|
ngOnInit(): void;
|
|
2544
2546
|
private _setFocusComponent;
|
|
@@ -2924,31 +2926,130 @@ interface IconListItem {
|
|
|
2924
2926
|
children?: IconListItem[];
|
|
2925
2927
|
}
|
|
2926
2928
|
|
|
2927
|
-
declare class ListOfIconsComponent implements OnInit {
|
|
2929
|
+
declare class ListOfIconsComponent implements OnInit, OnDestroy {
|
|
2928
2930
|
icons: IconCacheService;
|
|
2931
|
+
private _overlayService;
|
|
2932
|
+
private _elementRef;
|
|
2929
2933
|
set collection(value: IconListItem[]);
|
|
2930
2934
|
get collection(): IconListItem[];
|
|
2931
|
-
|
|
2932
|
-
|
|
2935
|
+
activeItem: IconListItem;
|
|
2936
|
+
showLabels: boolean;
|
|
2937
|
+
customCssClass: string;
|
|
2933
2938
|
itemSelected: EventEmitter<IconListItem>;
|
|
2934
2939
|
showClass(): boolean;
|
|
2935
2940
|
readonly Icon: any;
|
|
2936
2941
|
showMenu: boolean;
|
|
2937
|
-
showSubCategories: boolean;
|
|
2938
2942
|
private _collection;
|
|
2939
|
-
|
|
2943
|
+
private _popupComponentRef;
|
|
2944
|
+
constructor(icons: IconCacheService, _overlayService: OverlayService, _elementRef: ElementRef);
|
|
2940
2945
|
ngOnInit(): void;
|
|
2946
|
+
ngOnDestroy(): void;
|
|
2941
2947
|
toggleMenu(): void;
|
|
2948
|
+
openPopup(): void;
|
|
2949
|
+
closePopup(): void;
|
|
2942
2950
|
selectItem(item: IconListItem): void;
|
|
2943
|
-
handlePickingCategoryClicked(subCategory: IconListItem): void;
|
|
2944
|
-
onClickOutside(): void;
|
|
2945
2951
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListOfIconsComponent, never>;
|
|
2946
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListOfIconsComponent, "co-list-of-icons", never, { "collection": { "alias": "collection"; "required": false; }; "
|
|
2952
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListOfIconsComponent, "co-list-of-icons", never, { "collection": { "alias": "collection"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "showLabels": { "alias": "showLabels"; "required": false; }; "customCssClass": { "alias": "customCssClass"; "required": false; }; }, { "itemSelected": "itemSelected"; }, never, never, false, never>;
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
declare class ListOfIconsPopupComponent {
|
|
2956
|
+
collection: IconListItem[];
|
|
2957
|
+
activeItem?: IconListItem;
|
|
2958
|
+
parentForOverlay: ElementRef;
|
|
2959
|
+
customCssClass: string;
|
|
2960
|
+
showLabels: boolean;
|
|
2961
|
+
itemSelected: EventEmitter<IconListItem>;
|
|
2962
|
+
closePopup: EventEmitter<Event>;
|
|
2963
|
+
showClass(): boolean;
|
|
2964
|
+
readonly showSubCategories: Signal<boolean>;
|
|
2965
|
+
private readonly _showSubCategories;
|
|
2966
|
+
selectItem(item: IconListItem): void;
|
|
2967
|
+
handlePickingCategoryClicked(subCategory: IconListItem, event: Event): void;
|
|
2968
|
+
protected readonly CoDirection: typeof CoDirection;
|
|
2969
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListOfIconsPopupComponent, never>;
|
|
2970
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListOfIconsPopupComponent, "co-list-of-icons-popup", never, { "collection": { "alias": "collection"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "parentForOverlay": { "alias": "parentForOverlay"; "required": false; }; "customCssClass": { "alias": "customCssClass"; "required": false; }; "showLabels": { "alias": "showLabels"; "required": false; }; }, { "itemSelected": "itemSelected"; "closePopup": "closePopup"; }, never, never, false, never>;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
declare class TooltipDirective implements OnDestroy, OnInit {
|
|
2974
|
+
private _compFactoryResolver;
|
|
2975
|
+
private _appRef;
|
|
2976
|
+
private _injector;
|
|
2977
|
+
private _sanitizer;
|
|
2978
|
+
set tooltip(str: string);
|
|
2979
|
+
orientation: CoDirection;
|
|
2980
|
+
private _elementRef;
|
|
2981
|
+
private _tooltipMessage;
|
|
2982
|
+
private _componentRef;
|
|
2983
|
+
private _showTimeoutId;
|
|
2984
|
+
private _autoHideTimeoutId;
|
|
2985
|
+
private readonly _mouseEnterHandler;
|
|
2986
|
+
private readonly _mouseLeaveHandler;
|
|
2987
|
+
private readonly _scrollHandler;
|
|
2988
|
+
constructor(elementRef: ElementRef, _compFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _sanitizer: DomSanitizer);
|
|
2989
|
+
ngOnDestroy(): void;
|
|
2990
|
+
ngOnInit(): void;
|
|
2991
|
+
private _handleScroll;
|
|
2992
|
+
private _startShowTimeout;
|
|
2993
|
+
private _resolveDelay;
|
|
2994
|
+
private _clearShowTimeout;
|
|
2995
|
+
private _removeTooltip;
|
|
2996
|
+
private _startAutoHideTimeout;
|
|
2997
|
+
private _clearAutoHideTimeout;
|
|
2998
|
+
private _createTooltipComponent;
|
|
2999
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
3000
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[tooltip]", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "orientation": { "alias": "tooltipOrientation"; "required": false; }; }, {}, never, never, false, never>;
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
declare class TooltipComponent implements AfterViewInit, OnDestroy {
|
|
3004
|
+
private _elementRef;
|
|
3005
|
+
private _changeDetector;
|
|
3006
|
+
private _renderer;
|
|
3007
|
+
set hostElement(value: HTMLElement);
|
|
3008
|
+
get hostElement(): HTMLElement;
|
|
3009
|
+
toolTip: SafeHtml | string;
|
|
3010
|
+
orientation: CoDirection;
|
|
3011
|
+
tooltipClosed: EventEmitter<void>;
|
|
3012
|
+
showClass(): boolean;
|
|
3013
|
+
top: number;
|
|
3014
|
+
left: number;
|
|
3015
|
+
get isTop(): boolean;
|
|
3016
|
+
get isBottom(): boolean;
|
|
3017
|
+
get isLeft(): boolean;
|
|
3018
|
+
get isRight(): boolean;
|
|
3019
|
+
animate: boolean;
|
|
3020
|
+
private _resolvedOrientation;
|
|
3021
|
+
private _hostElement;
|
|
3022
|
+
private _documentClickListener;
|
|
3023
|
+
constructor(_elementRef: ElementRef, _changeDetector: ChangeDetectorRef, _renderer: Renderer2);
|
|
3024
|
+
ngAfterViewInit(): void;
|
|
3025
|
+
ngOnDestroy(): void;
|
|
3026
|
+
private _positionTooltip;
|
|
3027
|
+
private _resolveOrientation;
|
|
3028
|
+
private _fits;
|
|
3029
|
+
private _availableSpace;
|
|
3030
|
+
private _calculateLeft;
|
|
3031
|
+
private _calculateTop;
|
|
3032
|
+
private _positionArrow;
|
|
3033
|
+
private closeTooltip;
|
|
3034
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
3035
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "co-tooltip", never, { "hostElement": { "alias": "hostElement"; "required": false; }; "toolTip": { "alias": "toolTip"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; }, { "tooltipClosed": "tooltipClosed"; }, never, never, false, never>;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
declare class TooltipModule {
|
|
3039
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
|
3040
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof TooltipComponent], [typeof i2.CommonModule], [typeof TooltipComponent]>;
|
|
3041
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
declare class TooltipDirectiveModule {
|
|
3045
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirectiveModule, never>;
|
|
3046
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipDirectiveModule, [typeof TooltipDirective], [typeof TooltipModule], [typeof TooltipDirective]>;
|
|
3047
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipDirectiveModule>;
|
|
2947
3048
|
}
|
|
2948
3049
|
|
|
2949
3050
|
declare class ListOfIconsModule {
|
|
2950
3051
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListOfIconsModule, never>;
|
|
2951
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ListOfIconsModule, [typeof ListOfIconsComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof IconModule, typeof ClickoutsideModule, typeof CoreComponentsTranslationModule], [typeof ListOfIconsComponent]>;
|
|
3052
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ListOfIconsModule, [typeof ListOfIconsComponent, typeof ListOfIconsPopupComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof IconModule, typeof ClickoutsideModule, typeof OverlayModule, typeof CoreComponentsTranslationModule, typeof TooltipDirectiveModule], [typeof ListOfIconsComponent]>;
|
|
2952
3053
|
static ɵinj: i0.ɵɵInjectorDeclaration<ListOfIconsModule>;
|
|
2953
3054
|
}
|
|
2954
3055
|
|
|
@@ -3432,63 +3533,6 @@ declare class AlignWithModule {
|
|
|
3432
3533
|
static ɵinj: i0.ɵɵInjectorDeclaration<AlignWithModule>;
|
|
3433
3534
|
}
|
|
3434
3535
|
|
|
3435
|
-
declare class TooltipDirective implements OnDestroy, OnInit {
|
|
3436
|
-
private _compFactoryResolver;
|
|
3437
|
-
private _appRef;
|
|
3438
|
-
private _injector;
|
|
3439
|
-
private _sanitizer;
|
|
3440
|
-
set tooltip(str: string);
|
|
3441
|
-
private _elementRef;
|
|
3442
|
-
private _tooltipMessage;
|
|
3443
|
-
private _componentRef;
|
|
3444
|
-
constructor(elementRef: ElementRef, _compFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _sanitizer: DomSanitizer);
|
|
3445
|
-
ngOnDestroy(): void;
|
|
3446
|
-
ngOnInit(): void;
|
|
3447
|
-
private _handleScroll;
|
|
3448
|
-
private _handleMouseMove;
|
|
3449
|
-
private _showTooltip;
|
|
3450
|
-
private _removeTooltip;
|
|
3451
|
-
private _createTooltipComponent;
|
|
3452
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
3453
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[tooltip]", never, { "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, false, never>;
|
|
3454
|
-
}
|
|
3455
|
-
|
|
3456
|
-
declare class TooltipComponent implements AfterViewInit, OnDestroy {
|
|
3457
|
-
private _elementRef;
|
|
3458
|
-
private _changeDetector;
|
|
3459
|
-
private _renderer;
|
|
3460
|
-
set hostElement(value: HTMLElement);
|
|
3461
|
-
get hostElement(): HTMLElement;
|
|
3462
|
-
toolTip: SafeHtml | string;
|
|
3463
|
-
tooltipClosed: EventEmitter<void>;
|
|
3464
|
-
showClass(): boolean;
|
|
3465
|
-
top: number;
|
|
3466
|
-
left: number;
|
|
3467
|
-
bottom: boolean;
|
|
3468
|
-
animate: boolean;
|
|
3469
|
-
private _hostElement;
|
|
3470
|
-
private _documentClickListener;
|
|
3471
|
-
constructor(_elementRef: ElementRef, _changeDetector: ChangeDetectorRef, _renderer: Renderer2);
|
|
3472
|
-
ngAfterViewInit(): void;
|
|
3473
|
-
ngOnDestroy(): void;
|
|
3474
|
-
private _positionTooltip;
|
|
3475
|
-
private closeTooltip;
|
|
3476
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
3477
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "co-tooltip", never, { "hostElement": { "alias": "hostElement"; "required": false; }; "toolTip": { "alias": "toolTip"; "required": false; }; }, { "tooltipClosed": "tooltipClosed"; }, never, never, false, never>;
|
|
3478
|
-
}
|
|
3479
|
-
|
|
3480
|
-
declare class TooltipModule {
|
|
3481
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
|
3482
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof TooltipComponent], [typeof i2.CommonModule], [typeof TooltipComponent]>;
|
|
3483
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
|
3484
|
-
}
|
|
3485
|
-
|
|
3486
|
-
declare class TooltipDirectiveModule {
|
|
3487
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirectiveModule, never>;
|
|
3488
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipDirectiveModule, [typeof TooltipDirective], [typeof TooltipModule], [typeof TooltipDirective]>;
|
|
3489
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipDirectiveModule>;
|
|
3490
|
-
}
|
|
3491
|
-
|
|
3492
3536
|
declare abstract class BaseModuleScreenConfigService {
|
|
3493
3537
|
abstract screenModuleName: string;
|
|
3494
3538
|
readonly configSet: BehaviorSubject<ObjectConfiguration[]>;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
display: block;
|
|
5
5
|
height: fit-content;
|
|
6
6
|
margin-right: -10px;
|
|
7
|
-
font-family: $cc-co-
|
|
8
|
-
font-size: $cc-co-
|
|
9
|
-
background: $cc-co-list-of-
|
|
7
|
+
font-family: $cc-co-list-of-icons-font-family;
|
|
8
|
+
font-size: $cc-co-list-of-icons-font-size;
|
|
9
|
+
background: $cc-co-list-of-icons-background-color;
|
|
10
10
|
z-index: 1;
|
|
11
11
|
|
|
12
12
|
.icon-item {
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
cursor: pointer;
|
|
18
18
|
|
|
19
|
+
.co-icon {
|
|
20
|
+
width: $cc-co-list-of-icons-icon-size;
|
|
21
|
+
height: $cc-co-list-of-icons-icon-size;
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
.label {
|
|
20
25
|
margin-top: 2px;
|
|
21
26
|
text-align: center;
|
|
@@ -35,40 +40,43 @@
|
|
|
35
40
|
&.menu-opened {
|
|
36
41
|
.co-icon svg,
|
|
37
42
|
.co-icon svg * {
|
|
38
|
-
fill: $color-action;
|
|
43
|
+
fill: $cc-color-action;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
.label {
|
|
42
|
-
color: $color-action;
|
|
47
|
+
color: $cc-color-action;
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.co-list-of-icons-popup {
|
|
54
|
+
font-family: $cc-co-list-of-icons-font-family;
|
|
55
|
+
font-size: $cc-co-list-of-icons-font-size;
|
|
46
56
|
|
|
47
57
|
.dropdown-menu {
|
|
48
|
-
position:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
box-shadow: -3px 0px 16px 1px rgba(0, 0, 0, 0.2);
|
|
54
|
-
border-radius: 5px;
|
|
55
|
-
background: #FFF;
|
|
58
|
+
position: fixed;
|
|
59
|
+
width: $cc-co-list-of-icons-popup-width;
|
|
60
|
+
padding-top: $cc-co-list-of-icons-popup-padding-top;
|
|
61
|
+
border-radius: $cc-co-list-of-icons-popup-border-radius;
|
|
62
|
+
z-index: $cc-co-list-of-icons-popup-z-index;
|
|
56
63
|
|
|
57
64
|
.icon-item {
|
|
58
65
|
position: relative;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
align-items: center;
|
|
69
|
+
margin-bottom: $cc-co-list-of-icons-popup-item-margin-bottom;
|
|
70
|
+
cursor: pointer;
|
|
63
71
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
.co-icon {
|
|
73
|
+
width: $cc-co-list-of-icons-icon-size;
|
|
74
|
+
height: $cc-co-list-of-icons-icon-size;
|
|
75
|
+
}
|
|
68
76
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
77
|
+
.label {
|
|
78
|
+
margin-top: 2px;
|
|
79
|
+
text-align: center;
|
|
72
80
|
}
|
|
73
81
|
}
|
|
74
82
|
}
|
|
@@ -79,9 +87,7 @@
|
|
|
79
87
|
left: 106%;
|
|
80
88
|
z-index: 1;
|
|
81
89
|
padding: 8px 6px 0;
|
|
82
|
-
border-radius:
|
|
83
|
-
background: #f8f8fa;
|
|
84
|
-
box-shadow: 1px 1px 3px 1px #9d9d9d6e;
|
|
90
|
+
border-radius: $cc-co-list-of-icons-popup-sub-category-border-radius;
|
|
85
91
|
|
|
86
92
|
.button-wrapper {
|
|
87
93
|
display: flex;
|
|
@@ -92,14 +98,6 @@
|
|
|
92
98
|
text-align: center;
|
|
93
99
|
cursor: pointer;
|
|
94
100
|
|
|
95
|
-
&:hover {
|
|
96
|
-
co-icon svg *,
|
|
97
|
-
span {
|
|
98
|
-
fill: $color-action;
|
|
99
|
-
color: $color-action;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
101
|
.button-title {
|
|
104
102
|
margin-top: 2px;
|
|
105
103
|
font-size: 9px;
|
|
@@ -108,4 +106,3 @@
|
|
|
108
106
|
}
|
|
109
107
|
}
|
|
110
108
|
}
|
|
111
|
-
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
$cc-co-
|
|
2
|
-
$cc-co-
|
|
3
|
-
$cc-co-
|
|
4
|
-
$cc-co-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$cc-co-
|
|
8
|
-
$cc-co-
|
|
9
|
-
$cc-co-
|
|
10
|
-
$cc-co-
|
|
11
|
-
$cc-co-
|
|
12
|
-
$cc-co-
|
|
13
|
-
$cc-co-
|
|
14
|
-
$cc-co-
|
|
15
|
-
$cc-co-list-of-
|
|
16
|
-
$cc-co-list-of-
|
|
17
|
-
$
|
|
18
|
-
$color-action: #1A73E8;
|
|
19
|
-
$cc-color-validation-error-background: $cc-color-validation-error-background !default;
|
|
1
|
+
$cc-co-list-of-icons-font-family: $cc-font-family !default;
|
|
2
|
+
$cc-co-list-of-icons-font-size: $cc-font-size-default !default;
|
|
3
|
+
$cc-co-list-of-icons-background-color: white !default;
|
|
4
|
+
$cc-co-list-of-icons-icon-size: 25px !default;
|
|
5
|
+
|
|
6
|
+
//Popup (portaled to the document body by the OverlayService) variables
|
|
7
|
+
$cc-co-list-of-icons-popup-width: 65px !default;
|
|
8
|
+
$cc-co-list-of-icons-popup-padding-top: 10px !default;
|
|
9
|
+
$cc-co-list-of-icons-popup-border-radius: 5px !default;
|
|
10
|
+
$cc-co-list-of-icons-popup-z-index: 99999999 !default;
|
|
11
|
+
$cc-co-list-of-icons-popup-background-color: #fff !default;
|
|
12
|
+
$cc-co-list-of-icons-popup-box-shadow: -3px 0 16px 1px rgba(0, 0, 0, 0.2) !default;
|
|
13
|
+
$cc-co-list-of-icons-popup-active-color: $cc-color-action !default;
|
|
14
|
+
$cc-co-list-of-icons-popup-item-margin-bottom: 12px !default;
|
|
15
|
+
$cc-co-list-of-icons-popup-sub-category-background-color: #f8f8fa !default;
|
|
16
|
+
$cc-co-list-of-icons-popup-sub-category-box-shadow: 1px 1px 3px 1px #9d9d9d6e !default;
|
|
17
|
+
$cc-co-list-of-icons-popup-sub-category-border-radius: 3px !default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@include export-module('co-list-of-icons-theme') {
|
|
2
|
+
.co-list-of-icons-popup {
|
|
3
|
+
.dropdown-menu {
|
|
4
|
+
background: $cc-co-list-of-icons-popup-background-color;
|
|
5
|
+
box-shadow: $cc-co-list-of-icons-popup-box-shadow;
|
|
6
|
+
|
|
7
|
+
.icon-item {
|
|
8
|
+
&:hover,
|
|
9
|
+
&.active {
|
|
10
|
+
.co-icon svg,
|
|
11
|
+
.co-icon svg * {
|
|
12
|
+
fill: $cc-co-list-of-icons-popup-active-color;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.label {
|
|
16
|
+
color: $cc-co-list-of-icons-popup-active-color;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.picking-type-wrapper {
|
|
23
|
+
background: $cc-co-list-of-icons-popup-sub-category-background-color;
|
|
24
|
+
box-shadow: $cc-co-list-of-icons-popup-sub-category-box-shadow;
|
|
25
|
+
|
|
26
|
+
.button-wrapper:hover {
|
|
27
|
+
co-icon svg *,
|
|
28
|
+
span {
|
|
29
|
+
fill: $cc-co-list-of-icons-popup-active-color;
|
|
30
|
+
color: $cc-co-list-of-icons-popup-active-color;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@include export-module('co-list-of-values-theme') {
|
|
2
|
-
.co-list-of-values-popup {
|
|
3
|
-
.lov-highlight {
|
|
4
|
-
background-color: $cc-co-list-of-values-highlight-background-color;
|
|
5
|
-
color: $cc-co-list-of-values-highlight-text-color;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
@include export-module('co-list-of-values-theme') {
|
|
2
|
+
.co-list-of-values-popup {
|
|
3
|
+
.lov-highlight {
|
|
4
|
+
background-color: $cc-co-list-of-values-highlight-background-color;
|
|
5
|
+
color: $cc-co-list-of-values-highlight-text-color;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
column-gap: 10px;
|
|
12
12
|
padding: $co-tooltip-padding;
|
|
13
|
-
z-index:
|
|
13
|
+
z-index: $co-tooltip-z-index;
|
|
14
14
|
border-radius: $co-tooltip-border-radius;
|
|
15
15
|
border: $co-tooltip-border;
|
|
16
16
|
|
|
@@ -23,30 +23,73 @@
|
|
|
23
23
|
pointer-events: none;
|
|
24
24
|
position: absolute;
|
|
25
25
|
width: 0;
|
|
26
|
-
bottom: -20px;
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
&::after {
|
|
30
|
-
|
|
31
|
-
border-width: 10px;
|
|
29
|
+
border-width: $co-tooltip-arrow-size;
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
&::before {
|
|
35
|
-
|
|
36
|
-
border-width: 8px;
|
|
33
|
+
border-width: $co-tooltip-arrow-inner-size;
|
|
37
34
|
z-index: 1;
|
|
38
|
-
bottom: -16px;
|
|
39
35
|
}
|
|
36
|
+
|
|
37
|
+
@if not $co-tooltip-has-border {
|
|
38
|
+
&::after {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// The arrow sits on the edge facing the host: --co-tooltip-arrow-center is the offset along that edge.
|
|
44
|
+
&.top {
|
|
45
|
+
&::after {
|
|
46
|
+
left: calc(#{$co-tooltip-arrow-center} - #{$co-tooltip-arrow-size});
|
|
47
|
+
bottom: calc(-2 * #{$co-tooltip-arrow-size});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
left: calc(#{$co-tooltip-arrow-center} - #{$co-tooltip-arrow-inner-size});
|
|
52
|
+
bottom: calc(-2 * #{$co-tooltip-arrow-inner-size});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
40
56
|
&.bottom {
|
|
41
|
-
&::after
|
|
57
|
+
&::after {
|
|
58
|
+
left: calc(#{$co-tooltip-arrow-center} - #{$co-tooltip-arrow-size});
|
|
59
|
+
top: calc(-2 * #{$co-tooltip-arrow-size});
|
|
60
|
+
}
|
|
61
|
+
|
|
42
62
|
&::before {
|
|
43
|
-
|
|
63
|
+
left: calc(#{$co-tooltip-arrow-center} - #{$co-tooltip-arrow-inner-size});
|
|
64
|
+
top: calc(-2 * #{$co-tooltip-arrow-inner-size});
|
|
44
65
|
}
|
|
45
66
|
}
|
|
67
|
+
|
|
68
|
+
&.left {
|
|
69
|
+
&::after {
|
|
70
|
+
top: calc(#{$co-tooltip-arrow-center} - #{$co-tooltip-arrow-size});
|
|
71
|
+
right: calc(-2 * #{$co-tooltip-arrow-size});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&::before {
|
|
75
|
+
top: calc(#{$co-tooltip-arrow-center} - #{$co-tooltip-arrow-inner-size});
|
|
76
|
+
right: calc(-2 * #{$co-tooltip-arrow-inner-size});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.right {
|
|
81
|
+
&::after {
|
|
82
|
+
top: calc(#{$co-tooltip-arrow-center} - #{$co-tooltip-arrow-size});
|
|
83
|
+
left: calc(-2 * #{$co-tooltip-arrow-size});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&::before {
|
|
87
|
+
top: calc(#{$co-tooltip-arrow-center} - #{$co-tooltip-arrow-inner-size});
|
|
88
|
+
left: calc(-2 * #{$co-tooltip-arrow-inner-size});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.title {
|
|
92
|
+
font-weight: $co-tooltip-title-font-weight;
|
|
93
|
+
}
|
|
46
94
|
}
|
|
47
|
-
//.validation-error-content {
|
|
48
|
-
// display: flex;
|
|
49
|
-
// flex-direction: row;
|
|
50
|
-
// align-items: center;
|
|
51
|
-
//}
|
|
52
95
|
}
|
|
@@ -1,8 +1,34 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:meta";
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--co-tooltip-arrow-size: 10px;
|
|
6
|
+
--co-tooltip-arrow-inner-size: 8px;
|
|
7
|
+
--co-tooltip-arrow-center: 30px;
|
|
8
|
+
--co-tooltip-z-index: 9999999999;
|
|
9
|
+
// Read by TooltipDirective (getComputedStyle), not applied by CSS.
|
|
10
|
+
--co-tooltip-show-delay: 400ms;
|
|
11
|
+
--co-tooltip-auto-hide-delay: 10000ms; // 0 disables the auto-hide guard
|
|
12
|
+
}
|
|
13
|
+
|
|
1
14
|
$co-tooltip-font-family: $cc-font-family !default;
|
|
2
15
|
$co-tooltip-font-size: $cc-font-size-default !default;
|
|
3
16
|
$co-tooltip-padding: 10px !default;
|
|
4
|
-
$co-tooltip-background-color: $cc-color-
|
|
5
|
-
$co-tooltip-color:
|
|
6
|
-
$co-tooltip-border:
|
|
7
|
-
$co-tooltip-border-color:
|
|
17
|
+
$co-tooltip-background-color: $cc-color-tooltip-default !default;
|
|
18
|
+
$co-tooltip-color: white !default;
|
|
19
|
+
$co-tooltip-border: 1px solid !default;
|
|
20
|
+
$co-tooltip-border-color: gray !default;
|
|
8
21
|
$co-tooltip-border-radius: 5px !default;
|
|
22
|
+
$co-tooltip-arrow-size: var(--co-tooltip-arrow-size) !default;
|
|
23
|
+
$co-tooltip-arrow-inner-size: var(--co-tooltip-arrow-inner-size) !default;
|
|
24
|
+
$co-tooltip-arrow-center: var(--co-tooltip-arrow-center) !default;
|
|
25
|
+
$co-tooltip-z-index: var(--co-tooltip-z-index) !default;
|
|
26
|
+
|
|
27
|
+
// Derived from the border shorthand so the arrow rim follows whatever the consumer sets.
|
|
28
|
+
$co-tooltip-border-width: if(meta.type-of($co-tooltip-border) == list, list.nth($co-tooltip-border, 1), $co-tooltip-border) !default;
|
|
29
|
+
$co-tooltip-has-border: meta.type-of($co-tooltip-border-width) == number and $co-tooltip-border-width > 0 !default;
|
|
30
|
+
|
|
31
|
+
$co-tooltip-title-font-family: $cc-font-family !default;
|
|
32
|
+
$co-tooltip-title-font-size: $cc-font-size-default !default;
|
|
33
|
+
$co-tooltip-title-font-color: $co-tooltip-color !default;
|
|
34
|
+
$co-tooltip-title-font-weight: bold !default;
|