@sellmate/design-system-vue 1.0.63 → 1.0.65
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/dist/components.js +15 -0
- package/dist/sdModal.d.ts +2 -2
- package/dist/sdModal.js +4 -4
- package/lib/components.ts +15 -0
- package/lib/sdModal.ts +5 -5
- package/package.json +2 -2
package/dist/components.js
CHANGED
|
@@ -5,6 +5,8 @@ import { defineContainer } from '@stencil/vue-output-target/runtime';
|
|
|
5
5
|
export const SdActionModal = /*@__PURE__*/ defineContainer('sd-action-modal', undefined, [
|
|
6
6
|
'modalTitle',
|
|
7
7
|
'buttonProps',
|
|
8
|
+
'width',
|
|
9
|
+
'height',
|
|
8
10
|
'sdClose',
|
|
9
11
|
'sdOk'
|
|
10
12
|
], [
|
|
@@ -34,6 +36,7 @@ export const SdBarcodeInput = /*@__PURE__*/ defineContainer('sd-barcode-input',
|
|
|
34
36
|
'focused',
|
|
35
37
|
'hovered',
|
|
36
38
|
'label',
|
|
39
|
+
'labelWidth',
|
|
37
40
|
'icon',
|
|
38
41
|
'labelTooltip',
|
|
39
42
|
'labelTooltipProps',
|
|
@@ -149,6 +152,7 @@ export const SdDatePicker = /*@__PURE__*/ defineContainer('sd-date-picker', unde
|
|
|
149
152
|
'disabled',
|
|
150
153
|
'width',
|
|
151
154
|
'label',
|
|
155
|
+
'labelWidth',
|
|
152
156
|
'addonLabel',
|
|
153
157
|
'hint',
|
|
154
158
|
'errorMessage',
|
|
@@ -191,6 +195,7 @@ export const SdDateRangePicker = /*@__PURE__*/ defineContainer('sd-date-range-pi
|
|
|
191
195
|
'disabled',
|
|
192
196
|
'width',
|
|
193
197
|
'label',
|
|
198
|
+
'labelWidth',
|
|
194
199
|
'addonLabel',
|
|
195
200
|
'hint',
|
|
196
201
|
'errorMessage',
|
|
@@ -240,6 +245,7 @@ export const SdField = /*@__PURE__*/ defineContainer('sd-field', undefined, [
|
|
|
240
245
|
'width',
|
|
241
246
|
'size',
|
|
242
247
|
'label',
|
|
248
|
+
'labelWidth',
|
|
243
249
|
'addonLabel',
|
|
244
250
|
'icon',
|
|
245
251
|
'labelTooltip',
|
|
@@ -257,6 +263,7 @@ export const SdFilePicker = /*@__PURE__*/ defineContainer('sd-file-picker', unde
|
|
|
257
263
|
'maxFiles',
|
|
258
264
|
'name',
|
|
259
265
|
'label',
|
|
266
|
+
'labelWidth',
|
|
260
267
|
'addonLabel',
|
|
261
268
|
'hint',
|
|
262
269
|
'errorMessage',
|
|
@@ -346,6 +353,7 @@ export const SdInput = /*@__PURE__*/ defineContainer('sd-input', undefined, [
|
|
|
346
353
|
'focused',
|
|
347
354
|
'hovered',
|
|
348
355
|
'label',
|
|
356
|
+
'labelWidth',
|
|
349
357
|
'icon',
|
|
350
358
|
'labelTooltip',
|
|
351
359
|
'labelTooltipProps',
|
|
@@ -379,6 +387,7 @@ export const SdNumberInput = /*@__PURE__*/ defineContainer('sd-number-input', un
|
|
|
379
387
|
'useDecimal',
|
|
380
388
|
'value',
|
|
381
389
|
'label',
|
|
390
|
+
'labelWidth',
|
|
382
391
|
'addonLabel',
|
|
383
392
|
'placeholder',
|
|
384
393
|
'disabled',
|
|
@@ -488,6 +497,7 @@ export const SdSelect = /*@__PURE__*/ defineContainer('sd-select', undefined, [
|
|
|
488
497
|
'clearable',
|
|
489
498
|
'searchable',
|
|
490
499
|
'label',
|
|
500
|
+
'labelWidth',
|
|
491
501
|
'addonLabel',
|
|
492
502
|
'icon',
|
|
493
503
|
'labelTooltip',
|
|
@@ -531,6 +541,7 @@ export const SdSelectGroup = /*@__PURE__*/ defineContainer('sd-select-group', un
|
|
|
531
541
|
'clearable',
|
|
532
542
|
'searchable',
|
|
533
543
|
'label',
|
|
544
|
+
'labelWidth',
|
|
534
545
|
'addonLabel',
|
|
535
546
|
'icon',
|
|
536
547
|
'labelTooltip',
|
|
@@ -563,6 +574,7 @@ export const SdSelectMultiple = /*@__PURE__*/ defineContainer('sd-select-multipl
|
|
|
563
574
|
'useAll',
|
|
564
575
|
'useCheckbox',
|
|
565
576
|
'label',
|
|
577
|
+
'labelWidth',
|
|
566
578
|
'icon',
|
|
567
579
|
'labelTooltip',
|
|
568
580
|
'labelTooltipProps',
|
|
@@ -590,6 +602,7 @@ export const SdSelectMultipleGroup = /*@__PURE__*/ defineContainer('sd-select-mu
|
|
|
590
602
|
'allCheckedLabel',
|
|
591
603
|
'allCheckOptionLabel',
|
|
592
604
|
'label',
|
|
605
|
+
'labelWidth',
|
|
593
606
|
'icon',
|
|
594
607
|
'labelTooltip',
|
|
595
608
|
'labelTooltipProps',
|
|
@@ -651,6 +664,7 @@ export const SdSelectV2 = /*@__PURE__*/ defineContainer('sd-select-v2', undefine
|
|
|
651
664
|
'dropdownHeight',
|
|
652
665
|
'disabled',
|
|
653
666
|
'label',
|
|
667
|
+
'labelWidth',
|
|
654
668
|
'addonLabel',
|
|
655
669
|
'error',
|
|
656
670
|
'hint',
|
|
@@ -798,6 +812,7 @@ export const SdTextarea = /*@__PURE__*/ defineContainer('sd-textarea', undefined
|
|
|
798
812
|
'spellcheck',
|
|
799
813
|
'width',
|
|
800
814
|
'label',
|
|
815
|
+
'labelWidth',
|
|
801
816
|
'addonLabel',
|
|
802
817
|
'hint',
|
|
803
818
|
'errorMessage',
|
package/dist/sdModal.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const SdModalVuePlugin: {
|
|
|
16
16
|
* 이 경우 `componentProps` 는 무시됩니다.
|
|
17
17
|
* - `component` 에 Vue 컴포넌트를 넘기면 `componentProps` 로 props 를 지정해
|
|
18
18
|
* 메인 앱 컨텍스트 안에서 렌더한 뒤 core 로 위임합니다.
|
|
19
|
-
* - `
|
|
19
|
+
* - `persistent` 는 core 옵션을 그대로 전달합니다.
|
|
20
20
|
*/
|
|
21
21
|
export interface SdModalCreateOption extends Omit<CoreSdModalCreateOption, 'component'> {
|
|
22
22
|
component: HTMLElement | Component;
|
|
@@ -26,7 +26,7 @@ export interface SdModalCreateOption extends Omit<CoreSdModalCreateOption, 'comp
|
|
|
26
26
|
* Vue-aware `sdModal`.
|
|
27
27
|
*
|
|
28
28
|
* - `sdModal.confirm(options)` — core 와 동일
|
|
29
|
-
* - `sdModal.create({ component, componentProps?,
|
|
29
|
+
* - `sdModal.create({ component, componentProps?, persistent? })` —
|
|
30
30
|
* `component` 가 HTMLElement 면 core 로 위임, Vue 컴포넌트면 메인 앱
|
|
31
31
|
* 컨텍스트 안에서 렌더한 뒤 위임합니다. 모달이 닫히면 자동으로 언마운트됩니다.
|
|
32
32
|
*
|
package/dist/sdModal.js
CHANGED
|
@@ -35,7 +35,7 @@ function mountVueComponent(component, componentProps) {
|
|
|
35
35
|
* Vue-aware `sdModal`.
|
|
36
36
|
*
|
|
37
37
|
* - `sdModal.confirm(options)` — core 와 동일
|
|
38
|
-
* - `sdModal.create({ component, componentProps?,
|
|
38
|
+
* - `sdModal.create({ component, componentProps?, persistent? })` —
|
|
39
39
|
* `component` 가 HTMLElement 면 core 로 위임, Vue 컴포넌트면 메인 앱
|
|
40
40
|
* 컨텍스트 안에서 렌더한 뒤 위임합니다. 모달이 닫히면 자동으로 언마운트됩니다.
|
|
41
41
|
*
|
|
@@ -54,15 +54,15 @@ export const sdModal = {
|
|
|
54
54
|
coreSdModal.configure(options);
|
|
55
55
|
},
|
|
56
56
|
create(input) {
|
|
57
|
-
const { component, componentProps = {},
|
|
57
|
+
const { component, componentProps = {}, persistent } = input;
|
|
58
58
|
// HTMLElement 오버로드: core 로 바로 위임
|
|
59
59
|
if (isHTMLElement(component)) {
|
|
60
|
-
return coreSdModal.create({ component,
|
|
60
|
+
return coreSdModal.create({ component, persistent });
|
|
61
61
|
}
|
|
62
62
|
// Vue 컴포넌트 오버로드 — modalRef 를 먼저 만들어 props 에 주입한 뒤 mount
|
|
63
63
|
const modalRef = _createSdModalRef();
|
|
64
64
|
const { el, host } = mountVueComponent(component, { ...componentProps, modalRef });
|
|
65
|
-
_attachSdModalWithRef(modalRef, { component: el,
|
|
65
|
+
_attachSdModalWithRef(modalRef, { component: el, persistent });
|
|
66
66
|
modalRef.onDismissed(() => {
|
|
67
67
|
render(null, host);
|
|
68
68
|
});
|
package/lib/components.ts
CHANGED
|
@@ -11,6 +11,8 @@ import type { JSX } from '@sellmate/design-system';
|
|
|
11
11
|
export const SdActionModal: StencilVueComponent<JSX.SdActionModal> = /*@__PURE__*/ defineContainer<JSX.SdActionModal>('sd-action-modal', undefined, [
|
|
12
12
|
'modalTitle',
|
|
13
13
|
'buttonProps',
|
|
14
|
+
'width',
|
|
15
|
+
'height',
|
|
14
16
|
'sdClose',
|
|
15
17
|
'sdOk'
|
|
16
18
|
], [
|
|
@@ -44,6 +46,7 @@ export const SdBarcodeInput: StencilVueComponent<JSX.SdBarcodeInput, JSX.SdBarco
|
|
|
44
46
|
'focused',
|
|
45
47
|
'hovered',
|
|
46
48
|
'label',
|
|
49
|
+
'labelWidth',
|
|
47
50
|
'icon',
|
|
48
51
|
'labelTooltip',
|
|
49
52
|
'labelTooltipProps',
|
|
@@ -179,6 +182,7 @@ export const SdDatePicker: StencilVueComponent<JSX.SdDatePicker, JSX.SdDatePicke
|
|
|
179
182
|
'disabled',
|
|
180
183
|
'width',
|
|
181
184
|
'label',
|
|
185
|
+
'labelWidth',
|
|
182
186
|
'addonLabel',
|
|
183
187
|
'hint',
|
|
184
188
|
'errorMessage',
|
|
@@ -228,6 +232,7 @@ export const SdDateRangePicker: StencilVueComponent<JSX.SdDateRangePicker, JSX.S
|
|
|
228
232
|
'disabled',
|
|
229
233
|
'width',
|
|
230
234
|
'label',
|
|
235
|
+
'labelWidth',
|
|
231
236
|
'addonLabel',
|
|
232
237
|
'hint',
|
|
233
238
|
'errorMessage',
|
|
@@ -284,6 +289,7 @@ export const SdField: StencilVueComponent<JSX.SdField> = /*@__PURE__*/ defineCon
|
|
|
284
289
|
'width',
|
|
285
290
|
'size',
|
|
286
291
|
'label',
|
|
292
|
+
'labelWidth',
|
|
287
293
|
'addonLabel',
|
|
288
294
|
'icon',
|
|
289
295
|
'labelTooltip',
|
|
@@ -303,6 +309,7 @@ export const SdFilePicker: StencilVueComponent<JSX.SdFilePicker, JSX.SdFilePicke
|
|
|
303
309
|
'maxFiles',
|
|
304
310
|
'name',
|
|
305
311
|
'label',
|
|
312
|
+
'labelWidth',
|
|
306
313
|
'addonLabel',
|
|
307
314
|
'hint',
|
|
308
315
|
'errorMessage',
|
|
@@ -405,6 +412,7 @@ export const SdInput: StencilVueComponent<JSX.SdInput, JSX.SdInput["value"]> = /
|
|
|
405
412
|
'focused',
|
|
406
413
|
'hovered',
|
|
407
414
|
'label',
|
|
415
|
+
'labelWidth',
|
|
408
416
|
'icon',
|
|
409
417
|
'labelTooltip',
|
|
410
418
|
'labelTooltipProps',
|
|
@@ -447,6 +455,7 @@ export const SdNumberInput: StencilVueComponent<JSX.SdNumberInput, JSX.SdNumberI
|
|
|
447
455
|
'useDecimal',
|
|
448
456
|
'value',
|
|
449
457
|
'label',
|
|
458
|
+
'labelWidth',
|
|
450
459
|
'addonLabel',
|
|
451
460
|
'placeholder',
|
|
452
461
|
'disabled',
|
|
@@ -577,6 +586,7 @@ export const SdSelect: StencilVueComponent<JSX.SdSelect, JSX.SdSelect["value"]>
|
|
|
577
586
|
'clearable',
|
|
578
587
|
'searchable',
|
|
579
588
|
'label',
|
|
589
|
+
'labelWidth',
|
|
580
590
|
'addonLabel',
|
|
581
591
|
'icon',
|
|
582
592
|
'labelTooltip',
|
|
@@ -625,6 +635,7 @@ export const SdSelectGroup: StencilVueComponent<JSX.SdSelectGroup> = /*@__PURE__
|
|
|
625
635
|
'clearable',
|
|
626
636
|
'searchable',
|
|
627
637
|
'label',
|
|
638
|
+
'labelWidth',
|
|
628
639
|
'addonLabel',
|
|
629
640
|
'icon',
|
|
630
641
|
'labelTooltip',
|
|
@@ -659,6 +670,7 @@ export const SdSelectMultiple: StencilVueComponent<JSX.SdSelectMultiple, JSX.SdS
|
|
|
659
670
|
'useAll',
|
|
660
671
|
'useCheckbox',
|
|
661
672
|
'label',
|
|
673
|
+
'labelWidth',
|
|
662
674
|
'icon',
|
|
663
675
|
'labelTooltip',
|
|
664
676
|
'labelTooltipProps',
|
|
@@ -689,6 +701,7 @@ export const SdSelectMultipleGroup: StencilVueComponent<JSX.SdSelectMultipleGrou
|
|
|
689
701
|
'allCheckedLabel',
|
|
690
702
|
'allCheckOptionLabel',
|
|
691
703
|
'label',
|
|
704
|
+
'labelWidth',
|
|
692
705
|
'icon',
|
|
693
706
|
'labelTooltip',
|
|
694
707
|
'labelTooltipProps',
|
|
@@ -759,6 +772,7 @@ export const SdSelectV2: StencilVueComponent<JSX.SdSelectV2, JSX.SdSelectV2["val
|
|
|
759
772
|
'dropdownHeight',
|
|
760
773
|
'disabled',
|
|
761
774
|
'label',
|
|
775
|
+
'labelWidth',
|
|
762
776
|
'addonLabel',
|
|
763
777
|
'error',
|
|
764
778
|
'hint',
|
|
@@ -934,6 +948,7 @@ export const SdTextarea: StencilVueComponent<JSX.SdTextarea, JSX.SdTextarea["val
|
|
|
934
948
|
'spellcheck',
|
|
935
949
|
'width',
|
|
936
950
|
'label',
|
|
951
|
+
'labelWidth',
|
|
937
952
|
'addonLabel',
|
|
938
953
|
'hint',
|
|
939
954
|
'errorMessage',
|
package/lib/sdModal.ts
CHANGED
|
@@ -37,7 +37,7 @@ let capturedContext: AppContext | null = null;
|
|
|
37
37
|
* 이 경우 `componentProps` 는 무시됩니다.
|
|
38
38
|
* - `component` 에 Vue 컴포넌트를 넘기면 `componentProps` 로 props 를 지정해
|
|
39
39
|
* 메인 앱 컨텍스트 안에서 렌더한 뒤 core 로 위임합니다.
|
|
40
|
-
* - `
|
|
40
|
+
* - `persistent` 는 core 옵션을 그대로 전달합니다.
|
|
41
41
|
*/
|
|
42
42
|
export interface SdModalCreateOption
|
|
43
43
|
extends Omit<CoreSdModalCreateOption, 'component'> {
|
|
@@ -80,7 +80,7 @@ function mountVueComponent(
|
|
|
80
80
|
* Vue-aware `sdModal`.
|
|
81
81
|
*
|
|
82
82
|
* - `sdModal.confirm(options)` — core 와 동일
|
|
83
|
-
* - `sdModal.create({ component, componentProps?,
|
|
83
|
+
* - `sdModal.create({ component, componentProps?, persistent? })` —
|
|
84
84
|
* `component` 가 HTMLElement 면 core 로 위임, Vue 컴포넌트면 메인 앱
|
|
85
85
|
* 컨텍스트 안에서 렌더한 뒤 위임합니다. 모달이 닫히면 자동으로 언마운트됩니다.
|
|
86
86
|
*
|
|
@@ -102,17 +102,17 @@ export const sdModal = {
|
|
|
102
102
|
},
|
|
103
103
|
|
|
104
104
|
create(input: SdModalCreateOption): ModalDialogRef {
|
|
105
|
-
const { component, componentProps = {},
|
|
105
|
+
const { component, componentProps = {}, persistent } = input;
|
|
106
106
|
|
|
107
107
|
// HTMLElement 오버로드: core 로 바로 위임
|
|
108
108
|
if (isHTMLElement(component)) {
|
|
109
|
-
return coreSdModal.create({ component,
|
|
109
|
+
return coreSdModal.create({ component, persistent });
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// Vue 컴포넌트 오버로드 — modalRef 를 먼저 만들어 props 에 주입한 뒤 mount
|
|
113
113
|
const modalRef = _createSdModalRef();
|
|
114
114
|
const { el, host } = mountVueComponent(component, { ...componentProps, modalRef });
|
|
115
|
-
_attachSdModalWithRef(modalRef, { component: el,
|
|
115
|
+
_attachSdModalWithRef(modalRef, { component: el, persistent });
|
|
116
116
|
modalRef.onDismissed(() => {
|
|
117
117
|
render(null, host);
|
|
118
118
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellmate/design-system-vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.65",
|
|
4
4
|
"description": "Design System - Vue Component Wrappers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"vue": "^3.4.38"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@sellmate/design-system": "^1.0.
|
|
48
|
+
"@sellmate/design-system": "^1.0.65",
|
|
49
49
|
"@stencil/vue-output-target": "^0.11.8"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|