jobdone-shared-files 0.0.1-beta.85 → 0.0.1-beta.87

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/paginate.vue CHANGED
@@ -1,139 +1,139 @@
1
- <template>
2
- <ul class="pagination pagination-round mb-0" :class="containerClass">
3
- <li class="page-item" :class="{'disabled':!pagination.ShowToPrev}">
4
- <button type="button" class="page-link" @click="toPage(1)">
5
- <span class="material-icons">first_page</span>
6
- </button>
7
- </li>
8
- <li class="page-item" :class="{'disabled':!pagination.ShowToPrev}">
9
- <button type="button" class="page-link" @click="toPage(currentPage-1)">
10
- <span class="material-icons icon-18">chevron_left</span>
11
- </button>
12
- </li>
13
- <li class="page-item page-item-ellipsis" v-if="pagination.ShowPrevPageMore">
14
- <span>⋯</span>
15
- </li>
16
- <li class="page-item" v-for="n in range" :class="{'active':n===currentPage}">
17
- <button type="button" class="page-link" @click="toPage(n)">{{n}}</button>
18
- </li>
19
- <li class="page-item page-item-ellipsis" v-if="pagination.ShowNextPageMore">
20
- <span>⋯</span>
21
- </li>
22
- <li class="page-item" :class="{'disabled':!pagination.ShowToNext}">
23
- <button type="button" class="page-link" @click="toPage(currentPage+1)">
24
- <span class="material-icons icon-18">chevron_right</span>
25
- </button>
26
- </li>
27
- <li class="page-item" :class="{'disabled':!pagination.ShowToNext}">
28
- <button type="button" class="page-link" @click="toPage(totalPages)">
29
- <span class="material-icons">last_page</span>
30
- </button>
31
- </li>
32
- </ul>
33
- </template>
34
-
35
- <script>
36
- import { computed } from 'vue';
37
- export default {
38
- props: {
39
- currentPage: {
40
- type: Number,
41
- default: 1
42
- },
43
- totalPages: {
44
- type: Number,
45
- default: 1
46
- },
47
- pageRange: {
48
- type: Number,
49
- default: 5
50
- },
51
- containerClass: {
52
- type: String,
53
- default: ""
54
- },
55
- pageItemClass: {
56
- type: String,
57
- default: ""
58
- },
59
- clickHandler: {
60
- type: Function
61
- }
62
- },
63
- setup(props, { emit}) {
64
- const range = computed(() => {
65
- let min = 1;
66
- let max = 1;
67
- if (props.pageRange < props.totalPages) {
68
- max = props.currentPage + Math.floor(props.pageRange / 2);
69
- max = (max > props.totalPages) ? props.totalPages : max;
70
- if (max - props.pageRange < 1) {
71
- min = 1;
72
- max = props.pageRange;
73
- } else {
74
- min = max - props.pageRange + 1;
75
- }
76
- } else {
77
- min = 1;
78
- max = props.totalPages;
79
- }
80
- const range = [];
81
- for (var i = min; i <= max; i++) {
82
- range.push(i);
83
- }
84
- return range;
85
- });
86
- const pagination = computed(() => {
87
- return {
88
- ShowToPrev: props.currentPage > 1,
89
- ShowPrevPageMore: range.value[0] > 2,
90
- ShowNextPageMore: range.value[range.value.length - 1] < props.totalPages - 1,
91
- ShowToNext: props.currentPage < props.totalPages
92
- }
93
- });
94
- const toPage = (pageNum) => {
95
- emit('to-page', pageNum);
96
- }
97
- return {
98
- range,
99
- pagination,
100
- toPage
101
- };
102
- }
103
- }
104
- </script>
105
-
106
- <style scoped lang="scss">
107
- @import "./style/scss/Settings/basic-import";
108
-
109
- .page-link{
110
- height: 100%;
111
- }
112
-
113
- .pagination.pagination-round .page-item{
114
- &:not(:last-child){
115
- margin-right: .5em;
116
- }
117
- .page-link{
118
- @include flex-center();
119
- @include size(35px);
120
- border-radius: 50%;
121
- overflow: hidden;
122
- .material-icons{
123
- font-size: 130%;
124
- }
125
- }
126
- }
127
- .pagination-sm.pagination-round .page-item .page-link{
128
- @include size(30px);
129
- }
130
- .pagination-lg.pagination-round .page-item .page-link{
131
- @include size(60px);
132
- }
133
- .page-item-ellipsis{
134
- display: flex;
135
- align-items: center;
136
- color: var(--gray-500);
137
- font-size: var(--bs-pagination-font-size);
138
- }
1
+ <template>
2
+ <ul class="pagination pagination-round mb-0" :class="containerClass">
3
+ <li class="page-item" :class="{'disabled':!pagination.ShowToPrev}">
4
+ <button type="button" class="page-link" @click="toPage(1)">
5
+ <span class="material-icons">first_page</span>
6
+ </button>
7
+ </li>
8
+ <li class="page-item" :class="{'disabled':!pagination.ShowToPrev}">
9
+ <button type="button" class="page-link" @click="toPage(currentPage-1)">
10
+ <span class="material-icons icon-18">chevron_left</span>
11
+ </button>
12
+ </li>
13
+ <li class="page-item page-item-ellipsis" v-if="pagination.ShowPrevPageMore">
14
+ <span>⋯</span>
15
+ </li>
16
+ <li class="page-item" v-for="n in range" :class="{'active':n===currentPage}">
17
+ <button type="button" class="page-link" @click="toPage(n)">{{n}}</button>
18
+ </li>
19
+ <li class="page-item page-item-ellipsis" v-if="pagination.ShowNextPageMore">
20
+ <span>⋯</span>
21
+ </li>
22
+ <li class="page-item" :class="{'disabled':!pagination.ShowToNext}">
23
+ <button type="button" class="page-link" @click="toPage(currentPage+1)">
24
+ <span class="material-icons icon-18">chevron_right</span>
25
+ </button>
26
+ </li>
27
+ <li class="page-item" :class="{'disabled':!pagination.ShowToNext}">
28
+ <button type="button" class="page-link" @click="toPage(totalPages)">
29
+ <span class="material-icons">last_page</span>
30
+ </button>
31
+ </li>
32
+ </ul>
33
+ </template>
34
+
35
+ <script>
36
+ import { computed } from 'vue';
37
+ export default {
38
+ props: {
39
+ currentPage: {
40
+ type: Number,
41
+ default: 1
42
+ },
43
+ totalPages: {
44
+ type: Number,
45
+ default: 1
46
+ },
47
+ pageRange: {
48
+ type: Number,
49
+ default: 5
50
+ },
51
+ containerClass: {
52
+ type: String,
53
+ default: ""
54
+ },
55
+ pageItemClass: {
56
+ type: String,
57
+ default: ""
58
+ },
59
+ clickHandler: {
60
+ type: Function
61
+ }
62
+ },
63
+ setup(props, { emit}) {
64
+ const range = computed(() => {
65
+ let min = 1;
66
+ let max = 1;
67
+ if (props.pageRange < props.totalPages) {
68
+ max = props.currentPage + Math.floor(props.pageRange / 2);
69
+ max = (max > props.totalPages) ? props.totalPages : max;
70
+ if (max - props.pageRange < 1) {
71
+ min = 1;
72
+ max = props.pageRange;
73
+ } else {
74
+ min = max - props.pageRange + 1;
75
+ }
76
+ } else {
77
+ min = 1;
78
+ max = props.totalPages;
79
+ }
80
+ const range = [];
81
+ for (var i = min; i <= max; i++) {
82
+ range.push(i);
83
+ }
84
+ return range;
85
+ });
86
+ const pagination = computed(() => {
87
+ return {
88
+ ShowToPrev: props.currentPage > 1,
89
+ ShowPrevPageMore: range.value[0] > 2,
90
+ ShowNextPageMore: range.value[range.value.length - 1] < props.totalPages - 1,
91
+ ShowToNext: props.currentPage < props.totalPages
92
+ }
93
+ });
94
+ const toPage = (pageNum) => {
95
+ emit('to-page', pageNum);
96
+ }
97
+ return {
98
+ range,
99
+ pagination,
100
+ toPage
101
+ };
102
+ }
103
+ }
104
+ </script>
105
+
106
+ <style scoped lang="scss">
107
+ @import "./style/scss/Settings/basic-import";
108
+
109
+ .page-link{
110
+ height: 100%;
111
+ }
112
+
113
+ .pagination.pagination-round .page-item{
114
+ &:not(:last-child){
115
+ margin-right: .5em;
116
+ }
117
+ .page-link{
118
+ @include flex-center();
119
+ @include size(35px);
120
+ border-radius: 50%;
121
+ overflow: hidden;
122
+ .material-icons{
123
+ font-size: 130%;
124
+ }
125
+ }
126
+ }
127
+ .pagination-sm.pagination-round .page-item .page-link{
128
+ @include size(30px);
129
+ }
130
+ .pagination-lg.pagination-round .page-item .page-link{
131
+ @include size(60px);
132
+ }
133
+ .page-item-ellipsis{
134
+ display: flex;
135
+ align-items: center;
136
+ color: var(--gray-500);
137
+ font-size: var(--bs-pagination-font-size);
138
+ }
139
139
  </style>
@@ -1,40 +1,40 @@
1
- .vl-shown {
2
- overflow: hidden;
3
- }
4
-
5
- .vl-overlay {
6
- bottom: 0;
7
- left: 0;
8
- position: absolute;
9
- right: 0;
10
- top: 0;
11
- align-items: center;
12
- display: none;
13
- justify-content: center;
14
- overflow: hidden;
15
- z-index: 9999;
16
- }
17
-
18
- .vl-overlay.vl-active {
19
- display: flex;
20
- }
21
-
22
- .vl-overlay.vl-full-page {
23
- z-index: 9999;
24
- position: fixed;
25
- }
26
-
27
- .vl-overlay .vl-background {
28
- bottom: 0;
29
- left: 0;
30
- position: absolute;
31
- right: 0;
32
- top: 0;
33
- background: #fff;
34
- opacity: 0.5;
35
- }
36
-
37
- .vl-overlay .vl-icon, .vl-parent {
38
- position: relative;
39
- }
40
-
1
+ .vl-shown {
2
+ overflow: hidden;
3
+ }
4
+
5
+ .vl-overlay {
6
+ bottom: 0;
7
+ left: 0;
8
+ position: absolute;
9
+ right: 0;
10
+ top: 0;
11
+ align-items: center;
12
+ display: none;
13
+ justify-content: center;
14
+ overflow: hidden;
15
+ z-index: 9999;
16
+ }
17
+
18
+ .vl-overlay.vl-active {
19
+ display: flex;
20
+ }
21
+
22
+ .vl-overlay.vl-full-page {
23
+ z-index: 9999;
24
+ position: fixed;
25
+ }
26
+
27
+ .vl-overlay .vl-background {
28
+ bottom: 0;
29
+ left: 0;
30
+ position: absolute;
31
+ right: 0;
32
+ top: 0;
33
+ background: #fff;
34
+ opacity: 0.5;
35
+ }
36
+
37
+ .vl-overlay .vl-icon, .vl-parent {
38
+ position: relative;
39
+ }
40
+
@@ -1,6 +1,6 @@
1
- @import "../Settings/basic-import";
2
-
3
- @keyframes fadeIn {
4
- from { opacity: 0; }
5
- to { opacity: 1; }
1
+ @import "../Settings/basic-import";
2
+
3
+ @keyframes fadeIn {
4
+ from { opacity: 0; }
5
+ to { opacity: 1; }
6
6
  }
@@ -1,31 +1,31 @@
1
- @import "../Settings/basic-import";
2
-
3
- th.bg-secondary{
4
- position: relative;
5
- &:after{
6
- content: "";
7
- position: absolute;
8
- left: 0;
9
- bottom: -$border-width;
10
- height: $border-width;
11
- width: 100%;
12
- background-color: $secondary;
13
- }
14
- }
15
-
16
- .table{
17
- background-color: $white;
18
- }
19
-
20
- tr:has(input[type="checkbox"]:checked) > td:not([scope="col"]){
21
- --bs-table-accent-bg: transparent;
22
- --bs-table-bg: rgba(var(--bs-primary-rgb), .1);
23
- color: var(--bs-table-hover-color);
24
- }
25
-
26
- .td-check, .td-avatar-sm{
27
- width: 2rem;
28
- }
29
- .td-avatar-md{
30
- width: 3rem;
1
+ @import "../Settings/basic-import";
2
+
3
+ th.bg-secondary{
4
+ position: relative;
5
+ &:after{
6
+ content: "";
7
+ position: absolute;
8
+ left: 0;
9
+ bottom: -$border-width;
10
+ height: $border-width;
11
+ width: 100%;
12
+ background-color: $secondary;
13
+ }
14
+ }
15
+
16
+ .table{
17
+ background-color: $white;
18
+ }
19
+
20
+ tr:has(input[type="checkbox"]:checked) > td:not([scope="col"]){
21
+ --bs-table-accent-bg: transparent;
22
+ --bs-table-bg: rgba(var(--bs-primary-rgb), .1);
23
+ color: var(--bs-table-hover-color);
24
+ }
25
+
26
+ .td-check, .td-avatar-sm{
27
+ width: 2rem;
28
+ }
29
+ .td-avatar-md{
30
+ width: 3rem;
31
31
  }
@@ -1,28 +1,28 @@
1
- @import "../Settings/basic-import";
2
-
3
- .can-click{
4
- cursor: pointer;
5
- }
6
-
7
- .filepond--root.filepond--hopper {
8
- border: 1px dashed var(--bs-gray-400);
9
- border-radius: 0.5em;
10
- overflow: hidden;
11
- }
12
-
13
- .filepond--drop-label {
14
- display: flex;
15
- flex-direction: column;
16
- align-items: stretch;
17
- }
18
-
19
- .filepond-label-box-cus {
20
- display: flex;
21
- align-items: center;
22
- justify-content: center;
23
- width: 100%;
24
- }
25
-
26
- .filepond--panel-root {
27
- background-color: $blue-100 !important;
1
+ @import "../Settings/basic-import";
2
+
3
+ .can-click{
4
+ cursor: pointer;
5
+ }
6
+
7
+ .filepond--root.filepond--hopper {
8
+ border: 1px dashed var(--bs-gray-400);
9
+ border-radius: 0.5em;
10
+ overflow: hidden;
11
+ }
12
+
13
+ .filepond--drop-label {
14
+ display: flex;
15
+ flex-direction: column;
16
+ align-items: stretch;
17
+ }
18
+
19
+ .filepond-label-box-cus {
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ width: 100%;
24
+ }
25
+
26
+ .filepond--panel-root {
27
+ background-color: $blue-100 !important;
28
28
  }
@@ -1,14 +1,14 @@
1
-
2
- .thumbnail-group{
3
- $offset: .5rem;
4
- position: relative;
5
- display: inline-flex;
6
- margin-right: $offset;
7
- margin-bottom: $offset;
8
- .thumbnail-pin{
9
- position: absolute;
10
- right: -$offset;
11
- bottom: -$offset;
12
- box-shadow: $box-shadow;
13
- }
14
- }
1
+
2
+ .thumbnail-group{
3
+ $offset: .5rem;
4
+ position: relative;
5
+ display: inline-flex;
6
+ margin-right: $offset;
7
+ margin-bottom: $offset;
8
+ .thumbnail-pin{
9
+ position: absolute;
10
+ right: -$offset;
11
+ bottom: -$offset;
12
+ box-shadow: $box-shadow;
13
+ }
14
+ }