@vitrosoftware/common-ui-ts 1.0.4 → 1.0.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.
@@ -1,12 +1,56 @@
1
1
  :global(#TreeView) {
2
- height: 100%;
2
+ height: 100%;
3
+ padding: 6px;
4
+ }
5
+
6
+ .vitro-tree-view ::-webkit-scrollbar {
7
+ width: 8px;
8
+ }
9
+
10
+ .vitro-tree-view ::-webkit-scrollbar-track {
11
+ background: #fff;
12
+ border-radius: 8px;
13
+ }
14
+
15
+ .vitro-tree-view ::-webkit-scrollbar-thumb {
16
+ background: #e0e0e0;
17
+ border-radius: 4px;
18
+ height: 100px;
19
+ }
20
+
21
+ .vitro-tree-view ::-webkit-scrollbar-thumb:hover {
22
+ background: #828282;
3
23
  }
4
24
 
5
25
  .vitro-tree-view {
6
26
  height: 100%;
7
- padding: 20px 24px;
27
+ padding: 14px 18px;
8
28
  overflow-y: auto;
9
- overflow-x: hidden;
29
+ overflow-x: auto;
30
+ }
31
+
32
+ .vitro-tree-view::-webkit-scrollbar {
33
+ width: 8px;
34
+ height: 8px;
35
+ }
36
+
37
+ .vitro-tree-view::-webkit-scrollbar-track {
38
+ background: #fff;
39
+ border-radius: 12px;
40
+ }
41
+
42
+ .vitro-tree-view::-webkit-scrollbar-thumb {
43
+ background: #e0e0e0;
44
+ border-radius: 4px;
45
+ }
46
+
47
+ .vitro-tree-view::-webkit-scrollbar-thumb:hover {
48
+ background: #BDBDBD;
49
+ }
50
+
51
+ .vitro-tree-view {
52
+ scrollbar-color: #e0e0e0 #fff;
53
+ scrollbar-width: thin;
10
54
  }
11
55
 
12
56
  .vitro-tree-view :global(.jstree-anchor) {
@@ -1,8 +1,12 @@
1
1
  .vitro-uploader {
2
2
  width: 100%;
3
3
  padding-left: 7px;
4
- padding-right: 29px;
4
+ padding-right: 16px;
5
5
  position: absolute;
6
+ bottom: 51px;
7
+ }
8
+
9
+ :global(.pane:has(tr[style="display: none;"])) .vitro-uploader {
6
10
  bottom: 41px;
7
11
  }
8
12
 
@@ -11,6 +11,19 @@
11
11
  width: 17px;
12
12
  }
13
13
 
14
+ .TWCustScroll3Right, .TWCustScroll3RightHidden, .TWCustScroll3Down, .TWCustScroll3DownHidden {
15
+ background: #fff;
16
+ }
17
+
18
+ .TWCustScroll3SliderRight, .TWCustScroll3SliderLeft, .TWCustScroll3SliderDown, .TWCustScroll3SliderUp {
19
+ background: #e0e0e0;
20
+ }
21
+
22
+ .TWCustScroll3SliderRight:hover, .TWCustScroll3SliderLeft:hover, .TWCustScroll3SliderDown:hover, .TWCustScroll3SliderUp:hover,
23
+ .TWCustScroll3SliderRight:active, .TWCustScroll3SliderLeft:active, .TWCustScroll3SliderDown:active, .TWCustScroll3SliderUp:active {
24
+ background: #BDBDBD;
25
+ }
26
+
14
27
  .TWCellHeader {
15
28
  font-family: "GraphikMedium" !important;
16
29
  font-weight: normal !important;
@@ -16,4 +16,6 @@ export interface TableViewProps {
16
16
  layout?: any;
17
17
  data?: any;
18
18
  filterOneLevel?: boolean;
19
+ cache?: number;
20
+ cacheVersion?: number | string;
19
21
  }
@@ -12,3 +12,6 @@ export declare enum TABLE_VIEW_URL {
12
12
  export declare enum TABLE_VIEW_CONTROLLER {
13
13
  REQUEST = "TableViewRequest"
14
14
  }
15
+ export declare enum TABLE_VIEW_CACHE {
16
+ DEFAULT = 2
17
+ }
@@ -1,8 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { TableViewProps } from './TableView';
3
- import { TableViewContext } from './TableViewContext';
4
- export declare const tableViewList: Map<string, TableViewContext>;
5
- export declare function getTableViewById(id: string): TableViewContext | undefined;
6
3
  export declare const TreeGrid: (props: TableViewProps) => JSX.Element;
7
4
  declare global {
8
5
  namespace JSX {
@@ -2,6 +2,8 @@ import { TableViewContext } from './TableViewContext';
2
2
  import { TableViewRow } from './TableViewRow';
3
3
  import { TableViewCol } from './TableViewCol';
4
4
  import { TableViewEventHandler } from './TableViewEventHandler';
5
+ export declare const tableViewList: Map<string, TableViewContext>;
6
+ export declare function getTableViewById(id: string): TableViewContext | undefined;
5
7
  export declare class TreeGridTableViewContextImpl implements TableViewContext {
6
8
  private grid;
7
9
  readonly id: string;
package/dist/index.css CHANGED
@@ -278,14 +278,58 @@
278
278
  }
279
279
 
280
280
  #TreeView {
281
- height: 100%;
281
+ height: 100%;
282
+ padding: 6px;
283
+ }
284
+
285
+ ._tree-view_vitro-tree-view_3R9kjAJ ::-webkit-scrollbar {
286
+ width: 8px;
287
+ }
288
+
289
+ ._tree-view_vitro-tree-view_3R9kjAJ ::-webkit-scrollbar-track {
290
+ background: #fff;
291
+ border-radius: 8px;
292
+ }
293
+
294
+ ._tree-view_vitro-tree-view_3R9kjAJ ::-webkit-scrollbar-thumb {
295
+ background: #e0e0e0;
296
+ border-radius: 4px;
297
+ height: 100px;
298
+ }
299
+
300
+ ._tree-view_vitro-tree-view_3R9kjAJ ::-webkit-scrollbar-thumb:hover {
301
+ background: #828282;
282
302
  }
283
303
 
284
304
  ._tree-view_vitro-tree-view_3R9kjAJ {
285
305
  height: 100%;
286
- padding: 20px 24px;
306
+ padding: 14px 18px;
287
307
  overflow-y: auto;
288
- overflow-x: hidden;
308
+ overflow-x: auto;
309
+ }
310
+
311
+ ._tree-view_vitro-tree-view_3R9kjAJ::-webkit-scrollbar {
312
+ width: 8px;
313
+ height: 8px;
314
+ }
315
+
316
+ ._tree-view_vitro-tree-view_3R9kjAJ::-webkit-scrollbar-track {
317
+ background: #fff;
318
+ border-radius: 12px;
319
+ }
320
+
321
+ ._tree-view_vitro-tree-view_3R9kjAJ::-webkit-scrollbar-thumb {
322
+ background: #e0e0e0;
323
+ border-radius: 4px;
324
+ }
325
+
326
+ ._tree-view_vitro-tree-view_3R9kjAJ::-webkit-scrollbar-thumb:hover {
327
+ background: #BDBDBD;
328
+ }
329
+
330
+ ._tree-view_vitro-tree-view_3R9kjAJ {
331
+ scrollbar-color: #e0e0e0 #fff;
332
+ scrollbar-width: thin;
289
333
  }
290
334
 
291
335
  ._tree-view_vitro-tree-view_3R9kjAJ .jstree-anchor {
@@ -546,8 +590,12 @@
546
590
  ._uploader_vitro-uploader_1frFGu3 {
547
591
  width: 100%;
548
592
  padding-left: 7px;
549
- padding-right: 29px;
593
+ padding-right: 16px;
550
594
  position: absolute;
595
+ bottom: 51px;
596
+ }
597
+
598
+ .pane:has(tr[style="display: none;"]) ._uploader_vitro-uploader_1frFGu3 {
551
599
  bottom: 41px;
552
600
  }
553
601
 
package/dist/index.js CHANGED
@@ -26399,6 +26399,10 @@ var TABLE_VIEW_CONTROLLER;
26399
26399
  (function (TABLE_VIEW_CONTROLLER) {
26400
26400
  TABLE_VIEW_CONTROLLER["REQUEST"] = "TableViewRequest";
26401
26401
  })(TABLE_VIEW_CONTROLLER || (TABLE_VIEW_CONTROLLER = {}));
26402
+ var TABLE_VIEW_CACHE;
26403
+ (function (TABLE_VIEW_CACHE) {
26404
+ TABLE_VIEW_CACHE[TABLE_VIEW_CACHE["DEFAULT"] = 2] = "DEFAULT";
26405
+ })(TABLE_VIEW_CACHE || (TABLE_VIEW_CACHE = {}));
26402
26406
 
26403
26407
  function _defineProperties(target, props) {
26404
26408
  for (var i = 0; i < props.length; i++) {
@@ -26433,6 +26437,13 @@ function _toPropertyKey(arg) {
26433
26437
  }
26434
26438
 
26435
26439
  var w$2 = window;
26440
+ if (!w$2.tableViewList) {
26441
+ w$2.tableViewList = new Map();
26442
+ }
26443
+ var tableViewList = w$2.tableViewList;
26444
+ function getTableViewById(id) {
26445
+ return tableViewList.get(id);
26446
+ }
26436
26447
  var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
26437
26448
  function TreeGridTableViewContextImpl(grid) {
26438
26449
  this.suggestValue = '';
@@ -26620,10 +26631,6 @@ var w$3 = window;
26620
26631
  if (!w$3.tableViewList) {
26621
26632
  w$3.tableViewList = new Map();
26622
26633
  }
26623
- var tableViewList = w$3.tableViewList;
26624
- function getTableViewById(id) {
26625
- return tableViewList.get(id);
26626
- }
26627
26634
  var TreeGrid = function TreeGrid(props) {
26628
26635
  var disposeTableViewById = function disposeTableViewById(gridId) {
26629
26636
  if (gridId && w$3.Grids) {
@@ -26705,7 +26712,9 @@ var TreeGrid = function TreeGrid(props) {
26705
26712
  Text: {
26706
26713
  Url: props.textUrl || TABLE_VIEW_URL.TREEGRID_TEXT
26707
26714
  },
26708
- Debug: props.debug || ''
26715
+ Debug: props.debug || '',
26716
+ Cache: props.cache || TABLE_VIEW_CACHE.DEFAULT,
26717
+ CacheVersion: props.cacheVersion
26709
26718
  }, "vitro-table-view" + props.id);
26710
26719
  } else {
26711
26720
  w$3.TreeGrid({
@@ -26722,7 +26731,9 @@ var TreeGrid = function TreeGrid(props) {
26722
26731
  Text: {
26723
26732
  Url: props.textUrl || TABLE_VIEW_URL.TREEGRID_TEXT
26724
26733
  },
26725
- Debug: props.debug || ''
26734
+ Debug: props.debug || '',
26735
+ Cache: props.cache || TABLE_VIEW_CACHE.DEFAULT,
26736
+ CacheVersion: props.cacheVersion
26726
26737
  }, "vitro-table-view" + props.id);
26727
26738
  }
26728
26739
  return function () {