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

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.
@@ -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-d28619d2] {
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-d28619d2] {
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-d28619d2] {
10
+ background-image: var(--v6c29f598);
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-d28619d2] {
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-d28619d2] {
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-d28619d2] {
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-d28619d2] {
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-d28619d2] {
36
45
  height: 180px;
37
46
  padding-top: 34px;
38
47
  padding-left: 32px;
@@ -40,68 +49,68 @@
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-d28619d2] {
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-d28619d2] {
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-d28619d2] {
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-d28619d2] {
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-d28619d2] {
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-d28619d2] {
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-d28619d2] .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-d28619d2] .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-tab-wrap[data-v-d28619d2] {
74
83
  position: absolute;
75
84
  bottom: 0;
76
85
  width: 100%;
77
86
  }
78
87
  @media (max-width: 1200px) {
79
- .o-search-result-header .o-search-result-header-tab-wrap[data-v-fbcd62d1] {
88
+ .o-search-result-header .o-search-result-header-tab-wrap[data-v-d28619d2] {
80
89
  width: calc(100% - 64px);
81
90
  }
82
91
  }
83
92
  @media (max-width: 840px) {
84
- .o-search-result-header .o-search-result-header-tab-wrap[data-v-fbcd62d1] {
93
+ .o-search-result-header .o-search-result-header-tab-wrap[data-v-d28619d2] {
85
94
  width: 100%;
86
95
  padding: 0 32px;
87
96
  }
88
97
  }
89
98
  @media (max-width: 600px) {
90
- .o-search-result-header .o-search-result-header-tab-wrap[data-v-fbcd62d1] {
99
+ .o-search-result-header .o-search-result-header-tab-wrap[data-v-d28619d2] {
91
100
  padding: 0 24px;
92
101
  }
93
102
  }
94
- .o-search-result-header .o-search-result-header-tab-wrap .o-search-result-header-tab[data-v-fbcd62d1] {
103
+ .o-search-result-header .o-search-result-header-tab-wrap .o-search-result-header-tab[data-v-d28619d2] {
95
104
  --tab-nav-justify: start;
96
105
  }
97
106
  @media (max-width: 840px) {
98
- .o-search-result-header .o-search-result-header-input-row[data-v-fbcd62d1] {
107
+ .o-search-result-header .o-search-result-header-input-row[data-v-d28619d2] {
99
108
  display: flex;
100
109
  align-items: center;
101
110
  gap: 24px;
102
111
  padding: 8px 32px;
103
112
  }
104
- .o-search-result-header .o-search-result-header-back[data-v-fbcd62d1] {
113
+ .o-search-result-header .o-search-result-header-back[data-v-d28619d2] {
105
114
  display: flex;
106
115
  align-items: center;
107
116
  flex-shrink: 0;
@@ -110,15 +119,15 @@
110
119
  background: none;
111
120
  cursor: pointer;
112
121
  }
113
- .o-search-result-header .o-search-result-header-back .o-icon[data-v-fbcd62d1] {
122
+ .o-search-result-header .o-search-result-header-back .o-icon[data-v-d28619d2] {
114
123
  font-size: 24px;
115
124
  }
116
- .o-search-result-header .o-search-result-header-input[data-v-fbcd62d1] {
125
+ .o-search-result-header .o-search-result-header-input[data-v-d28619d2] {
117
126
  flex: 1;
118
127
  max-width: none;
119
128
  margin: 0;
120
129
  }
121
- .o-search-result-header .o-search-result-header-search-btn[data-v-fbcd62d1] {
130
+ .o-search-result-header .o-search-result-header-search-btn[data-v-d28619d2] {
122
131
  display: block;
123
132
  flex-shrink: 0;
124
133
  font-size: 16px;
@@ -128,7 +137,7 @@
128
137
  }
129
138
  }
130
139
  @media (max-width: 600px) {
131
- .o-search-result-header .o-search-result-header-input-row[data-v-fbcd62d1] {
140
+ .o-search-result-header .o-search-result-header-input-row[data-v-d28619d2] {
132
141
  padding: 8px 24px;
133
142
  }
134
143
  }
@@ -5,6 +5,7 @@ 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;
@@ -658,7 +659,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
658
659
  onBack?: (() => any) | undefined;
659
660
  "onUpdate:searchInput"?: ((value: string) => any) | undefined;
660
661
  "onUpdate:tab"?: ((value: string | number) => any) | undefined;
661
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
662
+ }>, {
663
+ responsive: boolean;
664
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
662
665
  searchInputRef: ({
663
666
  $: import('vue').ComponentInternalInstance;
664
667
  $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-d28619d2"]]);
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,7 +15,8 @@ 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": {},
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  emits: /* @__PURE__ */ mergeModels(["back", "search"], ["update:searchInput", "update:tab"]),
27
27
  setup(__props, { emit: __emit }) {
28
28
  useCssVars((_ctx) => ({
29
- "v1bb9af50": bgStyle.value
29
+ "v6c29f598": bgStyle.value
30
30
  }));
31
31
  const props = __props;
32
32
  const emit = __emit;
@@ -40,9 +40,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  };
41
41
  const bgStyle = computed(() => props.bg ? `url(${props.bg})` : "none");
42
42
  return (_ctx, _cache) => {
43
- return openBlock(), createElementBlock("div", _hoisted_1, [
44
- createElementVNode("div", _hoisted_2, [
45
- createElementVNode("div", _hoisted_3, [
43
+ return openBlock(), createElementBlock("div", {
44
+ class: normalizeClass(["o-search-result-header", { "is-responsive": __props.responsive }])
45
+ }, [
46
+ createElementVNode("div", _hoisted_1, [
47
+ createElementVNode("div", _hoisted_2, [
46
48
  createElementVNode("button", {
47
49
  type: "button",
48
50
  class: "o-search-result-header-back",
@@ -55,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
57
  ]),
56
58
  _: 1
57
59
  })
58
- ], 8, _hoisted_4),
60
+ ], 8, _hoisted_3),
59
61
  renderSlot(_ctx.$slots, "input", {}, () => [
60
62
  createVNode(OSearchInput, mergeProps({
61
63
  ref_key: "searchInputRef",
@@ -73,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
75
  }, toDisplayString(unref(t)("search")), 1)
74
76
  ]),
75
77
  renderSlot(_ctx.$slots, "tab", {}, () => [
76
- unref(isArray)(__props.tabs) && __props.tabs.length ? (openBlock(), createElementBlock("div", _hoisted_5, [
78
+ unref(isArray)(__props.tabs) && __props.tabs.length ? (openBlock(), createElementBlock("div", _hoisted_4, [
77
79
  createVNode(unref(OTab), {
78
80
  modelValue: tabVal.value,
79
81
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => tabVal.value = $event),
@@ -95,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
97
  ])) : createCommentVNode("", true)
96
98
  ], true)
97
99
  ])
98
- ]);
100
+ ], 2);
99
101
  };
100
102
  }
101
103
  });