@sellmate/design-system 1.0.17 → 1.0.18
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-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_21.cjs.entry.js +24 -24
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/sd-file-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-toast.cjs.entry.js +60 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
- package/dist/collection/components/sd-field/sd-field.js +3 -3
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +3 -3
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +1 -1
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
- package/dist/collection/components/{sd-toast-message/sd-toast-message.css → sd-toast/sd-toast.css} +13 -13
- package/dist/collection/components/{sd-toast-message/sd-toast-message.js → sd-toast/sd-toast.js} +11 -11
- package/dist/components/{p-BSPYsa_p.js → p-7hAgxVaZ.js} +1 -1
- package/dist/components/{p-DGXSqFYF.js → p-Ay5V-5Fu.js} +1 -1
- package/dist/components/{p-BJ1sZUZE.js → p-B45-wHcP.js} +1 -1
- package/dist/components/{p--wNfOAvE.js → p-BDlbibwl.js} +1 -1
- package/dist/components/{p-BRSMWd2J.js → p-BkU8yMUR.js} +1 -1
- package/dist/components/{p-IlOHs7VA.js → p-Bxs0Hp4o.js} +1 -1
- package/dist/components/{p-BumvzURf.js → p-CIDMF6fj.js} +1 -1
- package/dist/components/{p-BUiP8HLx.js → p-CNgER9mk.js} +1 -1
- package/dist/components/{p-BhfNRQpq.js → p-Csz5Om2E.js} +1 -1
- package/dist/components/{p-D9QyXmjs.js → p-Czdx4VDt.js} +1 -1
- package/dist/components/p-DHdV8DHV.js +1 -0
- package/dist/components/{p-B1d3IESD.js → p-DOdjsjwr.js} +1 -1
- package/dist/components/{p-zP9SItz2.js → p-DojkP9rD.js} +1 -1
- package/dist/components/{p-CbR8h94f.js → p-GjahxZoU.js} +1 -1
- package/dist/components/{p-Ca2v-uuC.js → p-IFDX7o1t.js} +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.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-floating-portal.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-loading-spinner.js +1 -1
- package/dist/components/sd-modal-card.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-progress.js +1 -1
- package/dist/components/sd-select-dropdown.js +1 -1
- package/dist/components/sd-select-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.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/{sd-toast-message.d.ts → sd-toast.d.ts} +4 -4
- package/dist/components/sd-toast.js +1 -0
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-b2bbc545.entry.js → p-12669d98.entry.js} +1 -1
- package/dist/design-system/{p-6d82343b.entry.js → p-21da28bf.entry.js} +1 -1
- package/dist/design-system/{p-6d573397.entry.js → p-2c776f94.entry.js} +1 -1
- package/dist/design-system/p-31175b5c.entry.js +1 -0
- package/dist/design-system/{p-ffd96f05.entry.js → p-358de11a.entry.js} +1 -1
- package/dist/design-system/{p-6d9053d6.entry.js → p-a4f8f2cd.entry.js} +1 -1
- package/dist/design-system/{p-6c7732fd.entry.js → p-b3a0300b.entry.js} +1 -1
- package/dist/design-system/{p-5b616cae.entry.js → p-c5837bdf.entry.js} +1 -1
- package/dist/design-system/p-d9af74c0.entry.js +1 -0
- package/dist/design-system/{p-d676165a.entry.js → p-f69a9ad8.entry.js} +1 -1
- package/dist/design-system/p-fe119275.entry.js +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-button_21.entry.js +24 -24
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-date-picker.entry.js +1 -1
- package/dist/esm/sd-file-picker.entry.js +3 -3
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-select-multiple.entry.js +1 -1
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/esm/sd-toast.entry.js +58 -0
- package/dist/types/components/{sd-toast-message/sd-toast-message.d.ts → sd-toast/sd-toast.d.ts} +1 -1
- package/dist/types/components.d.ts +19 -19
- package/hydrate/index.js +50 -50
- package/hydrate/index.mjs +50 -50
- package/package.json +1 -1
- package/dist/cjs/sd-toast-message.cjs.entry.js +0 -60
- package/dist/components/p-D8iZcruV.js +0 -1
- package/dist/components/sd-toast-message.js +0 -1
- package/dist/design-system/p-337a0cac.entry.js +0 -1
- package/dist/design-system/p-a98c256a.entry.js +0 -1
- package/dist/design-system/p-e78cd4af.entry.js +0 -1
- package/dist/esm/sd-toast-message.entry.js +0 -58
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index--TtofS7_.js');
|
|
4
|
+
var resolveColor = require('./resolveColor-B7Ku3IGq.js');
|
|
5
|
+
|
|
6
|
+
const sdToastCss = () => `sd-toast{display:block;width:fit-content;height:fit-content}sd-toast .sd-toast{display:flex;width:fit-content;align-items:center;gap:16px;padding:12px 24px;border-radius:4px;background-color:var(--sd-toast-bg);color:var(--sd-toast-text);transition:opacity 0.2s ease, visibility 0.2s ease;box-shadow:2px 2px 8px 2px rgba(0, 0, 0, 0.2)}sd-toast .sd-toast--hidden{opacity:0;visibility:hidden;pointer-events:none}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:20px;font-weight:400}sd-toast .sd-toast__link{font-size:14px;line-height:20px;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{display:flex;align-items:center;justify-content:center;padding:4px;background-color:transparent;border:none;cursor:pointer;transition:opacity 0.2s ease;flex-shrink:0}sd-toast .sd-toast__close:hover{opacity:0.7}sd-toast .sd-toast__close:active{opacity:0.5}`;
|
|
7
|
+
|
|
8
|
+
const SdToast = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.close = index.createEvent(this, "sdClose");
|
|
12
|
+
this.buttonClick = index.createEvent(this, "sdButtonClick");
|
|
13
|
+
}
|
|
14
|
+
icon;
|
|
15
|
+
message;
|
|
16
|
+
link;
|
|
17
|
+
linkLabel;
|
|
18
|
+
buttonLabel;
|
|
19
|
+
useClose = false;
|
|
20
|
+
type = 'basicDark';
|
|
21
|
+
close;
|
|
22
|
+
buttonClick;
|
|
23
|
+
isVisible = true;
|
|
24
|
+
static COLOR_OF_TYPE = {
|
|
25
|
+
basicLight: { background: 'white', text: 'grey_95' },
|
|
26
|
+
basicDark: { background: 'steelblue_90', text: 'white' },
|
|
27
|
+
error: { background: 'red_70', text: 'white' },
|
|
28
|
+
caution: { background: 'yellow_40', text: 'grey_90' },
|
|
29
|
+
complete: { background: 'green_75', text: 'white' },
|
|
30
|
+
progress: { background: 'brilliantblue_80', text: 'white' },
|
|
31
|
+
};
|
|
32
|
+
handleClose = () => {
|
|
33
|
+
this.isVisible = false;
|
|
34
|
+
this.close.emit();
|
|
35
|
+
};
|
|
36
|
+
handleButtonClick = () => {
|
|
37
|
+
this.buttonClick.emit();
|
|
38
|
+
};
|
|
39
|
+
getContainerClasses() {
|
|
40
|
+
const classes = ['sd-toast', `sd-toast--${this.type}`];
|
|
41
|
+
if (!this.isVisible) {
|
|
42
|
+
classes.push('sd-toast--hidden');
|
|
43
|
+
}
|
|
44
|
+
return classes.join(' ');
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
const colorTokens = SdToast.COLOR_OF_TYPE[this.type];
|
|
48
|
+
const colors = {
|
|
49
|
+
background: resolveColor.resolveColor(colorTokens.background),
|
|
50
|
+
text: resolveColor.resolveColor(colorTokens.text),
|
|
51
|
+
};
|
|
52
|
+
return (index.h("div", { key: 'c7e1ba9fbe5a72c40f9e07320f03b120b2d5e1b5', style: {
|
|
53
|
+
'--sd-toast-bg': colors.background,
|
|
54
|
+
'--sd-toast-text': colors.text,
|
|
55
|
+
} }, index.h("div", { key: '7670d3e2dfa498769339e46d112f912c202a4f65', class: this.getContainerClasses(), role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: 'ce80acefc1e158e1d5a115b0d87c133b4029641f', class: "sd-toast__icon" }, index.h("sd-icon", { key: '4aff360b1552fff624a15432cdec8db2197e57e1', name: this.icon, size: 16, color: colors.text }))), index.h("div", { key: '2b8a6e16db7d0cc15118c542563d264ce42817a2', class: "sd-toast__content" }, index.h("span", { key: 'af3eac296d5b0c61bbd60e644aa0058b3acc50b5', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: 'd4fa4ba71e023632b29d81fc119e8dee8c66fbc7', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: '71788fd881e06fe4ce8970ec02e041a31c12403b', class: `sd-toast__button ${this.type === 'basicLight' ? 'text-white' : ''}`, label: this.buttonLabel, variant: "primary", color: this.type === 'basicLight' ? 'oceanblue_75' : 'white', size: "sm", onSdClick: this.handleButtonClick, style: this.type !== 'basicLight' ? { '--button-text-color': resolveColor.resolveColor('grey_95') } : {} })), this.useClose && (index.h("button", { key: 'a2d1b78f9b25db8c2de9a949c34ffbd9db3d1ab8', type: "button", class: "sd-toast__close", onClick: this.handleClose, "aria-label": "Close", title: "Close" }, index.h("sd-icon", { key: '6cb82a239b71c8303ec544cfa41fd91a940054d4', name: "close", size: 12, color: colors.text }))))));
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
SdToast.style = sdToastCss();
|
|
59
|
+
|
|
60
|
+
exports.sd_toast = SdToast;
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"components/sd-table/sd-table.js",
|
|
15
15
|
"components/sd-tabs/sd-tabs.js",
|
|
16
16
|
"components/sd-tag/sd-tag.js",
|
|
17
|
-
"components/sd-toast-message/sd-toast-message.js",
|
|
18
17
|
"components/sd-badge/sd-badge.js",
|
|
19
18
|
"components/sd-card/sd-card.js",
|
|
20
19
|
"components/sd-date-picker/sd-date-picker.js",
|
|
@@ -37,6 +36,7 @@
|
|
|
37
36
|
"components/sd-select-multiple/sd-select-multiple.js",
|
|
38
37
|
"components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js",
|
|
39
38
|
"components/sd-textarea/sd-textarea.js",
|
|
39
|
+
"components/sd-toast/sd-toast.js",
|
|
40
40
|
"components/sd-toggle/sd-toggle.js",
|
|
41
41
|
"components/sd-toggle-button/sd-toggle-button.js"
|
|
42
42
|
],
|
|
@@ -6,7 +6,7 @@ export class SdBadge {
|
|
|
6
6
|
label = '';
|
|
7
7
|
render() {
|
|
8
8
|
const resolvedColor = resolveColor(this.color);
|
|
9
|
-
return (h("div", { key: '
|
|
9
|
+
return (h("div", { key: '30d12c1c50dd761e04f39c1e00d8bad166e63c99', class: `sd-badge sd-badge--${this.size}`, style: { '--sd-badge-color': resolvedColor } }, h("div", { key: 'f6eb92732c9b0768d8663c0cdb08b02654de8697', class: "sd-badge__dot" }), h("div", { key: '4588f505fe8dc47b0ae51063db3728fcd3330d98', class: "sd-badge__label" }, this.label)));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "sd-badge"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -3,7 +3,7 @@ export class SdCard {
|
|
|
3
3
|
bordered = false;
|
|
4
4
|
sdClass = '';
|
|
5
5
|
render() {
|
|
6
|
-
return (h(Fragment, { key: '
|
|
6
|
+
return (h(Fragment, { key: 'e99e472e629ea22ebdeba34e87c6202bbde083fc' }, h("div", { key: 'a8ea9e169ecafd14f8f528dc1c5534d2790a494f', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: '60f687272faa536e182e9a65ea0c07a233194bd8' }))));
|
|
7
7
|
}
|
|
8
8
|
static get is() { return "sd-card"; }
|
|
9
9
|
static get originalStyleUrls() {
|
|
@@ -76,7 +76,7 @@ export class SdDatePicker {
|
|
|
76
76
|
this.isOpen = false;
|
|
77
77
|
};
|
|
78
78
|
render() {
|
|
79
|
-
return (h("div", { key: '
|
|
79
|
+
return (h("div", { key: '48a0f667e32a558c3740a9a7c08c828bc6351526', class: { 'sd-date-picker': true, 'sd-date-picker--disabled': this.disabled } }, h("sd-input", { key: 'dbb1aa3920825121c96b1b52b0426cd147dc5a9c', ref: el => (this.inputEl = el), value: this.value, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: '2239f7d145f74429e5281dd2375fa3d7653f526f', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: '713321553ad27a17ab6d680230f983e0eb6147a4', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: '5d76ddefb3832251708406deec1731a7d0708839', class: "sd-date-picker__menu" }, h("div", { key: '2a206d6f218f8076a3b40038e17ee51ea14f4209', class: "sd-date-picker__header" }, h("div", { key: '0986903e283c554d71be5dcae48858eab3909cde', class: "year-nav" }, h("button", { key: 'f9a047da8de609664b2a14f369cc3a56ee3e5d4b', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, h("sd-icon", { key: '967e915a3d5b6e2a394d6be2a5e482667bf3aa4e', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '3b732eee2b5db4bb56d1cd84887270c5dc57e249', class: "year-nav__current" }, this.currentYear), h("button", { key: 'a93b7f38a9c352120c9b3c4bc7cfb9461a546580', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, h("sd-icon", { key: 'd4fc5451575d40a8d62d0b5cf6fb3cdd0e4a1cf7', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: 'de99ab843195d1c01e4af37a723ed0e101e84f7b', class: "month-nav" }, h("button", { key: '1b9cf039c53437ddd6d90489ca6d87f8a57e43f2', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, h("sd-icon", { key: '09908b70655302fe6de6b0bfb05488a0de3abf79', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '1ebb8e3bd6bfccabd9503b8837a59bd0f27e10c9', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), h("button", { key: 'ae4ede6b4a01bbcb543f8964961e665ef82adc7c', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, h("sd-icon", { key: 'f14772e18bbf68528a1b399ba058fcf1e25b40c9', name: "arrowRight", size: "12", color: "#CCCCCC" })))), h("div", { key: '7e699a1e5439c19ff78f311f90d31c246f67f6cb', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("div", { key: day, class: "day" }, day)))), h("div", { key: '86939550882e9b76c119480eb16f6e30c0b7ac3c', class: "sd-date-picker__body" }, [
|
|
80
80
|
...this.calendar.prevMonthDays,
|
|
81
81
|
...this.calendar.days,
|
|
82
82
|
...this.calendar.afterMonthDays,
|
|
@@ -155,10 +155,10 @@ export class SdDateRangePicker {
|
|
|
155
155
|
this.setHoverDate(hoverDate);
|
|
156
156
|
}
|
|
157
157
|
render() {
|
|
158
|
-
return (h("div", { key: '
|
|
158
|
+
return (h("div", { key: 'ada8df3857c5eed11ea3fed9dbe366cae24d65d5', class: {
|
|
159
159
|
'sd-date-range-picker': true,
|
|
160
160
|
'sd-date-range-picker--disabled': this.disabled,
|
|
161
|
-
} }, h("sd-input", { key: '
|
|
161
|
+
} }, h("sd-input", { key: '7639d651fcd5e91ac6597d2e17a69f9bd81db566', ref: el => (this.inputEl = el), value: !!this.dateRange[0] ? `${this.dateRange[0]} ~ ${this.dateRange[1]}` : '', label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-range-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: '4fec08e3f5197016bb93770c6bb91064ef10fa3f', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: '62b921bdbbf811b9a284c14935f87f7ee1d8eac2', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.closeMenu }, h("div", { key: '93ffa95963c3622475722299a0d0472a2dd8a3a7', class: "sd-date-range-picker__menu" }, h("div", { key: 'd3150332edca90965753e86c93be4e98008482bb', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, h("button", { key: '19dfb8f00e7fa249db6b53e8a44e5bbfd4dbf92f', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, h("sd-icon", { key: '28298db1a3f389e03e135633711b57877d3d5068', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("div", { key: 'c766b56b7cb60d4c8fd4197ae976c883edfdf1a6', class: "header-label" }, this.prevYear), h("button", { key: '30679ee6294a0fc1a9334086c758fa8087e35741', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, h("sd-icon", { key: '111feaca6378a929f84ef751bbf1d17a4ba98ed6', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '185b10c49244740b92f35319cdc1b1833753bdc7', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (h(Fragment, null, index === 1 && h("div", { class: "separator" }), h("div", { key: index, class: "calendar-container" }, h("div", { class: "calendar-header" }, h("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, h("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
|
|
162
162
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
163
163
|
: `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), h("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), h("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (h("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date === this.formatDate(index, Number(day))), type: this.getDateBoxType(this.formatDate(index, Number(day))), isToday: today === this.formatDate(index, Number(day)), disabled: !day ? true : this.isDisabledDate(this.formatDate(index, Number(day))), inRange: this.isDateInRange(this.formatDate(index, Number(day))), isStartDate: this.dateRange[0] === this.formatDate(index, Number(day)), isEndDate: this.dateRange[1] === this.formatDate(index, Number(day)), onSdClick: () => this.handleDateClick(index, Number(day)), onSdMouseOver: () => this.handleDateHover(index, Number(day)) }))))))))))))));
|
|
164
164
|
}
|
|
@@ -114,15 +114,15 @@ export class SdField {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
|
-
return (h("div", { key: '
|
|
117
|
+
return (h("div", { key: 'b5e9d5d8ba103c51326a794f456e525cd3f74932', class: {
|
|
118
118
|
'sd-field': true,
|
|
119
119
|
'sd-field--has-label': !!this.label,
|
|
120
120
|
'sd-field--has-label-inside': !!this.label && this.insideLabel,
|
|
121
121
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
122
|
-
} }, h("div", { key: '
|
|
122
|
+
} }, h("div", { key: '5270c71b689766d3a3edb39afdd356a91f1cbf8b', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: 'ce6bd24750c5709f01c9b75eacd156f4f951bae3', class: {
|
|
123
123
|
'sd-field__control': true,
|
|
124
124
|
'sd-field__control--label-inside ': !!this.label && this.insideLabel,
|
|
125
|
-
} }, h("slot", { key: '
|
|
125
|
+
} }, h("slot", { key: '256ca195a91713bb16d2a0c4a95465319a72237b' }))), this.errorMsg && h("div", { key: 'fa5c5adf31a2d65d9518225186a72062d5104f08', class: "sd-field__error-message" }, this.errorMsg)));
|
|
126
126
|
}
|
|
127
127
|
renderLabel(label) {
|
|
128
128
|
if (!label)
|
|
@@ -91,15 +91,15 @@ export class SdFilePicker {
|
|
|
91
91
|
render() {
|
|
92
92
|
const hasFiles = this.hasFiles();
|
|
93
93
|
const displayText = this.getDisplayText();
|
|
94
|
-
return (h("div", { key: '
|
|
94
|
+
return (h("div", { key: '6c96e930758e62d66cb0a9c4449e06592667d9dc', class: {
|
|
95
95
|
'sd-file-picker': true,
|
|
96
96
|
[this.getStatusClass()]: true,
|
|
97
97
|
'sd-file-picker--inline': this.inline,
|
|
98
|
-
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("input", { key: '
|
|
98
|
+
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("input", { key: 'e611e2c14c312b053d645ea0e35cfda878ea382e', ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder }), h("sd-icon", { key: '3733905eaea0203fb589858143c968850feae480', name: "attachFile", size: 16, color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { key: 'b7dec66670f67e69248292265fbc80e00ffea0ff', ref: el => (this.fileNamesRef = el), class: {
|
|
99
99
|
'sd-file-picker__text': true,
|
|
100
100
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
101
101
|
'sd-file-picker__text--active': hasFiles,
|
|
102
|
-
} }, displayText), !this.disabled && hasFiles && (h("sd-icon", { key: '
|
|
102
|
+
} }, displayText), !this.disabled && hasFiles && (h("sd-icon", { key: '81452b84daadf7b51f8383b756d4773b9f38411b', name: "close", size: 12, color: "#888888", class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { key: '8e19381802185684f4982c588085c7948222cd73', class: "sd-file-picker__tooltip" }, displayText))));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "sd-file-picker"; }
|
|
105
105
|
static get originalStyleUrls() {
|
|
@@ -144,7 +144,7 @@ export class SdFloatingPopover {
|
|
|
144
144
|
this.close.emit();
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return h("slot", { key: '
|
|
147
|
+
return h("slot", { key: 'e66f9bf4a2e6e85be4e66660232e3dcf3c993e67' });
|
|
148
148
|
}
|
|
149
149
|
static get is() { return "sd-floating-portal"; }
|
|
150
150
|
static get originalStyleUrls() {
|
|
@@ -47,9 +47,9 @@ export class SdGuide {
|
|
|
47
47
|
};
|
|
48
48
|
render() {
|
|
49
49
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
50
|
-
return (h("div", { key: '
|
|
50
|
+
return (h("div", { key: '0b3cb2fd1bc331592f6f816aa729abce3fe7835e', class: "sd-guide", style: {
|
|
51
51
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
52
|
-
} }, h("sd-button", { key: '
|
|
52
|
+
} }, h("sd-button", { key: '42ef456f180a0ef5faef5524aca6707adfd0218b', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: this.label || GUIDE_LABEL[this.type], size: "sm", color: this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45', icon: iconName, iconColor: this.popupShow ? 'white' : iconColor, iconSize: iconSize, noHover: this.popupShow, onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (h("sd-portal", { key: '3820cd8e59c0609c32606339d51eb31e7981f551', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: '8c2be02160082b0c43b7b75edb3422135045b913', style: { position: 'absolute', width: '0px', height: '0px' } }, h("div", { key: '94d7de120549fa16952aacc08d6ba67b3542cbb9', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, h("sd-button", { key: 'e1c0ac8509fc47e1afad3d9d898d95281cdd70c9', class: "sd-guide__popup__close", icon: "close", color: "grey_65", size: "md", variant: "ghost", noHover: true, onSdClick: this.closeDropdown }), h("div", { key: '864c8082c9fe43ca9d68f64530eab8b7b38fd6cc', class: "sd-guide__popup__header" }, h("sd-icon", { key: 'db417ad8a23df1482d644f7fdee3ac60c86abf87', name: "helpOutline", size: 24, color: "green_65" }), h("h3", { key: '1baa8e7c8beb29c5cb8c9226ba948023ef57d799', class: "sd-guide__popup__title" }, this.popupTitle || GUIDE_LABEL[this.type])), h("ul", { key: '6513c9fadbc0c9eeca432a16b28815aa2beb1004', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
|
|
53
53
|
}
|
|
54
54
|
// 현재 2depth까지만 스타일 적용
|
|
55
55
|
renderListItem(message, depth = 0) {
|
|
@@ -25,7 +25,7 @@ export class SdIcon {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
28
|
-
return (h("i", { key: '
|
|
28
|
+
return (h("i", { key: '281baa39ffa7f3eaa1dad93658cb2c86fbfa8fb9', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: '6759bd3374526b90ebffb60c3374385ca0f1b65a', color: this.resolvedColor })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "sd-icon"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -85,7 +85,7 @@ export class SdInput {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
render() {
|
|
88
|
-
return (h("sd-field", { key: '
|
|
88
|
+
return (h("sd-field", { key: 'e3a668f4065ad4d7d4075607d20cf5e678c0a1eb', name: this.name, label: this.label, insideLabel: this.insideLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, useLabelRequired: this.useLabelRequired, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("label", { key: '4d0a91447a6b0c162a4dfdee5603fc107182a205', class: "sd-input__content", style: { width: '100%' } }, h("slot", { key: 'c92e0603eee0f86ca0b1ed0ba48585ee75409475', name: "prefix" }), h("input", { key: '823608a07cca038c0360ada0f918c3b20dfb4028', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '17214d9e18cb25c4938fd184b9506ccee0b34f56', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: '8cfdf4086544261be758df0ceaa822c6b313ec2e', name: "close", color: "grey_65", size: "16", class: "sd-input__clear-icon", onClick: async () => {
|
|
89
89
|
this.internalValue = '';
|
|
90
90
|
await this.formField?.sdValidate();
|
|
91
91
|
} })))));
|
|
@@ -6,7 +6,7 @@ export class SdLoadingSpinner {
|
|
|
6
6
|
return resolveColor(this.color);
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Fragment, { key: '
|
|
9
|
+
return (h(Fragment, { key: 'aea077417bbdc982ca01898a844a11aea1ea9f23' }, h("svg", { key: 'f44999f62621e50fdcec62f7daa5f2ec82a20c07', class: "sd-loading-spinner", width: "72px", height: "72px", viewBox: "25 25 50 50", style: { color: this.resolvedColor } }, h("circle", { key: '54fb28e1408597bf9882b5160eaa48c244b2535e', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "sd-loading-spinner"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -239,17 +239,17 @@ export class SdNumberInput {
|
|
|
239
239
|
const inputStyles = {
|
|
240
240
|
textAlign: this.useButton ? 'center' : 'right',
|
|
241
241
|
};
|
|
242
|
-
return (h("sd-field", { key: '
|
|
242
|
+
return (h("sd-field", { key: '67a058098338d7caa85392f937f94ba3cb030de5', name: this.name, label: this.label, insideLabel: this.insideLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, ref: el => (this.formField = el), style: inputWidth }, h("label", { key: '2f49f1f6244814018c37c9b282d5b75bc3760fbe', class: {
|
|
243
243
|
'sd-number-input': true,
|
|
244
244
|
[this.getInputStatus()]: true,
|
|
245
245
|
'sd-number-input--with-buttons': this.useButton,
|
|
246
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: '
|
|
246
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: '3969b4b771db408e01278c8afe94f046c88933cb', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__input ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, style: inputStyles, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.useButton && (h("div", { key: 'd9e5fe65e547d889e7de2b7101dddd24f9561ffb', class: "sd-number-input__buttons" }, h("button", { key: '4929c32d892adee3472ba01d811d1c9dc2b8a85d', type: "button", class: {
|
|
247
247
|
'sd-number-input__button': true,
|
|
248
248
|
'sd-number-input__button--decrement': true,
|
|
249
|
-
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '
|
|
249
|
+
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '00f90c8f39b70efc832c1ba841275a55f4495dcf', name: "minus", size: 12, color: this.isDecrementDisabled() ? 'grey_45' : 'brilliantblue_70' })), h("button", { key: '80f9c301c5a7c517f35d825610cfca0f37fbed31', type: "button", class: {
|
|
250
250
|
'sd-number-input__button': true,
|
|
251
251
|
'sd-number-input__button--increment': true,
|
|
252
|
-
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '
|
|
252
|
+
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '8173735e53fb25ba761ab8c316b7f9d245a161f6', name: "add", size: 12, color: this.isIncrementDisabled() ? 'grey_45' : 'brilliantblue_70' })))))));
|
|
253
253
|
}
|
|
254
254
|
static get is() { return "sd-number-input"; }
|
|
255
255
|
static get originalStyleUrls() {
|
|
@@ -68,12 +68,12 @@ export class SdPagination {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return (h("div", { key: '
|
|
71
|
+
return (h("div", { key: 'b6c73445ec3610f63c59592ebb7422ea7bc9709d', class: this.paginationClasses }, h("div", { key: '3392ad0991ea53bb9c85af8d647bd1c0ed22a29d', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
72
72
|
'pagination-btn': true,
|
|
73
73
|
'pagination-btn--selected': this.currentPage === n,
|
|
74
74
|
}, disabled: this.currentPage === n, style: {
|
|
75
75
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
76
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
76
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: 'a5637dbbcf060aa0d36f26b0bbe6b2962995981a', class: "append-btns" }, this.renderNextButtons())));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "sd-pagination"; }
|
|
79
79
|
static get originalStyleUrls() {
|
|
@@ -30,11 +30,11 @@ export class SdPopover {
|
|
|
30
30
|
this.showPopover = false;
|
|
31
31
|
};
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Fragment, { key: '
|
|
33
|
+
return (h(Fragment, { key: '7ca71e038f87350238a508661be8b3b72005cd8f' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onSdClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-floating-portal", { key: '8ec8e22abe86fc20b65ce27f666cfd673d546d52', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, h("div", { key: 'fd3e4123530b1a13b0aafb2794429a64f77c6fce', class: {
|
|
34
34
|
'sd-floating-menu': true,
|
|
35
35
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
36
36
|
[this.menuClass]: !!this.menuClass,
|
|
37
|
-
} }, h("i", { key: '
|
|
37
|
+
} }, h("i", { key: 'd81bf70ae701d32fe0e524ff1758654037fbe8d7', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: 'a904112496703c5ef148537f383529621be36aff' })), h("div", { key: 'aeade92b18cb6a3a9927236665254323613cf4a1', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: '86b541c1e643d62da77a3aad02b7a2de6b2c60f3', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '13ab0f5b79d9dc52e8fbf1464fca6bc7870f574c', class: "sd-floating-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '3cbc63be9af31d97252a7ca4d9fed1bc667cdaaa', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("button", { key: '6f6631280aac9d7416921844a815e1473b7db419', title: "close", class: "sd-floating-menu__close-button", onClick: () => this.handleClose() }, h("sd-icon", { key: '11374066cc8479b80cf1f92b6f9ce910fc9850bf', name: "close", size: "12", color: "gery_55" }))))))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "sd-popover"; }
|
|
40
40
|
static get originalStyleUrls() {
|
|
@@ -113,7 +113,7 @@ export class SdPortal {
|
|
|
113
113
|
this.close.emit();
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
-
return h("slot", { key: '
|
|
116
|
+
return h("slot", { key: '94c0e115318d8f16bab2e2cb8c5be85d8f77279f' });
|
|
117
117
|
}
|
|
118
118
|
static get is() { return "sd-portal"; }
|
|
119
119
|
static get properties() {
|
|
@@ -33,10 +33,10 @@ export class SdProgress {
|
|
|
33
33
|
return this.statusColor[this.progressStatus];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: '8921667b793f16a9a163d81b685231bc78d555a8', style: {
|
|
37
37
|
'--progress-color': this.progressColor,
|
|
38
38
|
'--progress-percentage': `${this.progressPercentage}%`,
|
|
39
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '
|
|
39
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: 'd87505bd6de6e791ea73ec4fdecf60ece8e83a3a', class: "sd-progress__label" }, this.label)));
|
|
40
40
|
}
|
|
41
41
|
renderBarProgress() {
|
|
42
42
|
return (h("div", { class: `sd-progress__bar sd-progress__bar--${this.progressStatus}` }, h("div", { class: ['sd-progress__bar__percent', this.progressPercentage < 100 ? 'proceed' : ''].join(' ') }), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.progressPercentage, "%"), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.progressPercentage, "%")));
|
|
@@ -144,10 +144,10 @@ export class SdSelectDropdown {
|
|
|
144
144
|
this.isScrolled = scrollTop > 0;
|
|
145
145
|
};
|
|
146
146
|
render() {
|
|
147
|
-
return (h("div", { key: '
|
|
147
|
+
return (h("div", { key: 'd52efe378d022f7bb7a50b078676ed48b6911e04', class: {
|
|
148
148
|
'sd-select-dropdown': true,
|
|
149
149
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
150
|
-
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '
|
|
150
|
+
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '9c3db780e779ee0829ca41c2d85298e78f4e1da8', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("slot", { name: `option-${option.value}` }, h("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (h("slot", { name: "option-placeholder" }, h("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder)))));
|
|
151
151
|
}
|
|
152
152
|
static get is() { return "sd-select-dropdown"; }
|
|
153
153
|
static get originalStyleUrls() {
|
|
@@ -24,7 +24,7 @@ export class SdSelectOption {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
render() {
|
|
27
|
-
return (h("div", { key: '
|
|
27
|
+
return (h("div", { key: '4b16081b491eefdff34e5c328a22d3e4f98bcd0a', class: {
|
|
28
28
|
'sd-select__option': true,
|
|
29
29
|
'sd-select__option--selected': this.isSelected,
|
|
30
30
|
'sd-select__option--disabled': !!this.option.disabled,
|
package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js
CHANGED
|
@@ -16,17 +16,17 @@ export class SdSelectSearchInput {
|
|
|
16
16
|
input?.focus({ preventScroll: true });
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: 'abfb2e22bf259b2a8441984eb602188fcc471a07', class: {
|
|
20
20
|
'sd-select-search-input': true,
|
|
21
21
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
22
|
-
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: '
|
|
22
|
+
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: '68d1d795b38973b48062fff42560289c6e6f1813', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
|
|
23
23
|
this.searchInput.emit(String(event?.detail));
|
|
24
24
|
}, onSdFocus: () => {
|
|
25
25
|
this.searchFocus.emit();
|
|
26
26
|
}, onKeyDown: event => {
|
|
27
27
|
if (event.code === 'Enter')
|
|
28
28
|
event.stopPropagation();
|
|
29
|
-
} }, h("sd-icon", { key: '
|
|
29
|
+
} }, h("sd-icon", { key: '6cd7f5c70e656c066d8aa0312a895a9cb30321a4', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "sd-select-search-input"; }
|
|
32
32
|
static get originalStyleUrls() {
|
|
@@ -145,7 +145,7 @@ export class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
145
145
|
this.handleOptionSelection(option);
|
|
146
146
|
};
|
|
147
147
|
render() {
|
|
148
|
-
return (h("sd-field", { key: '
|
|
148
|
+
return (h("sd-field", { key: 'f870320a5e124564c3f1666efb8a8e98d0fcaa4d', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, useLabelRequired: this.useLabelRequired, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: 'f6ba635376c512745488c7bd5ba29a8dd54552fa', class: {
|
|
149
149
|
'sd-select-multiple': true,
|
|
150
150
|
'sd-select-multiple--open': this.isOpen,
|
|
151
151
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -39,7 +39,7 @@ export class SdSelectOptionGroup {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '63fd6dc8fff45849440d58d0b7e650a6de050b75', class: {
|
|
43
43
|
'sd-select__option-group': true,
|
|
44
44
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
45
45
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -48,10 +48,10 @@ export class SdSelectOptionGroup {
|
|
|
48
48
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
49
49
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
50
50
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
51
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '
|
|
51
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: 'fc7f591e86c9aaf185112d54cdb267ada82c23aa', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: 'bd197505694f0286fa4824baa56c4d5620d455b5', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
52
52
|
e.preventDefault();
|
|
53
53
|
this.handleClick(this.option, this.isSelected, e);
|
|
54
|
-
} })), h("span", { key: '
|
|
54
|
+
} })), h("span", { key: '7ba3c181aa07d5e55116aa238c34fc2eb87ef469', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: 'f83d48bf3e7534c8cae987799a2b4c41bcadea87', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "sd-select-option-group"; }
|
|
57
57
|
static get originalStyleUrls() {
|
|
@@ -75,10 +75,10 @@ export class SdTextarea {
|
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
77
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
78
|
-
return (h("div", { key: '
|
|
78
|
+
return (h("div", { key: '7583a322dfe260e0ce5ecde07bc72520cb1693f7', class: {
|
|
79
79
|
'sd-textarea': true,
|
|
80
80
|
[this.getTextareaStatus()]: true,
|
|
81
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '
|
|
81
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '5f25a11f26a9b27c22f16c1513dea194d1e8b263', class: "sd-textarea__content" }, h("textarea", { key: '8ed2397730c979694f24fe15e9735a245cad437c', name: this.name, ref: el => (this.nativeEl = el), 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: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (h("div", { key: 'da85b650264d10d1fee3fd39eecd6f05af0197e5', class: "sd-textarea__footer" }, this.helpText !== undefined && h("span", { key: '0510a4d3888c30a29e584b535e4745cedb3b1e80', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && h("span", { key: '310a9cdc3c2c8ad836677cf83b870ea69d25fa27', class: "sd-textarea__counter" }, maxLengthCounter)))));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "sd-textarea"; }
|
|
84
84
|
static get originalStyleUrls() {
|
package/dist/collection/components/{sd-toast-message/sd-toast-message.css → sd-toast/sd-toast.css}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
sd-toast
|
|
1
|
+
sd-toast {
|
|
2
2
|
display: block;
|
|
3
3
|
width: fit-content;
|
|
4
4
|
height: fit-content;
|
|
5
5
|
}
|
|
6
|
-
sd-toast
|
|
6
|
+
sd-toast .sd-toast {
|
|
7
7
|
display: flex;
|
|
8
8
|
width: fit-content;
|
|
9
9
|
align-items: center;
|
|
@@ -15,26 +15,26 @@ sd-toast-message .sd-toast-message {
|
|
|
15
15
|
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
16
16
|
box-shadow: 2px 2px 8px 2px rgba(0, 0, 0, 0.2);
|
|
17
17
|
}
|
|
18
|
-
sd-toast
|
|
18
|
+
sd-toast .sd-toast--hidden {
|
|
19
19
|
opacity: 0;
|
|
20
20
|
visibility: hidden;
|
|
21
21
|
pointer-events: none;
|
|
22
22
|
}
|
|
23
|
-
sd-toast
|
|
23
|
+
sd-toast .sd-toast__icon {
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: center;
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
}
|
|
28
|
-
sd-toast
|
|
28
|
+
sd-toast .sd-toast__content {
|
|
29
29
|
display: flex;
|
|
30
30
|
flex: 1;
|
|
31
31
|
}
|
|
32
|
-
sd-toast
|
|
32
|
+
sd-toast .sd-toast__message {
|
|
33
33
|
font-size: 14px;
|
|
34
34
|
line-height: 20px;
|
|
35
35
|
font-weight: 400;
|
|
36
36
|
}
|
|
37
|
-
sd-toast
|
|
37
|
+
sd-toast .sd-toast__link {
|
|
38
38
|
font-size: 14px;
|
|
39
39
|
line-height: 20px;
|
|
40
40
|
color: var(--sd-toast-text);
|
|
@@ -43,16 +43,16 @@ sd-toast-message .sd-toast-message__link {
|
|
|
43
43
|
transition: opacity 0.2s ease;
|
|
44
44
|
margin-left: 4px;
|
|
45
45
|
}
|
|
46
|
-
sd-toast
|
|
46
|
+
sd-toast .sd-toast__link:hover {
|
|
47
47
|
opacity: 0.8;
|
|
48
48
|
}
|
|
49
|
-
sd-toast
|
|
49
|
+
sd-toast .sd-toast__button {
|
|
50
50
|
flex-shrink: 0;
|
|
51
51
|
}
|
|
52
|
-
sd-toast
|
|
52
|
+
sd-toast .sd-toast__button button {
|
|
53
53
|
color: var(--button-text-color, inherit) !important;
|
|
54
54
|
}
|
|
55
|
-
sd-toast
|
|
55
|
+
sd-toast .sd-toast__close {
|
|
56
56
|
display: flex;
|
|
57
57
|
align-items: center;
|
|
58
58
|
justify-content: center;
|
|
@@ -63,9 +63,9 @@ sd-toast-message .sd-toast-message__close {
|
|
|
63
63
|
transition: opacity 0.2s ease;
|
|
64
64
|
flex-shrink: 0;
|
|
65
65
|
}
|
|
66
|
-
sd-toast
|
|
66
|
+
sd-toast .sd-toast__close:hover {
|
|
67
67
|
opacity: 0.7;
|
|
68
68
|
}
|
|
69
|
-
sd-toast
|
|
69
|
+
sd-toast .sd-toast__close:active {
|
|
70
70
|
opacity: 0.5;
|
|
71
71
|
}
|