@timus-networks/theme 2.4.184 → 2.4.187

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
3
  "configKey": "themeOptions",
4
- "version": "2.4.183",
4
+ "version": "2.4.186",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -11,7 +11,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
11
11
  const __dirname = __cjs_path__.dirname(__filename);
12
12
  const require = __cjs_mod__.createRequire(import.meta.url);
13
13
  const name = "@timus-networks/theme";
14
- const version = "2.4.183";
14
+ const version = "2.4.186";
15
15
  const description = "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.";
16
16
  const type = "module";
17
17
  const exports = {
@@ -1246,6 +1246,7 @@ body {
1246
1246
  display: flex;
1247
1247
  gap: 28px;
1248
1248
  justify-content: center;
1249
+ margin-top: 16px;
1249
1250
  }
1250
1251
  .page-footer .el-button {
1251
1252
  flex-basis: 100%;
@@ -1298,6 +1299,10 @@ body {
1298
1299
  width: 20px;
1299
1300
  }
1300
1301
 
1302
+ .el-table + .el-pagination {
1303
+ margin-top: 16px;
1304
+ }
1305
+
1301
1306
  :root {
1302
1307
  --el-color-white: #ffffff;
1303
1308
  --el-color-black: #000000;
@@ -12430,10 +12435,6 @@ heights > $common-component-size
12430
12435
  outline-offset: -1px;
12431
12436
  }
12432
12437
 
12433
- .el-table + .el-pagination {
12434
- margin-top: 16px;
12435
- }
12436
-
12437
12438
  .el-popconfirm__main {
12438
12439
  display: flex;
12439
12440
  align-items: center;
@@ -15057,14 +15058,13 @@ heights > $common-component-size
15057
15058
  }
15058
15059
  .el-table .el-table__cell:last-of-type .cell {
15059
15060
  padding-right: 0;
15060
- padding-left: 0;
15061
+ padding-left: 12px;
15061
15062
  }
15062
15063
  .el-table .cell {
15063
15064
  box-sizing: border-box;
15064
15065
  overflow: hidden;
15065
15066
  text-overflow: ellipsis;
15066
15067
  overflow-wrap: break-word;
15067
- margin-left: 12px;
15068
15068
  padding-left: 12px;
15069
15069
  align-items: center;
15070
15070
  gap: 2px;
@@ -34,6 +34,18 @@
34
34
  </el-dropdown>
35
35
  </el-table-column>
36
36
  </el-table>
37
+
38
+ <el-pagination
39
+ v-model:current-page="current_page"
40
+ v-model:page-size="page_size"
41
+ :page-sizes="[10, 20, 50, 100]"
42
+ :disabled="disabled"
43
+ :background="background"
44
+ layout="total, prev, pager, next, jumper, sizes"
45
+ :total="40000"
46
+ @size-change="handleSizeChange"
47
+ @current-change="handleCurrentChange"
48
+ />
37
49
  </div>
38
50
  <template #footer>
39
51
  <code class="flex flex-col gap-3 items-start">
@@ -185,7 +197,7 @@
185
197
  </template>
186
198
  <script lang="ts" setup>
187
199
  import { ElTable } from 'element-plus';
188
- import { ref } from 'vue';
200
+ import { reactive, ref, toRefs } from 'vue';
189
201
 
190
202
  interface User {
191
203
  date: string;
@@ -196,6 +208,32 @@
196
208
  address: string;
197
209
  }
198
210
 
211
+ interface PaginationState {
212
+ current_page: number;
213
+ size: string;
214
+ page_size: number;
215
+ disabled: boolean;
216
+ background: boolean;
217
+ handleSizeChange: (pageSize: number) => void;
218
+ handleCurrentChange: (page: number) => void;
219
+ }
220
+
221
+ const paginationState = reactive<PaginationState>({
222
+ current_page: 2,
223
+ size: 'small',
224
+ page_size: 20,
225
+ disabled: false,
226
+ background: false,
227
+ handleSizeChange: (pageSize: number) => {
228
+ console.log(pageSize);
229
+ },
230
+ handleCurrentChange: (page: number) => {
231
+ console.log(page);
232
+ },
233
+ });
234
+
235
+ const { current_page, page_size, disabled, background, handleSizeChange, handleCurrentChange } = toRefs(paginationState);
236
+
199
237
  const tableData: User[] = [
200
238
  {
201
239
  date: '2016-05-03',
@@ -11543,10 +11543,6 @@ h6,
11543
11543
  outline-offset: -1px;
11544
11544
  }
11545
11545
 
11546
- .el-table + .el-pagination {
11547
- margin-top: 16px;
11548
- }
11549
-
11550
11546
  .el-popconfirm__main {
11551
11547
  display: flex;
11552
11548
  align-items: center;
@@ -14170,14 +14166,13 @@ h6,
14170
14166
  }
14171
14167
  .el-table .el-table__cell:last-of-type .cell {
14172
14168
  padding-right: 0;
14173
- padding-left: 0;
14169
+ padding-left: 12px;
14174
14170
  }
14175
14171
  .el-table .cell {
14176
14172
  box-sizing: border-box;
14177
14173
  overflow: hidden;
14178
14174
  text-overflow: ellipsis;
14179
14175
  overflow-wrap: break-word;
14180
- margin-left: 12px;
14181
14176
  padding-left: 12px;
14182
14177
  align-items: center;
14183
14178
  gap: 2px;
@@ -591,8 +591,4 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
591
591
  .el-pager li:focus-visible {
592
592
  outline: 1px solid var(--el-pagination-hover-color);
593
593
  outline-offset: -1px;
594
- }
595
-
596
- .el-table + .el-pagination {
597
- margin-top: 16px;
598
594
  }
@@ -253,7 +253,3 @@
253
253
  @include pagination-button;
254
254
  }
255
255
  }
256
-
257
- .el-table + .el-pagination {
258
- margin-top: 16px;
259
- }
@@ -466,14 +466,13 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
466
466
  }
467
467
  .el-table .el-table__cell:last-of-type .cell {
468
468
  padding-right: 0;
469
- padding-left: 0;
469
+ padding-left: 12px;
470
470
  }
471
471
  .el-table .cell {
472
472
  box-sizing: border-box;
473
473
  overflow: hidden;
474
474
  text-overflow: ellipsis;
475
475
  overflow-wrap: break-word;
476
- margin-left: 12px;
477
476
  padding-left: 12px;
478
477
  align-items: center;
479
478
  gap: 2px;
@@ -218,7 +218,8 @@
218
218
  &:last-of-type {
219
219
  .cell {
220
220
  padding-right: 0;
221
- padding-left: 0;
221
+ // padding-left: 0;
222
+ padding-left: 12px;
222
223
  }
223
224
  }
224
225
  }
@@ -229,7 +230,7 @@
229
230
  text-overflow: ellipsis;
230
231
  overflow-wrap: break-word;
231
232
  // padding: 0 12px 0 0;
232
- margin-left: 12px;
233
+ // margin-left: 12px;
233
234
  padding-left: 12px;
234
235
  align-items: center;
235
236
  // display: flex; // bunu eklersem truncate etmiyor o yüzden aşağıdaki line-height: 1 i ekledim çözüldü
@@ -1241,6 +1241,7 @@ body {
1241
1241
  display: flex;
1242
1242
  gap: 28px;
1243
1243
  justify-content: center;
1244
+ margin-top: 16px;
1244
1245
  }
1245
1246
  .page-footer .el-button {
1246
1247
  flex-basis: 100%;
@@ -1291,4 +1292,8 @@ body {
1291
1292
  .el-icon.more-icon svg {
1292
1293
  height: 20px;
1293
1294
  width: 20px;
1295
+ }
1296
+
1297
+ .el-table + .el-pagination {
1298
+ margin-top: 16px;
1294
1299
  }
@@ -35,6 +35,7 @@ body {
35
35
  display: flex;
36
36
  gap: 28px;
37
37
  justify-content: center;
38
+ margin-top: 16px;
38
39
 
39
40
  .el-button {
40
41
  flex-basis: 100%;
@@ -61,3 +62,9 @@ body {
61
62
  }
62
63
  }
63
64
  }
65
+
66
+ .el-table {
67
+ + .el-pagination {
68
+ margin-top: 16px;
69
+ }
70
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
- "version": "2.4.184",
3
+ "version": "2.4.187",
4
4
  "description": "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.",
5
5
  "type": "module",
6
6
  "exports": {