quasar-ui-sellmate-ui-kit 3.14.53 → 3.14.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-sellmate-ui-kit",
3
- "version": "3.14.53",
3
+ "version": "3.14.55",
4
4
  "author": "Sellmate Dev Team <dev@sellmate.co.kr>",
5
5
  "description": "Sellmate UI Kit",
6
6
  "license": "MIT",
@@ -16,7 +16,8 @@ export const attachFileIcon20 =
16
16
 
17
17
  export const closeIcon =
18
18
  'M7.51472 7.51472L24.4853 24.4853@@fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round&&M24.4853 7.51472L7.51471 24.4853@@fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round|0 0 32 32';
19
- export const closeIcon12 = 'M10.3003 1.69922L1.70029 10.2992@@fill:none;stroke:currentColor;stroke-linecap:round&&M10.3003 10.2988L1.70029 1.69883@@fill:none;stroke:currentColor;stroke-linecap:round|0 0 12 12'
19
+ export const closeIcon12 =
20
+ 'M10.3003 1.69922L1.70029 10.2992@@fill:none;stroke:currentColor;stroke-linecap:round&&M10.3003 10.2988L1.70029 1.69883@@fill:none;stroke:currentColor;stroke-linecap:round|0 0 12 12';
20
21
  export const dateRangeIcon =
21
22
  'M5.33334 26.6667V8C5.33334 7.26362 5.9303 6.66666 6.66668 6.66666H25.3333C26.0697 6.66666 26.6667 7.26362 26.6667 8V26.6667C26.6667 27.403 26.0697 28 25.3333 28H6.66668C5.9303 28 5.33334 27.403 5.33334 26.6667Z@@fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round&&M5.33334 10.6667V8C5.33334 7.26362 5.9303 6.66666 6.66668 6.66666H25.3333C26.0697 6.66666 26.6667 7.26362 26.6667 8V10.6667C26.6667 11.403 26.0697 12 25.3333 12H6.66668C5.9303 12 5.33334 11.403 5.33334 10.6667Z@@fill:currentColor&&M16 22.6667V18.6667C16 17.9303 16.597 17.3333 17.3333 17.3333H21.3333C22.0697 17.3333 22.6667 17.9303 22.6667 18.6667V22.6667C22.6667 23.403 22.0697 24 21.3333 24H17.3333C16.597 24 16 23.403 16 22.6667Z@@fill:currentColor&&M9.33334 4V6.66667M22.6667 4V6.66667@@stroke:currentColor;stroke-width:2;stroke-linecap:round|0 0 32 32';
22
23
  export const pageMoveIcon =
@@ -62,3 +63,6 @@ export const addIcon10 =
62
63
  'M1.16669 5H8.83335@@stroke:currentColor;stroke-width:0.8;stroke-linecap:round&&M5 1.16669L5 8.83335@@stroke:currentColor;stroke-width:0.8;stroke-linecap:round; | 0 0 10 10';
63
64
  export const minusIcon10 =
64
65
  'M1.16669 5H8.83335@@stroke:currentColor;stroke-width:0.8;stroke-linecap:round; | 0 0 10 10';
66
+
67
+ export const requiredIcon =
68
+ 'M7.6087 13.5H8.37681L8.49275 8.84726L12.6087 11.0731L13 10.4125L9 8L13 5.57311L12.6087 4.92689L8.49275 7.13838L8.37681 2.5H7.6087L7.49275 7.13838L3.37681 4.92689L3 5.57311L6.98551 8L3 10.4125L3.37681 11.0731L7.49275 8.84726L7.6087 13.5Z@@fill:currentColor;|0 0 16 16';
@@ -34,6 +34,13 @@
34
34
  </template>
35
35
  <template v-if="label" #prepend>
36
36
  <div class="include-label">
37
+ <q-icon
38
+ v-if="required"
39
+ :name="requiredIcon"
40
+ size="10px"
41
+ color="brilliantblue_75"
42
+ class="s-mr-4"
43
+ />
37
44
  {{ label }}
38
45
  <s-tooltip v-if="tooltip" v-bind="tooltip" no-hover>
39
46
  {{ tooltip.message || '' }}
@@ -72,8 +79,8 @@
72
79
 
73
80
  <script>
74
81
  import { computed, defineComponent, ref, watch } from 'vue';
75
- import { QSelect, QItem, QItemSection, QItemLabel } from 'quasar';
76
- import { selectDownArrowIcon } from '../assets/icons';
82
+ import { QSelect, QItem, QItemSection, QItemLabel, QIcon } from 'quasar';
83
+ import { selectDownArrowIcon, requiredIcon } from '../assets/icons';
77
84
  import STooltip from './STooltip.vue';
78
85
 
79
86
  export default defineComponent({
@@ -83,6 +90,7 @@
83
90
  QItem,
84
91
  QItemSection,
85
92
  QItemLabel,
93
+ QIcon,
86
94
  STooltip,
87
95
  },
88
96
  props: {
@@ -125,6 +133,10 @@
125
133
  tooltip: {
126
134
  type: Object,
127
135
  },
136
+ required: {
137
+ type: Boolean,
138
+ default: false,
139
+ },
128
140
  },
129
141
  setup(props, { emit, attrs }) {
130
142
  const filteredOptions = ref(props.options);
@@ -215,6 +227,7 @@
215
227
  notingSelected,
216
228
  selectedLabel,
217
229
  searchableProps,
230
+ requiredIcon,
218
231
  };
219
232
  },
220
233
  });
@@ -174,6 +174,7 @@ export function useResizable() {
174
174
 
175
175
  const tableEl = tableRef.value.$el;
176
176
  const cols = getTableCols(tableEl);
177
+ const isResizableTable = tableEl.classList.contains('resizable-table');
177
178
  const isSelectTable = tableEl.classList.contains('s-select-table');
178
179
 
179
180
  let startLeftIndex = 0;
@@ -181,7 +182,6 @@ export function useResizable() {
181
182
  // Left Sticky Columns
182
183
  if (isSelectTable && cols[0]) {
183
184
  applyStickyToColumn(tableEl, 0, true, '0px'); // 체크박스 컬럼 고정
184
- appendResizableDiv(cols[0], 'right', true); // 오른쪽에 리사이즈 핸들 추가
185
185
  startLeftIndex = 1; // 이후 데이터 컬럼은 1번부터 시작
186
186
  }
187
187
 
@@ -189,7 +189,7 @@ export function useResizable() {
189
189
  const colIdx = startLeftIndex + i;
190
190
  if (!cols[colIdx]) break;
191
191
  applyStickyToColumn(tableEl, colIdx, true, '0px'); // 컬럼 고정
192
- appendResizableDiv(cols[colIdx], 'right', true); // 오른쪽에 리사이즈 핸들 추가
192
+ if (isResizableTable) appendResizableDiv(cols[colIdx], 'right', true); // 오른쪽에 리사이즈 핸들 추가
193
193
  }
194
194
 
195
195
  detectStickyWidth(tableEl, true); // 좌측 스티키 너비 재계산
@@ -198,7 +198,7 @@ export function useResizable() {
198
198
  if (rightStickyCount > 0) {
199
199
  for (let i = cols.length - rightStickyCount; i < cols.length; i++) {
200
200
  applyStickyToColumn(tableEl, i, false, '0px');
201
- appendResizableDiv(cols[i], 'left', true); // 왼쪽에 리사이즈 핸들 추가 (우측 스티키)
201
+ if (isResizableTable) appendResizableDiv(cols[i], 'left', true); // 왼쪽에 리사이즈 핸들 추가 (우측 스티키)
202
202
  }
203
203
 
204
204
  detectStickyWidth(tableEl, false); // 우측 스티키 너비 재계산