@tetacom/ng-components 1.0.46 → 1.0.50
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/assets/icons.svg +315 -141
- package/esm2020/component/table/default/default-head-cell/default-head-cell.component.mjs +3 -3
- package/esm2020/directive/drag-drop/drag.directive.mjs +6 -3
- package/esm2020/util/export-dom-image.mjs +22 -0
- package/esm2020/util/public-api.mjs +2 -1
- package/fesm2015/tetacom-ng-components.mjs +32 -6
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +30 -5
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +5 -4
- package/style/presets/color-presets.scss +11 -11
- package/style/table.scss +8 -6
- package/util/export-dom-image.d.ts +12 -0
- package/util/public-api.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tetacom/ng-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.50",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/core": "^
|
|
6
|
+
"@angular/common": "^14.0.0",
|
|
7
|
+
"@angular/core": "^14.0.0",
|
|
8
8
|
"d3": "^7.1.1",
|
|
9
9
|
"@ngneat/transloco": "^3.1.0",
|
|
10
10
|
"object-hash": "^2.2.0",
|
|
11
|
-
"three": "^0.139.2"
|
|
11
|
+
"three": "^0.139.2",
|
|
12
|
+
"html-to-image": "^1.9.0"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"tslib": "^2.3.0"
|
|
@@ -88,16 +88,16 @@ $themes: (
|
|
|
88
88
|
'5': rgba(37, 44, 77, 1),
|
|
89
89
|
),
|
|
90
90
|
'text': (
|
|
91
|
-
'90': rgba(
|
|
92
|
-
'80': rgba(
|
|
93
|
-
'70': rgba(
|
|
94
|
-
'60': rgba(
|
|
95
|
-
'50': rgba(
|
|
96
|
-
'40': rgba(
|
|
97
|
-
'30': rgba(
|
|
98
|
-
'20': rgba(
|
|
99
|
-
'10': rgba(
|
|
100
|
-
'5': rgba(
|
|
91
|
+
'90': rgba(239, 239, 241, 1),
|
|
92
|
+
'80': rgba(215, 216, 221, 1),
|
|
93
|
+
'70': rgba(189, 189, 198, 1),
|
|
94
|
+
'60': rgba(162, 163, 174, 1),
|
|
95
|
+
'50': rgba(142, 143, 157, 1),
|
|
96
|
+
'40': rgba(122, 123, 139, 1),
|
|
97
|
+
'30': rgba(107, 109, 123, 1),
|
|
98
|
+
'20': rgba(88, 90, 101, 1),
|
|
99
|
+
'10': rgba(71, 71, 81, 1),
|
|
100
|
+
'5': rgba(57, 57, 65, 1)
|
|
101
101
|
),
|
|
102
102
|
'red': (
|
|
103
103
|
'90': rgba(168, 46, 38, 1),
|
|
@@ -151,5 +151,5 @@ $themes: (
|
|
|
151
151
|
)
|
|
152
152
|
);
|
|
153
153
|
|
|
154
|
-
$palettes: 'primary', 'text', 'red', 'green', 'yellow', 'background', 'white', 'backdrop';
|
|
154
|
+
$palettes: 'primary', 'text', 'red', 'green', 'yellow', 'background', 'white', 'backdrop', 'black';
|
|
155
155
|
$grades: '90', '80', '70', '60', '50', '40', '30', '20', '10', '5', '0';
|
package/style/table.scss
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
display: flex;
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
flex-shrink: 0;
|
|
19
|
-
background-color: getColorVar('text', '
|
|
20
|
-
color: getColorVar('
|
|
19
|
+
background-color: getColorVar('text', '10');
|
|
20
|
+
color: getColorVar('text', '90');
|
|
21
21
|
@include getFont($fonts, 'table-header');
|
|
22
22
|
|
|
23
23
|
&_locked {
|
|
@@ -122,15 +122,17 @@
|
|
|
122
122
|
width: 8px;
|
|
123
123
|
background: transparent;
|
|
124
124
|
z-index: 10;
|
|
125
|
-
display: none;
|
|
126
125
|
padding: 0 4px;
|
|
127
126
|
|
|
128
127
|
&_drag {
|
|
129
|
-
background: getColorVar('
|
|
130
|
-
width:
|
|
128
|
+
background: getColorVar('primary', '50');
|
|
129
|
+
width: 2px;
|
|
131
130
|
height: 100%;
|
|
131
|
+
display: none;
|
|
132
|
+
}
|
|
133
|
+
&:hover &_drag {
|
|
134
|
+
display: block;
|
|
132
135
|
}
|
|
133
|
-
|
|
134
136
|
&:hover {
|
|
135
137
|
cursor: col-resize;
|
|
136
138
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum ExportType {
|
|
2
|
+
png = 0,
|
|
3
|
+
svg = 1,
|
|
4
|
+
jpeg = 2,
|
|
5
|
+
blob = 3,
|
|
6
|
+
canvas = 4,
|
|
7
|
+
pixelData = 5
|
|
8
|
+
}
|
|
9
|
+
export declare type ExportOptions = {
|
|
10
|
+
filter: (node: HTMLElement) => boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const exportDomToImage: (node: HTMLElement, type?: ExportType, options?: ExportOptions) => any;
|
package/util/public-api.d.ts
CHANGED