@sellmate/design-system 1.0.54 → 1.0.56
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/{component.textinput-DIDZPtYE.js → component.textinput-BWW8c3OY.js} +10 -1
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-action-modal.cjs.entry.js +6 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/{sd-button_5.cjs.entry.js → sd-button_4.cjs.entry.js} +3 -147
- package/dist/cjs/sd-calendar.cjs.entry.js +4 -4
- package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-box.cjs.entry.js +2 -2
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +148 -0
- package/dist/cjs/sd-input_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-spinner_3.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +4 -4
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-textarea.cjs.entry.js +76 -37
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +19 -10
- package/dist/collection/components/sd-button/sd-button.js +1 -1
- package/dist/collection/components/sd-calendar/sd-calendar.js +4 -4
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +1 -1
- package/dist/collection/components/sd-date-box/sd-date-box.js +2 -2
- package/dist/collection/components/sd-form/sd-form.js +1 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +1 -1
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +4 -4
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-textarea/sd-textarea.config.js +16 -0
- package/dist/collection/components/sd-textarea/sd-textarea.css +13 -53
- package/dist/collection/components/sd-textarea/sd-textarea.js +445 -60
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-toggle-button/sd-toggle-button.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/{p-C2uZkOBj.js → p-0zA9F8Lm.js} +1 -1
- package/dist/components/{p-Bbl5852O.js → p-5a-vaX0a.js} +1 -1
- package/dist/components/{p-DJdigrkS.js → p-AvVgx8d3.js} +1 -1
- package/dist/components/{p-IRd25v7v.js → p-BNZuZ-DC.js} +1 -1
- package/dist/components/{p-CDR-4auv.js → p-C6WuqUWC.js} +1 -1
- package/dist/components/p-C8kA64_1.js +1 -0
- package/dist/components/{p-CpGiSLY_.js → p-CUDww9I2.js} +1 -1
- package/dist/components/{p-iZSyoiHU.js → p-CZWF0Ha8.js} +1 -1
- package/dist/components/{p-B9t9pwo_.js → p-CqzgCVtM.js} +1 -1
- package/dist/components/p-DSNs8RRn.js +1 -0
- package/dist/components/{p-mnDAufNv.js → p-DnZZMuzX.js} +1 -1
- package/dist/components/{p-hWm-Llzv.js → p-Drngu_DV.js} +1 -1
- package/dist/components/{p-CqU3a1re.js → p-DsqyxLeH.js} +1 -1
- package/dist/components/{p-DXAB0k9r.js → p-gOEtvhSH.js} +1 -1
- package/dist/components/{p-DCJWAesd.js → p-gwccuwWe.js} +1 -1
- package/dist/components/{p-CYppNuFU.js → p-t4yN2fpo.js} +1 -1
- package/dist/components/{p-CSrbKcYv.js → p-uv1FQPWY.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-barcode-input.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-date-box.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-form.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-radio-button-group.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.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.js +1 -1
- package/dist/components/sd-select-v2-listbox.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-textarea.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle-button.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-47931c26.entry.js → p-184649a9.entry.js} +1 -1
- package/dist/design-system/{p-ea768c2e.entry.js → p-1e14fb6b.entry.js} +1 -1
- package/dist/design-system/{p-64f2a188.entry.js → p-266ff86b.entry.js} +1 -1
- package/dist/design-system/{p-43512d46.entry.js → p-2909a0a3.entry.js} +1 -1
- package/dist/design-system/{p-cebaca7c.entry.js → p-391cf704.entry.js} +1 -1
- package/dist/design-system/{p-2a25b3dc.entry.js → p-4021d3f4.entry.js} +1 -1
- package/dist/design-system/{p-a59c0cab.entry.js → p-4e9413c0.entry.js} +1 -1
- package/dist/design-system/p-5213773b.entry.js +1 -0
- package/dist/design-system/{p-eb11f6cc.entry.js → p-5bd180a0.entry.js} +1 -1
- package/dist/design-system/{p-85e22acd.entry.js → p-7c48affc.entry.js} +1 -1
- package/dist/design-system/{p-7a18a52b.entry.js → p-7ce03e1c.entry.js} +1 -1
- package/dist/design-system/{p-4487b2ec.entry.js → p-99b6157f.entry.js} +1 -1
- package/dist/design-system/p-DSNs8RRn.js +1 -0
- package/dist/design-system/{p-cee768a2.entry.js → p-a1b190f0.entry.js} +1 -1
- package/dist/design-system/{p-0c026571.entry.js → p-a873d717.entry.js} +1 -1
- package/dist/design-system/p-c2a0f10d.entry.js +1 -0
- package/dist/design-system/{p-3686b44e.entry.js → p-cbe94549.entry.js} +1 -1
- package/dist/design-system/p-d4f8e2f7.entry.js +1 -0
- package/dist/design-system/{p-c9af0fc9.entry.js → p-efe684e6.entry.js} +1 -1
- package/dist/design-system/{p-a7e4994e.entry.js → p-f2021df6.entry.js} +1 -1
- package/dist/design-system/{p-d5b5cfc7.entry.js → p-f465c79d.entry.js} +1 -1
- package/dist/design-system/{p-74079256.entry.js → p-fa68e96d.entry.js} +1 -1
- package/dist/esm/{component.textinput-BGovA1BG.js → component.textinput-DSNs8RRn.js} +10 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-action-modal.entry.js +6 -2
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/{sd-button_5.entry.js → sd-button_4.entry.js} +4 -147
- package/dist/esm/sd-calendar.entry.js +4 -4
- package/dist/esm/sd-checkbox.entry.js +1 -1
- package/dist/esm/sd-date-box.entry.js +2 -2
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button.entry.js +146 -0
- package/dist/esm/sd-input_2.entry.js +1 -1
- package/dist/esm/sd-loading-spinner_3.entry.js +1 -1
- package/dist/esm/sd-radio-button-group.entry.js +1 -1
- package/dist/esm/sd-radio-group.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-multiple-group.entry.js +1 -1
- package/dist/esm/sd-table.entry.js +4 -4
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-textarea.entry.js +76 -37
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle-button.entry.js +1 -1
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-action-modal/sd-action-modal.d.ts +2 -1
- package/dist/types/components/sd-button-v2/sd-button-v2.config.d.ts +8 -0
- package/dist/types/components/sd-textarea/sd-textarea.config.d.ts +34 -0
- package/dist/types/components/sd-textarea/sd-textarea.d.ts +28 -9
- package/dist/types/components.d.ts +148 -15
- package/hydrate/index.js +140 -74
- package/hydrate/index.mjs +140 -74
- package/package.json +1 -1
- package/dist/components/p-BGovA1BG.js +0 -1
- package/dist/components/p-Ck-2jtzb.js +0 -1
- package/dist/design-system/p-17429476.entry.js +0 -1
- package/dist/design-system/p-52d6d7b5.entry.js +0 -1
- package/dist/design-system/p-BGovA1BG.js +0 -1
package/hydrate/index.mjs
CHANGED
|
@@ -4803,6 +4803,10 @@ const ACTION_MODAL_TITLE = {
|
|
|
4803
4803
|
|
|
4804
4804
|
const sdActionModalCss = () => `sd-action-modal{display:block;width:fit-content;min-width:520px}sd-action-modal .sd-action-modal{position:relative;display:flex;flex-direction:column;border-radius:var(--sd-action-modal-radius);background:var(--sd-action-modal-bg);box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.2);overflow:hidden}sd-action-modal .sd-action-modal__header{display:flex;align-items:center;gap:var(--sd-action-modal-header-gap);padding:var(--sd-action-modal-header-padding-y) calc(var(--sd-action-modal-header-padding-x) + 20px) var(--sd-action-modal-header-padding-y) var(--sd-action-modal-header-padding-x)}sd-action-modal .sd-action-modal__title{margin:0;color:var(--sd-action-modal-title-color);font-family:var(--sd-action-modal-title-font-family);font-weight:var(--sd-action-modal-title-font-weight);font-size:var(--sd-action-modal-title-font-size);line-height:var(--sd-action-modal-title-line-height);white-space:nowrap}sd-action-modal .sd-action-modal__header-sub{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px}sd-action-modal .sd-action-modal__header-sub:empty{display:none}sd-action-modal .sd-action-modal__close{position:absolute;top:16px;right:16px;cursor:pointer}sd-action-modal .sd-action-modal__body{flex:1 1 auto;min-height:0;padding:0 var(--sd-action-modal-body-padding-x) var(--sd-action-modal-body-padding-bottom);overflow:auto}sd-action-modal .sd-action-modal__footer{display:flex;align-items:center;gap:var(--sd-action-modal-footer-gap);padding:var(--sd-action-modal-footer-padding-y) var(--sd-action-modal-footer-padding-x);background:var(--sd-action-modal-footer-bg);border-top:1px solid var(--sd-action-modal-footer-border)}sd-action-modal .sd-action-modal__footer>sd-button-v2{margin-left:auto}sd-action-modal .sd-action-modal__footer-sub{display:flex;align-items:center;gap:8px;min-width:0}sd-action-modal .sd-action-modal__footer-sub:empty{display:none}`;
|
|
4805
4805
|
|
|
4806
|
+
const DEFAULT_BUTTON_PROPS = {
|
|
4807
|
+
name: 'primary_md',
|
|
4808
|
+
label: '확인',
|
|
4809
|
+
};
|
|
4806
4810
|
class SdActionModal {
|
|
4807
4811
|
constructor(hostRef) {
|
|
4808
4812
|
registerInstance(this, hostRef);
|
|
@@ -4810,7 +4814,7 @@ class SdActionModal {
|
|
|
4810
4814
|
this.ok = createEvent(this, "sdOk", 7);
|
|
4811
4815
|
}
|
|
4812
4816
|
modalTitle = '';
|
|
4813
|
-
|
|
4817
|
+
buttonProps = {};
|
|
4814
4818
|
close;
|
|
4815
4819
|
ok;
|
|
4816
4820
|
render() {
|
|
@@ -4833,7 +4837,7 @@ class SdActionModal {
|
|
|
4833
4837
|
'--sd-action-modal-title-font-size': `${ACTION_MODAL_TITLE.fontSize}px`,
|
|
4834
4838
|
'--sd-action-modal-title-line-height': `${ACTION_MODAL_TITLE.lineHeight}px`,
|
|
4835
4839
|
};
|
|
4836
|
-
return (hAsync("div", { key: '
|
|
4840
|
+
return (hAsync("div", { key: '8b3199bfcb78121b72a97e0d15bb032757080706', class: "sd-action-modal", style: cssVars }, hAsync("header", { key: '26075ddc7f0a6d96c5457483faa1dcce945058a1', class: "sd-action-modal__header" }, hAsync("h2", { key: 'a207d1f211ac8826d425d9c1ff84f08037967d2b', class: "sd-action-modal__title" }, this.modalTitle), hAsync("div", { key: 'aaef21b786dd110066d5cbfaa2824f87ef705e13', class: "sd-action-modal__header-sub" }, hAsync("slot", { key: 'cfbb60575a14e3f297d7c97da59039e9fd0bcb7a', name: "header-sub-title" })), hAsync("sd-ghost-button", { key: '368a6c44add48953beaa8809184813179075d022', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), hAsync("div", { key: '51e25fa037d7a23a5c3aea434b2d73ddc0bf3552', class: "sd-action-modal__body" }, hAsync("slot", { key: '32454a97a41a1dd1402f112292c347f02cfd5186', name: "body" })), hAsync("footer", { key: '639a174a8451bb4ece0339c6aeb81b20d31933fd', class: "sd-action-modal__footer" }, hAsync("div", { key: '0da91c9254a9e69e8ef5effb3123e098bdfb0fcb', class: "sd-action-modal__footer-sub" }, hAsync("slot", { key: '9c19df37ea9f20353440595b32b304e40dfcfb28', name: "bottom-sub-content" })), hAsync("sd-button-v2", { key: '6fa6a31e3147f4457a4d2021394ed18994831147', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() }))));
|
|
4837
4841
|
}
|
|
4838
4842
|
static get style() { return sdActionModalCss(); }
|
|
4839
4843
|
static get cmpMeta() { return {
|
|
@@ -4841,7 +4845,7 @@ class SdActionModal {
|
|
|
4841
4845
|
"$tagName$": "sd-action-modal",
|
|
4842
4846
|
"$members$": {
|
|
4843
4847
|
"modalTitle": [1, "modal-title"],
|
|
4844
|
-
"
|
|
4848
|
+
"buttonProps": [16]
|
|
4845
4849
|
},
|
|
4846
4850
|
"$listeners$": undefined,
|
|
4847
4851
|
"$lazyBundleId$": "-",
|
|
@@ -4916,6 +4920,7 @@ const input = {
|
|
|
4916
4920
|
sm: {
|
|
4917
4921
|
height: "28",
|
|
4918
4922
|
paddingX: "12",
|
|
4923
|
+
paddingY: "4",
|
|
4919
4924
|
gap: "8",
|
|
4920
4925
|
radius: "4",
|
|
4921
4926
|
typography: {
|
|
@@ -4933,7 +4938,11 @@ const input = {
|
|
|
4933
4938
|
fontSize: "16",
|
|
4934
4939
|
lineHeight: "26"}
|
|
4935
4940
|
},
|
|
4941
|
+
border: {
|
|
4942
|
+
"default": "#AAAAAA"},
|
|
4936
4943
|
bg: {
|
|
4944
|
+
"default": "#FFFFFF",
|
|
4945
|
+
disabled: "#E1E1E1",
|
|
4937
4946
|
barcode: "#FAFAA1"
|
|
4938
4947
|
},
|
|
4939
4948
|
text: {
|
|
@@ -4942,7 +4951,11 @@ const input = {
|
|
|
4942
4951
|
disabled: "#888888"},
|
|
4943
4952
|
icon: {
|
|
4944
4953
|
"default": "#888888"
|
|
4945
|
-
}
|
|
4954
|
+
},
|
|
4955
|
+
resizer: {
|
|
4956
|
+
color: "#AAAAAA"
|
|
4957
|
+
}
|
|
4958
|
+
};
|
|
4946
4959
|
var inputTokens = {
|
|
4947
4960
|
input: input
|
|
4948
4961
|
};
|
|
@@ -5566,7 +5579,7 @@ class SdButton {
|
|
|
5566
5579
|
const buttonClasses = this.getButtonClasses();
|
|
5567
5580
|
// 유틸로 색상 키 -> HEX 매핑 (없으면 원본 그대로)
|
|
5568
5581
|
const resolvedColor = resolveColor(this.color);
|
|
5569
|
-
return (hAsync("button", { key: '
|
|
5582
|
+
return (hAsync("button", { key: '3afd0a3392bc11cd49b8a8d76f0c92b158652822', class: `${buttonClasses} ${this.sdClass}`, type: this.type, disabled: this.disabled, style: { '--button-color': resolvedColor }, onClick: this.handleClick }, hAsync("div", { key: 'f9741b8f6c5f119f4d54ebd65c2745cd61667c89', class: "sd-button__content" }, this.icon && (hAsync("sd-icon", { key: 'f2a969c8fe4c127951d426c3ffa61c22cd566b1a', class: "sd-button__icon sd-button__icon--left", name: this.icon, size: this.iconSize ?? ICON_SIZES[this.size], color: this.iconColor ?? (this.variant === 'primary' ? '#fff' : resolvedColor) })), this.label && hAsync("div", { key: 'ce542bb75ad0175a6d3e8bd81d0aeddbbbed0bf5', class: "sd-button__label" }, this.label), this.iconRight && (hAsync("sd-icon", { key: '04c7bc061777823a7ac6c91945a2f56caac0eb77', class: "sd-button__icon sd-button__icon--right", name: this.iconRight, size: ICON_SIZES[this.size], color: this.variant === 'primary' ? '#fff' : resolvedColor })))));
|
|
5570
5583
|
}
|
|
5571
5584
|
static get style() { return sdButtonCss(); }
|
|
5572
5585
|
static get cmpMeta() { return {
|
|
@@ -6009,13 +6022,13 @@ class SdCalendar {
|
|
|
6009
6022
|
}
|
|
6010
6023
|
render() {
|
|
6011
6024
|
const allEventNames = this.getAllEventNames();
|
|
6012
|
-
return (hAsync("div", { key: '
|
|
6025
|
+
return (hAsync("div", { key: '9a286709cd9891c60f3a9e3f96bbb10febf7f69c', class: "sd-calendar" }, hAsync("div", { key: 'cb52cef3371662e7fda7c4226c22aa1c01c7d4c1', class: "sd-calendar__header" }, hAsync("div", { key: '7e1cf45b0a75c0cc44f0b1b126017049a8af2b1d', class: "year-nav" }, hAsync("button", { key: '0edb0d7be512fdc36e5c3382c47e47cef04d75c8', type: "button", name: "prev-year", title: "Previous Year", onClick: () => {
|
|
6013
6026
|
this.currentYear = this.currentYear - 1;
|
|
6014
6027
|
this.viewChange.emit({ year: this.currentYear, month: this.currentMonth });
|
|
6015
|
-
} }, hAsync("sd-icon", { key: '
|
|
6028
|
+
} }, hAsync("sd-icon", { key: 'e336280d87d459615721cc03d75b2d02d1c87ee0', name: "arrowLeft", size: "12", color: "grey_45" })), hAsync("span", { key: 'a9d9de8ef82508f0d6e998e434ecc5dcc6f84017', class: "year-nav__current" }, this.currentYear), hAsync("button", { key: '4d0d76f89442baf209628ca1708d092776ed4606', type: "button", name: "next-year", title: "Next Year", onClick: () => {
|
|
6016
6029
|
this.currentYear = this.currentYear + 1;
|
|
6017
6030
|
this.viewChange.emit({ year: this.currentYear, month: this.currentMonth });
|
|
6018
|
-
} }, hAsync("sd-icon", { key: '
|
|
6031
|
+
} }, hAsync("sd-icon", { key: '065c391f62e7ba33631b61c84f032224e594f476', name: "arrowRight", size: "12", color: "grey_45" }))), hAsync("div", { key: '36de2a57b793f67a73d4125fb6574b4235d0cdf7', class: "month-nav" }, hAsync("button", { key: '99d67577999e4304ec5c414af6ec35711570e7de', type: "button", name: "prev-month", title: "Previous Month", onClick: () => this.handleUpdateMonth('prev') }, hAsync("sd-icon", { key: '2c04f97d92580d3392d6ee94b239999d889ecdab', name: "arrowLeft", size: "12", color: "grey_45" })), hAsync("span", { key: '4e2ad881df27eafa93544a1cd17e4ad0deb70cc6', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), hAsync("button", { key: 'fa365a20c253047bb51e02495b537d7404cbdda7', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, hAsync("sd-icon", { key: '0aecbf5c466465dd5674d8e69972ba1b08360305', name: "arrowRight", size: "12", color: "grey_45" })))), hAsync("div", { key: 'b60e5105e1a4ab2b44dda037645be75604d92df7', class: "sd-calendar__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (hAsync("div", { key: day, class: "day" }, day)))), hAsync("div", { key: '4f60a19754da1a707569887d909a7b01163d07b8', class: { 'sd-calendar__body': true, 'sd-calendar__body--has-events': !!this.events } }, [
|
|
6019
6032
|
...this.calendar.prevMonthDays,
|
|
6020
6033
|
...this.calendar.days,
|
|
6021
6034
|
...this.calendar.afterMonthDays,
|
|
@@ -6026,7 +6039,7 @@ class SdCalendar {
|
|
|
6026
6039
|
return (hAsync("div", { class: "sd-calendar__cell", key: `${day}_${idx}` }, hAsync("sd-date-box", { date: !day ? '' : Number(day), selected: this.value === formattedDate, isToday: today === formattedDate, disabled: !day ? true : this.isDisabledDate(formattedDate), onClick: !this.isDisabledDate(formattedDate) && day
|
|
6027
6040
|
? () => this.handleDateClick(Number(day))
|
|
6028
6041
|
: undefined }), this.events && (hAsync("div", { class: "sd-calendar__dots" }, uniqueEvents.map(eventName => (hAsync("span", { key: eventName, class: "sd-calendar__dot", style: { backgroundColor: this.getEventColor(eventName) } })))))));
|
|
6029
|
-
})), allEventNames.length > 0 && (hAsync("div", { key: '
|
|
6042
|
+
})), allEventNames.length > 0 && (hAsync("div", { key: '97d41f2a28b76d97568d50cb029ff8a5eaa13f9e', class: "sd-calendar__legend" }, allEventNames.map(name => (hAsync("div", { key: name, class: "sd-calendar__legend-item" }, hAsync("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: this.getEventColor(name) } }), hAsync("span", { class: "sd-calendar__legend-label" }, name))))))));
|
|
6030
6043
|
}
|
|
6031
6044
|
static get watchers() { return {
|
|
6032
6045
|
"value": [{
|
|
@@ -6249,7 +6262,7 @@ class SdCheckbox {
|
|
|
6249
6262
|
'--sd-checkbox-disabled-bg': CHECKBOX_COLORS.disabled.bg,
|
|
6250
6263
|
'--sd-checkbox-disabled-border': CHECKBOX_COLORS.disabled.border,
|
|
6251
6264
|
};
|
|
6252
|
-
return (hAsync("label", { key: '
|
|
6265
|
+
return (hAsync("label", { key: '4c92d46aab587f6e03f27d2a6356eca268141737', class: this.checkboxClasses, style: cssVars }, hAsync("input", { key: '22934eecb45213964374042e999ee0102fe3ae07', type: "checkbox", ref: el => { this.inputEl = el; }, value: this.val, checked: !!this.isChecked, disabled: this.disabled, onChange: this.handleChange, name: this.val?.toString() || 'checkbox', "aria-label": this.label || 'checkbox', "aria-checked": this.isChecked === null ? 'mixed' : this.isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }), hAsync("div", { key: 'fc18ccbcfe3403a1b8c1df6adc161d8b70ef7b5c', class: "sd-checkbox__bg" }, this.isChecked !== false ? (hAsync("sd-icon", { name: this.isChecked === true ? 'check' : 'minus', size: Number(CHECKBOX_LAYOUT.iconSize), color: this.disabled ? CHECKBOX_COLORS.checked.iconDisabled : CHECKBOX_COLORS.checked.icon })) : null), this.label && hAsync("span", { key: 'eb0d41a18406991affce5ea81f303e1a64d5b9c1', class: "sd-checkbox__label" }, this.label)));
|
|
6253
6266
|
}
|
|
6254
6267
|
static get watchers() { return {
|
|
6255
6268
|
"value": [{
|
|
@@ -6426,7 +6439,7 @@ class SdDateBox {
|
|
|
6426
6439
|
this.mouseOver?.emit(this.date);
|
|
6427
6440
|
}
|
|
6428
6441
|
render() {
|
|
6429
|
-
return (hAsync("div", { key: '
|
|
6442
|
+
return (hAsync("div", { key: '0c1e27245a3589ed493b26ad17cfe1b7c64c0be3', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
6430
6443
|
'sd-date-box': true,
|
|
6431
6444
|
'sd-hoverable': !this.disabled || !this.selected || this.type === '',
|
|
6432
6445
|
'sd-date-box--disabled': this.disabled,
|
|
@@ -6437,7 +6450,7 @@ class SdDateBox {
|
|
|
6437
6450
|
'sd-date-box--in-range': this.inRange,
|
|
6438
6451
|
'sd-date-box--type-start': this.type === 'start',
|
|
6439
6452
|
'sd-date-box--type-end': this.type === 'end',
|
|
6440
|
-
}, onClick: () => this.handleClickDate(), onMouseOver: () => this.handleHoverDate() }, hAsync("div", { key: '
|
|
6453
|
+
}, onClick: () => this.handleClickDate(), onMouseOver: () => this.handleHoverDate() }, hAsync("div", { key: 'c40b8e120298ca356ce2016f9b9dc72df703c6fe', class: "sd-date-box__content" }, hAsync("div", { key: '7edd94f83506397683620166322c1ab6095fedec', class: "sd-date-box__label" }, this.date))));
|
|
6441
6454
|
}
|
|
6442
6455
|
static get style() { return sdDateBoxCss(); }
|
|
6443
6456
|
static get cmpMeta() { return {
|
|
@@ -7846,7 +7859,7 @@ class SdForm {
|
|
|
7846
7859
|
this.submitSuccess.emit();
|
|
7847
7860
|
}
|
|
7848
7861
|
render() {
|
|
7849
|
-
return (hAsync("form", { key: '
|
|
7862
|
+
return (hAsync("form", { key: '82112bf33b4b3090d45f2be051a4586ef81ce413', onSubmit: e => this.onSubmit(e), class: this.formClass }, hAsync("slot", { key: '56ab994680c225eb8b09b16b1a6a2bb789f470c7' })));
|
|
7850
7863
|
}
|
|
7851
7864
|
static get cmpMeta() { return {
|
|
7852
7865
|
"$flags$": 772,
|
|
@@ -10102,7 +10115,7 @@ class SdRadio {
|
|
|
10102
10115
|
}
|
|
10103
10116
|
render() {
|
|
10104
10117
|
const isSelected = String(this.val) === String(this.value);
|
|
10105
|
-
return (hAsync("div", { key: '
|
|
10118
|
+
return (hAsync("div", { key: '7db77e527fe79fcc55c81c7d827d0cc8026214cd', "aria-label": String(this.val) || 'radio option', "aria-checked": isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', class: this.getRadioClasses() }, hAsync("label", { key: `radio-${this.val}` }, hAsync("input", { key: 'b8f3d5f83c2ee12d7e447d2b6cf8512fcde086ef', type: "radio", name: String(this.val), value: String(this.val), checked: isSelected, disabled: this.disabled, onInput: () => this.handleRadioChange() }), this.val != null && (hAsync("span", { key: '43e56a21cab0dd9a5dbc57174dd7f309f8152660', class: "sd-radio-group__label" }, this.label || String(this.val))))));
|
|
10106
10119
|
}
|
|
10107
10120
|
static get style() { return sdRadioCss(); }
|
|
10108
10121
|
static get cmpMeta() { return {
|
|
@@ -10163,7 +10176,7 @@ class SdRadioButtonGroup {
|
|
|
10163
10176
|
}
|
|
10164
10177
|
groupName = this.name || `sd-radio-button-group-${crypto.randomUUID()}`;
|
|
10165
10178
|
render() {
|
|
10166
|
-
return (hAsync("div", { key: '
|
|
10179
|
+
return (hAsync("div", { key: '4a1f76b1f53f07f7a062d4a0ce8bf44a47c5366b', class: this.getGroupClasses(), role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
10167
10180
|
const isSelected = this.isOptionSelected(option);
|
|
10168
10181
|
const isDisabled = this.isOptionDisabled(option);
|
|
10169
10182
|
return (hAsync("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, hAsync("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && hAsync("span", { class: "sd-radio-button-group__label" }, option.label)));
|
|
@@ -10215,7 +10228,7 @@ class SdRadioGroup {
|
|
|
10215
10228
|
return classes.join(' ');
|
|
10216
10229
|
}
|
|
10217
10230
|
render() {
|
|
10218
|
-
return (hAsync("div", { key: '
|
|
10231
|
+
return (hAsync("div", { key: 'd2296269f2d47fd35c5ad2653bdb0048be14836d', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
|
|
10219
10232
|
return (hAsync("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
10220
10233
|
})));
|
|
10221
10234
|
}
|
|
@@ -10409,7 +10422,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
10409
10422
|
}
|
|
10410
10423
|
};
|
|
10411
10424
|
render() {
|
|
10412
|
-
return (hAsync("sd-field", { key: '
|
|
10425
|
+
return (hAsync("sd-field", { key: '94b1ba70718a366048ba4287b28f88bd42b12ee1', 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) }, hAsync("div", { key: 'feaa2f25ebdf8aa919490bdf0cba88e30a9de33d', class: {
|
|
10413
10426
|
'sd-select': true,
|
|
10414
10427
|
'sd-select--disabled': this.disabled,
|
|
10415
10428
|
'sd-select--error': !!this.error,
|
|
@@ -11652,7 +11665,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
11652
11665
|
});
|
|
11653
11666
|
}
|
|
11654
11667
|
render() {
|
|
11655
|
-
return (hAsync("sd-field", { key: '
|
|
11668
|
+
return (hAsync("sd-field", { key: 'b0b3eeacc1dc3244a17c91c81adc8cd79df74bf3', 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), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: '7738287fc12ce54623d20797e70b885ba643501e', class: {
|
|
11656
11669
|
'sd-select-multiple-group': true,
|
|
11657
11670
|
'sd-select-multiple-group--open': this.isOpen,
|
|
11658
11671
|
'sd-select-multiple-group--disabled': this.disabled,
|
|
@@ -13699,16 +13712,16 @@ class SdTable {
|
|
|
13699
13712
|
return (hAsync("td", { key: `virtual-${position}-spacer-${rowIdx}`, class: "sd-table__virtual-spacer", style: this.getSpacerCellStyle(spacerWidth), "aria-hidden": "true" }, hAsync("div", { class: "sd-table__skeleton-cell" })));
|
|
13700
13713
|
}
|
|
13701
13714
|
render() {
|
|
13702
|
-
return (hAsync(Fragment, { key: '
|
|
13715
|
+
return (hAsync(Fragment, { key: '51c6e388c76a39b791e54e350d28a7ee7dd58b9e' }, hAsync("div", { key: '8d43403b53e16173c559f6636bd5b74f3640b770', class: "sd-table__wrapper", style: {
|
|
13703
13716
|
'--table-width': this.width,
|
|
13704
13717
|
'--table-height': this.height,
|
|
13705
|
-
} }, hAsync("div", { key: '
|
|
13718
|
+
} }, hAsync("div", { key: '43d8dba10880816cb414b1df24493d5617e31bec', class: "sd-table__container", style: {
|
|
13706
13719
|
'--table-container-height': `calc(${this.height} - ${this.pagination && this.innerRows.length > 0 ? 48 : 0}px)`,
|
|
13707
|
-
} }, hAsync("div", { key: '
|
|
13720
|
+
} }, hAsync("div", { key: 'a5c9e235a77dad5d3b061951e489ceafaee2d7a6', class: {
|
|
13708
13721
|
'sd-table__middle': true,
|
|
13709
13722
|
'sd-table__middle--scrollable': this.paginatedRows.length > 0,
|
|
13710
13723
|
'sd-table__middle--loading': this.isLoading,
|
|
13711
|
-
} }, this.isLoading && (hAsync("div", { key: '
|
|
13724
|
+
} }, this.isLoading && (hAsync("div", { key: 'b2fd19d29cb053e5747a1ff55ff109e5e154a8e0', class: "sd-table__middle--loading__spinner" }, hAsync("sd-loading-spinner", { key: '2f16c480b25032a9547ecdca61ce1c3838eab7ba' }))), hAsync("table", { key: 'ece092ed1ecb20a7ea7b131f8f6a4954b5bad1e3', part: "table", class: this.sdTableClasses }, this.renderHead(), this.renderBody())), !this.paginatedRows.length && (hAsync("div", { key: '076839c1e278879a01bfae3c42b62565b30796f7', class: "sd-table__bottom" }, hAsync("div", { key: 'e3dd7080da396abb350d31f7125f4a6f04c2f31b', class: "sd-table__no-data" }, hAsync("slot", { key: '81181ee58a7cb9ec8c89fa0e6cf37ef50e22f019', name: "no-data" }, this.noDataLabel))))), this.pagination && this.innerRows.length > 0 && (hAsync("div", { key: '14e4653021886d3d7241806429ff02430c5ff09f', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: 'e266a9bffeaf7ba012945e0866928cee7b8220d4', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '5ef017820acdcca279c9e1b46b79b4ba44b7dfca', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdUpdate: (e) => this.changeRowsPerPage(e.detail.value) })))))));
|
|
13712
13725
|
}
|
|
13713
13726
|
static get watchers() { return {
|
|
13714
13727
|
"columns": [{
|
|
@@ -13829,7 +13842,7 @@ class SdTabs {
|
|
|
13829
13842
|
return `square_${this.size}_${color}`;
|
|
13830
13843
|
}
|
|
13831
13844
|
render() {
|
|
13832
|
-
return (hAsync("div", { key: '
|
|
13845
|
+
return (hAsync("div", { key: '826e7c3a694d1243506fe8361553d476e21e71fb', class: this.getContainerClasses() }, this.tabs.map((tab, index) => {
|
|
13833
13846
|
const badgeName = this.getBadgeName(tab);
|
|
13834
13847
|
return (hAsync("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, hAsync("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge && hAsync("sd-tag", { name: badgeName, label: tab.badge.toString() })));
|
|
13835
13848
|
})));
|
|
@@ -14155,7 +14168,21 @@ class SdTextLink {
|
|
|
14155
14168
|
}; }
|
|
14156
14169
|
}
|
|
14157
14170
|
|
|
14158
|
-
const
|
|
14171
|
+
const TEXTAREA_TOKENS = {
|
|
14172
|
+
paddingX: inputTokens.input.sm.paddingX,
|
|
14173
|
+
paddingY: inputTokens.input.sm.paddingY,
|
|
14174
|
+
radius: inputTokens.input.sm.radius,
|
|
14175
|
+
fontSize: inputTokens.input.sm.typography.fontSize,
|
|
14176
|
+
lineHeight: inputTokens.input.sm.typography.lineHeight,
|
|
14177
|
+
fontWeight: inputTokens.input.sm.typography.fontWeight};
|
|
14178
|
+
const TEXTAREA_COLORS = {
|
|
14179
|
+
text: inputTokens.input.text,
|
|
14180
|
+
bg: inputTokens.input.bg,
|
|
14181
|
+
border: inputTokens.input.border,
|
|
14182
|
+
resizer: inputTokens.input.resizer,
|
|
14183
|
+
};
|
|
14184
|
+
|
|
14185
|
+
const sdTextareaCss = () => `sd-textarea{display:inline-flex}sd-textarea .sd-textarea__content{width:100%;display:flex}sd-textarea .sd-textarea__content .sd-textarea__native{width:100%;min-height:100px;border:none;outline:none;background:transparent;padding:var(--sd-textarea-padding-y) var(--sd-textarea-padding-x);font-family:inherit;font-size:var(--sd-textarea-font-size);line-height:var(--sd-textarea-line-height);font-weight:var(--sd-textarea-font-weight);color:var(--sd-textarea-text-color);resize:vertical}sd-textarea .sd-textarea__content .sd-textarea__native::placeholder{color:var(--sd-textarea-placeholder-color)}sd-textarea .sd-textarea__content .sd-textarea__native:disabled{cursor:not-allowed;color:var(--sd-textarea-disabled-color)}`;
|
|
14159
14186
|
|
|
14160
14187
|
class SdTextarea {
|
|
14161
14188
|
constructor(hostRef) {
|
|
@@ -14166,17 +14193,33 @@ class SdTextarea {
|
|
|
14166
14193
|
}
|
|
14167
14194
|
get host() { return getElement(this); }
|
|
14168
14195
|
value = null;
|
|
14169
|
-
|
|
14196
|
+
placeholder = '입력해 주세요.';
|
|
14170
14197
|
disabled = false;
|
|
14198
|
+
readonly = false;
|
|
14171
14199
|
autoFocus = false;
|
|
14172
14200
|
textareaClass = '';
|
|
14173
|
-
|
|
14201
|
+
textareaStyle = {};
|
|
14174
14202
|
maxLength;
|
|
14175
|
-
|
|
14176
|
-
|
|
14203
|
+
rows;
|
|
14204
|
+
spellcheck = false;
|
|
14205
|
+
width = '';
|
|
14206
|
+
// props - sd-field
|
|
14207
|
+
label = '';
|
|
14208
|
+
addonLabel = '';
|
|
14209
|
+
hint = '';
|
|
14210
|
+
errorMessage = '';
|
|
14211
|
+
icon = undefined;
|
|
14212
|
+
labelTooltip = '';
|
|
14213
|
+
labelTooltipProps = null;
|
|
14214
|
+
rules = [];
|
|
14215
|
+
error = false;
|
|
14216
|
+
status;
|
|
14177
14217
|
focused = false;
|
|
14178
14218
|
hovered = false;
|
|
14219
|
+
internalValue = null;
|
|
14179
14220
|
nativeEl = undefined;
|
|
14221
|
+
formField;
|
|
14222
|
+
name = nanoid();
|
|
14180
14223
|
input;
|
|
14181
14224
|
focus;
|
|
14182
14225
|
blur;
|
|
@@ -14189,12 +14232,21 @@ class SdTextarea {
|
|
|
14189
14232
|
this.input?.emit(this.value);
|
|
14190
14233
|
}
|
|
14191
14234
|
}
|
|
14192
|
-
async
|
|
14193
|
-
this.nativeEl?.focus();
|
|
14194
|
-
}
|
|
14195
|
-
async getNativeElement() {
|
|
14235
|
+
async sdGetNativeElement() {
|
|
14196
14236
|
return this.nativeEl || null;
|
|
14197
14237
|
}
|
|
14238
|
+
async sdValidate() {
|
|
14239
|
+
this.formField?.sdValidate();
|
|
14240
|
+
}
|
|
14241
|
+
async sdReset() {
|
|
14242
|
+
this.formField?.sdReset();
|
|
14243
|
+
}
|
|
14244
|
+
async sdResetValidate() {
|
|
14245
|
+
this.formField?.sdResetValidation();
|
|
14246
|
+
}
|
|
14247
|
+
async sdFocus() {
|
|
14248
|
+
this.formField?.sdFocus();
|
|
14249
|
+
}
|
|
14198
14250
|
componentWillLoad() {
|
|
14199
14251
|
if (this.value !== null && this.value !== undefined) {
|
|
14200
14252
|
this.internalValue = this.value;
|
|
@@ -14205,44 +14257,42 @@ class SdTextarea {
|
|
|
14205
14257
|
this.nativeEl?.focus();
|
|
14206
14258
|
}
|
|
14207
14259
|
}
|
|
14208
|
-
handleInput(event) {
|
|
14260
|
+
handleInput = (event) => {
|
|
14209
14261
|
const target = event.target;
|
|
14210
14262
|
this.internalValue = target.value;
|
|
14211
|
-
}
|
|
14212
|
-
handleFocus(type, event) {
|
|
14263
|
+
};
|
|
14264
|
+
handleFocus = async (type, event) => {
|
|
14213
14265
|
this.focused = type === 'focus';
|
|
14214
14266
|
if (type === 'blur') {
|
|
14267
|
+
if (this.rules && this.rules.length > 0) {
|
|
14268
|
+
await this.formField?.sdValidate();
|
|
14269
|
+
}
|
|
14215
14270
|
this.blur?.emit(event);
|
|
14216
14271
|
}
|
|
14217
14272
|
else {
|
|
14218
14273
|
this.focus?.emit(event);
|
|
14219
14274
|
}
|
|
14220
|
-
}
|
|
14221
|
-
getTextareaStatus() {
|
|
14222
|
-
if (this.disabled)
|
|
14223
|
-
return 'sd-textarea--disabled';
|
|
14224
|
-
if (this.hovered)
|
|
14225
|
-
return 'sd-textarea--hovered';
|
|
14226
|
-
if (this.focused)
|
|
14227
|
-
return 'sd-textarea--focused';
|
|
14228
|
-
return '';
|
|
14229
|
-
}
|
|
14230
|
-
getMaxLengthCounter() {
|
|
14231
|
-
if (this.maxLength === undefined) {
|
|
14232
|
-
return null;
|
|
14233
|
-
}
|
|
14234
|
-
const currentLength = (this.internalValue || '').length;
|
|
14235
|
-
return `${currentLength}/${this.maxLength}`;
|
|
14236
|
-
}
|
|
14237
|
-
hasFooter() {
|
|
14238
|
-
return this.helpText !== undefined || this.maxLength !== undefined;
|
|
14239
|
-
}
|
|
14275
|
+
};
|
|
14240
14276
|
render() {
|
|
14241
|
-
const
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
|
|
14245
|
-
|
|
14277
|
+
const cssVars = {
|
|
14278
|
+
'--sd-textarea-font-size': `${TEXTAREA_TOKENS.fontSize}px`,
|
|
14279
|
+
'--sd-textarea-line-height': `${TEXTAREA_TOKENS.lineHeight}px`,
|
|
14280
|
+
'--sd-textarea-font-weight': TEXTAREA_TOKENS.fontWeight,
|
|
14281
|
+
'--sd-textarea-padding-x': `${TEXTAREA_TOKENS.paddingX}px`,
|
|
14282
|
+
'--sd-textarea-padding-y': `${TEXTAREA_TOKENS.paddingY}px`,
|
|
14283
|
+
'--sd-textarea-radius': `${TEXTAREA_TOKENS.radius}px`,
|
|
14284
|
+
'--sd-textarea-text-color': TEXTAREA_COLORS.text.default,
|
|
14285
|
+
'--sd-textarea-placeholder-color': TEXTAREA_COLORS.text.placeholder,
|
|
14286
|
+
'--sd-textarea-disabled-color': TEXTAREA_COLORS.text.disabled,
|
|
14287
|
+
'--sd-textarea-bg-color': TEXTAREA_COLORS.bg.default,
|
|
14288
|
+
'--sd-textarea-disabled-bg-color': TEXTAREA_COLORS.bg.disabled,
|
|
14289
|
+
'--sd-textarea-border-color': TEXTAREA_COLORS.border.default,
|
|
14290
|
+
'--sd-textarea-resizer-color': TEXTAREA_COLORS.resizer.color,
|
|
14291
|
+
// sd-field 시스템 변수 override (textarea는 고정 높이가 아닌 auto)
|
|
14292
|
+
'--sd-system-size-field-sm-height': 'auto',
|
|
14293
|
+
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
14294
|
+
};
|
|
14295
|
+
return (hAsync("sd-field", { key: '390028112d84c22766c6e00fa3625312b8096629', name: this.name, label: this.label, 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 }, hAsync("div", { key: '026ec0293049da167e7dbab5d3a28593d5e6b291', class: "sd-textarea__content" }, hAsync("textarea", { key: 'd30b5e1bc61535c1c350f09bf2ea289f0b09001b', 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 }))));
|
|
14246
14296
|
}
|
|
14247
14297
|
static get watchers() { return {
|
|
14248
14298
|
"value": [{
|
|
@@ -14258,18 +14308,34 @@ class SdTextarea {
|
|
|
14258
14308
|
"$tagName$": "sd-textarea",
|
|
14259
14309
|
"$members$": {
|
|
14260
14310
|
"value": [1025],
|
|
14261
|
-
"
|
|
14311
|
+
"placeholder": [1],
|
|
14262
14312
|
"disabled": [4],
|
|
14313
|
+
"readonly": [4],
|
|
14263
14314
|
"autoFocus": [4, "auto-focus"],
|
|
14264
14315
|
"textareaClass": [1, "textarea-class"],
|
|
14265
|
-
"
|
|
14316
|
+
"textareaStyle": [16],
|
|
14266
14317
|
"maxLength": [2, "max-length"],
|
|
14267
|
-
"
|
|
14318
|
+
"rows": [2],
|
|
14319
|
+
"spellcheck": [4],
|
|
14320
|
+
"width": [8],
|
|
14321
|
+
"label": [1],
|
|
14322
|
+
"addonLabel": [1, "addon-label"],
|
|
14323
|
+
"hint": [1],
|
|
14324
|
+
"errorMessage": [1, "error-message"],
|
|
14325
|
+
"icon": [16],
|
|
14326
|
+
"labelTooltip": [1, "label-tooltip"],
|
|
14327
|
+
"labelTooltipProps": [16],
|
|
14328
|
+
"rules": [16],
|
|
14329
|
+
"error": [1028],
|
|
14330
|
+
"status": [1],
|
|
14331
|
+
"focused": [1028],
|
|
14332
|
+
"hovered": [1028],
|
|
14268
14333
|
"internalValue": [32],
|
|
14269
|
-
"
|
|
14270
|
-
"
|
|
14271
|
-
"
|
|
14272
|
-
"
|
|
14334
|
+
"sdGetNativeElement": [64],
|
|
14335
|
+
"sdValidate": [64],
|
|
14336
|
+
"sdReset": [64],
|
|
14337
|
+
"sdResetValidate": [64],
|
|
14338
|
+
"sdFocus": [64]
|
|
14273
14339
|
},
|
|
14274
14340
|
"$listeners$": undefined,
|
|
14275
14341
|
"$lazyBundleId$": "-",
|
|
@@ -14332,10 +14398,10 @@ class SdToast {
|
|
|
14332
14398
|
render() {
|
|
14333
14399
|
const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
|
|
14334
14400
|
const iconSize = Number(TOAST_LAYOUT.iconSize);
|
|
14335
|
-
return (hAsync("div", { key: '
|
|
14401
|
+
return (hAsync("div", { key: 'cb42937774233de10872edb8414db88f03868eb3', style: {
|
|
14336
14402
|
'--sd-toast-bg': typeConfig.bg,
|
|
14337
14403
|
'--sd-toast-text': typeConfig.content,
|
|
14338
|
-
} }, hAsync("div", { key: '
|
|
14404
|
+
} }, hAsync("div", { key: 'e58b3335c4d7c450ef3686c53138636502c4e0f3', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (hAsync("div", { key: '62e42c814ab2f15d563b3f75c4e9dd3e559318a0', class: "sd-toast__icon" }, hAsync("sd-icon", { key: '3e346baecd3207ee817ba843427ed2076fd7cc7c', name: this.icon, size: iconSize, color: typeConfig.content }))), hAsync("div", { key: '700c7127a1d59409103b5ceb917e584020078736', class: "sd-toast__content" }, hAsync("span", { key: 'd4165f0e324048edcb2492f3050795d26ce1fc86', class: "sd-toast__message" }, this.message)), this.link && (hAsync("a", { key: 'f87089865b4e4fd5b488185478c453641920ac92', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (hAsync("sd-ghost-button", { key: '33de3a35d1532cd15215751996827a462a7b8cad', class: "sd-toast__close", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
14339
14405
|
}
|
|
14340
14406
|
static get style() { return sdToastCss(); }
|
|
14341
14407
|
static get cmpMeta() { return {
|
|
@@ -14587,7 +14653,7 @@ class SdToastContainer {
|
|
|
14587
14653
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
14588
14654
|
const indexMap = new Map();
|
|
14589
14655
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
14590
|
-
return (hAsync("div", { key: '
|
|
14656
|
+
return (hAsync("div", { key: '7d2c4a095a0762710024c4c102ce49c7c7163368', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
14591
14657
|
this.expanded = true;
|
|
14592
14658
|
this.pauseTimers();
|
|
14593
14659
|
}, onMouseLeave: () => {
|
|
@@ -14662,7 +14728,7 @@ class SdToggle {
|
|
|
14662
14728
|
this.change.emit(newValue);
|
|
14663
14729
|
};
|
|
14664
14730
|
render() {
|
|
14665
|
-
return (hAsync("label", { key: '
|
|
14731
|
+
return (hAsync("label", { key: '9f4cf71a2aab588deb68d8e6908f0988ddbacb90', "aria-label": this.label || 'toggle', class: this.toggleClasses }, hAsync("input", { key: '6d1279761ea384a233bff234c549030709fd4ea3', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), this.label && hAsync("span", { key: '7ecd96f5e2c48fda17ed0086ab3cc8bc1caab458', class: "sd-toggle__label" }, this.label), hAsync("div", { key: '26f4d468e4ff0c4473e2ce00b7e69a855a249a96', class: "sd-toggle__track" }, hAsync("div", { key: '3a7f4019197cfa23dc268ee95308e60d7159ba28', class: "sd-toggle__thumb" }))));
|
|
14666
14732
|
}
|
|
14667
14733
|
static get style() { return sdToggleCss(); }
|
|
14668
14734
|
static get cmpMeta() { return {
|
|
@@ -14718,7 +14784,7 @@ class SdToggleButton {
|
|
|
14718
14784
|
this.change.emit(newValue);
|
|
14719
14785
|
};
|
|
14720
14786
|
render() {
|
|
14721
|
-
return (hAsync("label", { key: '
|
|
14787
|
+
return (hAsync("label", { key: '9d98201d5ab361d0d2d5c8c61ce1e5b129f4d588', class: this.buttonClasses, "aria-label": this.label || 'toggle button' }, this.label, hAsync("input", { key: 'a745715a752bf99a94ab01d8c07c87d0f507a8ef', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
14722
14788
|
}
|
|
14723
14789
|
static get style() { return sdToggleButtonCss(); }
|
|
14724
14790
|
static get cmpMeta() { return {
|
|
@@ -14846,14 +14912,14 @@ class SdTooltip {
|
|
|
14846
14912
|
const toggleTooltip = () => (this.showTooltip = !this.showTooltip);
|
|
14847
14913
|
const divTrigger = trigger === 'hover' ? hoverTrigger : this.label ? {} : { onClick: toggleTooltip };
|
|
14848
14914
|
const buttonClickTrigger = trigger === 'click' && this.label ? { onSdClick: toggleTooltip } : {};
|
|
14849
|
-
return (hAsync(Fragment, { key: '
|
|
14915
|
+
return (hAsync(Fragment, { key: '2e854c5a056af93e65460500da199ddd763de777' }, hAsync("div", { key: 'aa5e250e4d371c4a54401d367fdf647cefb6aecc', class: `sd-tooltip-trigger ${this.sdClass || ''}`, ...divTrigger }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: icon, size: this.buttonSize ?? 'sm', color: color, variant: this.buttonVariant ?? 'primary', class: "sd-tooltip", ...buttonClickTrigger })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (hAsync("sd-floating-portal", { key: 'f94aa0d5730b7f585f943b60bf39e4248d0b695e', parentRef: this.buttonEl, onSdClose: this.handleClose.bind(this), placement: placement, offset: this.tooltipOffset }, hAsync("div", { key: '76ece6c53c4daad54a13950b616bb7edd0827f81', ref: el => (this.menuEl = el), class: {
|
|
14850
14916
|
'sd-floating-menu': true,
|
|
14851
14917
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
14852
14918
|
[`sd-floating-menu--${placement}`]: true,
|
|
14853
14919
|
}, style: {
|
|
14854
14920
|
'--sd-floating-bg': typeConfig.bg,
|
|
14855
14921
|
'--sd-floating-content': typeConfig.content,
|
|
14856
|
-
}, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, hAsync("i", { key: '
|
|
14922
|
+
}, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, hAsync("i", { key: '4beed6bf9afbccd072c2c8ab9885d7a8bde99284', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, hAsync(TooltipArrow, { key: 'e73b4c9085c57f40410ecc0a7ec758019418899e' })), hAsync("div", { key: '8dcd58077836c846fafb948dbf0c77e149987818', class: "sd-floating-menu__content", innerHTML: this.slotContentHTML }))))));
|
|
14857
14923
|
}
|
|
14858
14924
|
static get style() { return sdTooltipCss(); }
|
|
14859
14925
|
static get cmpMeta() { return {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={input:{sm:{height:"28",paddingX:"12",gap:"8",radius:"4",typography:{fontWeight:"400",fontSize:"12",lineHeight:"20"}},md:{height:"36",paddingX:"16",gap:"12",radius:"6",typography:{fontWeight:"400",fontSize:"16",lineHeight:"26"}},bg:{barcode:"#FAFAA1"},text:{default:"#222222",placeholder:"#AAAAAA",disabled:"#888888"},icon:{default:"#888888"}}};export{e as i}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as t,H as s,c as e,h as o,t as a}from"./p-D-pFdq6g.js";import{d as n}from"./p-B3CfLqLu.js";import{d as c}from"./p-DSYw-7RA.js";var d={bg:"#07284A",content:"#FFFFFF"},i={bg:"#FB4444",content:"#FFFFFF"},r={bg:"#FFC700",content:"#222222"},l={bg:"#00973C",content:"#FFFFFF"},b={bg:"#005CC9",content:"#FFFFFF"};const p={default:{bg:d.bg,content:d.content},danger:{bg:i.bg,content:i.content},caution:{bg:r.bg,content:r.content},complete:{bg:l.bg,content:l.content},accent:{bg:b.bg,content:b.content}},f={iconSize:"16"},g=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.close=e(this,"sdClose",7)}icon;message;link;linkLabel;useClose=!1;type="default";close;render(){const t=p[this.type]??p.default,s=Number(f.iconSize);return o("div",{key:"630fa227d71315f8e0e61bb19d0f37ca8363b856",style:{"--sd-toast-bg":t.bg,"--sd-toast-text":t.content}},o("div",{key:"49fd9cb53f3c12aa372b44191ccd9f09cc159deb",class:"sd-toast",role:"status","aria-live":"polite","aria-atomic":"true"},this.icon&&o("div",{key:"c57ccceb89350863b19f00b7d725c20ddde33789",class:"sd-toast__icon"},o("sd-icon",{key:"f17a78f7e326005117d69dddcb03e8c0a1443efe",name:this.icon,size:s,color:t.content})),o("div",{key:"713c2c40003b17f29c6921826b4ef3a68d201761",class:"sd-toast__content"},o("span",{key:"50e48da188d6ab805d7cce55705be5da19207724",class:"sd-toast__message"},this.message)),this.link&&o("a",{key:"f04fa2c7386cfb1655bfcfd76e6c1dcb1c5c1ea4",href:this.link,class:"sd-toast__link",target:"_blank",rel:"noopener noreferrer"},this.linkLabel||this.link),this.useClose&&o("sd-ghost-button",{key:"994248033b0d762693a9bacded1454ae1b66c770",class:"sd-toast__close",icon:"close",ariaLabel:"close",size:"xs",onClick:()=>this.close.emit()})))}static get style(){return"sd-toast{display:block;width:fit-content;height:fit-content}sd-toast .sd-toast{display:flex;width:fit-content;align-items:center;gap:var(--sd-toast-gap, 16px);padding:var(--sd-toast-padding-y, 12px) var(--sd-toast-padding-x, 24px);border-radius:var(--sd-toast-radius, 8px);background-color:var(--sd-toast-bg);color:var(--sd-toast-text);box-shadow:2px 2px 8px 2px rgba(0, 0, 0, 0.2)}sd-toast .sd-toast__icon{display:flex;align-items:center;flex-shrink:0}sd-toast .sd-toast__content{display:flex;flex:1}sd-toast .sd-toast__message{font-size:14px;line-height:24px;font-weight:700;white-space:nowrap}sd-toast .sd-toast__link{font-size:14px;line-height:24px;font-weight:700;color:var(--sd-toast-text);text-decoration:underline;cursor:pointer;transition:opacity 0.2s ease;margin-left:4px}sd-toast .sd-toast__link:hover{opacity:0.8}sd-toast .sd-toast__button{flex-shrink:0}sd-toast .sd-toast__button button{color:var(--button-text-color, inherit) !important}sd-toast .sd-toast__close{flex-shrink:0}"}},[512,"sd-toast",{icon:[1],message:[1],link:[1],linkLabel:[1,"link-label"],useClose:[4,"use-close"],type:[1]}]);function h(){"undefined"!=typeof customElements&&["sd-toast","sd-ghost-button","sd-icon"].forEach((t=>{switch(t){case"sd-toast":customElements.get(a(t))||customElements.define(a(t),g);break;case"sd-ghost-button":customElements.get(a(t))||n();break;case"sd-icon":customElements.get(a(t))||c()}}))}export{g as S,h as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,c as d,h as o}from"./p-DsU722JF.js";import{m as t}from"./p-mO5GcwI3.js";const{modal:e}=t,i=e.action,s={radius:Number(e.radius),bg:e.bg,headerPaddingX:Number(i.header.paddingX),headerPaddingY:Number(i.header.paddingY),headerGap:Number(i.header.gap),bodyPaddingX:Number(i.body.paddingX),bodyPaddingBottom:Number(i.body.paddingBottom),footerPaddingX:Number(i.footer.paddingX),footerPaddingY:Number(i.footer.paddingY),footerGap:Number(i.footer.gap),footerBg:i.footer.bg,footerBorder:i.footer.border},n={color:i.title.color,fontFamily:i.title.typography.fontFamily,fontWeight:i.title.typography.fontWeight,fontSize:Number(i.title.typography.fontSize),lineHeight:Number(i.title.typography.lineHeight)},l=class{constructor(o){a(this,o),this.close=d(this,"sdClose",7),this.ok=d(this,"sdOk",7)}modalTitle="";buttonLabel="확인";close;ok;render(){return o("div",{key:"c8d2ab2b26ed09c4e7af102d5c63bd15bea93556",class:"sd-action-modal",style:{"--sd-action-modal-radius":`${s.radius}px`,"--sd-action-modal-bg":s.bg,"--sd-action-modal-header-padding-x":`${s.headerPaddingX}px`,"--sd-action-modal-header-padding-y":`${s.headerPaddingY}px`,"--sd-action-modal-header-gap":`${s.headerGap}px`,"--sd-action-modal-body-padding-x":`${s.bodyPaddingX}px`,"--sd-action-modal-body-padding-bottom":`${s.bodyPaddingBottom}px`,"--sd-action-modal-footer-padding-x":`${s.footerPaddingX}px`,"--sd-action-modal-footer-padding-y":`${s.footerPaddingY}px`,"--sd-action-modal-footer-gap":`${s.footerGap}px`,"--sd-action-modal-footer-bg":s.footerBg,"--sd-action-modal-footer-border":s.footerBorder,"--sd-action-modal-title-color":n.color,"--sd-action-modal-title-font-family":n.fontFamily,"--sd-action-modal-title-font-weight":n.fontWeight,"--sd-action-modal-title-font-size":`${n.fontSize}px`,"--sd-action-modal-title-line-height":`${n.lineHeight}px`}},o("header",{key:"0a2b8ed31201b01570002fc22acd721bfca7cb94",class:"sd-action-modal__header"},o("h2",{key:"434595ee377242447556598a9e60e94fb776f8a3",class:"sd-action-modal__title"},this.modalTitle),o("div",{key:"e60988af90d0abc16508144cb45e2334e096539c",class:"sd-action-modal__header-sub"},o("slot",{key:"74aabd257bfcbc1458446d8712df399573cecca7",name:"header-sub-title"})),o("sd-ghost-button",{key:"b4937b9d686047ae8e9bfcd12413dbf42f4e90ad",class:"sd-action-modal__close",icon:"close",ariaLabel:"close",onClick:()=>this.close.emit()})),o("div",{key:"9a0a7b4927a4edb4252f843dd1bd71037dbb94dd",class:"sd-action-modal__body"},o("slot",{key:"cc92c17e415edf18f990d633fbdaf70dd757da72",name:"body"})),o("footer",{key:"35ff49a26c607430e0bd0553aa6d350cbd6e9423",class:"sd-action-modal__footer"},o("div",{key:"cd346a4a7195ad262f2298b512dfac5b3cabff2f",class:"sd-action-modal__footer-sub"},o("slot",{key:"207c68c831e06e05cc2d17c3ac93aefd47ed9b28",name:"bottom-sub-content"})),o("sd-button-v2",{key:"f2de8110262e9bc403a3d65ba9324c3b9a6225c9",name:"primary_md",label:this.buttonLabel,onSdClick:()=>this.ok.emit()})))}};l.style="sd-action-modal{display:block;width:fit-content;min-width:520px}sd-action-modal .sd-action-modal{position:relative;display:flex;flex-direction:column;border-radius:var(--sd-action-modal-radius);background:var(--sd-action-modal-bg);box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.2);overflow:hidden}sd-action-modal .sd-action-modal__header{display:flex;align-items:center;gap:var(--sd-action-modal-header-gap);padding:var(--sd-action-modal-header-padding-y) calc(var(--sd-action-modal-header-padding-x) + 20px) var(--sd-action-modal-header-padding-y) var(--sd-action-modal-header-padding-x)}sd-action-modal .sd-action-modal__title{margin:0;color:var(--sd-action-modal-title-color);font-family:var(--sd-action-modal-title-font-family);font-weight:var(--sd-action-modal-title-font-weight);font-size:var(--sd-action-modal-title-font-size);line-height:var(--sd-action-modal-title-line-height);white-space:nowrap}sd-action-modal .sd-action-modal__header-sub{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px}sd-action-modal .sd-action-modal__header-sub:empty{display:none}sd-action-modal .sd-action-modal__close{position:absolute;top:16px;right:16px;cursor:pointer}sd-action-modal .sd-action-modal__body{flex:1 1 auto;min-height:0;padding:0 var(--sd-action-modal-body-padding-x) var(--sd-action-modal-body-padding-bottom);overflow:auto}sd-action-modal .sd-action-modal__footer{display:flex;align-items:center;gap:var(--sd-action-modal-footer-gap);padding:var(--sd-action-modal-footer-padding-y) var(--sd-action-modal-footer-padding-x);background:var(--sd-action-modal-footer-bg);border-top:1px solid var(--sd-action-modal-footer-border)}sd-action-modal .sd-action-modal__footer>sd-button-v2{margin-left:auto}sd-action-modal .sd-action-modal__footer-sub{display:flex;align-items:center;gap:8px;min-width:0}sd-action-modal .sd-action-modal__footer-sub:empty{display:none}";export{l as sd_action_modal}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,g as a,h as s}from"./p-DsU722JF.js";const r=class{constructor(a){t(this,a),this.input=e(this,"sdUpdate",7),this.focus=e(this,"sdFocus",7),this.blur=e(this,"sdBlur",7)}get host(){return a(this)}value=null;name;disabled=!1;autoFocus=!1;textareaClass="";helpText;maxLength;placeholder="입력해 주세요.";internalValue=null;focused=!1;hovered=!1;nativeEl=void 0;input;focus;blur;valueChanged(t){this.internalValue=t}internalValueChanged(t){t!==this.value&&(this.value=t,this.input?.emit(this.value))}async sdFocus(){this.nativeEl?.focus()}async getNativeElement(){return this.nativeEl||null}componentWillLoad(){null!=this.value&&(this.internalValue=this.value)}componentDidLoad(){this.autoFocus&&this.nativeEl?.focus()}handleInput(t){this.internalValue=t.target.value}handleFocus(t,e){this.focused="focus"===t,"blur"===t?this.blur?.emit(e):this.focus?.emit(e)}getTextareaStatus(){return this.disabled?"sd-textarea--disabled":this.hovered?"sd-textarea--hovered":this.focused?"sd-textarea--focused":""}getMaxLengthCounter(){return void 0===this.maxLength?null:`${(this.internalValue||"").length}/${this.maxLength}`}hasFooter(){return void 0!==this.helpText||void 0!==this.maxLength}render(){const t=this.getMaxLengthCounter();return s("div",{key:"05fa25ff5bc2a8a0927fbc5301c1404a92e26d5c",class:{"sd-textarea":!0,[this.getTextareaStatus()]:!0},onMouseEnter:()=>this.hovered=!0,onMouseLeave:()=>this.hovered=!1},s("div",{key:"a15fabde4ef35369129cb638aa0a680f4c8e231c",class:"sd-textarea__content"},s("textarea",{key:"1967728740bfa9b749040eefbd813116f281db91",name:this.name,ref:t=>this.nativeEl=t,class:`sd-textarea__native ${this.textareaClass}`,value:this.internalValue||"",placeholder:this.placeholder,disabled:this.disabled,autofocus:this.autoFocus,maxLength:this.maxLength,onInput:this.handleInput.bind(this),onFocus:t=>this.handleFocus("focus",t),onBlur:t=>this.handleFocus("blur",t)})),this.hasFooter()&&s("div",{key:"ad466295bab42461aeb7a29e81ca147cc473cbea",class:"sd-textarea__footer"},void 0!==this.helpText&&s("span",{key:"d3ad4c9ae5e16114b2b1216ae643c5a53b7bd02a",class:"sd-textarea__help-text"},this.helpText),null!==t&&s("span",{key:"bd8ee146625f96e4b19b15247ca72a3b0816d2a9",class:"sd-textarea__counter"},t)))}static get watchers(){return{value:[{valueChanged:0}],internalValue:[{internalValueChanged:0}]}}};r.style="sd-textarea{display:block}sd-textarea .sd-textarea{display:flex;flex-direction:column;color:#333333;font-size:12px;line-height:20px}sd-textarea .sd-textarea .sd-textarea__content{width:100%;display:flex;border:1px solid #AAAAAA;border-radius:4px;background:white}sd-textarea .sd-textarea .sd-textarea__content .sd-textarea__native{width:100%;min-height:100px;border:none;outline:none;background:transparent;padding:4px 8px;font-family:inherit;font-size:12px;line-height:20px;color:#333333;resize:vertical}sd-textarea .sd-textarea .sd-textarea__content .sd-textarea__native::placeholder{color:#AAAAAA}sd-textarea .sd-textarea--hovered .sd-textarea__content,sd-textarea .sd-textarea--focused .sd-textarea__content{border-color:#0075FF;box-shadow:0 0 4px 0 rgba(0, 113, 255, 0.4)}sd-textarea .sd-textarea--disabled{cursor:not-allowed !important;box-shadow:none !important}sd-textarea .sd-textarea--disabled .sd-textarea__content{background:#EEEEEE !important;border:1px solid #CCCCCC !important;color:#888888 !important}sd-textarea .sd-textarea--disabled .sd-textarea__content .sd-textarea__native{cursor:not-allowed !important;color:#888888 !important}sd-textarea .sd-textarea .sd-textarea__footer{display:flex;justify-content:space-between;align-items:center;margin-top:4px;font-size:12px;line-height:20px}sd-textarea .sd-textarea .sd-textarea__help-text{font-size:12px;line-height:20px;font-weight:400;color:#222222}sd-textarea .sd-textarea .sd-textarea__counter{color:#CCCCCC;margin-left:auto}";export{r as sd_textarea}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={input:{sm:{height:"28",paddingX:"12",gap:"8",radius:"4",typography:{fontWeight:"400",fontSize:"12",lineHeight:"20"}},md:{height:"36",paddingX:"16",gap:"12",radius:"6",typography:{fontWeight:"400",fontSize:"16",lineHeight:"26"}},bg:{barcode:"#FAFAA1"},text:{default:"#222222",placeholder:"#AAAAAA",disabled:"#888888"},icon:{default:"#888888"}}};export{e as i}
|