@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/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@tetacom/ng-components",
3
- "version": "1.0.46",
3
+ "version": "1.0.50",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
- "@angular/common": "^13.0.0",
7
- "@angular/core": "^13.0.0",
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(211, 213, 215, 1),
92
- '80': rgba(147, 151, 155, 1),
93
- '70': rgba(128, 131, 137, 1),
94
- '60': rgba(90, 91, 98, 1),
95
- '50': rgba(62, 62, 69, 1),
96
- '40': rgba(81, 81, 88, 1),
97
- '30': rgba(71, 71, 78, 1),
98
- '20': rgba(61, 61, 68, 1),
99
- '10': rgba(51, 51, 58, 1),
100
- '5': rgba(41, 41, 48, 1),
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', '50');
20
- color: getColorVar('white', '50');
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('white', '50');
130
- width: 1px;
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;
@@ -1,3 +1,4 @@
1
1
  export * from './date-util';
2
2
  export * from './forms-util';
3
3
  export * from './string-util';
4
+ export * from './export-dom-image';