@pubinfo/core 2.0.0-beta.31 → 2.0.0-beta.32

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.
Files changed (124) hide show
  1. package/dist/{AppSetting-C1dyZ-8E.js → AppSetting-DhcdApoo.js} +17 -17
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js → HCheckList.vue_vue_type_script_setup_true_lang-Bi9jyf-Y.js} +2 -2
  3. package/dist/HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js +20 -0
  4. package/dist/HToggle-Di3WNnzE.js +34 -0
  5. package/dist/{PreferencesContent-DgycKl9e.js → PreferencesContent-BdSTTSM-.js} +6 -6
  6. package/dist/{SettingBreadcrumb-BlgX0ZNE.js → SettingBreadcrumb-ChQx96br.js} +8 -8
  7. package/dist/{SettingCopyright-FmqadL1w.js → SettingCopyright-CkMab5VK.js} +8 -8
  8. package/dist/{SettingEnableTransition-dzMgw8cN.js → SettingEnableTransition-BSXU87vT.js} +15 -15
  9. package/dist/{SettingHome-BwlXsTTt.js → SettingHome-DwioPezC.js} +13 -13
  10. package/dist/{SettingMenu-B5tHMS24.js → SettingMenu-yvKu7Yoq.js} +25 -25
  11. package/dist/{SettingMode-Bh0mvh66.js → SettingMode-C99ADNad.js} +6 -6
  12. package/dist/{SettingNavSearch-D4g24uwl.js → SettingNavSearch-mURLLetZ.js} +8 -8
  13. package/dist/{SettingOther-DwTtu6As.js → SettingOther-BGoSdp7a.js} +9 -9
  14. package/dist/{SettingPage-cDQXtwcG.js → SettingPage-Wwy5PtzC.js} +7 -7
  15. package/dist/{SettingTabbar-m8X7jEJH.js → SettingTabbar-C2ya4r4U.js} +9 -9
  16. package/dist/{SettingThemes-CX9ISeD_.js → SettingThemes-7oYUooGR.js} +27 -27
  17. package/dist/{SettingToolbar-ByLjBezg.js → SettingToolbar-A6OiGfAD.js} +5 -5
  18. package/dist/{SettingTopbar-o8wBZolp.js → SettingTopbar-GDEPltxm.js} +9 -9
  19. package/dist/{SettingWidthMode-Ux60mKiv.js → SettingWidthMode-qwkmTFIK.js} +15 -15
  20. package/dist/{TopThinMode-17GrCZdo.js → TopThinMode-BkmPN66X.js} +1 -1
  21. package/dist/{_...all_-6l5FWUkL.js → _...all_-CdjdWhUr.js} +5 -5
  22. package/dist/assets/styles/index.d.ts +3 -3
  23. package/dist/{colors-DiWJrScm.js → colors-7rGvqeKK.js} +1 -1
  24. package/dist/{index-CfasTv4x.js → index-BC-gcL8e.js} +4 -4
  25. package/dist/{index-Md7zV10q.js → index-C-6XxK2D.js} +5 -5
  26. package/dist/{index-bsi-FZDt.js → index-CgLD0zqO.js} +169 -169
  27. package/dist/{index-BmMbAV1Y.js → index-CtyzB2cq.js} +13 -13
  28. package/dist/{index-Ckgil96Y.js → index-Cw1uN5m-.js} +2 -2
  29. package/dist/{index-Be7jJtXg.js → index-DVUDANdM.js} +5 -5
  30. package/dist/{index-Dzwhw1L9.js → index-Dpq4uqWd.js} +22 -22
  31. package/dist/{index-DgpcBgWl.js → index-DuoLZ3r3.js} +4394 -4294
  32. package/dist/{index-De_ME_Ws.js → index-sYaQXYQC.js} +2 -2
  33. package/dist/index.js +4 -4
  34. package/dist/{index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js → index.vue_vue_type_style_index_0_scoped_051f4e99_lang-CuU-JtjC.js} +870 -856
  35. package/dist/interface.d.ts +12 -0
  36. package/dist/layout/ui-kit/HDialog.vue.d.ts +1 -1
  37. package/dist/layout/ui-kit/HSlideover.vue.d.ts +1 -1
  38. package/dist/layout/ui-kit/HTooltip.vue.d.ts +1 -1
  39. package/dist/{menu-CC5544p-.js → menu-BL6hH6OM.js} +1862 -1856
  40. package/dist/{pick-CJo2YiT-.js → pick-CAmKymZJ.js} +1 -1
  41. package/dist/request.js +34 -32
  42. package/dist/stores/plugin/persist.d.ts +2 -2
  43. package/dist/style.css +3 -3
  44. package/package.json +25 -26
  45. package/src/assets/styles/globals.css +188 -0
  46. package/src/assets/styles/index.ts +3 -3
  47. package/src/assets/styles/nprogress.css +68 -0
  48. package/src/assets/styles/rbac.css +51 -0
  49. package/src/assets/styles/resources/utils.css +53 -0
  50. package/src/assets/styles/resources/variables.css +5 -0
  51. package/src/components/NotAllowed/index.vue +4 -6
  52. package/src/components/PassStrengthValidator/index.vue +33 -48
  53. package/src/components/PassStrengthValidator/rule.vue +13 -25
  54. package/src/components/PubinfoIcon/index.vue +4 -8
  55. package/src/composables/watchDiff.ts +1 -1
  56. package/src/create.ts +10 -3
  57. package/src/interface.ts +19 -0
  58. package/src/layout/Layout.vue +113 -161
  59. package/src/layout/components/Content/IframeView.vue +1 -2
  60. package/src/layout/components/Content/LinkView.vue +2 -2
  61. package/src/layout/components/Content/index.vue +1 -2
  62. package/src/layout/components/Copyright/index.vue +7 -8
  63. package/src/layout/components/Header/TopMode/More.vue +24 -32
  64. package/src/layout/components/Header/TopMode/NotCursor.vue +20 -29
  65. package/src/layout/components/Header/TopMode/index.vue +1 -1
  66. package/src/layout/components/Header/index.vue +118 -206
  67. package/src/layout/components/Logo/index.vue +4 -19
  68. package/src/layout/components/Menu/item.vue +16 -25
  69. package/src/layout/components/SettingBar/AppSetting.vue +11 -11
  70. package/src/layout/components/SettingBar/components/DayNightToggle.vue +26 -120
  71. package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +111 -136
  72. package/src/layout/components/SettingBar/components/SettingMode.vue +78 -88
  73. package/src/layout/components/SettingBar/components/SettingThemes.vue +48 -85
  74. package/src/layout/components/SettingBar/components/SettingWidthMode.vue +63 -71
  75. package/src/layout/components/SettingBar/index.vue +29 -62
  76. package/src/layout/components/Sidebar/MainSidebar.vue +81 -126
  77. package/src/layout/components/Sidebar/SubSidebar.vue +50 -59
  78. package/src/layout/components/Tools/Breadcrumb/index.vue +6 -12
  79. package/src/layout/components/Tools/DayNightSwitch.vue +40 -63
  80. package/src/layout/components/Tools/Preferences/PreferencesContent.vue +210 -277
  81. package/src/layout/components/Tools/Search.vue +5 -5
  82. package/src/layout/components/Tools/index.vue +1 -1
  83. package/src/layout/components/Topbar/Tabbar/MoreAction.vue +98 -145
  84. package/src/layout/components/Topbar/Tabbar/index.vue +259 -395
  85. package/src/layout/components/Topbar/Toolbar/Favorites.vue +4 -4
  86. package/src/layout/components/Topbar/Toolbar/index.vue +39 -56
  87. package/src/layout/components/Topbar/index.vue +16 -19
  88. package/src/layout/composables/useContext.ts +1 -1
  89. package/src/layout/composables/useMenu.ts +1 -1
  90. package/src/layout/composables/useTabbar.ts +1 -1
  91. package/src/layout/composables/useTitle.ts +1 -1
  92. package/src/layout/provider.ts +1 -1
  93. package/src/layout/ui-kit/HDialog.vue +1 -1
  94. package/src/layout/ui-kit/HDivider.vue +6 -35
  95. package/src/layout/ui-kit/HSlideover.vue +1 -1
  96. package/src/layout/ui-kit/HToggle.vue +49 -93
  97. package/src/layout/ui-kit/HTooltip.vue +1 -1
  98. package/src/locales/index.ts +1 -1
  99. package/src/pages/personal/profile/index.vue +1 -1
  100. package/src/pages/system/[...all].vue +4 -6
  101. package/src/pages/system/change-organization/index.vue +23 -37
  102. package/src/pages/system/change-password/components/ChangePasswordForm/index.vue +1 -1
  103. package/src/pages/system/change-password/index.vue +16 -29
  104. package/src/pages/system/not-permission/index.vue +4 -6
  105. package/src/route/guard/basic.ts +1 -1
  106. package/src/route/routes.ts +1 -1
  107. package/src/stores/modules/favorites.ts +1 -1
  108. package/src/stores/modules/menu.ts +1 -1
  109. package/src/stores/modules/route.ts +2 -2
  110. package/src/stores/modules/settings.ts +7 -7
  111. package/src/stores/modules/user.ts +2 -2
  112. package/src/stores/plugin/persist.ts +3 -3
  113. package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
  114. package/src/utils/crypto.ts +1 -1
  115. package/types/auto-imports.d.ts +1 -1
  116. package/types/components.d.ts +1 -0
  117. package/types/vue-router.d.ts +8 -8
  118. package/dist/HDivider-DgXBhPr0.js +0 -21
  119. package/dist/HToggle-Cd71WKvG.js +0 -34
  120. package/src/assets/styles/globals.scss +0 -189
  121. package/src/assets/styles/nprogress.scss +0 -63
  122. package/src/assets/styles/rbac.scss +0 -61
  123. package/src/assets/styles/resources/utils.scss +0 -53
  124. package/src/assets/styles/resources/variables.scss +0 -6
@@ -1,6 +1,5 @@
1
1
  <script setup lang="ts">
2
2
  import type { Tabbar } from '#/tabbar';
3
- import { PubinfoIcon } from '@/components';
4
3
  import { OverlayScrollbarsComponent } from 'overlayscrollbars-vue';
5
4
  import Sortable from 'sortablejs';
6
5
  import { useI18n } from 'vue-i18n';
@@ -11,6 +10,7 @@ import PhArrowLineRight from '~icons/ph/arrow-line-right';
11
10
  import RiArrowDownSFill from '~icons/ri/arrow-down-s-fill';
12
11
  import RiCloseFill from '~icons/ri/close-fill';
13
12
  import RiPushpin2Fill from '~icons/ri/pushpin-2-fill';
13
+ import { PubinfoIcon } from '@/components';
14
14
  import { useContext } from '../../../composables/useContext';
15
15
  import useTabbar from '../../../composables/useTabbar';
16
16
  import Search from '../../Tools/Search.vue';
@@ -146,159 +146,112 @@ function iconName(isActive: boolean, icon: Tabbar.recordRaw['icon'], activeIcon:
146
146
  </div>
147
147
  </template>
148
148
 
149
- <style lang="scss">
150
- .tabbar-dropdown {
151
- .quick-button {
152
- display: flex;
153
- align-items: center;
154
- justify-content: space-between;
155
- padding: 15px 15px 10px;
156
-
157
- .button {
158
- --at-apply: transition-colors;
159
-
160
- display: flex;
161
- align-items: center;
162
- justify-content: center;
163
- width: 32px;
164
- height: 32px;
165
- cursor: pointer;
166
- background-color: var(--g-bg);
167
- border: none;
168
- border-radius: 5px;
169
- outline: none;
170
-
171
- &:hover:not(:disabled) {
172
- --at-apply: text-ui-primary;
173
- }
174
-
175
- &:disabled {
176
- cursor: not-allowed;
177
- }
178
-
179
- i {
180
- font-size: 16px !important;
181
- }
182
- }
183
- }
149
+ <style>
150
+ .tabbar-dropdown .quick-button {
151
+ --at-apply: flex items-center justify-between pt-[15px] pb-2.5 px-[15px];
152
+ }
184
153
 
185
- .tabs {
186
- width: 200px;
187
- padding: 0 0 10px;
154
+ .tabbar-dropdown .quick-button .button {
155
+ --at-apply: flex items-center justify-center w-8 h-8 cursor-pointer bg-[--g-bg]
156
+ transition-[colors] duration-[0.3s] rounded-[5px] border-[none] [outline:none];
157
+ }
188
158
 
189
- &:not(.dragging) {
190
- .tab:hover {
191
- &:not(.actived) {
192
- background-color: var(--g-bg);
193
- }
159
+ .tabbar-dropdown .quick-button .button:hover:not(:disabled) {
160
+ --at-apply: text-ui-primary;
161
+ }
194
162
 
195
- .action-icon {
196
- opacity: 1;
197
- }
198
- }
199
- }
200
-
201
- .tab {
202
- position: relative;
203
- width: calc(100% - 30px);
204
- height: 30px;
205
- padding: 0 5px;
206
- margin: 0 15px;
207
- background-color: var(--g-container-bg);
208
- border-radius: 5px;
209
- transition: background-color 0.3s;
210
-
211
- &.actived {
212
- background-color: var(--g-bg);
213
- }
214
-
215
- &.ghost {
216
- opacity: 0;
217
- }
218
-
219
- &:hover {
220
- .title {
221
- --at-apply: opacity-100;
222
-
223
- margin-inline-end: 20px;
224
- mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
225
- }
226
- }
227
-
228
- * {
229
- user-select: none;
230
- }
231
-
232
- .title {
233
- --at-apply: opacity-70 transition;
234
-
235
- position: relative;
236
- display: flex;
237
- gap: 5px;
238
- align-items: center;
239
- height: 100%;
240
- overflow: hidden;
241
- font-size: 14px;
242
- white-space: nowrap;
243
- cursor: pointer;
244
- mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
245
-
246
- [dir="rtl"] & {
247
- mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent);
248
- }
163
+ .tabbar-dropdown .quick-button .button:disabled {
164
+ --at-apply: cursor-not-allowed;
165
+ }
249
166
 
250
- i {
251
- flex-shrink: 0;
252
- font-size: 16px;
253
- }
254
- }
255
-
256
- .action-icon {
257
- --at-apply: transition;
258
-
259
- position: absolute;
260
- inset-inline-end: 6px;
261
- top: 50%;
262
- z-index: 10;
263
- width: 1.5em;
264
- height: 1.5em;
265
- margin-top: -6px;
266
- font-size: 8px;
267
- color: var(--g-tabbar-tab-color);
268
- pointer-events: all;
269
- border-radius: 50%;
270
- opacity: 0;
271
-
272
- &:hover {
273
- --at-apply: ring-1 ring-stone-3 dark-ring-stone-7;
274
-
275
- background-color: var(--g-bg);
276
- }
277
- }
278
- }
279
- }
167
+ .tabbar-dropdown .quick-button .button i {
168
+ font-size: 16px !important;
169
+ }
170
+
171
+ .tabbar-dropdown .tabs {
172
+ --at-apply: w-200px pt-0 pb-2.5 px-0;
173
+ }
174
+
175
+ .tabbar-dropdown .tabs:not(.dragging) .tab:hover:not(.actived) {
176
+ background-color: var(--g-bg);
177
+ }
178
+
179
+ .tabbar-dropdown .tabs:not(.dragging) .tab:hover .action-icon {
180
+ --at-apply: op-100;
181
+ }
182
+
183
+ .tabbar-dropdown .tabs .tab {
184
+ --at-apply: relative h-[30px] bg-[--g-container-bg] mx-[15px] my-0 px-[5px] py-0 rounded-[5px];
185
+ width: calc(100% - 30px);
186
+ transition: background-color 0.3s;
187
+ }
188
+
189
+ .tabbar-dropdown .tabs .tab.actived {
190
+ background-color: var(--g-bg);
191
+ }
192
+
193
+ .tabbar-dropdown .tabs .tab.ghost {
194
+ --at-apply: op-0;
195
+ }
196
+
197
+ .tabbar-dropdown .tabs .tab:hover .title {
198
+ opacity: 1;
199
+ margin-inline-end: 20px;
200
+ mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
201
+ transition: all 0.3s;
202
+ }
203
+
204
+ .tabbar-dropdown .tabs .tab * {
205
+ user-select: none;
206
+ }
207
+
208
+ .tabbar-dropdown .tabs .tab .title {
209
+ --at-apply: relative flex gap-[5px] items-center
210
+ h-full overflow-hidden text-sm whitespace-nowrap cursor-pointer opacity-70;
211
+
212
+ mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
213
+ transition: all 0.3s;
214
+ }
215
+
216
+ [dir="rtl"] .tabbar-dropdown .tabs .tab .title {
217
+ mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent);
218
+ }
219
+
220
+ .tabbar-dropdown .tabs .tab .title i {
221
+ flex-shrink: 0;
222
+ font-size: 16px;
223
+ }
224
+
225
+ .tabbar-dropdown .tabs .tab .action-icon {
226
+ --at-apply: absolute z-10 w-[1.5em] h-[1.5em] text-[8px] text-[--g-tabbar-tab-color]
227
+ opacity-0 transition-all duration-[0.3s] -mt-1.5 rounded-[50%] top-2/4;
228
+ inset-inline-end: 6px;
229
+ pointer-events: all;
230
+ }
231
+
232
+ .tabbar-dropdown .tabs .tab .action-icon:hover {
233
+ background-color: var(--g-bg);
234
+ box-shadow: 0 0 0 1px var(--g-border-color);
280
235
  }
281
236
  </style>
282
237
 
283
- <style lang="scss" scoped>
284
- .tabbar-dropdown {
285
- .dropdown-tab-enter-from,
286
- .dropdown-tab-leave-to {
287
- opacity: 0;
288
- transform: translateX(-100%);
289
- }
238
+ <style scoped>
239
+ .dropdown-tab-enter-from,
240
+ .dropdown-tab-leave-to {
241
+ opacity: 0;
242
+ transform: translateX(-100%);
243
+ }
290
244
 
291
- .dropdown-tab-enter-active {
292
- transition: all 0.3s;
293
- }
245
+ .dropdown-tab-enter-active {
246
+ transition: all 0.3s;
247
+ }
294
248
 
295
- .dropdown-tab-leave-active {
296
- position: absolute !important;
297
- transition: all 0.3s;
298
- }
249
+ .dropdown-tab-leave-active {
250
+ position: absolute !important;
251
+ transition: all 0.3s;
252
+ }
299
253
 
300
- .dropdown-tab-move {
301
- transition: transform 0.3s;
302
- }
254
+ .dropdown-tab-move {
255
+ transition: transform 0.3s;
303
256
  }
304
257
  </style>