@colijnit/corecomponents_v12 12.0.91 → 12.0.93
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/bundles/colijnit-corecomponents_v12.umd.js +103 -1
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/filter-item/filter-item-viewmodel.js +11 -0
- package/esm2015/lib/components/filter-item/filter-item.component.js +2 -2
- package/esm2015/lib/components/filter-item/filter-viewmodel.js +11 -0
- package/esm2015/lib/components/view-mode-buttons/content-view-mode.enum.js +11 -0
- package/esm2015/lib/components/view-mode-buttons/view-mode-buttons.component.js +61 -0
- package/esm2015/lib/components/view-mode-buttons/view-mode-buttons.module.js +21 -0
- package/esm2015/public-api.js +6 -1
- package/fesm2015/colijnit-corecomponents_v12.js +108 -2
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/filter-item/filter-item-viewmodel.d.ts +8 -0
- package/lib/components/filter-item/filter-item.component.d.ts +1 -1
- package/lib/components/filter-item/filter-viewmodel.d.ts +8 -0
- package/lib/components/view-mode-buttons/content-view-mode.enum.d.ts +8 -0
- package/lib/components/view-mode-buttons/style/_layout.scss +24 -0
- package/lib/components/view-mode-buttons/style/_material-definition.scss +6 -0
- package/lib/components/view-mode-buttons/style/_theme.scss +20 -0
- package/lib/components/view-mode-buttons/style/material.scss +3 -0
- package/lib/components/view-mode-buttons/view-mode-buttons.component.d.ts +17 -0
- package/lib/components/view-mode-buttons/view-mode-buttons.module.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
- package/esm2015/lib/core/interface/filter-item-viewmodel.js +0 -2
- package/lib/core/interface/filter-item-viewmodel.d.ts +0 -7
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class FilterItemViewmodel {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
code: string | number;
|
|
4
|
+
description: string;
|
|
5
|
+
count?: number;
|
|
6
|
+
valueName?: string;
|
|
7
|
+
constructor(code: string | number, description: string | number, checked: boolean, count?: number, valueName?: string);
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
2
|
import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
|
|
3
|
-
import { FilterItemViewmodel } from "
|
|
3
|
+
import { FilterItemViewmodel } from "./filter-item-viewmodel";
|
|
4
4
|
import { IconCacheService } from "../icon/icon-cache.service";
|
|
5
5
|
export declare class FilterItemComponent implements OnInit {
|
|
6
6
|
iconService: IconCacheService;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@include export-module('co-view-mode-buttons-layout') {
|
|
2
|
+
.co-view-mode-buttons {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
justify-content: flex-end;
|
|
6
|
+
align-items: center;
|
|
7
|
+
.view-button {
|
|
8
|
+
justify-content: center;
|
|
9
|
+
padding: 0;
|
|
10
|
+
height: $co-view-mode-button-size;
|
|
11
|
+
width: $co-view-mode-button-size;
|
|
12
|
+
border-radius: $co-view-mode-button-border-radius;
|
|
13
|
+
|
|
14
|
+
.co-icon {
|
|
15
|
+
height: $co-view-mode-button-icon-size;
|
|
16
|
+
width: $co-view-mode-button-icon-size;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:not(.circle) {
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
$co-view-mode-button-size: 30px !default;
|
|
2
|
+
$co-view-mode-button-icon-size: 20px !default;
|
|
3
|
+
$co-view-mode-button-background-color: #171721 !default;
|
|
4
|
+
$co-view-mode-button-selected-background-color: #3e7eff !default;
|
|
5
|
+
$co-view-mode-button-background-color-hover: #FFFFFF !default;
|
|
6
|
+
$co-view-mode-button-border-radius: 3px !default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@include export-module('co-view-mode-buttons-theme') {
|
|
2
|
+
.co-view-mode-buttons {
|
|
3
|
+
.view-button {
|
|
4
|
+
[fill] {
|
|
5
|
+
fill: $co-view-mode-button-background-color;
|
|
6
|
+
}
|
|
7
|
+
&:hover {
|
|
8
|
+
[fill] {
|
|
9
|
+
fill: $co-view-mode-button-background-color-hover;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
&.selected {
|
|
13
|
+
background-color: $co-view-mode-button-selected-background-color;
|
|
14
|
+
[fill] {
|
|
15
|
+
fill: $co-view-mode-button-background-color-hover;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { ContentViewMode } from "./content-view-mode.enum";
|
|
3
|
+
import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
|
|
4
|
+
import { IconCacheService } from "../icon/icon-cache.service";
|
|
5
|
+
export declare class ViewModeButtonsComponent implements OnInit {
|
|
6
|
+
iconCacheService: IconCacheService;
|
|
7
|
+
readonly icons: typeof CoreComponentsIcon;
|
|
8
|
+
readonly viewModes: typeof ContentViewMode;
|
|
9
|
+
showViewModes: ContentViewMode[];
|
|
10
|
+
viewModeChange: EventEmitter<ContentViewMode>;
|
|
11
|
+
showClass(): boolean;
|
|
12
|
+
set activeViewMode(value: ContentViewMode);
|
|
13
|
+
get activeViewMode(): ContentViewMode;
|
|
14
|
+
private _activeViewMode;
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
constructor(iconCacheService: IconCacheService);
|
|
17
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -90,6 +90,9 @@ export * from './lib/components/tile/tile.component';
|
|
|
90
90
|
export * from './lib/core/enum/core-components-icon.enum';
|
|
91
91
|
export * from './lib/components/icon/icon-cache.service';
|
|
92
92
|
export * from './lib/components/base/component-interface-name';
|
|
93
|
+
export * from './lib/components/view-mode-buttons/view-mode-buttons.component';
|
|
94
|
+
export * from './lib/components/view-mode-buttons/view-mode-buttons.module';
|
|
95
|
+
export * from './lib/components/view-mode-buttons/content-view-mode.enum';
|
|
93
96
|
export * from './lib/pipes/price-display.pipe';
|
|
94
97
|
export * from './lib/pipes/price-display-pipe.module';
|
|
95
98
|
export * from './lib/pipes/filter.pipe';
|
|
@@ -104,3 +107,5 @@ export * from './lib/components/pagination-bar/pagination-bar.component';
|
|
|
104
107
|
export * from './lib/components/pagination-bar/pagination-bar.module';
|
|
105
108
|
export * from './lib/components/checkmark-overlay/checkmark-overlay.module';
|
|
106
109
|
export * from './lib/service/color-sequence.service';
|
|
110
|
+
export * from './lib/components/filter-item/filter-item-viewmodel';
|
|
111
|
+
export * from './lib/components/filter-item/filter-viewmodel';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLWl0ZW0tdmlld21vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZWNvbXBvbmVudHMvc3JjL2xpYi9jb3JlL2ludGVyZmFjZS9maWx0ZXItaXRlbS12aWV3bW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgRmlsdGVySXRlbVZpZXdtb2RlbCB7XHJcbiAgY2hlY2tlZDogYm9vbGVhbjtcclxuICBjb2RlOiBzdHJpbmcgfCBudW1iZXI7XHJcbiAgZGVzY3JpcHRpb246IHN0cmluZztcclxuICBjb3VudD86IG51bWJlcjtcclxuICB2YWx1ZU5hbWU/OiBzdHJpbmc7XHJcbn1cclxuIl19
|