@timus-networks/theme 2.4.31 → 2.4.33

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.31",
4
+ "version": "2.4.33",
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.31";
14
+ const version = "2.4.33";
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 = {
@@ -32,7 +32,7 @@
32
32
  <h2>Underline</h2>
33
33
  <p>Underline of link</p>
34
34
  <div class="flex gap-2">
35
- <el-link :underline="false">Without Underline</el-link>
35
+ Some text, <el-link :underline="false">Without Underline</el-link> no - underline....
36
36
  <el-link>With Underline</el-link>
37
37
  </div>
38
38
  </div>
@@ -1,7 +1,6 @@
1
1
  import type { TabsPaneContext } from 'element-plus';
2
2
  export declare function useBreadcrumb(): {
3
- activeTab: import("vue").Ref<import("vue-router").LocationQueryValue | import("vue-router").LocationQueryValue[], import("vue-router").LocationQueryValue | import("vue-router").LocationQueryValue[] | import("vue-router").LocationQueryValue[]>;
4
- tabChanged: (tab: TabsPaneContext, _event?: Event) => void;
5
- setActiveTab: (tab: string, initial?: boolean) => void;
3
+ activeTab: import("vue").Ref<string, string>;
4
+ tabChanged: (tab: TabsPaneContext) => void;
6
5
  setupBreadcrumbs: (tabs: string[]) => void;
7
6
  };
@@ -1,4 +1,4 @@
1
- import { onUnmounted, ref, watch } from "vue";
1
+ import { onUnmounted, ref } from "vue";
2
2
  import { useRoute, useRouter } from "#app";
3
3
  export function useBreadcrumb() {
4
4
  const route = useRoute();
@@ -11,44 +11,32 @@ export function useBreadcrumb() {
11
11
  clearTimeout(breadcrumbTimeout.value);
12
12
  }
13
13
  });
14
- const tabChanged = (tab, _event) => {
14
+ const tabChanged = (tab) => {
15
15
  if (breadcrumbTimeout.value) {
16
16
  clearTimeout(breadcrumbTimeout.value);
17
17
  }
18
- router.push({
19
- path: route.path,
20
- query: {
21
- ...route.query,
22
- ...tab.paneName && { tab: tab.paneName },
23
- ...route.query.page && { page: route.query?.tab !== tab.paneName ? 1 : route.query.page }
24
- }
25
- });
26
- };
27
- const setActiveTab = (tab, initial = true) => {
28
18
  breadcrumbTimeout.value = setTimeout(() => {
29
- const found = tabList.value.find((item) => item === (tab || route.query.tab));
30
- activeTab.value = found || tabList.value[0];
31
- initial && tabChanged({ paneName: activeTab.value });
32
- }, 111);
19
+ router.push({
20
+ path: route.path,
21
+ query: {
22
+ ...route.query,
23
+ tab: tab.paneName,
24
+ page: route.query.tab !== tab.paneName ? 1 : route.query.page
25
+ }
26
+ });
27
+ }, 0);
28
+ };
29
+ const setActiveTab = (tab) => {
30
+ activeTab.value = tabList.value.includes(tab) ? tab : tabList.value[0];
31
+ tabChanged({ paneName: activeTab.value });
33
32
  };
34
33
  const setupBreadcrumbs = (tabs) => {
35
- console.log("CpMS");
36
34
  tabList.value = tabs;
37
- !activeTab.value && setActiveTab(tabs[0], true);
35
+ setActiveTab(activeTab.value);
38
36
  };
39
- watch(
40
- () => route.query,
41
- (current, before) => {
42
- if (before && current.tab && before.tab && current.tab !== before.tab) {
43
- setActiveTab(current.tab, false);
44
- }
45
- },
46
- { deep: true, immediate: true }
47
- );
48
37
  return {
49
38
  activeTab,
50
39
  tabChanged,
51
- setActiveTab,
52
40
  setupBreadcrumbs
53
41
  };
54
42
  }
@@ -478,6 +478,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
478
478
  .el-form-item.is-error .el-select__wrapper:focus,
479
479
  .el-form-item.is-error .el-select__wrapper.is-focus {
480
480
  box-shadow: 0 0 0 1px var(--el-color-danger) inset;
481
+ z-index: 1;
481
482
  }
482
483
  .el-form-item.is-error .el-input-group__append .el-input__wrapper,
483
484
  .el-form-item.is-error .el-input-group__prepend .el-input__wrapper {
@@ -217,6 +217,7 @@ $form-item-label-top-margin-bottom: map.merge(
217
217
  &:focus,
218
218
  &.is-focus {
219
219
  box-shadow: 0 0 0 1px getCssVar('color-danger') inset;
220
+ z-index: 1;
220
221
  }
221
222
  }
222
223
 
@@ -8890,6 +8890,7 @@ heights > $common-component-size
8890
8890
  .el-form-item.is-error .el-select__wrapper:focus,
8891
8891
  .el-form-item.is-error .el-select__wrapper.is-focus {
8892
8892
  box-shadow: 0 0 0 1px var(--el-color-danger) inset;
8893
+ z-index: 1;
8893
8894
  }
8894
8895
  .el-form-item.is-error .el-input-group__append .el-input__wrapper,
8895
8896
  .el-form-item.is-error .el-input-group__prepend .el-input__wrapper {
@@ -9813,16 +9814,24 @@ heights > $common-component-size
9813
9814
  font-size: var(--el-link-font-size);
9814
9815
  font-weight: var(--el-link-font-weight);
9815
9816
  color: var(--el-link-text-color);
9816
- border-bottom: 1px solid transparent;
9817
- line-height: normal;
9818
9817
  }
9819
9818
  .el-link:hover {
9820
9819
  color: var(--el-link-hover-text-color);
9821
- border-bottom: 1px solid var(--el-link-hover-text-color);
9822
9820
  }
9823
9821
  .el-link:active {
9824
9822
  color: var(--el-link-active-text-color);
9825
9823
  }
9824
+ .el-link.is-underline:hover::after {
9825
+ content: "";
9826
+ position: absolute;
9827
+ left: 0;
9828
+ right: 0;
9829
+ bottom: 2px;
9830
+ border-bottom-width: 1px;
9831
+ border-color: var(--el-color-primary-light-4);
9832
+ border-style: solid;
9833
+ }
9834
+
9826
9835
  .el-link.is-disabled {
9827
9836
  color: var(--el-link-disabled-text-color);
9828
9837
  cursor: not-allowed;
@@ -12524,6 +12533,7 @@ heights > $common-component-size
12524
12533
  gap: 8px;
12525
12534
  padding: 10px 12px;
12526
12535
  min-height: 40px;
12536
+ height: 40px;
12527
12537
  line-height: 20px;
12528
12538
  font-size: 14px;
12529
12539
  }
@@ -12551,6 +12561,7 @@ heights > $common-component-size
12551
12561
  gap: 8px;
12552
12562
  padding: 8px 12px;
12553
12563
  min-height: 36px;
12564
+ height: 36px;
12554
12565
  font-size: 14px;
12555
12566
  }
12556
12567
 
@@ -12573,6 +12584,7 @@ heights > $common-component-size
12573
12584
  gap: 4px;
12574
12585
  padding: 6px 12px;
12575
12586
  min-height: 30px;
12587
+ height: 30px;
12576
12588
  line-height: 20px;
12577
12589
  font-size: 12px;
12578
12590
  }
@@ -12600,6 +12612,7 @@ heights > $common-component-size
12600
12612
  gap: 4px;
12601
12613
  padding: 5px 12px;
12602
12614
  min-height: 28px;
12615
+ height: 28px;
12603
12616
  font-size: 12px;
12604
12617
  }
12605
12618
 
@@ -324,16 +324,24 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
324
324
  font-size: var(--el-link-font-size);
325
325
  font-weight: var(--el-link-font-weight);
326
326
  color: var(--el-link-text-color);
327
- border-bottom: 1px solid transparent;
328
- line-height: normal;
329
327
  }
330
328
  .el-link:hover {
331
329
  color: var(--el-link-hover-text-color);
332
- border-bottom: 1px solid var(--el-link-hover-text-color);
333
330
  }
334
331
  .el-link:active {
335
332
  color: var(--el-link-active-text-color);
336
333
  }
334
+ .el-link.is-underline:hover::after {
335
+ content: "";
336
+ position: absolute;
337
+ left: 0;
338
+ right: 0;
339
+ bottom: 2px;
340
+ border-bottom-width: 1px;
341
+ border-color: var(--el-color-primary-light-4);
342
+ border-style: solid;
343
+ }
344
+
337
345
  .el-link.is-disabled {
338
346
  color: var(--el-link-disabled-text-color);
339
347
  cursor: not-allowed;
@@ -24,12 +24,11 @@
24
24
  font-size: getCssVar('link', 'font-size');
25
25
  font-weight: getCssVar('link', 'font-weight');
26
26
  color: getCssVar('link', 'text-color');
27
- border-bottom: 1px solid transparent;
28
- line-height: normal;
27
+ // border-bottom: 1px solid transparent;
29
28
 
30
29
  &:hover {
31
30
  color: getCssVar('link', 'hover-text-color');
32
- border-bottom: 1px solid getCssVar('link', 'hover-text-color');
31
+ // border-bottom: 1px solid getCssVar('link', 'hover-text-color');
33
32
  }
34
33
 
35
34
  &:active {
@@ -37,15 +36,16 @@
37
36
  }
38
37
 
39
38
  @include when(underline) {
40
- // &:hover::after {
41
- // content: '';
42
- // width: 100%;
43
- // position: absolute;
44
- // bottom: 0;
45
- // border-bottom-width: 1px;
46
- // border-color: getCssVar('color', 'primary', 'light-4');
47
- // border-style: solid;
48
- // }
39
+ &:hover::after {
40
+ content: '';
41
+ position: absolute;
42
+ left: 0;
43
+ right: 0;
44
+ bottom: 2px;
45
+ border-bottom-width: 1px;
46
+ border-color: getCssVar('color', 'primary', 'light-4');
47
+ border-style: solid;
48
+ }
49
49
  }
50
50
 
51
51
  @include when(disabled) {
@@ -670,6 +670,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
670
670
  gap: 8px;
671
671
  padding: 10px 12px;
672
672
  min-height: 40px;
673
+ height: 40px;
673
674
  line-height: 20px;
674
675
  font-size: 14px;
675
676
  }
@@ -697,6 +698,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
697
698
  gap: 8px;
698
699
  padding: 8px 12px;
699
700
  min-height: 36px;
701
+ height: 36px;
700
702
  font-size: 14px;
701
703
  }
702
704
 
@@ -719,6 +721,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
719
721
  gap: 4px;
720
722
  padding: 6px 12px;
721
723
  min-height: 30px;
724
+ height: 30px;
722
725
  line-height: 20px;
723
726
  font-size: 12px;
724
727
  }
@@ -746,6 +749,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
746
749
  gap: 4px;
747
750
  padding: 5px 12px;
748
751
  min-height: 28px;
752
+ height: 28px;
749
753
  font-size: 12px;
750
754
  }
751
755
 
@@ -670,6 +670,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
670
670
  gap: 8px;
671
671
  padding: 10px 12px;
672
672
  min-height: 40px;
673
+ height: 40px;
673
674
  line-height: 20px;
674
675
  font-size: 14px;
675
676
  }
@@ -697,6 +698,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
697
698
  gap: 8px;
698
699
  padding: 8px 12px;
699
700
  min-height: 36px;
701
+ height: 36px;
700
702
  font-size: 14px;
701
703
  }
702
704
 
@@ -719,6 +721,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
719
721
  gap: 4px;
720
722
  padding: 6px 12px;
721
723
  min-height: 30px;
724
+ height: 30px;
722
725
  line-height: 20px;
723
726
  font-size: 12px;
724
727
  }
@@ -746,6 +749,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
746
749
  gap: 4px;
747
750
  padding: 5px 12px;
748
751
  min-height: 28px;
752
+ height: 28px;
749
753
  font-size: 12px;
750
754
  }
751
755
 
@@ -249,6 +249,7 @@
249
249
  gap: map.get($select-item-gap, $size);
250
250
  padding: map.get($select-wrapper-padding, $size);
251
251
  min-height: map.get($input-height, $size);
252
+ height: map.get($input-height, $size);
252
253
  line-height: map.get($select-item-height, $size);
253
254
  font-size: map.get($input-font-size, $size);
254
255
  }
@@ -1234,23 +1234,6 @@ body {
1234
1234
  justify-content: center;
1235
1235
  }
1236
1236
 
1237
- .page-enter-active,
1238
- .page-leave-active,
1239
- .layout-enter-active,
1240
- .layout-leave-active {
1241
- opacity: 1;
1242
- transition: opacity 0.4s;
1243
- transition-delay: 0.4s;
1244
- }
1245
-
1246
- .page-enter-from,
1247
- .page-leave-to,
1248
- .layout-enter-from,
1249
- .layout-leave-to {
1250
- opacity: 0;
1251
- transition: opacity 0.4s;
1252
- }
1253
-
1254
1237
  .el-icon.more-icon {
1255
1238
  align-items: center;
1256
1239
  color: var(--el-color-neutral-light-3);
@@ -44,23 +44,6 @@ body {
44
44
  }
45
45
  }
46
46
 
47
- .page-enter-active,
48
- .page-leave-active,
49
- .layout-enter-active,
50
- .layout-leave-active {
51
- opacity: 1;
52
- transition: opacity 0.4s;
53
- transition-delay: 0.4s;
54
- }
55
-
56
- .page-enter-from,
57
- .page-leave-to,
58
- .layout-enter-from,
59
- .layout-leave-to {
60
- opacity: 0;
61
- transition: opacity 0.4s;
62
- }
63
-
64
47
  .el-icon {
65
48
  &.more-icon {
66
49
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
- "version": "2.4.31",
3
+ "version": "2.4.33",
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": {