@fmdeui/fmui 1.0.30 → 1.0.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 (35) hide show
  1. package/es/components/fm-layout/index.d.ts +5 -0
  2. package/es/components/fm-layout/src/index.vue.d.ts +2 -0
  3. package/es/components/fm-layout/src/navBars/topBar/user.vue.d.ts +0 -28
  4. package/es/packages/components/fm-layout/src/component/columnsAside.vue2.mjs +2 -2
  5. package/es/packages/components/fm-layout/src/index.vue2.mjs +3 -1
  6. package/es/packages/components/fm-layout/src/navBars/topBar/user.vue2.mjs +4 -13
  7. package/index.js +140 -264
  8. package/index.min.js +4 -4
  9. package/index.min.mjs +4 -4
  10. package/index.mjs +137 -261
  11. package/lib/components/fm-layout/index.d.ts +5 -0
  12. package/lib/components/fm-layout/src/index.vue.d.ts +2 -0
  13. package/lib/components/fm-layout/src/navBars/topBar/user.vue.d.ts +0 -28
  14. package/lib/packages/components/fm-layout/src/component/columnsAside.vue2.js +2 -2
  15. package/lib/packages/components/fm-layout/src/index.vue2.js +3 -1
  16. package/lib/packages/components/fm-layout/src/navBars/topBar/user.vue2.js +4 -13
  17. package/locale/en.js +1 -1
  18. package/locale/en.min.js +1 -1
  19. package/locale/en.min.mjs +1 -1
  20. package/locale/en.mjs +1 -1
  21. package/locale/zh-cn.js +1 -1
  22. package/locale/zh-cn.min.js +1 -1
  23. package/locale/zh-cn.min.mjs +1 -1
  24. package/locale/zh-cn.mjs +1 -1
  25. package/package.json +1 -1
  26. package/theme-chalk/f-layout.css +1 -1
  27. package/theme-chalk/index.css +1 -1
  28. package/theme-chalk/src/layout.scss +1 -26
  29. package/es/components/fm-layout/src/navBars/topBar/search.vue.d.ts +0 -7
  30. package/es/packages/components/fm-layout/src/navBars/topBar/search.vue.mjs +0 -5
  31. package/es/packages/components/fm-layout/src/navBars/topBar/search.vue2.mjs +0 -120
  32. package/lib/components/fm-layout/src/navBars/topBar/search.vue.d.ts +0 -7
  33. package/lib/packages/components/fm-layout/src/navBars/topBar/search.vue.js +0 -9
  34. package/lib/packages/components/fm-layout/src/navBars/topBar/search.vue2.js +0 -124
  35. /package/lib/{component.css → defaults.css} +0 -0
@@ -4,9 +4,11 @@ export declare const FLayout: {
4
4
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
5
5
  onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
6
6
  onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
7
+ onLayoutSearchmenu?: ((...args: any[]) => any) | undefined;
7
8
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
9
  layoutChangePassword: (...args: any[]) => void;
9
10
  layoutOnlineUsers: (...args: any[]) => void;
11
+ layoutSearchmenu: (...args: any[]) => void;
10
12
  }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
11
13
  P: {};
12
14
  B: {};
@@ -17,6 +19,7 @@ export declare const FLayout: {
17
19
  }, Readonly<{}> & Readonly<{
18
20
  onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
19
21
  onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
22
+ onLayoutSearchmenu?: ((...args: any[]) => any) | undefined;
20
23
  }>, {}, {}, {}, {}, {}>;
21
24
  __isFragment?: never;
22
25
  __isTeleport?: never;
@@ -24,9 +27,11 @@ export declare const FLayout: {
24
27
  } & ComponentOptionsBase<Readonly<{}> & Readonly<{
25
28
  onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
26
29
  onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
30
+ onLayoutSearchmenu?: ((...args: any[]) => any) | undefined;
27
31
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
32
  layoutChangePassword: (...args: any[]) => void;
29
33
  layoutOnlineUsers: (...args: any[]) => void;
34
+ layoutSearchmenu: (...args: any[]) => void;
30
35
  }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
31
36
  $slots: any;
32
37
  });
@@ -9,9 +9,11 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
10
  layoutChangePassword: (...args: any[]) => void;
11
11
  layoutOnlineUsers: (...args: any[]) => void;
12
+ layoutSearchmenu: (...args: any[]) => void;
12
13
  }, string, PublicProps, Readonly<{}> & Readonly<{
13
14
  onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
14
15
  onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
16
+ onLayoutSearchmenu?: ((...args: any[]) => any) | undefined;
15
17
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
16
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
19
  export default _default;
@@ -8,20 +8,6 @@ declare function __VLS_template(): {
8
8
  'user-after'?(_: {}): any;
9
9
  };
10
10
  refs: {
11
- searchRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
12
- openSearch: () => void;
13
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
14
- layoutMenuAutocompleteRef: unknown;
15
- }, HTMLDivElement, ComponentProvideOptions, {
16
- P: {};
17
- B: {};
18
- D: {};
19
- C: {};
20
- M: {};
21
- Defaults: {};
22
- }, Readonly<{}> & Readonly<{}>, {
23
- openSearch: () => void;
24
- }, {}, {}, {}, {}> | null;
25
11
  upgradeInfoRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
26
12
  openDialog: (row: any) => void;
27
13
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
@@ -39,20 +25,6 @@ declare function __VLS_template(): {
39
25
  };
40
26
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
41
27
  declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
42
- searchRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
43
- openSearch: () => void;
44
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
45
- layoutMenuAutocompleteRef: unknown;
46
- }, HTMLDivElement, ComponentProvideOptions, {
47
- P: {};
48
- B: {};
49
- D: {};
50
- C: {};
51
- M: {};
52
- Defaults: {};
53
- }, Readonly<{}> & Readonly<{}>, {
54
- openSearch: () => void;
55
- }, {}, {}, {}, {}> | null;
56
28
  upgradeInfoRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
57
29
  openDialog: (row: any) => void;
58
30
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
@@ -7,7 +7,7 @@ import { useRoutesList } from '../../../../stores/routesList.mjs';
7
7
  import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
8
8
 
9
9
  const _hoisted_1 = { class: "layout-columns-aside" };
10
- const _hoisted_2 = { class: "layout-logo" };
10
+ const _hoisted_2 = { class: "layout-columns-logo" };
11
11
  const _hoisted_3 = ["src"];
12
12
  const _hoisted_4 = ["onClick", "onMouseenter", "title"];
13
13
  const _hoisted_5 = { class: "columns-vertical-title font12" };
@@ -169,7 +169,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
169
169
  createElementVNode("div", _hoisted_2, [
170
170
  createElementVNode("img", {
171
171
  src: unref(themeConfig).logoUrl,
172
- class: "layout-logo-medium-img"
172
+ class: "layout-columns-logo-medium-img"
173
173
  }, null, 8, _hoisted_3)
174
174
  ]),
175
175
  createVNode(_component_el_scrollbar, null, {
@@ -13,7 +13,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  name: "FLayout"
14
14
  },
15
15
  __name: "index",
16
- emits: ["layoutChangePassword", "layoutOnlineUsers"],
16
+ emits: ["layoutChangePassword", "layoutOnlineUsers", "layoutSearchmenu"],
17
17
  setup(__props, { emit: __emit }) {
18
18
  const layouts = {
19
19
  defaults: defineAsyncComponent(() => import('./main/defaults.vue.mjs')),
@@ -31,6 +31,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  curMyEmit("layoutChangePassword");
32
32
  } else if (data.name == "onlineUsers") {
33
33
  curMyEmit("layoutOnlineUsers");
34
+ } else if (data.name == "searchmenu") {
35
+ curMyEmit("layoutSearchmenu");
34
36
  }
35
37
  }
36
38
  });
@@ -37,7 +37,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  __name: "user",
38
38
  setup(__props) {
39
39
  const UserNews = defineAsyncComponent(() => import('./userNews.vue.mjs'));
40
- const Search = defineAsyncComponent(() => import('./search.vue.mjs'));
41
40
  const UpgradeInfo = defineAsyncComponent(() => import('./upgradeInfo.vue.mjs'));
42
41
  const routeStores = useRoutesList();
43
42
  const { locale, t } = useI18n();
@@ -46,7 +45,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
46
45
  const storesThemeConfig = useThemeConfig();
47
46
  const { userInfos } = storeToRefs(stores);
48
47
  const { themeConfig } = storeToRefs(storesThemeConfig);
49
- const searchRef = ref();
50
48
  const upgradeInfoRef = ref();
51
49
  const currentCountryCode = ref(getCountryCode(themeConfig.value.globalI18n));
52
50
  const state = reactive({
@@ -131,7 +129,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
131
129
  }
132
130
  };
133
131
  const onSearchClick = () => {
134
- searchRef.value.openSearch();
132
+ events.onFormDialogOpen({
133
+ name: "searchmenu"
134
+ });
135
135
  };
136
136
  const onOnlineUserClick = () => {
137
137
  events.onFormDialogOpen({
@@ -665,16 +665,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
665
665
  _: 1
666
666
  /* STABLE */
667
667
  })),
668
- createVNode(
669
- unref(Search),
670
- {
671
- ref_key: "searchRef",
672
- ref: searchRef
673
- },
674
- null,
675
- 512
676
- /* NEED_PATCH */
677
- ),
668
+ createCommentVNode(' <Search ref="searchRef" /> '),
678
669
  createCommentVNode(' <OnlineUser ref="onlineUserRef" /> '),
679
670
  createCommentVNode(' <ChangePassword ref="changePasswordRef" /> '),
680
671
  createVNode(