@opendesign-plus-test/components 0.0.1-rc.234 → 0.0.1-rc.236

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 (57) hide show
  1. package/dist/components/header/OHeader.vue.d.ts +4 -4
  2. package/dist/components/header/index.d.ts +2 -2
  3. package/dist/components/header/types.d.ts +0 -1
  4. package/dist/components/meeting/OMeetingMyCalendar.vue.d.ts +3 -1
  5. package/dist/components/meeting/components/OMeetingCalendarList.vue.d.ts +1 -0
  6. package/dist/components/meeting/index.d.ts +6 -0
  7. package/dist/components/search/internal/SearchImageInput.vue.d.ts +2 -2
  8. package/dist/components/search-result/OSearchResult.vue.d.ts +5 -0
  9. package/dist/components/search-result/OSearchResultHeader.vue.d.ts +7 -1
  10. package/dist/components/search-result/index.d.ts +34 -3
  11. package/dist/components/user-center/OAccountSetting.vue.d.ts +0 -1
  12. package/dist/components/user-center/index.d.ts +0 -3
  13. package/dist/components/user-center/internal/OAppDialog.vue.d.ts +0 -9
  14. package/dist/components.cjs.js +42 -42
  15. package/dist/components.css +2 -2
  16. package/dist/components.es.js +8781 -8765
  17. package/dist/treeshaking/components/header/OHeader.css +17 -17
  18. package/dist/treeshaking/components/header/OHeader.vue.d.ts +4 -4
  19. package/dist/treeshaking/components/header/OHeader.vue.mjs +1 -1
  20. package/dist/treeshaking/components/header/OHeader.vue2.mjs +3 -2
  21. package/dist/treeshaking/components/header/components/HeaderContent.css +184 -208
  22. package/dist/treeshaking/components/header/components/HeaderContent.vue.mjs +1 -1
  23. package/dist/treeshaking/components/header/components/HeaderContent.vue2.mjs +5 -6
  24. package/dist/treeshaking/components/header/index.d.ts +2 -2
  25. package/dist/treeshaking/components/header/types.d.ts +0 -1
  26. package/dist/treeshaking/components/meeting/OMeetingForm.css +0 -13
  27. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue.d.ts +3 -1
  28. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue.mjs +14 -3
  29. package/dist/treeshaking/components/meeting/OMeetingMyCalendar2.css +6 -9
  30. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.d.ts +1 -0
  31. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +5 -2
  32. package/dist/treeshaking/components/meeting/index.d.ts +6 -0
  33. package/dist/treeshaking/components/search/internal/SearchImageInput.css +47 -46
  34. package/dist/treeshaking/components/search/internal/SearchImageInput.vue.d.ts +2 -2
  35. package/dist/treeshaking/components/search/internal/SearchImageInput.vue.mjs +1 -1
  36. package/dist/treeshaking/components/search-result/OSearchResult.css +29 -29
  37. package/dist/treeshaking/components/search-result/OSearchResult.vue.d.ts +5 -0
  38. package/dist/treeshaking/components/search-result/OSearchResult.vue.mjs +1 -1
  39. package/dist/treeshaking/components/search-result/OSearchResult.vue2.mjs +48 -3
  40. package/dist/treeshaking/components/search-result/OSearchResultHeader.css +47 -27
  41. package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +7 -1
  42. package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.mjs +1 -1
  43. package/dist/treeshaking/components/search-result/OSearchResultHeader.vue2.mjs +25 -18
  44. package/dist/treeshaking/components/search-result/index.d.ts +34 -3
  45. package/dist/treeshaking/components/user-center/OAccountSetting.css +61 -61
  46. package/dist/treeshaking/components/user-center/OAccountSetting.vue.d.ts +0 -1
  47. package/dist/treeshaking/components/user-center/OAccountSetting.vue.mjs +1 -1
  48. package/dist/treeshaking/components/user-center/OAccountSetting.vue2.mjs +2 -4
  49. package/dist/treeshaking/components/user-center/OUserInfo.css +122 -102
  50. package/dist/treeshaking/components/user-center/OUserInfo.vue.mjs +1 -1
  51. package/dist/treeshaking/components/user-center/OUserInfo3.css +4 -4
  52. package/dist/treeshaking/components/user-center/index.d.ts +0 -3
  53. package/dist/treeshaking/components/user-center/internal/OAppDialog.css +19 -19
  54. package/dist/treeshaking/components/user-center/internal/OAppDialog.vue.d.ts +0 -9
  55. package/dist/treeshaking/components/user-center/internal/OAppDialog.vue.mjs +1 -1
  56. package/dist/treeshaking/components/user-center/internal/OAppDialog.vue2.mjs +2 -9
  57. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- .hover-icon-rotate .o-icon[data-v-c61e32b7] {
1
+ .hover-icon-rotate .o-icon[data-v-58ec4d79] {
2
2
  transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
3
  }
4
4
  @media (hover: hover) {
5
- .hover-icon-rotate:hover .o-icon[data-v-c61e32b7] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-58ec4d79] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .o-search-result[data-v-c61e32b7] {
9
+ .o-search-result[data-v-58ec4d79] {
10
10
  --o-search-result-page-header-hight: 0px;
11
11
  --o-search-result-page-footer-hight: 0px;
12
12
  --o-search-result-radius: var(--o-radius-xs);
@@ -23,14 +23,14 @@
23
23
  background-color: var(--o-color-fill2);
24
24
  }
25
25
  @media (max-width: 1680px) {
26
- .o-search-result[data-v-c61e32b7] {
26
+ .o-search-result[data-v-58ec4d79] {
27
27
  --o-search-result-header-height: 220px;
28
28
  --o-search-content-padding-top: 24px;
29
29
  --o-search-content-padding-bottom: 56px;
30
30
  }
31
31
  }
32
32
  @media (max-width: 1200px) {
33
- .o-search-result[data-v-c61e32b7] {
33
+ .o-search-result[data-v-58ec4d79] {
34
34
  --o-search-result-header-height: 180px;
35
35
  --o-search-content-padding-top: 16px;
36
36
  --o-search-content-padding-bottom: 40px;
@@ -39,28 +39,28 @@
39
39
  }
40
40
  }
41
41
  @media (max-width: 840px) {
42
- .o-search-result[data-v-c61e32b7] {
42
+ .o-search-result[data-v-58ec4d79] {
43
43
  --o-search-result-header-height: 90px;
44
44
  --o-search-content-padding-top: 24px;
45
45
  --o-search-content-padding-bottom: 40px;
46
46
  }
47
47
  }
48
48
  @media (max-width: 600px) {
49
- .o-search-result[data-v-c61e32b7] {
49
+ .o-search-result[data-v-58ec4d79] {
50
50
  --o-search-content-padding-top: 24px;
51
51
  --o-search-content-padding-bottom: 32px;
52
52
  --o-search-content-padding-left: 24px;
53
53
  --o-search-content-padding-right: 24px;
54
54
  }
55
55
  }
56
- .o-search-result .o-search-result-content-wrap[data-v-c61e32b7] {
56
+ .o-search-result .o-search-result-content-wrap[data-v-58ec4d79] {
57
57
  display: flex;
58
58
  max-width: var(--grid-20);
59
59
  min-height: var(--o-search-content-min-height);
60
60
  padding: var(--o-search-content-padding-top) var(--o-search-content-padding-right) var(--o-search-content-padding-bottom) var(--o-search-content-padding-left);
61
61
  margin: 0 auto;
62
62
  }
63
- .o-search-result .o-search-result-content-wrap .o-search-result-left-content[data-v-c61e32b7] {
63
+ .o-search-result .o-search-result-content-wrap .o-search-result-left-content[data-v-58ec4d79] {
64
64
  flex: 1;
65
65
  display: flex;
66
66
  flex-direction: column;
@@ -70,88 +70,88 @@
70
70
  border-right: 1px solid var(--o-color-control4);
71
71
  }
72
72
  @media (max-width: 1200px) {
73
- .o-search-result .o-search-result-content-wrap .o-search-result-left-content[data-v-c61e32b7] {
73
+ .o-search-result .o-search-result-content-wrap .o-search-result-left-content[data-v-58ec4d79] {
74
74
  border-right: none;
75
75
  padding-right: 0;
76
76
  }
77
77
  }
78
- .o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-c61e32b7] {
78
+ .o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-58ec4d79] {
79
79
  width: var(--grid-5);
80
80
  padding-left: var(--grid-column-gutter);
81
81
  }
82
82
  @media (max-width: 1680px) {
83
- .o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-c61e32b7] {
83
+ .o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-58ec4d79] {
84
84
  width: var(--grid-6);
85
85
  }
86
86
  }
87
- .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-c61e32b7] {
87
+ .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-58ec4d79] {
88
88
  margin-top: 24px;
89
89
  margin-bottom: 32px;
90
90
  }
91
- .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-c61e32b7] .o-skeleton-item .o-skeleton-line:nth-child(1) {
91
+ .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-58ec4d79] .o-skeleton-item .o-skeleton-line:nth-child(1) {
92
92
  width: 52%;
93
93
  height: 28px;
94
94
  }
95
- .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-c61e32b7] .o-skeleton-item .o-skeleton-line:nth-child(2) {
95
+ .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-58ec4d79] .o-skeleton-item .o-skeleton-line:nth-child(2) {
96
96
  height: 48px;
97
97
  }
98
- .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-c61e32b7] .o-skeleton-item .o-skeleton-line:nth-child(3) {
98
+ .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-58ec4d79] .o-skeleton-item .o-skeleton-line:nth-child(3) {
99
99
  width: 38%;
100
100
  height: 18px;
101
101
  }
102
- .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-divider[data-v-c61e32b7] {
102
+ .o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-divider[data-v-58ec4d79] {
103
103
  margin: 16px 0;
104
104
  }
105
- .o-search-result .o-search-result-content-wrap .o-search-result-version-select[data-v-c61e32b7] {
105
+ .o-search-result .o-search-result-content-wrap .o-search-result-version-select[data-v-58ec4d79] {
106
106
  width: 320px;
107
107
  }
108
- .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-c61e32b7] {
108
+ .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-58ec4d79] {
109
109
  flex: 1;
110
110
  padding: 24px 0;
111
111
  }
112
112
  @media (max-width: 1680px) {
113
- .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-c61e32b7] {
113
+ .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-58ec4d79] {
114
114
  padding: 16px 0;
115
115
  }
116
116
  }
117
- .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-c61e32b7] > *:not(:first-child) {
117
+ .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-58ec4d79] > *:not(:first-child) {
118
118
  padding-top: 16px;
119
119
  border-top: 1px solid var(--o-color-control4);
120
120
  }
121
121
  @media (max-width: 1680px) {
122
- .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-c61e32b7] > *:not(:first-child) {
122
+ .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-58ec4d79] > *:not(:first-child) {
123
123
  padding-top: 12px;
124
124
  }
125
125
  }
126
- .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-c61e32b7] > *:not(:last-child) {
126
+ .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-58ec4d79] > *:not(:last-child) {
127
127
  padding-bottom: 16px;
128
128
  }
129
129
  @media (max-width: 1680px) {
130
- .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-c61e32b7] > *:not(:last-child) {
130
+ .o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-58ec4d79] > *:not(:last-child) {
131
131
  padding-bottom: 12px;
132
132
  }
133
133
  }
134
- .o-search-result .o-search-result-content-wrap .o-search-result-content.is-empty[data-v-c61e32b7] {
134
+ .o-search-result .o-search-result-content-wrap .o-search-result-content.is-empty[data-v-58ec4d79] {
135
135
  display: flex;
136
136
  justify-content: center;
137
137
  align-items: center;
138
138
  }
139
- .o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-c61e32b7] {
139
+ .o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-58ec4d79] {
140
140
  display: flex;
141
141
  justify-content: flex-end;
142
142
  margin-top: 32px;
143
143
  }
144
144
  @media (max-width: 1680px) {
145
- .o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-c61e32b7] {
145
+ .o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-58ec4d79] {
146
146
  margin-top: 24px;
147
147
  }
148
148
  }
149
149
  @media (max-width: 1200px) {
150
- .o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-c61e32b7] {
150
+ .o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-58ec4d79] {
151
151
  margin-top: 16px;
152
152
  }
153
153
  }
154
- .o-search-result .o-search-result-content-wrap .o-search-result-mb-bottom-text[data-v-c61e32b7] {
154
+ .o-search-result .o-search-result-content-wrap .o-search-result-mb-bottom-text[data-v-58ec4d79] {
155
155
  margin-top: 16px;
156
156
  color: var(--o-color-info3);
157
157
  text-align: center;
@@ -12,6 +12,8 @@ type __VLS_Props = {
12
12
  feedbackText: string;
13
13
  }) => Promise<boolean>;
14
14
  noMore: boolean;
15
+ scrollContainer?: string | HTMLElement;
16
+ bottomOffset?: number;
15
17
  };
16
18
  type __VLS_PublicProps = {
17
19
  'version'?: SelectValueT;
@@ -38,14 +40,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
38
40
  "update:version": (value: SelectValueT) => any;
39
41
  } & {
40
42
  "click-relative-search-item": (item: OSearchRelativeItemT) => any;
43
+ "reach-bottom": () => any;
41
44
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
42
45
  "onUpdate:pageSize"?: ((value: number) => any) | undefined;
43
46
  "onUpdate:page"?: ((value: number) => any) | undefined;
44
47
  "onClick-relative-search-item"?: ((item: OSearchRelativeItemT) => any) | undefined;
48
+ "onReach-bottom"?: (() => any) | undefined;
45
49
  "onUpdate:version"?: ((value: SelectValueT) => any) | undefined;
46
50
  }>, {
47
51
  total: number;
48
52
  pageSizes: number[];
53
+ bottomOffset: number;
49
54
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
50
55
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
51
56
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./OSearchResult.vue2.mjs";
2
2
  import './OSearchResult.css';
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const _OSearchResult = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c61e32b7"]]);
4
+ const _OSearchResult = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-58ec4d79"]]);
5
5
  export {
6
6
  _OSearchResult as default
7
7
  };
@@ -1,4 +1,5 @@
1
- import { defineComponent, useModel, openBlock, createElementBlock, createElementVNode, renderSlot, unref, createBlock, withCtx, Fragment, renderList, createCommentVNode, createVNode, normalizeClass, createTextVNode, toDisplayString, mergeModels } from "vue";
1
+ import { defineComponent, useModel, watch, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, renderSlot, unref, createBlock, withCtx, Fragment, renderList, createCommentVNode, createVNode, normalizeClass, createTextVNode, toDisplayString, mergeModels } from "vue";
2
+ import { useThrottleFn } from "@vueuse/core";
2
3
  import { isArray, OSelect, OOption, OSkeleton, OSkeletonText, ODivider, OPagination } from "@opensig/opendesign";
3
4
  import { useScreen } from "@opendesign-plus/composables";
4
5
  import { useI18n } from "../../i18n/index.mjs";
@@ -25,7 +26,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
26
  total: { default: 0 },
26
27
  pageSizes: { default: () => [10, 20, 50] },
27
28
  submitFeedback: {},
28
- noMore: { type: Boolean }
29
+ noMore: { type: Boolean },
30
+ scrollContainer: {},
31
+ bottomOffset: { default: 30 }
29
32
  }, {
30
33
  "version": {},
31
34
  "versionModifiers": {},
@@ -34,14 +37,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
37
  "pageSize": { default: 10 },
35
38
  "pageSizeModifiers": {}
36
39
  }),
37
- emits: /* @__PURE__ */ mergeModels(["click-relative-search-item"], ["update:version", "update:page", "update:pageSize"]),
40
+ emits: /* @__PURE__ */ mergeModels(["click-relative-search-item", "reach-bottom"], ["update:version", "update:page", "update:pageSize"]),
38
41
  setup(__props, { emit: __emit }) {
42
+ const props = __props;
39
43
  const versionVal = useModel(__props, "version");
40
44
  const page = useModel(__props, "page");
41
45
  const pageSize = useModel(__props, "pageSize");
42
46
  const emit = __emit;
43
47
  const { lePad, lePadV } = useScreen();
44
48
  const { t } = useI18n();
49
+ let scrollEl = null;
50
+ const getScrollEl = () => {
51
+ if (!props.scrollContainer) {
52
+ return window;
53
+ }
54
+ if (typeof props.scrollContainer === "string") {
55
+ return document.querySelector(props.scrollContainer) ?? window;
56
+ }
57
+ return props.scrollContainer;
58
+ };
59
+ const onScroll = useThrottleFn(() => {
60
+ if (!lePadV.value || props.loading || props.noMore) {
61
+ return;
62
+ }
63
+ const el = scrollEl;
64
+ if (!el) {
65
+ return;
66
+ }
67
+ const isWin = el === window;
68
+ const scrollTop = isWin ? window.scrollY : el.scrollTop;
69
+ const clientHeight = isWin ? window.innerHeight : el.clientHeight;
70
+ const scrollHeight = isWin ? document.documentElement.scrollHeight : el.scrollHeight;
71
+ if (scrollTop + clientHeight >= scrollHeight - props.bottomOffset) {
72
+ emit("reach-bottom");
73
+ }
74
+ }, 200);
75
+ const bindScroll = () => {
76
+ unbindScroll();
77
+ if (!props.scrollContainer) {
78
+ return;
79
+ }
80
+ scrollEl = getScrollEl();
81
+ scrollEl.addEventListener("scroll", onScroll, { passive: true });
82
+ };
83
+ const unbindScroll = () => {
84
+ scrollEl == null ? void 0 : scrollEl.removeEventListener("scroll", onScroll);
85
+ scrollEl = null;
86
+ };
87
+ watch(() => props.scrollContainer, bindScroll);
88
+ onMounted(bindScroll);
89
+ onUnmounted(unbindScroll);
45
90
  return (_ctx, _cache) => {
46
91
  return openBlock(), createElementBlock("div", _hoisted_1, [
47
92
  createElementVNode("div", _hoisted_2, [
@@ -1,24 +1,33 @@
1
- .hover-icon-rotate .o-icon[data-v-fbcd62d1] {
1
+ .hover-icon-rotate .o-icon[data-v-aefa2f66] {
2
2
  transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
3
  }
4
4
  @media (hover: hover) {
5
- .hover-icon-rotate:hover .o-icon[data-v-fbcd62d1] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-aefa2f66] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .o-search-result-header[data-v-fbcd62d1] {
10
- background-image: var(--v1bb9af50);
9
+ .o-search-result-header[data-v-aefa2f66] {
10
+ background-image: var(--v62f039c3);
11
11
  background-position: 100% 100%;
12
12
  background-repeat: no-repeat;
13
13
  background-size: cover;
14
14
  }
15
15
  @media (max-width: 840px) {
16
- .o-search-result-header[data-v-fbcd62d1] {
16
+ .o-search-result-header[data-v-aefa2f66] {
17
17
  background-image: none;
18
18
  background-color: var(--o-color-fill2);
19
19
  }
20
20
  }
21
- .o-search-result-header .o-search-result-header-content[data-v-fbcd62d1] {
21
+ @media (max-width: 840px) {
22
+ .o-search-result-header.is-responsive[data-v-aefa2f66] {
23
+ position: fixed;
24
+ left: 0;
25
+ top: 0;
26
+ right: 0;
27
+ z-index: 999;
28
+ }
29
+ }
30
+ .o-search-result-header .o-search-result-header-content[data-v-aefa2f66] {
22
31
  position: relative;
23
32
  height: 280px;
24
33
  padding-top: 80px;
@@ -26,13 +35,13 @@
26
35
  margin: 0 auto;
27
36
  }
28
37
  @media (max-width: 1680px) {
29
- .o-search-result-header .o-search-result-header-content[data-v-fbcd62d1] {
38
+ .o-search-result-header .o-search-result-header-content[data-v-aefa2f66] {
30
39
  height: 220px;
31
40
  padding-top: 52px;
32
41
  }
33
42
  }
34
43
  @media (max-width: 1200px) {
35
- .o-search-result-header .o-search-result-header-content[data-v-fbcd62d1] {
44
+ .o-search-result-header .o-search-result-header-content[data-v-aefa2f66] {
36
45
  height: 180px;
37
46
  padding-top: 34px;
38
47
  padding-left: 32px;
@@ -40,68 +49,79 @@
40
49
  }
41
50
  }
42
51
  @media (max-width: 840px) {
43
- .o-search-result-header .o-search-result-header-content[data-v-fbcd62d1] {
52
+ .o-search-result-header .o-search-result-header-content[data-v-aefa2f66] {
44
53
  height: 90px;
45
54
  padding: 0;
46
55
  box-shadow: var(--o-shadow-2);
47
56
  }
48
57
  }
49
- .o-search-result-header .o-search-result-header-back[data-v-fbcd62d1] {
58
+ .o-search-result-header .o-search-result-header-back[data-v-aefa2f66] {
50
59
  display: none;
51
60
  }
52
- .o-search-result-header .o-search-result-header-search-btn[data-v-fbcd62d1] {
61
+ .o-search-result-header .o-search-result-header-search-btn[data-v-aefa2f66] {
53
62
  display: none;
54
63
  }
55
- .o-search-result-header .o-search-result-header-input[data-v-fbcd62d1] {
64
+ .o-search-result-header .o-search-result-header-input[data-v-aefa2f66] {
56
65
  max-width: var(--grid-15);
57
66
  background-color: transparent;
58
67
  }
59
- .o-search-result-header .o-search-result-header-input.is-focus[data-v-fbcd62d1] {
68
+ .o-search-result-header .o-search-result-header-input.is-focus[data-v-aefa2f66] {
60
69
  z-index: 100;
61
70
  }
62
71
  @media (min-width: ) {
63
- .o-search-result-header .o-search-result-header-input[data-v-fbcd62d1] {
72
+ .o-search-result-header .o-search-result-header-input[data-v-aefa2f66] {
64
73
  max-width: var(--grid-10);
65
74
  }
66
75
  }
67
- .o-search-result-header .o-search-result-header-input[data-v-fbcd62d1] .o-input.o_box-large {
76
+ .o-search-result-header .o-search-result-header-input[data-v-aefa2f66] .o-input.o_box-large {
68
77
  --_box-height: 40px ;
69
78
  }
70
- .o-search-result-header .o-search-result-header-input[data-v-fbcd62d1] .o-search-image-input-icon {
79
+ .o-search-result-header .o-search-result-header-input[data-v-aefa2f66] .o-search-image-input-icon {
71
80
  font-size: 24px;
72
81
  }
73
- .o-search-result-header .o-search-result-header-tab-wrap[data-v-fbcd62d1] {
82
+ .o-search-result-header .o-search-result-header-input[data-v-aefa2f66] .o-search-image-input {
83
+ background-color: var(--o-color-fill2);
84
+ }
85
+ .o-search-result-header .o-search-result-header-tab-wrap[data-v-aefa2f66] {
74
86
  position: absolute;
75
87
  bottom: 0;
76
88
  width: 100%;
77
89
  }
78
90
  @media (max-width: 1200px) {
79
- .o-search-result-header .o-search-result-header-tab-wrap[data-v-fbcd62d1] {
91
+ .o-search-result-header .o-search-result-header-tab-wrap[data-v-aefa2f66] {
80
92
  width: calc(100% - 64px);
81
93
  }
82
94
  }
83
95
  @media (max-width: 840px) {
84
- .o-search-result-header .o-search-result-header-tab-wrap[data-v-fbcd62d1] {
96
+ .o-search-result-header .o-search-result-header-tab-wrap[data-v-aefa2f66] {
85
97
  width: 100%;
86
98
  padding: 0 32px;
87
99
  }
88
100
  }
89
101
  @media (max-width: 600px) {
90
- .o-search-result-header .o-search-result-header-tab-wrap[data-v-fbcd62d1] {
102
+ .o-search-result-header .o-search-result-header-tab-wrap[data-v-aefa2f66] {
91
103
  padding: 0 24px;
92
104
  }
93
105
  }
94
- .o-search-result-header .o-search-result-header-tab-wrap .o-search-result-header-tab[data-v-fbcd62d1] {
106
+ .o-search-result-header .o-search-result-header-tab-wrap .o-search-result-header-tab[data-v-aefa2f66] {
95
107
  --tab-nav-justify: start;
96
108
  }
109
+ .o-search-result-header .o-search-result-header-tab-wrap .o-search-result-header-tab[data-v-aefa2f66] .o-tab-nav-list {
110
+ --tab-nav-gap: 40px;
111
+ }
112
+ @media (max-width: 1680px) {
113
+ .o-search-result-header .o-search-result-header-tab-wrap .o-search-result-header-tab[data-v-aefa2f66] .o-tab-nav-list {
114
+ --tab-nav-gap: 16px;
115
+ }
116
+ }
97
117
  @media (max-width: 840px) {
98
- .o-search-result-header .o-search-result-header-input-row[data-v-fbcd62d1] {
118
+ .o-search-result-header .o-search-result-header-input-row[data-v-aefa2f66] {
99
119
  display: flex;
100
120
  align-items: center;
101
121
  gap: 24px;
102
122
  padding: 8px 32px;
103
123
  }
104
- .o-search-result-header .o-search-result-header-back[data-v-fbcd62d1] {
124
+ .o-search-result-header .o-search-result-header-back[data-v-aefa2f66] {
105
125
  display: flex;
106
126
  align-items: center;
107
127
  flex-shrink: 0;
@@ -110,15 +130,15 @@
110
130
  background: none;
111
131
  cursor: pointer;
112
132
  }
113
- .o-search-result-header .o-search-result-header-back .o-icon[data-v-fbcd62d1] {
133
+ .o-search-result-header .o-search-result-header-back .o-icon[data-v-aefa2f66] {
114
134
  font-size: 24px;
115
135
  }
116
- .o-search-result-header .o-search-result-header-input[data-v-fbcd62d1] {
136
+ .o-search-result-header .o-search-result-header-input[data-v-aefa2f66] {
117
137
  flex: 1;
118
138
  max-width: none;
119
139
  margin: 0;
120
140
  }
121
- .o-search-result-header .o-search-result-header-search-btn[data-v-fbcd62d1] {
141
+ .o-search-result-header .o-search-result-header-search-btn[data-v-aefa2f66] {
122
142
  display: block;
123
143
  flex-shrink: 0;
124
144
  font-size: 16px;
@@ -128,7 +148,7 @@
128
148
  }
129
149
  }
130
150
  @media (max-width: 600px) {
131
- .o-search-result-header .o-search-result-header-input-row[data-v-fbcd62d1] {
151
+ .o-search-result-header .o-search-result-header-input-row[data-v-aefa2f66] {
132
152
  padding: 8px 24px;
133
153
  }
134
154
  }
@@ -5,9 +5,11 @@ type __VLS_Props = {
5
5
  bg?: string;
6
6
  tabs?: OSearchItemT[];
7
7
  inputProps?: OSearchInputPropsT;
8
+ responsive?: boolean;
8
9
  };
9
10
  type __VLS_PublicProps = {
10
11
  'searchInput'?: string;
12
+ 'imageUrl'?: string;
11
13
  'tab'?: string | number;
12
14
  } & __VLS_Props;
13
15
  declare function __VLS_template(): {
@@ -650,15 +652,19 @@ declare function __VLS_template(): {
650
652
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
651
653
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
652
654
  search: (payload: OSearchPayload) => any;
655
+ "update:imageUrl": (value: string) => any;
653
656
  back: () => any;
654
657
  "update:searchInput": (value: string) => any;
655
658
  "update:tab": (value: string | number) => any;
656
659
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
657
660
  onSearch?: ((payload: OSearchPayload) => any) | undefined;
661
+ "onUpdate:imageUrl"?: ((value: string) => any) | undefined;
658
662
  onBack?: (() => any) | undefined;
659
663
  "onUpdate:searchInput"?: ((value: string) => any) | undefined;
660
664
  "onUpdate:tab"?: ((value: string | number) => any) | undefined;
661
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
665
+ }>, {
666
+ responsive: boolean;
667
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
662
668
  searchInputRef: ({
663
669
  $: import('vue').ComponentInternalInstance;
664
670
  $data: {};
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./OSearchResultHeader.vue2.mjs";
2
2
  import './OSearchResultHeader.css';
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const _OSearchResultHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fbcd62d1"]]);
4
+ const _OSearchResultHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aefa2f66"]]);
5
5
  export {
6
6
  _OSearchResultHeader as default
7
7
  };
@@ -1,13 +1,12 @@
1
- import { defineComponent, useCssVars, useModel, ref, computed, openBlock, createElementBlock, createElementVNode, unref, createVNode, withCtx, renderSlot, mergeProps, toDisplayString, Fragment, renderList, createBlock, createCommentVNode, mergeModels } from "vue";
1
+ import { defineComponent, useCssVars, useModel, ref, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, createVNode, withCtx, renderSlot, mergeProps, toDisplayString, Fragment, renderList, createBlock, createCommentVNode, mergeModels } from "vue";
2
2
  import { OIcon, isArray, OTab, OTabPane } from "@opensig/opendesign";
3
3
  import IconArrowLeft from "../../_virtual/icon-arrow-left.mjs";
4
4
  import OSearchInput from "../search/OSearchInput.vue.mjs";
5
5
  import { useI18n } from "../../i18n/index.mjs";
6
- const _hoisted_1 = { class: "o-search-result-header" };
7
- const _hoisted_2 = { class: "o-search-result-header-content" };
8
- const _hoisted_3 = { class: "o-search-result-header-input-row" };
9
- const _hoisted_4 = ["aria-label"];
10
- const _hoisted_5 = {
6
+ const _hoisted_1 = { class: "o-search-result-header-content" };
7
+ const _hoisted_2 = { class: "o-search-result-header-input-row" };
8
+ const _hoisted_3 = ["aria-label"];
9
+ const _hoisted_4 = {
11
10
  key: 0,
12
11
  class: "o-search-result-header-tab-wrap"
13
12
  };
@@ -16,21 +15,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
15
  props: /* @__PURE__ */ mergeModels({
17
16
  bg: {},
18
17
  tabs: {},
19
- inputProps: {}
18
+ inputProps: {},
19
+ responsive: { type: Boolean, default: false }
20
20
  }, {
21
21
  "searchInput": {},
22
22
  "searchInputModifiers": {},
23
+ "imageUrl": {},
24
+ "imageUrlModifiers": {},
23
25
  "tab": {},
24
26
  "tabModifiers": {}
25
27
  }),
26
- emits: /* @__PURE__ */ mergeModels(["back", "search"], ["update:searchInput", "update:tab"]),
28
+ emits: /* @__PURE__ */ mergeModels(["back", "search"], ["update:searchInput", "update:imageUrl", "update:tab"]),
27
29
  setup(__props, { emit: __emit }) {
28
30
  useCssVars((_ctx) => ({
29
- "v1bb9af50": bgStyle.value
31
+ "v62f039c3": bgStyle.value
30
32
  }));
31
33
  const props = __props;
32
34
  const emit = __emit;
33
35
  const searchInput = useModel(__props, "searchInput");
36
+ const imageUrl = useModel(__props, "imageUrl");
34
37
  const tabVal = useModel(__props, "tab");
35
38
  const { t } = useI18n();
36
39
  const searchInputRef = ref(null);
@@ -40,9 +43,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
43
  };
41
44
  const bgStyle = computed(() => props.bg ? `url(${props.bg})` : "none");
42
45
  return (_ctx, _cache) => {
43
- return openBlock(), createElementBlock("div", _hoisted_1, [
44
- createElementVNode("div", _hoisted_2, [
45
- createElementVNode("div", _hoisted_3, [
46
+ return openBlock(), createElementBlock("div", {
47
+ class: normalizeClass(["o-search-result-header", { "is-responsive": __props.responsive }])
48
+ }, [
49
+ createElementVNode("div", _hoisted_1, [
50
+ createElementVNode("div", _hoisted_2, [
46
51
  createElementVNode("button", {
47
52
  type: "button",
48
53
  class: "o-search-result-header-back",
@@ -55,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
60
  ]),
56
61
  _: 1
57
62
  })
58
- ], 8, _hoisted_4),
63
+ ], 8, _hoisted_3),
59
64
  renderSlot(_ctx.$slots, "input", {}, () => [
60
65
  createVNode(OSearchInput, mergeProps({
61
66
  ref_key: "searchInputRef",
@@ -63,9 +68,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
68
  }, __props.inputProps, {
64
69
  modelValue: searchInput.value,
65
70
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInput.value = $event),
71
+ "image-url": imageUrl.value,
72
+ "onUpdate:imageUrl": _cache[2] || (_cache[2] = ($event) => imageUrl.value = $event),
66
73
  class: "o-search-result-header-input",
67
- onSearch: _cache[2] || (_cache[2] = (payload) => emit("search", payload))
68
- }), null, 16, ["modelValue"])
74
+ onSearch: _cache[3] || (_cache[3] = (payload) => emit("search", payload))
75
+ }), null, 16, ["modelValue", "image-url"])
69
76
  ], true),
70
77
  createElementVNode("div", {
71
78
  class: "o-search-result-header-search-btn",
@@ -73,10 +80,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
80
  }, toDisplayString(unref(t)("search")), 1)
74
81
  ]),
75
82
  renderSlot(_ctx.$slots, "tab", {}, () => [
76
- unref(isArray)(__props.tabs) && __props.tabs.length ? (openBlock(), createElementBlock("div", _hoisted_5, [
83
+ unref(isArray)(__props.tabs) && __props.tabs.length ? (openBlock(), createElementBlock("div", _hoisted_4, [
77
84
  createVNode(unref(OTab), {
78
85
  modelValue: tabVal.value,
79
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => tabVal.value = $event),
86
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => tabVal.value = $event),
80
87
  class: "o-search-result-header-tab",
81
88
  line: false,
82
89
  size: "large"
@@ -95,7 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
102
  ])) : createCommentVNode("", true)
96
103
  ], true)
97
104
  ])
98
- ]);
105
+ ], 2);
99
106
  };
100
107
  }
101
108
  });