@sellmate/design-system 1.0.68 → 1.0.69
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-barcode-input.cjs.entry.js +2 -1
- package/dist/cjs/sd-button_4.cjs.entry.js +17 -5
- package/dist/cjs/sd-date-picker.cjs.entry.js +3 -2
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +3 -2
- package/dist/cjs/sd-file-picker.cjs.entry.js +2 -1
- package/dist/cjs/sd-input_2.cjs.entry.js +3 -2
- package/dist/cjs/sd-number-input.cjs.entry.js +4 -3
- package/dist/cjs/sd-pagination_2.cjs.entry.js +4 -3
- package/dist/cjs/sd-select-group.cjs.entry.js +2 -1
- package/dist/cjs/sd-select.cjs.entry.js +2 -1
- package/dist/cjs/sd-textarea.cjs.entry.js +2 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +29 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +30 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +30 -2
- package/dist/collection/components/sd-field/sd-field.config.js +5 -0
- package/dist/collection/components/sd-field/sd-field.css +4 -0
- package/dist/collection/components/sd-field/sd-field.js +39 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +29 -1
- package/dist/collection/components/sd-input/sd-input.js +30 -2
- package/dist/collection/components/sd-number-input/sd-number-input.js +31 -3
- package/dist/collection/components/sd-select/sd-select.js +29 -1
- package/dist/collection/components/sd-select-group/sd-select-group.js +29 -1
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +31 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +29 -1
- package/dist/components/{p-BPXQ6DXz.js → p-BJshZele.js} +1 -1
- package/dist/components/p-CEnwrYaY.js +1 -0
- package/dist/components/p-D99-lhhk.js +1 -0
- package/dist/components/{p-CEeNVTzW.js → p-DoSEK0_q.js} +1 -1
- package/dist/components/p-DukibDDA.js +1 -0
- package/dist/components/sd-barcode-input.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-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-number-input.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-search-input.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-textarea.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/p-06080355.entry.js +1 -0
- package/dist/design-system/p-1389a68e.entry.js +1 -0
- package/dist/design-system/p-5442b4b4.entry.js +1 -0
- package/dist/design-system/p-609b3748.entry.js +1 -0
- package/dist/design-system/p-71897864.entry.js +1 -0
- package/dist/design-system/p-731429da.entry.js +1 -0
- package/dist/design-system/p-9dd7befe.entry.js +1 -0
- package/dist/design-system/{p-ebc72b3f.entry.js → p-a7ef7465.entry.js} +1 -1
- package/dist/design-system/p-ac9f7551.entry.js +1 -0
- package/dist/design-system/p-b3d959b0.entry.js +1 -0
- package/dist/design-system/p-d668fd71.entry.js +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +2 -1
- package/dist/esm/sd-button_4.entry.js +17 -5
- package/dist/esm/sd-date-picker.entry.js +3 -2
- package/dist/esm/sd-date-range-picker.entry.js +3 -2
- package/dist/esm/sd-file-picker.entry.js +2 -1
- package/dist/esm/sd-input_2.entry.js +3 -2
- package/dist/esm/sd-number-input.entry.js +4 -3
- package/dist/esm/sd-pagination_2.entry.js +4 -3
- package/dist/esm/sd-select-group.entry.js +2 -1
- package/dist/esm/sd-select.entry.js +2 -1
- package/dist/esm/sd-textarea.entry.js +2 -1
- package/dist/types/components/sd-barcode-input/sd-barcode-input.d.ts +2 -0
- package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +2 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +2 -0
- package/dist/types/components/sd-field/sd-field.config.d.ts +2 -0
- package/dist/types/components/sd-field/sd-field.d.ts +2 -1
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +2 -0
- package/dist/types/components/sd-input/sd-input.d.ts +2 -0
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +2 -0
- package/dist/types/components/sd-select/sd-select.d.ts +2 -0
- package/dist/types/components/sd-select-group/sd-select-group.d.ts +2 -0
- package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +2 -0
- package/dist/types/components/sd-textarea/sd-textarea.d.ts +2 -0
- package/dist/types/components.d.ts +101 -2
- package/hydrate/index.js +55 -22
- package/hydrate/index.mjs +55 -22
- package/package.json +1 -1
- package/dist/components/p-DQLyH3dr.js +0 -1
- package/dist/components/p-DWW5xr6r.js +0 -1
- package/dist/components/p-N_EbEY8s.js +0 -1
- package/dist/design-system/p-07736d67.entry.js +0 -1
- package/dist/design-system/p-0c98676e.entry.js +0 -1
- package/dist/design-system/p-16eae7ae.entry.js +0 -1
- package/dist/design-system/p-23ff6bee.entry.js +0 -1
- package/dist/design-system/p-2a663b3b.entry.js +0 -1
- package/dist/design-system/p-33713805.entry.js +0 -1
- package/dist/design-system/p-6ca6dfaf.entry.js +0 -1
- package/dist/design-system/p-8281dc36.entry.js +0 -1
- package/dist/design-system/p-ca6b4d4a.entry.js +0 -1
- package/dist/design-system/p-e1b307ee.entry.js +0 -1
package/hydrate/index.js
CHANGED
|
@@ -5615,6 +5615,7 @@ class SdBarcodeInput {
|
|
|
5615
5615
|
value = null;
|
|
5616
5616
|
size = 'sm';
|
|
5617
5617
|
addonLabel = '';
|
|
5618
|
+
addonAlign = 'start';
|
|
5618
5619
|
placeholder = '입력해 주세요.';
|
|
5619
5620
|
disabled = false;
|
|
5620
5621
|
clearable = false;
|
|
@@ -5710,7 +5711,7 @@ class SdBarcodeInput {
|
|
|
5710
5711
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
5711
5712
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
5712
5713
|
};
|
|
5713
|
-
return (hAsync("sd-field", { key: '
|
|
5714
|
+
return (hAsync("sd-field", { key: '876c4e2cd41e62cd5486b7dec5ca1b34d10704b9', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("label", { key: 'e01920c2565e1f4487ccd516f864b9f68fa0cfd8', class: "sd-barcode-input__content" }, hAsync("slot", { key: 'd7be8745d6b0f510a11c88e1ca629f78fbc77348', name: "prefix" }), hAsync("input", { key: 'f214f2930fc54a0466a10ce295e46885352e0e88', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", 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 }), hAsync("slot", { key: 'a226a2c7ec43951ab9f048f8da25542784233e65', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-ghost-button", { key: 'ff7f8853b43401f3bf4be051e69d8c459ca418aa', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
5714
5715
|
if (this.disabled)
|
|
5715
5716
|
return;
|
|
5716
5717
|
this.internalValue = '';
|
|
@@ -5733,6 +5734,7 @@ class SdBarcodeInput {
|
|
|
5733
5734
|
"value": [1032],
|
|
5734
5735
|
"size": [1],
|
|
5735
5736
|
"addonLabel": [1, "addon-label"],
|
|
5737
|
+
"addonAlign": [1, "addon-align"],
|
|
5736
5738
|
"placeholder": [1],
|
|
5737
5739
|
"disabled": [4],
|
|
5738
5740
|
"clearable": [4],
|
|
@@ -7693,6 +7695,7 @@ class SdDatePicker {
|
|
|
7693
7695
|
label = '';
|
|
7694
7696
|
labelWidth = '';
|
|
7695
7697
|
addonLabel = '';
|
|
7698
|
+
addonAlign = 'start';
|
|
7696
7699
|
hint = '';
|
|
7697
7700
|
errorMessage = '';
|
|
7698
7701
|
fieldName = '';
|
|
@@ -7771,9 +7774,9 @@ class SdDatePicker {
|
|
|
7771
7774
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
7772
7775
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
7773
7776
|
};
|
|
7774
|
-
return (hAsync("sd-field", { key: '
|
|
7777
|
+
return (hAsync("sd-field", { key: '1e0bdacf53850916778544e63ce11d5aab06eafc', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: '63795f75a1b3723c2af166343dce5fd33afd5be2', class: "sd-date-picker", ref: el => {
|
|
7775
7778
|
this.triggerRef = el;
|
|
7776
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
7779
|
+
} }, hAsync("sd-date-picker-trigger", { key: 'adea2cbad36285f546d3c29b66f2c74044427736', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '4da6ec2a3644201b6579fc2e9838d03ef22b7e57', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-date-picker-calendar", { key: '4b7e3757b7232110ec9865346fcd68868ac68081', value: this.value, selectable: this.selectable, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
7777
7780
|
}
|
|
7778
7781
|
static get watchers() { return {
|
|
7779
7782
|
"isOpen": [{
|
|
@@ -7794,6 +7797,7 @@ class SdDatePicker {
|
|
|
7794
7797
|
"label": [1],
|
|
7795
7798
|
"labelWidth": [8, "label-width"],
|
|
7796
7799
|
"addonLabel": [1, "addon-label"],
|
|
7800
|
+
"addonAlign": [1, "addon-align"],
|
|
7797
7801
|
"hint": [1],
|
|
7798
7802
|
"errorMessage": [1, "error-message"],
|
|
7799
7803
|
"fieldName": [1, "field-name"],
|
|
@@ -8074,6 +8078,7 @@ class SdDateRangePicker {
|
|
|
8074
8078
|
label = '';
|
|
8075
8079
|
labelWidth = '';
|
|
8076
8080
|
addonLabel = '';
|
|
8081
|
+
addonAlign = 'start';
|
|
8077
8082
|
hint = '';
|
|
8078
8083
|
errorMessage = '';
|
|
8079
8084
|
fieldName = '';
|
|
@@ -8157,9 +8162,9 @@ class SdDateRangePicker {
|
|
|
8157
8162
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
8158
8163
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
8159
8164
|
};
|
|
8160
|
-
return (hAsync("sd-field", { key: '
|
|
8165
|
+
return (hAsync("sd-field", { key: '34c4d9ef2ba50f951fc6b6b09215e750ac61cd87', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: 'c92ab61d144c893077a9c81922ac24eff93314dd', class: "sd-date-range-picker", ref: el => {
|
|
8161
8166
|
this.triggerRef = el;
|
|
8162
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
8167
|
+
} }, hAsync("sd-date-picker-trigger", { key: '487b8a1af6e8dee063d70ffc030c314037741d74', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: 'f22c979943cebcc82e8d4d9f86037621e8c3983a', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-date-range-picker-calendar", { key: 'c19548d0074556f90c740b6ba35338ea4d41dd18', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
8163
8168
|
}
|
|
8164
8169
|
static get watchers() { return {
|
|
8165
8170
|
"isOpen": [{
|
|
@@ -8181,6 +8186,7 @@ class SdDateRangePicker {
|
|
|
8181
8186
|
"label": [1],
|
|
8182
8187
|
"labelWidth": [8, "label-width"],
|
|
8183
8188
|
"addonLabel": [1, "addon-label"],
|
|
8189
|
+
"addonAlign": [1, "addon-align"],
|
|
8184
8190
|
"hint": [1],
|
|
8185
8191
|
"errorMessage": [1, "error-message"],
|
|
8186
8192
|
"fieldName": [1, "field-name"],
|
|
@@ -8899,6 +8905,11 @@ var fieldTokens = {
|
|
|
8899
8905
|
field: field
|
|
8900
8906
|
};
|
|
8901
8907
|
|
|
8908
|
+
const FIELD_ADDON_ALIGN_MAP = {
|
|
8909
|
+
start: 'flex-start',
|
|
8910
|
+
center: 'center',
|
|
8911
|
+
end: 'flex-end',
|
|
8912
|
+
};
|
|
8902
8913
|
const sm$2 = fieldTokens.field.label.sm;
|
|
8903
8914
|
const md$2 = fieldTokens.field.label.md;
|
|
8904
8915
|
const FIELD_LABEL_SIZE_MAP = {
|
|
@@ -8920,7 +8931,7 @@ const FIELD_LABEL_SIZE_MAP = {
|
|
|
8920
8931
|
},
|
|
8921
8932
|
};
|
|
8922
8933
|
|
|
8923
|
-
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;flex-shrink:0;width:var(--sd-field-label-width, auto);height:var(--sd-field-label-height);margin-right:var(--sd-field-label-margin-right)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:var(--sd-field-label-font-size);line-height:var(--sd-field-label-line-height);font-weight:var(--sd-field-label-font-weight);color:var(--sd-system-color-field-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-addon .sd-field__control .sd-field__addon{display:flex;gap:var(--sd-field-addon-gap);align-items:center;white-space:nowrap;padding:0 var(--sd-field-addon-padding-x);font-size:var(--sd-field-addon-font-size);line-height:var(--sd-field-addon-line-height);font-weight:var(--sd-field-addon-font-weight);background:var(--sd-field-addon-bg);border-right:var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);border-radius:calc(var(--sd-field-control-radius) - 1px) 0 0 calc(var(--sd-field-control-radius) - 1px)}sd-field .sd-field__wrapper{width:100%;display:flex;align-items:flex-start;flex-flow:row nowrap;position:relative;color:var(--sd-system-color-field-text-default);-webkit-user-select:none;user-select:none}sd-field .sd-field__wrapper .sd-field__main{flex:1;min-width:0;display:flex;flex-direction:column}sd-field .sd-field__wrapper .sd-field__control{position:relative;height:var(--sd-field-wrapper-height);display:flex;min-width:0;border:1px solid var(--sd-system-color-field-border-default);border-radius:var(--sd-field-control-radius);background:var(--sd-system-color-field-bg-default)}sd-field .sd-field--error .sd-field__wrapper .sd-field__control:not(:hover){border:1px solid var(--sd-system-color-field-border-danger) !important}sd-field .sd-field.sd-field--pass .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-success) !important}sd-field .sd-field:not(.sd-field--disabled) .sd-field__wrapper .sd-field__control:hover{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--focus .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field .sd-field__error-message{color:var(--sd-textinput-textinput-text-error-message);font-size:var(--sd-textinput-textinput-error-message-typography-font-size);line-height:var(--sd-textinput-textinput-error-message-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}sd-field .sd-field .sd-field__hint{color:var(--sd-textinput-textinput-text-hint);font-size:var(--sd-textinput-textinput-hint-typography-font-size);line-height:var(--sd-textinput-textinput-hint-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}`;
|
|
8934
|
+
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;flex-shrink:0;width:var(--sd-field-label-width, auto);height:var(--sd-field-label-height);margin-right:var(--sd-field-label-margin-right)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:var(--sd-field-label-font-size);line-height:var(--sd-field-label-line-height);font-weight:var(--sd-field-label-font-weight);color:var(--sd-system-color-field-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-addon .sd-field__control .sd-field__addon{display:flex;gap:var(--sd-field-addon-gap);align-items:center;justify-content:var(--sd-field-addon-justify, flex-start);white-space:nowrap;box-sizing:border-box;flex-shrink:0;width:var(--sd-field-addon-width, auto);padding:0 var(--sd-field-addon-padding-x);font-size:var(--sd-field-addon-font-size);line-height:var(--sd-field-addon-line-height);font-weight:var(--sd-field-addon-font-weight);background:var(--sd-field-addon-bg);border-right:var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);border-radius:calc(var(--sd-field-control-radius) - 1px) 0 0 calc(var(--sd-field-control-radius) - 1px)}sd-field .sd-field__wrapper{width:100%;display:flex;align-items:flex-start;flex-flow:row nowrap;position:relative;color:var(--sd-system-color-field-text-default);-webkit-user-select:none;user-select:none}sd-field .sd-field__wrapper .sd-field__main{flex:1;min-width:0;display:flex;flex-direction:column}sd-field .sd-field__wrapper .sd-field__control{position:relative;height:var(--sd-field-wrapper-height);display:flex;min-width:0;border:1px solid var(--sd-system-color-field-border-default);border-radius:var(--sd-field-control-radius);background:var(--sd-system-color-field-bg-default)}sd-field .sd-field--error .sd-field__wrapper .sd-field__control:not(:hover){border:1px solid var(--sd-system-color-field-border-danger) !important}sd-field .sd-field.sd-field--pass .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-success) !important}sd-field .sd-field:not(.sd-field--disabled) .sd-field__wrapper .sd-field__control:hover{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--focus .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field .sd-field__error-message{color:var(--sd-textinput-textinput-text-error-message);font-size:var(--sd-textinput-textinput-error-message-typography-font-size);line-height:var(--sd-textinput-textinput-error-message-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}sd-field .sd-field .sd-field__hint{color:var(--sd-textinput-textinput-text-hint);font-size:var(--sd-textinput-textinput-hint-typography-font-size);line-height:var(--sd-textinput-textinput-hint-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}`;
|
|
8924
8935
|
|
|
8925
8936
|
const FORM_PARENT_TAGS = [
|
|
8926
8937
|
'sd-select',
|
|
@@ -8955,6 +8966,7 @@ class SdField {
|
|
|
8955
8966
|
label = '';
|
|
8956
8967
|
labelWidth = '';
|
|
8957
8968
|
addonLabel = '';
|
|
8969
|
+
addonAlign = 'start';
|
|
8958
8970
|
icon = undefined;
|
|
8959
8971
|
labelTooltip = '';
|
|
8960
8972
|
labelTooltipProps = null;
|
|
@@ -9085,22 +9097,28 @@ class SdField {
|
|
|
9085
9097
|
: addonTokens.border.default,
|
|
9086
9098
|
'--sd-field-addon-gap': `${addonTokens.gap}px`,
|
|
9087
9099
|
'--sd-field-addon-border-width': `${addonTokens.border.width}px`,
|
|
9100
|
+
'--sd-field-addon-justify': FIELD_ADDON_ALIGN_MAP[this.addonAlign] ?? FIELD_ADDON_ALIGN_MAP.start,
|
|
9101
|
+
...(this.labelWidth
|
|
9102
|
+
? {
|
|
9103
|
+
'--sd-field-addon-width': typeof this.labelWidth === 'number' ? `${this.labelWidth}px` : this.labelWidth,
|
|
9104
|
+
}
|
|
9105
|
+
: {}),
|
|
9088
9106
|
}
|
|
9089
9107
|
: {};
|
|
9090
|
-
return (hAsync("div", { key: '
|
|
9108
|
+
return (hAsync("div", { key: '967c6e44e514001350f0ca7eedf97e12ec8bac89', class: {
|
|
9091
9109
|
'sd-field': true,
|
|
9092
9110
|
'sd-field--has-label': !!this.label,
|
|
9093
9111
|
'sd-field--has-addon': !!addon,
|
|
9094
9112
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
9095
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '
|
|
9113
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '238c06bb4ea963c5e7b1ee31dfc7f4b7f4b88af1', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: '2144211ec7096b3a36dab1bd494b633604fe942b', class: "sd-field__main", style: this.width
|
|
9096
9114
|
? {
|
|
9097
9115
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
9098
9116
|
flex: 'none',
|
|
9099
9117
|
}
|
|
9100
|
-
: {} }, hAsync("div", { key: '
|
|
9118
|
+
: {} }, hAsync("div", { key: '8f5e0e010b5fe4ec60c6cae29a9a4510ba0f34a5', class: {
|
|
9101
9119
|
'sd-field__control': true,
|
|
9102
9120
|
'sd-field__control--has-addon': !!addon,
|
|
9103
|
-
} }, addon && hAsync("div", { key: '
|
|
9121
|
+
} }, addon && hAsync("div", { key: '853c73197999da0f753335a06e38aa850d0e9230', class: "sd-field__addon" }, addon), hAsync("slot", { key: '7e6d1d965d83df16e6294d259d1e25b2fab864cd' })), this.errorMsg || this.errorMessage ? (hAsync("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)) : (this.hint && hAsync("div", { class: "sd-field__hint" }, this.hint))))));
|
|
9104
9122
|
}
|
|
9105
9123
|
renderLabel(label) {
|
|
9106
9124
|
if (!label)
|
|
@@ -9126,6 +9144,7 @@ class SdField {
|
|
|
9126
9144
|
"label": [1],
|
|
9127
9145
|
"labelWidth": [8, "label-width"],
|
|
9128
9146
|
"addonLabel": [1, "addon-label"],
|
|
9147
|
+
"addonAlign": [1, "addon-align"],
|
|
9129
9148
|
"icon": [16],
|
|
9130
9149
|
"labelTooltip": [1, "label-tooltip"],
|
|
9131
9150
|
"labelTooltipProps": [16],
|
|
@@ -9207,6 +9226,7 @@ class SdFilePicker {
|
|
|
9207
9226
|
label = '';
|
|
9208
9227
|
labelWidth = '';
|
|
9209
9228
|
addonLabel = '';
|
|
9229
|
+
addonAlign = 'start';
|
|
9210
9230
|
hint = '';
|
|
9211
9231
|
errorMessage = '';
|
|
9212
9232
|
width = '';
|
|
@@ -9368,7 +9388,7 @@ class SdFilePicker {
|
|
|
9368
9388
|
'sd-file-picker--inline-disabled': this.disabled,
|
|
9369
9389
|
}, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content));
|
|
9370
9390
|
}
|
|
9371
|
-
return (hAsync("sd-field", { name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, 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: cssVars }, content));
|
|
9391
|
+
return (hAsync("sd-field", { name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, 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: cssVars }, content));
|
|
9372
9392
|
}
|
|
9373
9393
|
static get watchers() { return {
|
|
9374
9394
|
"value": [{
|
|
@@ -9393,6 +9413,7 @@ class SdFilePicker {
|
|
|
9393
9413
|
"label": [1],
|
|
9394
9414
|
"labelWidth": [8, "label-width"],
|
|
9395
9415
|
"addonLabel": [1, "addon-label"],
|
|
9416
|
+
"addonAlign": [1, "addon-align"],
|
|
9396
9417
|
"hint": [1],
|
|
9397
9418
|
"errorMessage": [1, "error-message"],
|
|
9398
9419
|
"width": [8],
|
|
@@ -10643,6 +10664,7 @@ class SdInput {
|
|
|
10643
10664
|
type = 'text';
|
|
10644
10665
|
size = 'sm';
|
|
10645
10666
|
addonLabel = '';
|
|
10667
|
+
addonAlign = 'start';
|
|
10646
10668
|
placeholder = '입력해 주세요.';
|
|
10647
10669
|
disabled = false;
|
|
10648
10670
|
clearable = false;
|
|
@@ -10747,12 +10769,12 @@ class SdInput {
|
|
|
10747
10769
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
10748
10770
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
10749
10771
|
};
|
|
10750
|
-
return (hAsync("sd-field", { key: '
|
|
10772
|
+
return (hAsync("sd-field", { key: '3b607f0075786647d48ce470d40745e4d5fdcdc1', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("label", { key: '02902d50bbc3275860e814a5d354e83eeed72373', class: "sd-input__content" }, hAsync("slot", { key: '4fb6e53a98853c67e847cdd38b8ddbb606e3f0a1', name: "prefix" }), hAsync("input", { key: '291841a908b8502790f09833f1a30dc56f24ff52', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), hAsync("slot", { key: '13e21f184a9dcee81a1b6d3c11b9137a0ac7203e', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (hAsync("sd-ghost-button", { key: '4e708928b8465d6e8d5c1b6f4a983a9d8c1c8784', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
10751
10773
|
if (this.disabled)
|
|
10752
10774
|
return;
|
|
10753
10775
|
this.internalValue = '';
|
|
10754
10776
|
await this.formField?.sdValidate();
|
|
10755
|
-
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '
|
|
10777
|
+
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: 'cc87104d0c9ef69659041fe233b3e432b62ed0b8', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
|
|
10756
10778
|
if (this.disabled)
|
|
10757
10779
|
return;
|
|
10758
10780
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -10775,6 +10797,7 @@ class SdInput {
|
|
|
10775
10797
|
"type": [1],
|
|
10776
10798
|
"size": [1],
|
|
10777
10799
|
"addonLabel": [1, "addon-label"],
|
|
10800
|
+
"addonAlign": [1, "addon-align"],
|
|
10778
10801
|
"placeholder": [1],
|
|
10779
10802
|
"disabled": [4],
|
|
10780
10803
|
"clearable": [4],
|
|
@@ -11454,6 +11477,7 @@ class SdNumberInput {
|
|
|
11454
11477
|
label;
|
|
11455
11478
|
labelWidth = '';
|
|
11456
11479
|
addonLabel = '';
|
|
11480
|
+
addonAlign = 'start';
|
|
11457
11481
|
placeholder = '입력해 주세요.';
|
|
11458
11482
|
disabled = false;
|
|
11459
11483
|
width;
|
|
@@ -11712,12 +11736,12 @@ class SdNumberInput {
|
|
|
11712
11736
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
11713
11737
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
11714
11738
|
};
|
|
11715
|
-
return (hAsync("sd-field", { key: '
|
|
11739
|
+
return (hAsync("sd-field", { key: 'a9512622774c930c8b70b3d739a405e2434f22a7', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: 'f068ab7a042a97dfac7aaf160508757306dddc14', class: "sd-number-input__content" }, this.useButton && (hAsync("button", { key: '37341e813e7902f07c2731c708e1aadc53411653', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: '740b2715518534b0ece5aa3b3f6dfd0dfafd6368', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
11716
11740
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
11717
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (hAsync("span", { key: '
|
|
11741
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (hAsync("span", { key: '9b16f311a1408dfc84124ec938a98b13635f6dc6', class: "sd-number-input__prefix" }, this.inputPrefix)), hAsync("input", { key: '572e2a8a1d7283e3568a85ba6c1bd506c3ec4453', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${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, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
11718
11742
|
textAlign: this.useButton ? 'center' : 'right',
|
|
11719
11743
|
...this.inputStyle,
|
|
11720
|
-
} }), this.inputSuffix && (hAsync("span", { key: '
|
|
11744
|
+
} }), this.inputSuffix && (hAsync("span", { key: '13a07217ee34c793669b061c240062805a40db60', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (hAsync("button", { key: 'c3557737be6cc5dc6c5ab171bcc078cf564fb2b0', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: '530cf50331768df5be16639e46ce3f7f438ffe02', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
11721
11745
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
11722
11746
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
11723
11747
|
}
|
|
@@ -11744,6 +11768,7 @@ class SdNumberInput {
|
|
|
11744
11768
|
"label": [1],
|
|
11745
11769
|
"labelWidth": [8, "label-width"],
|
|
11746
11770
|
"addonLabel": [1, "addon-label"],
|
|
11771
|
+
"addonAlign": [1, "addon-align"],
|
|
11747
11772
|
"placeholder": [1],
|
|
11748
11773
|
"disabled": [4],
|
|
11749
11774
|
"width": [8],
|
|
@@ -12801,6 +12826,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
12801
12826
|
label = '';
|
|
12802
12827
|
labelWidth = '';
|
|
12803
12828
|
addonLabel = '';
|
|
12829
|
+
addonAlign = 'start';
|
|
12804
12830
|
icon = undefined;
|
|
12805
12831
|
labelTooltip = '';
|
|
12806
12832
|
labelTooltipProps = null;
|
|
@@ -12918,7 +12944,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
12918
12944
|
}
|
|
12919
12945
|
};
|
|
12920
12946
|
render() {
|
|
12921
|
-
return (hAsync("sd-field", { key: '
|
|
12947
|
+
return (hAsync("sd-field", { key: 'bef5ef042c37b3abb97f8f5eafaee24d232132b7', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, addonAlign: this.addonAlign, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, hAsync("div", { key: '9046ecdd771380312e7be3797ccac28d2315cfbe', class: {
|
|
12922
12948
|
'sd-select': true,
|
|
12923
12949
|
'sd-select--disabled': this.disabled,
|
|
12924
12950
|
'sd-select--error': !!this.error,
|
|
@@ -12963,6 +12989,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
12963
12989
|
"label": [1],
|
|
12964
12990
|
"labelWidth": [8, "label-width"],
|
|
12965
12991
|
"addonLabel": [1, "addon-label"],
|
|
12992
|
+
"addonAlign": [1, "addon-align"],
|
|
12966
12993
|
"icon": [16],
|
|
12967
12994
|
"labelTooltip": [1, "label-tooltip"],
|
|
12968
12995
|
"labelTooltipProps": [16],
|
|
@@ -13206,6 +13233,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
13206
13233
|
label = '';
|
|
13207
13234
|
labelWidth = '';
|
|
13208
13235
|
addonLabel = '';
|
|
13236
|
+
addonAlign = 'start';
|
|
13209
13237
|
icon = undefined;
|
|
13210
13238
|
labelTooltip = '';
|
|
13211
13239
|
labelTooltipProps = null;
|
|
@@ -13452,7 +13480,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
13452
13480
|
});
|
|
13453
13481
|
}
|
|
13454
13482
|
render() {
|
|
13455
|
-
return (hAsync("sd-field", { key: '
|
|
13483
|
+
return (hAsync("sd-field", { key: '698b76ed0785f475a099fac99e3564b20c252c01', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, addonAlign: this.addonAlign, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: 'aa449fda5e32d0519792dc2e713d3c59658c86fa', class: {
|
|
13456
13484
|
'sd-select-group': true,
|
|
13457
13485
|
'sd-select-group--open': this.isOpen,
|
|
13458
13486
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -13519,6 +13547,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
13519
13547
|
"label": [1],
|
|
13520
13548
|
"labelWidth": [8, "label-width"],
|
|
13521
13549
|
"addonLabel": [1, "addon-label"],
|
|
13550
|
+
"addonAlign": [1, "addon-align"],
|
|
13522
13551
|
"icon": [16],
|
|
13523
13552
|
"labelTooltip": [1, "label-tooltip"],
|
|
13524
13553
|
"labelTooltipProps": [16],
|
|
@@ -14498,6 +14527,7 @@ class SdSelectV2 {
|
|
|
14498
14527
|
label = '';
|
|
14499
14528
|
labelWidth = '';
|
|
14500
14529
|
addonLabel = '';
|
|
14530
|
+
addonAlign = 'start';
|
|
14501
14531
|
error = false;
|
|
14502
14532
|
hint = '';
|
|
14503
14533
|
errorMessage = '';
|
|
@@ -14690,13 +14720,13 @@ class SdSelectV2 {
|
|
|
14690
14720
|
this.closeDropdown();
|
|
14691
14721
|
},
|
|
14692
14722
|
};
|
|
14693
|
-
return (hAsync("sd-field", { key: '
|
|
14723
|
+
return (hAsync("sd-field", { key: '6074cfea700e1f3ea03aaedb0146d7dffdaa7101', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
14694
14724
|
this.hovered = true;
|
|
14695
14725
|
}, onMouseLeave: () => {
|
|
14696
14726
|
this.hovered = false;
|
|
14697
|
-
} }, hAsync("div", { key: '
|
|
14727
|
+
} }, hAsync("div", { key: '4840cfcf19e262903110245f88b73f3f03713624', class: "sd-select-v2", ref: el => {
|
|
14698
14728
|
this.triggerRef = el;
|
|
14699
|
-
} }, hAsync("sd-select-v2-trigger", { key: '
|
|
14729
|
+
} }, hAsync("sd-select-v2-trigger", { key: '4b34dd8007864623d17c80b4e5cea02aa4db954a', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '7ec2c4ca8e32f877a894f9f766d3558c10d66596', ...portalProps }, hAsync("sd-select-v2-listbox", { key: 'c804a19a142d2978d8fb4eaa33ad2a6a7028e7d3', name: this.name, options: this.options, value: this.value, emitValue: this.emitValue, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
14700
14730
|
}
|
|
14701
14731
|
static get watchers() { return {
|
|
14702
14732
|
"isOpen": [{
|
|
@@ -14718,6 +14748,7 @@ class SdSelectV2 {
|
|
|
14718
14748
|
"label": [1],
|
|
14719
14749
|
"labelWidth": [8, "label-width"],
|
|
14720
14750
|
"addonLabel": [1, "addon-label"],
|
|
14751
|
+
"addonAlign": [1, "addon-align"],
|
|
14721
14752
|
"error": [1028],
|
|
14722
14753
|
"hint": [1],
|
|
14723
14754
|
"errorMessage": [1, "error-message"],
|
|
@@ -16764,6 +16795,7 @@ class SdTextarea {
|
|
|
16764
16795
|
label = '';
|
|
16765
16796
|
labelWidth = '';
|
|
16766
16797
|
addonLabel = '';
|
|
16798
|
+
addonAlign = 'start';
|
|
16767
16799
|
hint = '';
|
|
16768
16800
|
errorMessage = '';
|
|
16769
16801
|
icon = undefined;
|
|
@@ -16850,7 +16882,7 @@ class SdTextarea {
|
|
|
16850
16882
|
'--sd-system-size-field-sm-height': 'auto',
|
|
16851
16883
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
16852
16884
|
};
|
|
16853
|
-
return (hAsync("sd-field", { key: '
|
|
16885
|
+
return (hAsync("sd-field", { key: '9f456eb1b18d0d83fb40f0b6b66125d587bcb4c6', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, 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: cssVars }, hAsync("div", { key: 'f201962ed64908c97d24923b62e97c33b356170a', class: "sd-textarea__content" }, hAsync("textarea", { key: '826e4b3c4743dbf16387b68317bd09ca7c75746d', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
16854
16886
|
}
|
|
16855
16887
|
static get watchers() { return {
|
|
16856
16888
|
"value": [{
|
|
@@ -16879,6 +16911,7 @@ class SdTextarea {
|
|
|
16879
16911
|
"label": [1],
|
|
16880
16912
|
"labelWidth": [8, "label-width"],
|
|
16881
16913
|
"addonLabel": [1, "addon-label"],
|
|
16914
|
+
"addonAlign": [1, "addon-align"],
|
|
16882
16915
|
"hint": [1],
|
|
16883
16916
|
"errorMessage": [1, "error-message"],
|
|
16884
16917
|
"icon": [16],
|