inviton-powerduck 0.0.82 → 0.0.84
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,46 +1,43 @@
|
|
|
1
|
-
import { Prop } from "vue-facing-decorator";
|
|
1
|
+
import { Prop, toNative } from "vue-facing-decorator";
|
|
2
2
|
import TsxComponent, { Component } from "../../app/vuetsx";
|
|
3
|
-
import { Teleport } from "vue";
|
|
4
3
|
import { PortalUtils } from "../../common/utils/utils";
|
|
5
4
|
import { isNullOrEmpty } from "../../common/utils/is-null-or-empty";
|
|
5
|
+
|
|
6
6
|
interface DataTableUpperButtonsWrapperArgs {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
hasCheckbox?: boolean;
|
|
8
|
+
cssClass?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
@Component
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})
|
|
16
|
-
export default class DataTableUpperButtonsWrapper extends TsxComponent<DataTableUpperButtonsWrapperArgs> implements DataTableUpperButtonsWrapperArgs {
|
|
17
|
-
@Prop() hasCheckbox?: boolean;
|
|
18
|
-
@Prop() cssClass?: string;
|
|
11
|
+
@Component
|
|
12
|
+
class DataTableUpperButtonsWrapperComponent extends TsxComponent<DataTableUpperButtonsWrapperArgs> implements DataTableUpperButtonsWrapperArgs {
|
|
13
|
+
@Prop() hasCheckbox?: boolean;
|
|
14
|
+
@Prop() cssClass?: string;
|
|
19
15
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
private getCssClass (): string {
|
|
17
|
+
let builder = "table-upper-buttons-wrap";
|
|
18
|
+
if (this.hasCheckbox) {
|
|
19
|
+
builder += " wrap-has-checkbox";
|
|
20
|
+
}
|
|
25
21
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
if (!isNullOrEmpty(this.cssClass)) {
|
|
23
|
+
builder += " " + this.cssClass;
|
|
24
|
+
}
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
return builder;
|
|
27
|
+
}
|
|
32
28
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
}
|
|
29
|
+
private render (h) {
|
|
30
|
+
if (PortalUtils.isIOS()) {
|
|
31
|
+
return (
|
|
32
|
+
<div class={"ios-table-upper-buttons-wrap" + (this.hasCheckbox ? " wrap-has-checkbox" : "")}>
|
|
33
|
+
<div class={this.getCssClass()}>{this.$slots.default?.()}</div>
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
36
|
+
} else {
|
|
37
|
+
return <div class={this.getCssClass()}>{this.$slots.default?.()}</div>;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
46
40
|
}
|
|
41
|
+
|
|
42
|
+
const DataTableUpperButtonsWrapper = toNative(DataTableUpperButtonsWrapperComponent)
|
|
43
|
+
export default DataTableUpperButtonsWrapper
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
.dwh-table-wrapper {
|
|
2
2
|
background: white;
|
|
3
|
+
padding: 20px;
|
|
4
|
+
border: 1px solid rgba(0, 0, 0, 0.025);
|
|
3
5
|
border-radius: 8px;
|
|
4
|
-
min-height:
|
|
6
|
+
min-height: 200px;
|
|
5
7
|
position: relative;
|
|
6
8
|
height: 100%;
|
|
7
9
|
}
|
|
@@ -12,6 +14,26 @@
|
|
|
12
14
|
width: 30px;
|
|
13
15
|
text-align: center;
|
|
14
16
|
margin: 0 1px;
|
|
17
|
+
border: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dwh-table-wrapper .dwh-table-actions-wrapper {
|
|
21
|
+
position: static;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
width: 100%;
|
|
25
|
+
justify-content: start;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dwh-table-wrapper .dwh-table-actions-wrapper > .btn {
|
|
29
|
+
position: static;
|
|
30
|
+
/* flex: 0 1 24%; */
|
|
31
|
+
margin-bottom: 10px;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.dwh-table-wrapper .table-upper-buttons-wrap .btn {
|
|
36
|
+
margin: 3px;
|
|
15
37
|
}
|
|
16
38
|
|
|
17
39
|
.table-upper-buttons-wrap {
|
|
@@ -19,3 +41,34 @@
|
|
|
19
41
|
top: 20px;
|
|
20
42
|
z-index: 1;
|
|
21
43
|
}
|
|
44
|
+
|
|
45
|
+
@media (max-width: 575px) {
|
|
46
|
+
.dwh-table-wrapper {
|
|
47
|
+
padding-left: 10px;
|
|
48
|
+
padding-right: 10px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dwh-table-wrapper > .table-upper-buttons-wrap {
|
|
52
|
+
position: fixed;
|
|
53
|
+
z-index: 99;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
top: auto;
|
|
56
|
+
left: 0;
|
|
57
|
+
background: rgb(251 250 250);
|
|
58
|
+
padding: 3px;
|
|
59
|
+
border: 1px solid #e9e9e9;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
gap: 5px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dwh-table-wrapper > .table-upper-buttons-wrap + .dt-root {
|
|
65
|
+
margin-top: 0;
|
|
66
|
+
padding-bottom: 30px;
|
|
67
|
+
--datatable-fullheight-container-buttons-offset: 85px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.dwh-table-wrapper .dt-mobile-row::after {
|
|
71
|
+
content: '';
|
|
72
|
+
height: 100px;
|
|
73
|
+
}
|
|
74
|
+
}
|