@sellmate/design-system 1.0.38 → 1.0.39
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/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-button_20.cjs.entry.js +143 -35
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +4 -15
- package/dist/cjs/sd-file-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-group.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-v2-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select-v2-listbox_2.cjs.entry.js +5 -10
- package/dist/cjs/sd-select-v2.cjs.entry.js +19 -8
- package/dist/cjs/{sd-select-v2.config-DedHbMz4.js → sd-select-v2.config-DZrPJ6OS.js} +0 -14
- package/dist/cjs/system-lN7yOMPF.js +20 -0
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +8 -7
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +3 -3
- package/dist/collection/components/sd-field/sd-field.css +12 -15
- package/dist/collection/components/sd-field/sd-field.js +26 -13
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +3 -3
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.config.js +34 -0
- package/dist/collection/components/sd-input/sd-input.css +16 -6
- package/dist/collection/components/sd-input/sd-input.js +61 -36
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-notice-modal/sd-notice-modal.js +2 -2
- package/dist/collection/components/sd-number-input/sd-number-input.js +11 -11
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
- package/dist/collection/components/sd-select/sd-select.js +8 -8
- package/dist/collection/components/sd-select-group/sd-select-group.js +8 -8
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +3 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +1 -1
- package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.css +0 -12
- package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +2 -27
- package/dist/collection/components/sd-select-v2/sd-select-v2.config.js +0 -8
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +21 -16
- package/dist/components/{p-eZ82xLZt.js → p-0gO8WB9o.js} +1 -1
- package/dist/components/p-5UN9Ry8A.js +1 -0
- package/dist/components/{p-iusjOpcc.js → p-9EyS2_Bp.js} +1 -1
- package/dist/components/p-BH_WRHMs.js +1 -0
- package/dist/components/{p-C_3U90D_.js → p-BL0JF-Wh.js} +1 -1
- package/dist/components/{p-BAghib4O.js → p-BMpVqedy.js} +1 -1
- package/dist/components/{p-DQhPxH3o.js → p-C7G_tiJw.js} +1 -1
- package/dist/components/{p-Di17TAvI.js → p-CBmWor54.js} +1 -1
- package/dist/components/p-CCGsaeed.js +1 -0
- package/dist/components/{p-B0wG418y.js → p-CGU_sdK0.js} +1 -1
- package/dist/components/p-CIwsurLw.js +1 -0
- package/dist/components/p-CS6ohqwt.js +1 -0
- package/dist/components/{p-CQfrNtCG.js → p-Cefcggep.js} +1 -1
- package/dist/components/{p-CKi7RueC.js → p-Cm4BQbyn.js} +1 -1
- package/dist/components/{p-DjOSobI6.js → p-CnGJ-zsX.js} +1 -1
- package/dist/components/{p-BcrOYmsG.js → p-CsS4T0El.js} +1 -1
- package/dist/components/{p-Dpi-ww3O.js → p-DBCQtIY4.js} +1 -1
- package/dist/components/{p-BHLuiIDM.js → p-DS5oSTUS.js} +1 -1
- package/dist/components/{p-BiCK6R-J.js → p-Dzg317Va.js} +1 -1
- package/dist/components/p-Trj68Yo5.js +1 -0
- package/dist/components/p-_Zc2887O.js +1 -0
- package/dist/components/{p-CNUx4rbY.js → p-cWdYmHLY.js} +1 -1
- package/dist/components/{p-BzS0YntY.js → p-dvfewOFM.js} +1 -1
- package/dist/components/{p-BCPAPvp8.js → p-l5p-E_Gh.js} +1 -1
- package/dist/components/{p-D23gFKrT.js → p-nLkkdmKA.js} +1 -1
- package/dist/components/{p-DNyoL0F-.js → p-vMfU_F7J.js} +1 -1
- package/dist/components/sd-button-v2.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-loading-spinner.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-notice-modal.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-progress.js +1 -1
- package/dist/components/sd-select-dropdown.js +1 -1
- package/dist/components/sd-select-group.js +1 -1
- package/dist/components/sd-select-multiple-group.js +1 -1
- package/dist/components/sd-select-multiple.js +1 -1
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select-search-input.js +1 -1
- package/dist/components/sd-select-v2-list-item-search.js +1 -1
- package/dist/components/sd-select-v2-list-item.js +1 -1
- package/dist/components/sd-select-v2-listbox.js +1 -1
- package/dist/components/sd-select-v2-trigger.js +1 -1
- package/dist/components/sd-select-v2.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-9933475e.entry.js → p-0fdca641.entry.js} +1 -1
- package/dist/design-system/{p-29a60707.entry.js → p-10945e57.entry.js} +1 -1
- package/dist/design-system/{p-f5460c6e.entry.js → p-1e975178.entry.js} +1 -1
- package/dist/design-system/{p-1b80635f.entry.js → p-2408d1ab.entry.js} +1 -1
- package/dist/design-system/p-342f48ab.entry.js +1 -0
- package/dist/design-system/p-36ba5f33.entry.js +1 -0
- package/dist/design-system/{p-72b09ede.entry.js → p-4731457c.entry.js} +1 -1
- package/dist/design-system/{p-c7c66261.entry.js → p-63f997d7.entry.js} +1 -1
- package/dist/design-system/p-9c6fea35.entry.js +1 -0
- package/dist/design-system/{p-812d7c00.entry.js → p-9d431ea6.entry.js} +1 -1
- package/dist/design-system/p-BOmBg3kj.js +1 -0
- package/dist/design-system/p-CS6ohqwt.js +1 -0
- package/dist/design-system/{p-f7203145.entry.js → p-b71d0858.entry.js} +1 -1
- package/dist/design-system/p-e96c881f.entry.js +1 -0
- package/dist/design-system/p-f87b6a45.entry.js +1 -0
- package/dist/design-system/p-f9075737.entry.js +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-button_20.entry.js +143 -35
- package/dist/esm/sd-confirm-modal_2.entry.js +6 -6
- package/dist/esm/sd-date-picker.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +1 -12
- package/dist/esm/sd-file-picker.entry.js +3 -3
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-select-group.entry.js +2 -2
- package/dist/esm/sd-select-multiple.entry.js +1 -1
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/esm/sd-select-v2-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select-v2-listbox_2.entry.js +5 -10
- package/dist/esm/{sd-select-v2.config-BXY0UBNx.js → sd-select-v2.config-BOmBg3kj.js} +0 -14
- package/dist/esm/sd-select-v2.entry.js +19 -8
- package/dist/esm/system-CS6ohqwt.js +18 -0
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +1 -1
- package/dist/types/components/sd-field/sd-field.d.ts +1 -1
- package/dist/types/components/sd-input/sd-input.config.d.ts +38 -0
- package/dist/types/components/sd-input/sd-input.d.ts +4 -3
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +1 -1
- package/dist/types/components/sd-select/sd-select.d.ts +1 -1
- package/dist/types/components/sd-select-group/sd-select-group.d.ts +1 -1
- package/dist/types/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.d.ts +0 -1
- package/dist/types/components/sd-select-v2/sd-select-v2.config.d.ts +0 -8
- package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +2 -2
- package/dist/types/components.d.ts +73 -68
- package/hydrate/index.js +208 -105
- package/hydrate/index.mjs +208 -105
- package/package.json +1 -1
- package/dist/components/p-BzUx5X3N.js +0 -1
- package/dist/components/p-CC6lx8di.js +0 -1
- package/dist/components/p-CXKpL2GZ.js +0 -1
- package/dist/components/p-CyJZik9T.js +0 -1
- package/dist/components/p-DASdfaPf.js +0 -1
- package/dist/components/p-DyFykTJN.js +0 -1
- package/dist/design-system/p-26fc1fc0.entry.js +0 -1
- package/dist/design-system/p-87a783a7.entry.js +0 -1
- package/dist/design-system/p-BXY0UBNx.js +0 -1
- package/dist/design-system/p-c549e2c0.entry.js +0 -1
- package/dist/design-system/p-cc837ebf.entry.js +0 -1
- package/dist/design-system/p-e641f41f.entry.js +0 -1
- package/dist/design-system/p-e8fbedcd.entry.js +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import inputTokens from "../../tokens/generated/component.textinput.json";
|
|
2
|
+
import systemTokens from "../../tokens/generated/system.json";
|
|
3
|
+
const sm = inputTokens.input.sm;
|
|
4
|
+
const md = inputTokens.input.md;
|
|
5
|
+
export const INPUT_SIZE_MAP = {
|
|
6
|
+
sm: {
|
|
7
|
+
height: sm.height,
|
|
8
|
+
paddingX: sm.paddingX,
|
|
9
|
+
gap: sm.gap,
|
|
10
|
+
radius: sm.radius,
|
|
11
|
+
fontSize: sm.typography.fontSize,
|
|
12
|
+
lineHeight: sm.typography.lineHeight,
|
|
13
|
+
fontWeight: sm.typography.fontWeight,
|
|
14
|
+
},
|
|
15
|
+
md: {
|
|
16
|
+
height: md.height,
|
|
17
|
+
paddingX: md.paddingX,
|
|
18
|
+
gap: md.gap,
|
|
19
|
+
radius: md.radius,
|
|
20
|
+
fontSize: md.typography.fontSize,
|
|
21
|
+
lineHeight: md.typography.lineHeight,
|
|
22
|
+
fontWeight: md.typography.fontWeight,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export const INPUT_COLORS = {
|
|
26
|
+
border: inputTokens.input.border,
|
|
27
|
+
bg: inputTokens.input.bg,
|
|
28
|
+
text: inputTokens.input.text,
|
|
29
|
+
icon: inputTokens.input.icon,
|
|
30
|
+
};
|
|
31
|
+
export const INPUT_ICON = {
|
|
32
|
+
frameSize: Number(inputTokens.input.size.icon),
|
|
33
|
+
iconSize: Number(systemTokens.size.field.icon),
|
|
34
|
+
};
|
|
@@ -153,10 +153,12 @@ sd-input .sd-input__content {
|
|
|
153
153
|
display: flex;
|
|
154
154
|
flex-flow: row nowrap;
|
|
155
155
|
align-items: center;
|
|
156
|
-
color:
|
|
157
|
-
font-size:
|
|
158
|
-
line-height:
|
|
159
|
-
|
|
156
|
+
color: var(--sd-input-text-color);
|
|
157
|
+
font-size: var(--sd-input-font-size);
|
|
158
|
+
line-height: var(--sd-input-line-height);
|
|
159
|
+
font-weight: var(--sd-input-font-weight);
|
|
160
|
+
padding: 0 var(--sd-input-padding-x);
|
|
161
|
+
gap: var(--sd-input-gap);
|
|
160
162
|
}
|
|
161
163
|
sd-input .sd-input__content .sd-input__native {
|
|
162
164
|
width: 100%;
|
|
@@ -164,11 +166,19 @@ sd-input .sd-input__content .sd-input__native {
|
|
|
164
166
|
border: none;
|
|
165
167
|
outline: none;
|
|
166
168
|
background: transparent;
|
|
169
|
+
font-size: inherit;
|
|
170
|
+
line-height: inherit;
|
|
171
|
+
font-weight: inherit;
|
|
172
|
+
color: inherit;
|
|
167
173
|
}
|
|
168
174
|
sd-input .sd-input__content .sd-input__native[disabled] {
|
|
169
175
|
cursor: not-allowed;
|
|
170
|
-
color:
|
|
176
|
+
color: var(--sd-input-disabled-color);
|
|
171
177
|
}
|
|
172
178
|
sd-input .sd-input__content .sd-input__native::placeholder {
|
|
173
|
-
color:
|
|
179
|
+
color: var(--sd-input-placeholder-color);
|
|
180
|
+
}
|
|
181
|
+
sd-input .sd-input__content .sd-input__clear-icon {
|
|
182
|
+
flex-shrink: 0;
|
|
183
|
+
cursor: pointer;
|
|
174
184
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
2
|
import { nanoid } from "nanoid/non-secure";
|
|
3
|
+
import { INPUT_SIZE_MAP, INPUT_COLORS, INPUT_ICON } from "./sd-input.config";
|
|
3
4
|
export class SdInput {
|
|
4
5
|
host;
|
|
5
6
|
value = null;
|
|
6
|
-
// @Prop() name?: string;
|
|
7
7
|
type = 'text';
|
|
8
|
-
|
|
8
|
+
size = 'sm';
|
|
9
|
+
addonLabel = '';
|
|
9
10
|
placeholder = '입력해 주세요.';
|
|
10
11
|
disabled = false;
|
|
11
12
|
clearable = false;
|
|
12
|
-
width;
|
|
13
|
-
barcode = false;
|
|
13
|
+
width = '100%';
|
|
14
14
|
rules = [];
|
|
15
15
|
autoFocus = false;
|
|
16
16
|
status;
|
|
@@ -85,7 +85,24 @@ export class SdInput {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
render() {
|
|
88
|
-
|
|
88
|
+
const sizeTokens = INPUT_SIZE_MAP[this.size] ?? INPUT_SIZE_MAP.sm;
|
|
89
|
+
const resolvedWidth = /^\d+$/.test(this.width) ? `${this.width}px` : this.width;
|
|
90
|
+
const cssVars = {
|
|
91
|
+
// sd-input 자체 토큰
|
|
92
|
+
'--sd-input-font-size': `${sizeTokens.fontSize}px`,
|
|
93
|
+
'--sd-input-line-height': `${sizeTokens.lineHeight}px`,
|
|
94
|
+
'--sd-input-font-weight': sizeTokens.fontWeight,
|
|
95
|
+
'--sd-input-padding-x': `${sizeTokens.paddingX}px`,
|
|
96
|
+
'--sd-input-gap': `${sizeTokens.gap}px`,
|
|
97
|
+
'--sd-input-text-color': INPUT_COLORS.text.default,
|
|
98
|
+
'--sd-input-placeholder-color': INPUT_COLORS.text.placeholder,
|
|
99
|
+
'--sd-input-disabled-color': INPUT_COLORS.text.disabled,
|
|
100
|
+
'--sd-input-icon-color': INPUT_COLORS.icon.default,
|
|
101
|
+
// sd-field 시스템 변수 override (size별 높이/반경)
|
|
102
|
+
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
103
|
+
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
104
|
+
};
|
|
105
|
+
return (h("sd-field", { key: '3b559e592e3bcc57072eda7b081f6dc42f34813c', name: this.name, label: this.label, addonLabel: this.addonLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: { width: resolvedWidth, ...cssVars } }, h("label", { key: '6da8d8636353f3287c45c85ac75ac0a6202296e9', class: "sd-input__content" }, h("slot", { key: '065e5cb193ba2e3e91380ffd32d9c84854540fe2', name: "prefix" }), h("input", { key: 'c549470eb09eee2605871495f53a271d9978811e', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: 'd3259163d6aa2eef4346afa5f26c4d4ba722bf40', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: 'eaec3486b16a2b19e98e1c0629d8ca8dd284e8e7', name: "close", color: INPUT_COLORS.icon.default, size: INPUT_ICON.iconSize, class: "sd-input__clear-icon", onClick: async () => {
|
|
89
106
|
this.internalValue = '';
|
|
90
107
|
await this.formField?.sdValidate();
|
|
91
108
|
} })))));
|
|
@@ -143,13 +160,20 @@ export class SdInput {
|
|
|
143
160
|
"attribute": "type",
|
|
144
161
|
"defaultValue": "'text'"
|
|
145
162
|
},
|
|
146
|
-
"
|
|
147
|
-
"type": "
|
|
163
|
+
"size": {
|
|
164
|
+
"type": "string",
|
|
148
165
|
"mutable": false,
|
|
149
166
|
"complexType": {
|
|
150
|
-
"original": "
|
|
151
|
-
"resolved": "
|
|
152
|
-
"references": {
|
|
167
|
+
"original": "InputSize",
|
|
168
|
+
"resolved": "\"md\" | \"sm\"",
|
|
169
|
+
"references": {
|
|
170
|
+
"InputSize": {
|
|
171
|
+
"location": "import",
|
|
172
|
+
"path": "./sd-input.config",
|
|
173
|
+
"id": "src/components/sd-input/sd-input.config.ts::InputSize",
|
|
174
|
+
"referenceLocation": "InputSize"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
153
177
|
},
|
|
154
178
|
"required": false,
|
|
155
179
|
"optional": false,
|
|
@@ -160,10 +184,10 @@ export class SdInput {
|
|
|
160
184
|
"getter": false,
|
|
161
185
|
"setter": false,
|
|
162
186
|
"reflect": false,
|
|
163
|
-
"attribute": "
|
|
164
|
-
"defaultValue": "
|
|
187
|
+
"attribute": "size",
|
|
188
|
+
"defaultValue": "'sm'"
|
|
165
189
|
},
|
|
166
|
-
"
|
|
190
|
+
"addonLabel": {
|
|
167
191
|
"type": "string",
|
|
168
192
|
"mutable": false,
|
|
169
193
|
"complexType": {
|
|
@@ -180,15 +204,15 @@ export class SdInput {
|
|
|
180
204
|
"getter": false,
|
|
181
205
|
"setter": false,
|
|
182
206
|
"reflect": false,
|
|
183
|
-
"attribute": "
|
|
184
|
-
"defaultValue": "'
|
|
207
|
+
"attribute": "addon-label",
|
|
208
|
+
"defaultValue": "''"
|
|
185
209
|
},
|
|
186
|
-
"
|
|
187
|
-
"type": "
|
|
210
|
+
"placeholder": {
|
|
211
|
+
"type": "string",
|
|
188
212
|
"mutable": false,
|
|
189
213
|
"complexType": {
|
|
190
|
-
"original": "
|
|
191
|
-
"resolved": "
|
|
214
|
+
"original": "string",
|
|
215
|
+
"resolved": "string",
|
|
192
216
|
"references": {}
|
|
193
217
|
},
|
|
194
218
|
"required": false,
|
|
@@ -200,10 +224,10 @@ export class SdInput {
|
|
|
200
224
|
"getter": false,
|
|
201
225
|
"setter": false,
|
|
202
226
|
"reflect": false,
|
|
203
|
-
"attribute": "
|
|
204
|
-
"defaultValue": "
|
|
227
|
+
"attribute": "placeholder",
|
|
228
|
+
"defaultValue": "'\uC785\uB825\uD574 \uC8FC\uC138\uC694.'"
|
|
205
229
|
},
|
|
206
|
-
"
|
|
230
|
+
"disabled": {
|
|
207
231
|
"type": "boolean",
|
|
208
232
|
"mutable": false,
|
|
209
233
|
"complexType": {
|
|
@@ -220,19 +244,19 @@ export class SdInput {
|
|
|
220
244
|
"getter": false,
|
|
221
245
|
"setter": false,
|
|
222
246
|
"reflect": false,
|
|
223
|
-
"attribute": "
|
|
247
|
+
"attribute": "disabled",
|
|
224
248
|
"defaultValue": "false"
|
|
225
249
|
},
|
|
226
|
-
"
|
|
227
|
-
"type": "
|
|
250
|
+
"clearable": {
|
|
251
|
+
"type": "boolean",
|
|
228
252
|
"mutable": false,
|
|
229
253
|
"complexType": {
|
|
230
|
-
"original": "
|
|
231
|
-
"resolved": "
|
|
254
|
+
"original": "boolean",
|
|
255
|
+
"resolved": "boolean",
|
|
232
256
|
"references": {}
|
|
233
257
|
},
|
|
234
258
|
"required": false,
|
|
235
|
-
"optional":
|
|
259
|
+
"optional": false,
|
|
236
260
|
"docs": {
|
|
237
261
|
"tags": [],
|
|
238
262
|
"text": ""
|
|
@@ -240,18 +264,19 @@ export class SdInput {
|
|
|
240
264
|
"getter": false,
|
|
241
265
|
"setter": false,
|
|
242
266
|
"reflect": false,
|
|
243
|
-
"attribute": "
|
|
267
|
+
"attribute": "clearable",
|
|
268
|
+
"defaultValue": "false"
|
|
244
269
|
},
|
|
245
|
-
"
|
|
246
|
-
"type": "
|
|
270
|
+
"width": {
|
|
271
|
+
"type": "string",
|
|
247
272
|
"mutable": false,
|
|
248
273
|
"complexType": {
|
|
249
|
-
"original": "
|
|
250
|
-
"resolved": "
|
|
274
|
+
"original": "string",
|
|
275
|
+
"resolved": "string",
|
|
251
276
|
"references": {}
|
|
252
277
|
},
|
|
253
278
|
"required": false,
|
|
254
|
-
"optional":
|
|
279
|
+
"optional": false,
|
|
255
280
|
"docs": {
|
|
256
281
|
"tags": [],
|
|
257
282
|
"text": ""
|
|
@@ -259,8 +284,8 @@ export class SdInput {
|
|
|
259
284
|
"getter": false,
|
|
260
285
|
"setter": false,
|
|
261
286
|
"reflect": false,
|
|
262
|
-
"attribute": "
|
|
263
|
-
"defaultValue": "
|
|
287
|
+
"attribute": "width",
|
|
288
|
+
"defaultValue": "'100%'"
|
|
264
289
|
},
|
|
265
290
|
"rules": {
|
|
266
291
|
"type": "unknown",
|
|
@@ -6,7 +6,7 @@ export class SdLoadingSpinner {
|
|
|
6
6
|
return resolveColor(this.color);
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Fragment, { key: '
|
|
9
|
+
return (h(Fragment, { key: '463ab22264fafc013af7a602066eb8ebed10ac05' }, h("svg", { key: '6b90c0c3448c309813038fb8281b4ed73b1145d3', class: "sd-loading-spinner", width: "72px", height: "72px", viewBox: "25 25 50 50", style: { color: this.resolvedColor } }, h("circle", { key: 'aa553d712b98c3316c98b7e52b955b7185eaee20', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "sd-loading-spinner"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -59,9 +59,9 @@ export class SdNoticeModal {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h("div", { key: '
|
|
62
|
+
return (h("div", { key: 'bdabd03353df6668e77ea29477e79586b9ee18ad', class: "sd-notice-modal" }, h("sd-icon", { key: '2369161b7a25a72da40235f32f6cc006c8b060bd', class: "sd-notice-modal__close-button", name: "close", size: CLOSE_ICON_SIZE, color: CLOSE_ICON_COLOR, onClick: () => this.close.emit() }), h("h2", { key: '9a8b1c37f874b5299911ae5f081f692cd2bce470', class: `sd-notice-modal__title ${this.titleClass}` }, this.modalTitle), h("div", { key: 'c44382d6484301d3ed4081cda456628bad387f53', class: "sd-notice-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: '81ff93a305aeb3e1fac90362e0a5158355b96d88', class: "sd-notice-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-notice-modal__message-text", innerHTML: msg }))))), this.showContentBox && (h("div", { key: '5d3131ed1aba498fdadf4b035df9c1b178dd1b36', class: "sd-notice-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-notice-modal__custom-content", ref: el => {
|
|
63
63
|
this.customContentRef = el;
|
|
64
|
-
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.hasTagContent && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && h("span", { class: "sd-notice-modal__slot-label" }, this.slotLabel))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '
|
|
64
|
+
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.hasTagContent && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && h("span", { class: "sd-notice-modal__slot-label" }, this.slotLabel))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '0c9e040dbcdb0873f6a4e1606ef0fa9729340860', class: "sd-notice-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-notice-modal__message-text", innerHTML: msg })))))), h("div", { key: '7fe0737620fd3583300a62eb5b55704147a7511e', class: "sd-notice-modal__button" }, this.subButtonLabel && (h("sd-button-v2", { key: '70f0d98a14eb0184ac08cd16aa0676e848fa035d', name: NOTICE_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.close.emit() })), h("sd-button-v2", { key: '54554ce5c26fa59924db03728628cca8538de081', name: NOTICE_BUTTON_PRESET, label: this.mainButtonLabel, onSdClick: () => this.confirm.emit() }))));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "sd-notice-modal"; }
|
|
67
67
|
static get originalStyleUrls() {
|
|
@@ -9,7 +9,7 @@ export class SdNumberInput {
|
|
|
9
9
|
useDecimal = false;
|
|
10
10
|
value = null;
|
|
11
11
|
label;
|
|
12
|
-
|
|
12
|
+
addonLabel = '';
|
|
13
13
|
placeholder = '입력해 주세요.';
|
|
14
14
|
disabled = false;
|
|
15
15
|
width;
|
|
@@ -240,17 +240,17 @@ export class SdNumberInput {
|
|
|
240
240
|
const inputStyles = {
|
|
241
241
|
textAlign: this.useButton ? 'center' : 'right',
|
|
242
242
|
};
|
|
243
|
-
return (h("sd-field", { key: '
|
|
243
|
+
return (h("sd-field", { key: '6e530f1a553adc3dfcf244f9d5119c4c3585105e', name: this.name, label: this.label, addonLabel: this.addonLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, ref: el => (this.formField = el), style: inputWidth }, h("label", { key: 'b3c548af3db1c15ef53d4dd1e171a5ba39b638f6', class: {
|
|
244
244
|
'sd-number-input': true,
|
|
245
245
|
[this.getInputStatus()]: true,
|
|
246
246
|
'sd-number-input--with-buttons': this.useButton,
|
|
247
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: '
|
|
247
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: '0857278d2ef0c288bedd90adcea519bdc894417a', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__input ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, style: inputStyles, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.useButton && (h("div", { key: '5b58e8dcfb83db649aedb13faf556c9e6e5b5bb6', class: "sd-number-input__buttons" }, h("button", { key: '8cdd4eccb323e1e3974e5de0c99e5a622a36c41e', type: "button", class: {
|
|
248
248
|
'sd-number-input__button': true,
|
|
249
249
|
'sd-number-input__button--decrement': true,
|
|
250
|
-
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '
|
|
250
|
+
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '0d6d37ebbd7548484e6cf51a2dce962e52e74042', name: "minus", size: 12, color: this.isDecrementDisabled() ? 'grey_45' : 'brilliantblue_70' })), h("button", { key: '0da4636adfbd8918a5180d1f5abbc97d16664271', type: "button", class: {
|
|
251
251
|
'sd-number-input__button': true,
|
|
252
252
|
'sd-number-input__button--increment': true,
|
|
253
|
-
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '
|
|
253
|
+
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '16d62c22bcbfed3a7098780784b58376700f9a5b', name: "add", size: 12, color: this.isIncrementDisabled() ? 'grey_45' : 'brilliantblue_70' })))))));
|
|
254
254
|
}
|
|
255
255
|
static get is() { return "sd-number-input"; }
|
|
256
256
|
static get originalStyleUrls() {
|
|
@@ -404,12 +404,12 @@ export class SdNumberInput {
|
|
|
404
404
|
"reflect": false,
|
|
405
405
|
"attribute": "label"
|
|
406
406
|
},
|
|
407
|
-
"
|
|
408
|
-
"type": "
|
|
407
|
+
"addonLabel": {
|
|
408
|
+
"type": "string",
|
|
409
409
|
"mutable": false,
|
|
410
410
|
"complexType": {
|
|
411
|
-
"original": "
|
|
412
|
-
"resolved": "
|
|
411
|
+
"original": "string",
|
|
412
|
+
"resolved": "string",
|
|
413
413
|
"references": {}
|
|
414
414
|
},
|
|
415
415
|
"required": false,
|
|
@@ -421,8 +421,8 @@ export class SdNumberInput {
|
|
|
421
421
|
"getter": false,
|
|
422
422
|
"setter": false,
|
|
423
423
|
"reflect": false,
|
|
424
|
-
"attribute": "
|
|
425
|
-
"defaultValue": "
|
|
424
|
+
"attribute": "addon-label",
|
|
425
|
+
"defaultValue": "''"
|
|
426
426
|
},
|
|
427
427
|
"placeholder": {
|
|
428
428
|
"type": "string",
|
|
@@ -68,12 +68,12 @@ export class SdPagination {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return (h("div", { key: '
|
|
71
|
+
return (h("div", { key: '403af836a1c920164401029eb1e52339ddd4b69e', class: this.paginationClasses }, h("div", { key: '5b899b37cabe16ccef734f45a3ca8752b7f37b08', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
72
72
|
'pagination-btn': true,
|
|
73
73
|
'pagination-btn--selected': this.currentPage === n,
|
|
74
74
|
}, disabled: this.currentPage === n, style: {
|
|
75
75
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
76
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
76
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '58e0c871da394403b7504c9a8293b63703ca55f0', class: "append-btns" }, this.renderNextButtons())));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "sd-pagination"; }
|
|
79
79
|
static get originalStyleUrls() {
|
|
@@ -31,14 +31,14 @@ export class SdPopover {
|
|
|
31
31
|
this.showPopover = false;
|
|
32
32
|
};
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Fragment, { key: '
|
|
34
|
+
return (h(Fragment, { key: '205b8f574ce69afcb2abef1b0d0d6ec769230783' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onSdClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-floating-portal", { key: 'af82589e6ed773709c83a6855c37b1ac7092b9ec', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, h("div", { key: 'dfee40fa54b436a43583ebdc71830e6d590e1793', class: {
|
|
35
35
|
'sd-floating-menu': true,
|
|
36
36
|
'sd-floating-menu--popover': true,
|
|
37
37
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
38
38
|
[this.menuClass]: !!this.menuClass,
|
|
39
39
|
}, style: {
|
|
40
40
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
41
|
-
} }, h("i", { key: '
|
|
41
|
+
} }, h("i", { key: '388ac52f514ddd9247e79d20309a1de029fcd601', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '2502e1a63e3dca7e9c6d66805a9ec04e3106dd99' })), h("div", { key: 'e12b0df1dbdfe4b34de81ed231e1578bb5361afa', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: '91f068beee3338f547157db06a0eee4f5e88355d', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '1283a6209c1c062d925ae1c32ba2a4f2aa98c8fa', class: "sd-floating-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '130f5468eb8ac34bb02dce9a5a55c1fad17c8dcf', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("button", { key: '330fb79d032bac9da45afec3ccf0f2ec6e3dafba', title: "close", class: "sd-floating-menu__close-button", onClick: () => this.handleClose() }, h("sd-icon", { key: '7ba5d1e112ac776bb29253ac2cee510d36147ced', name: "close", size: popoverTokens.popover.close.icon, color: popoverTokens.popover.close.color }))))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "sd-popover"; }
|
|
44
44
|
static get originalStyleUrls() {
|
|
@@ -33,10 +33,10 @@ export class SdProgress {
|
|
|
33
33
|
return this.statusColor[this.progressStatus];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: '864f669831515b9c149ad579b6233e960eee79a9', style: {
|
|
37
37
|
'--progress-color': this.progressColor,
|
|
38
38
|
'--progress-percentage': `${this.progressPercentage}%`,
|
|
39
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '
|
|
39
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '42920cc06b249371ec7d98c07d2185d71265a538', class: "sd-progress__label" }, this.label)));
|
|
40
40
|
}
|
|
41
41
|
renderBarProgress() {
|
|
42
42
|
return (h("div", { class: `sd-progress__bar sd-progress__bar--${this.progressStatus}` }, h("div", { class: ['sd-progress__bar__percent', this.progressPercentage < 100 ? 'proceed' : ''].join(' ') }), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.progressPercentage, "%"), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.progressPercentage, "%")));
|
|
@@ -144,10 +144,10 @@ export class SdSelectDropdown {
|
|
|
144
144
|
this.isScrolled = scrollTop > 0;
|
|
145
145
|
};
|
|
146
146
|
render() {
|
|
147
|
-
return (h("div", { key: '
|
|
147
|
+
return (h("div", { key: 'aca6d4044905863975c944afb44f92df0d6f1568', class: {
|
|
148
148
|
'sd-select-dropdown': true,
|
|
149
149
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
150
|
-
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '
|
|
150
|
+
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: 'c87e4d9a391bf7b583bca1cda8930f977a1aec2c', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("slot", { name: `option-${option.value}` }, h("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (h("slot", { name: "option-placeholder" }, h("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder)))));
|
|
151
151
|
}
|
|
152
152
|
static get is() { return "sd-select-dropdown"; }
|
|
153
153
|
static get originalStyleUrls() {
|
|
@@ -24,7 +24,7 @@ export class SdSelectOption {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
render() {
|
|
27
|
-
return (h("div", { key: '
|
|
27
|
+
return (h("div", { key: 'e28519019fa39af328fe7f5a25f18bb227e4d622', class: {
|
|
28
28
|
'sd-select__option': true,
|
|
29
29
|
'sd-select__option--selected': this.isSelected,
|
|
30
30
|
'sd-select__option--disabled': !!this.option.disabled,
|
package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js
CHANGED
|
@@ -16,17 +16,17 @@ export class SdSelectSearchInput {
|
|
|
16
16
|
input?.focus({ preventScroll: true });
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: '2f4e9dfd95524f7d62f49f2cba50f14157d56fe3', class: {
|
|
20
20
|
'sd-select-search-input': true,
|
|
21
21
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
22
|
-
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: '
|
|
22
|
+
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: '509714588ae43b950ea7abc8cd045aee9007e04c', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
|
|
23
23
|
this.searchInput.emit(String(event?.detail));
|
|
24
24
|
}, onSdFocus: () => {
|
|
25
25
|
this.searchFocus.emit();
|
|
26
26
|
}, onKeyDown: event => {
|
|
27
27
|
if (event.code === 'Enter')
|
|
28
28
|
event.stopPropagation();
|
|
29
|
-
} }, h("sd-icon", { key: '
|
|
29
|
+
} }, h("sd-icon", { key: '1f13b6f332a930d7ffe515ccd4a77cf4e7e1af7f', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "sd-select-search-input"; }
|
|
32
32
|
static get originalStyleUrls() {
|
|
@@ -23,7 +23,7 @@ export class SdSelect extends BaseDropdownEvent {
|
|
|
23
23
|
searchable = false;
|
|
24
24
|
// props - label
|
|
25
25
|
label = '';
|
|
26
|
-
|
|
26
|
+
addonLabel = '';
|
|
27
27
|
icon = undefined;
|
|
28
28
|
labelTooltip = '';
|
|
29
29
|
labelTooltipProps = null;
|
|
@@ -141,7 +141,7 @@ export class SdSelect extends BaseDropdownEvent {
|
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
render() {
|
|
144
|
-
return (h("sd-field", { key: '
|
|
144
|
+
return (h("sd-field", { key: 'f7cd0c34188712a30389d07bde7edc7875e9923b', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: '460a8a23247e24a02bd25470105598914029e205', class: {
|
|
145
145
|
'sd-select': true,
|
|
146
146
|
'sd-select--disabled': this.disabled,
|
|
147
147
|
'sd-select--error': !!this.error,
|
|
@@ -400,12 +400,12 @@ export class SdSelect extends BaseDropdownEvent {
|
|
|
400
400
|
"attribute": "label",
|
|
401
401
|
"defaultValue": "''"
|
|
402
402
|
},
|
|
403
|
-
"
|
|
404
|
-
"type": "
|
|
403
|
+
"addonLabel": {
|
|
404
|
+
"type": "string",
|
|
405
405
|
"mutable": false,
|
|
406
406
|
"complexType": {
|
|
407
|
-
"original": "
|
|
408
|
-
"resolved": "
|
|
407
|
+
"original": "string",
|
|
408
|
+
"resolved": "string",
|
|
409
409
|
"references": {}
|
|
410
410
|
},
|
|
411
411
|
"required": false,
|
|
@@ -417,8 +417,8 @@ export class SdSelect extends BaseDropdownEvent {
|
|
|
417
417
|
"getter": false,
|
|
418
418
|
"setter": false,
|
|
419
419
|
"reflect": false,
|
|
420
|
-
"attribute": "
|
|
421
|
-
"defaultValue": "
|
|
420
|
+
"attribute": "addon-label",
|
|
421
|
+
"defaultValue": "''"
|
|
422
422
|
},
|
|
423
423
|
"icon": {
|
|
424
424
|
"type": "unknown",
|
|
@@ -23,7 +23,7 @@ export class SdSelectGroup extends BaseDropdownEvent {
|
|
|
23
23
|
searchable = false;
|
|
24
24
|
// props - label
|
|
25
25
|
label = '';
|
|
26
|
-
|
|
26
|
+
addonLabel = '';
|
|
27
27
|
icon = undefined;
|
|
28
28
|
labelTooltip = '';
|
|
29
29
|
labelTooltipProps = null;
|
|
@@ -270,7 +270,7 @@ export class SdSelectGroup extends BaseDropdownEvent {
|
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
render() {
|
|
273
|
-
return (h("sd-field", { key: '
|
|
273
|
+
return (h("sd-field", { key: '2ff7d25f8fd9724fead7722757f174610d7c084d', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, h("div", { key: '57d0ff569579bb56810891a8e50a89e8b82096ac', class: {
|
|
274
274
|
'sd-select-group': true,
|
|
275
275
|
'sd-select-group--open': this.isOpen,
|
|
276
276
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -543,12 +543,12 @@ export class SdSelectGroup extends BaseDropdownEvent {
|
|
|
543
543
|
"attribute": "label",
|
|
544
544
|
"defaultValue": "''"
|
|
545
545
|
},
|
|
546
|
-
"
|
|
547
|
-
"type": "
|
|
546
|
+
"addonLabel": {
|
|
547
|
+
"type": "string",
|
|
548
548
|
"mutable": false,
|
|
549
549
|
"complexType": {
|
|
550
|
-
"original": "
|
|
551
|
-
"resolved": "
|
|
550
|
+
"original": "string",
|
|
551
|
+
"resolved": "string",
|
|
552
552
|
"references": {}
|
|
553
553
|
},
|
|
554
554
|
"required": false,
|
|
@@ -560,8 +560,8 @@ export class SdSelectGroup extends BaseDropdownEvent {
|
|
|
560
560
|
"getter": false,
|
|
561
561
|
"setter": false,
|
|
562
562
|
"reflect": false,
|
|
563
|
-
"attribute": "
|
|
564
|
-
"defaultValue": "
|
|
563
|
+
"attribute": "addon-label",
|
|
564
|
+
"defaultValue": "''"
|
|
565
565
|
},
|
|
566
566
|
"icon": {
|
|
567
567
|
"type": "unknown",
|
|
@@ -150,7 +150,7 @@ export class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
150
150
|
this.handleOptionSelection(option);
|
|
151
151
|
};
|
|
152
152
|
render() {
|
|
153
|
-
return (h("sd-field", { key: '
|
|
153
|
+
return (h("sd-field", { key: '022f39a42986c29f8cab7f6801a7d2e4bbd5aaa5', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: '93e4dd74f1b0ad76429f37c5fe6a9cffb98697d5', class: {
|
|
154
154
|
'sd-select-multiple': true,
|
|
155
155
|
'sd-select-multiple--open': this.isOpen,
|
|
156
156
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -39,7 +39,7 @@ export class SdSelectOptionGroup {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '70ab9a558faf068cfc4eb0a5f6a29453ceedc6ec', class: {
|
|
43
43
|
'sd-select__option-group': true,
|
|
44
44
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
45
45
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -48,10 +48,10 @@ export class SdSelectOptionGroup {
|
|
|
48
48
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
49
49
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
50
50
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
51
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '
|
|
51
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: 'ca5dc0033231ab204a8688f98453742cdbde7d26', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: 'bba6cb9fe649f6eda82ba287f73d0142e02c53c2', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
52
52
|
e.preventDefault();
|
|
53
53
|
this.handleClick(this.option, this.isSelected, e);
|
|
54
|
-
} })), h("span", { key: '
|
|
54
|
+
} })), h("span", { key: '7d03c080b7f5b92881389bfec787015a6ac55fa1', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: '7066453f92eac7549569db6854e3dc32515d80b9', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "sd-select-option-group"; }
|
|
57
57
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js
CHANGED
|
@@ -64,7 +64,7 @@ export class SdSelectV2ListItem {
|
|
|
64
64
|
if (isDepth1Group) {
|
|
65
65
|
cssVars['--list-item-border-top'] = `${LIST_ITEM_COLORS.depth1.borderWidth}px solid ${LIST_ITEM_COLORS.depth1.border}`;
|
|
66
66
|
}
|
|
67
|
-
return (h("div", { key: '
|
|
67
|
+
return (h("div", { key: '1e828b28202b9d22cc02dff0550e37e506167f90', class: {
|
|
68
68
|
'sd-select-v2-list-item': true,
|
|
69
69
|
'sd-select-v2-list-item--group': isGroup,
|
|
70
70
|
'sd-select-v2-list-item--depth1-group': isDepth1Group,
|
|
@@ -74,7 +74,7 @@ export class SdSelectV2ListItem {
|
|
|
74
74
|
'sd-select-v2-list-item--focused': this.isFocused,
|
|
75
75
|
'sd-select-v2-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
76
76
|
'sd-select-v2-list-item--disabled': !!this.option.disabled,
|
|
77
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
77
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '7f49b89aff1a269944551664bc8a51447b5b2f7e', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, class: "sd-select-v2-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), h("span", { key: '51aad2d06ecdf11968f3f13c632081a663a3d200', class: "sd-select-v2-list-item__label" }, this.option.label), this.countInfo && (h("span", { key: '1c1f5cd51460863ce41c8980dcc65cd2bb7bfee5', class: "sd-select-v2-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "sd-select-v2-list-item"; }
|
|
80
80
|
static get originalStyleUrls() {
|