@sellmate/design-system 0.0.50 → 0.0.52
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.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-radio-group.sd-select.sd-select-option.sd-table-backup.sd-toggle.sd-tooltip.sd-tooltip-portal.entry.cjs.js.map +1 -0
- package/dist/cjs/{sd-button_14.cjs.entry.js → sd-button_15.cjs.entry.js} +65 -23
- 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-date-range-picker.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-group.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +3 -3
- package/dist/cjs/sd-tag.cjs.entry.js +2 -2
- package/dist/cjs/sd-tag.entry.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -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-guide/sd-guide.js +3 -3
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- 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-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select.js +2 -2
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +2 -2
- package/dist/collection/components/sd-table/sd-table.js +3 -3
- package/dist/collection/components/sd-table-backup/sd-table-backup.js +4 -4
- package/dist/collection/components/sd-tag/sd-tag.css +8 -0
- package/dist/collection/components/sd-tag/sd-tag.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.css +59 -0
- package/dist/collection/components/sd-toggle/sd-toggle.js +133 -0
- package/dist/collection/components/sd-toggle/sd-toggle.js.map +1 -0
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +4 -4
- package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
- package/dist/components/{p-BozMKCTh.js → p-1SxxSEqq.js} +5 -5
- package/dist/components/{p-BozMKCTh.js.map → p-1SxxSEqq.js.map} +1 -1
- package/dist/components/{p-_spt_8fG.js → p-9kN1E6Ra.js} +9 -9
- package/dist/components/{p-_spt_8fG.js.map → p-9kN1E6Ra.js.map} +1 -1
- package/dist/components/{p-D2aGA3BX.js → p-BsyfatBe.js} +3 -3
- package/dist/components/{p-D2aGA3BX.js.map → p-BsyfatBe.js.map} +1 -1
- package/dist/components/{p-RZm_wGW3.js → p-C6tAa8Q4.js} +5 -5
- package/dist/components/{p-RZm_wGW3.js.map → p-C6tAa8Q4.js.map} +1 -1
- package/dist/components/{p-X8rQBuZk.js → p-C9fSCxHc.js} +4 -4
- package/dist/components/{p-X8rQBuZk.js.map → p-C9fSCxHc.js.map} +1 -1
- package/dist/components/{p-C0CLTo3o.js → p-CJ0qTKU7.js} +3 -3
- package/dist/components/{p-C0CLTo3o.js.map → p-CJ0qTKU7.js.map} +1 -1
- package/dist/components/{p-D2YMmHfl.js → p-CkKxyn_K.js} +3 -3
- package/dist/components/{p-D2YMmHfl.js.map → p-CkKxyn_K.js.map} +1 -1
- package/dist/components/{p-LziGti_p.js → p-Dgxczhd0.js} +3 -3
- package/dist/components/{p-LziGti_p.js.map → p-Dgxczhd0.js.map} +1 -1
- package/dist/components/{p-DC5fpNnQ.js → p-DiehM5Y0.js} +3 -3
- package/dist/components/{p-DC5fpNnQ.js.map → p-DiehM5Y0.js.map} +1 -1
- package/dist/components/{p-BIw-hGVo.js → p-DyGUXuvD.js} +4 -4
- package/dist/components/{p-BIw-hGVo.js.map → p-DyGUXuvD.js.map} +1 -1
- package/dist/components/{p-Cq-Qitdj.js → p-S7M--xNH.js} +9 -9
- package/dist/components/{p-Cq-Qitdj.js.map → p-S7M--xNH.js.map} +1 -1
- package/dist/components/{p-C930Kn80.js → p-wQDv-v0B.js} +3 -3
- package/dist/components/{p-C930Kn80.js.map → p-wQDv-v0B.js.map} +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 +4 -4
- package/dist/components/sd-date-range-picker.js +5 -5
- package/dist/components/sd-guide.js +6 -6
- 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 +2 -2
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +5 -5
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-progress.js +2 -2
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-select-multiple-group.js +7 -7
- package/dist/components/sd-select-multiple.js +5 -5
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table-backup.js +15 -15
- package/dist/components/sd-table.js +13 -13
- package/dist/components/sd-tag.js +2 -2
- package/dist/components/sd-tag.js.map +1 -1
- package/dist/components/sd-toggle.d.ts +11 -0
- package/dist/components/sd-toggle.js +71 -0
- package/dist/components/sd-toggle.js.map +1 -0
- package/dist/components/sd-tooltip-portal.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-1ad40ed0.entry.js +2 -0
- package/dist/design-system/{p-267985b3.entry.js.map → p-1ad40ed0.entry.js.map} +1 -1
- package/dist/design-system/p-1efccd9d.entry.js +2 -0
- package/dist/design-system/{p-2285c061.entry.js → p-3d78a7c7.entry.js} +2 -2
- package/dist/design-system/p-4e7bc094.entry.js +2 -0
- package/dist/design-system/{p-ecb38b6a.entry.js.map → p-4e7bc094.entry.js.map} +1 -1
- package/dist/design-system/{p-a73bb448.entry.js → p-717a736c.entry.js} +2 -2
- package/dist/design-system/p-717a736c.entry.js.map +1 -0
- package/dist/design-system/{p-8d1a2a13.entry.js → p-74f12ea0.entry.js} +2 -2
- package/dist/design-system/{p-037de6ce.entry.js → p-7d14540d.entry.js} +2 -2
- package/dist/design-system/{p-6f16399e.entry.js → p-8d6d225d.entry.js} +2 -2
- package/dist/design-system/p-bc905ded.entry.js +2 -0
- package/dist/design-system/{p-24ef1055.entry.js → p-c9b70553.entry.js} +2 -2
- package/dist/design-system/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-radio-group.sd-select.sd-select-option.sd-table-backup.sd-toggle.sd-tooltip.sd-tooltip-portal.entry.esm.js.map +1 -0
- package/dist/design-system/sd-tag.entry.esm.js.map +1 -1
- 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.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-radio-group.sd-select.sd-select-option.sd-table-backup.sd-toggle.sd-tooltip.sd-tooltip-portal.entry.js.map +1 -0
- package/dist/esm/{sd-button_14.entry.js → sd-button_15.entry.js} +65 -24
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-date-picker.entry.js +1 -1
- package/dist/esm/sd-date-range-picker.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-group.entry.js +2 -2
- package/dist/esm/sd-table.entry.js +3 -3
- package/dist/esm/sd-tag.entry.js +2 -2
- package/dist/esm/sd-tag.entry.js.map +1 -1
- package/dist/types/components/sd-toggle/sd-toggle.d.ts +14 -0
- package/dist/types/components.d.ts +53 -0
- package/hydrate/index.js +93 -38
- package/hydrate/index.mjs +93 -38
- package/package.json +1 -1
- package/dist/cjs/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-radio-group.sd-select.sd-select-option.sd-table-backup.sd-tooltip.sd-tooltip-portal.entry.cjs.js.map +0 -1
- package/dist/design-system/p-154958ba.entry.js +0 -2
- package/dist/design-system/p-267985b3.entry.js +0 -2
- package/dist/design-system/p-328d7e6c.entry.js +0 -2
- package/dist/design-system/p-a73bb448.entry.js.map +0 -1
- package/dist/design-system/p-ecb38b6a.entry.js +0 -2
- package/dist/design-system/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-radio-group.sd-select.sd-select-option.sd-table-backup.sd-tooltip.sd-tooltip-portal.entry.esm.js.map +0 -1
- package/dist/esm/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-radio-group.sd-select.sd-select-option.sd-table-backup.sd-tooltip.sd-tooltip-portal.entry.js.map +0 -1
- /package/dist/design-system/{p-328d7e6c.entry.js.map → p-1efccd9d.entry.js.map} +0 -0
- /package/dist/design-system/{p-2285c061.entry.js.map → p-3d78a7c7.entry.js.map} +0 -0
- /package/dist/design-system/{p-8d1a2a13.entry.js.map → p-74f12ea0.entry.js.map} +0 -0
- /package/dist/design-system/{p-037de6ce.entry.js.map → p-7d14540d.entry.js.map} +0 -0
- /package/dist/design-system/{p-6f16399e.entry.js.map → p-8d6d225d.entry.js.map} +0 -0
- /package/dist/design-system/{p-154958ba.entry.js.map → p-bc905ded.entry.js.map} +0 -0
- /package/dist/design-system/{p-24ef1055.entry.js.map → p-c9b70553.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -3689,7 +3689,7 @@ class SdBadge {
|
|
|
3689
3689
|
label = '';
|
|
3690
3690
|
render() {
|
|
3691
3691
|
const resolvedColor = resolveColor(this.color);
|
|
3692
|
-
return (hAsync(Host, { key: '
|
|
3692
|
+
return (hAsync(Host, { key: '2599667a6e14485cc9aeb5cb7f9f8c2fa6be9730' }, hAsync("div", { key: '411c02845794514d4ae7c0849e4e9479bfce257b', class: `sd-badge sd-badge--${this.size}`, style: { '--sd-badge-color': resolvedColor } }, hAsync("div", { key: '72c8fe5094b0c8dc4065dd0646200c052cd7cfca', class: "sd-badge__dot" }), hAsync("div", { key: 'e9e338154b11ba92b32a748d11d09899fad29442', class: "sd-badge__label" }, this.label))));
|
|
3693
3693
|
}
|
|
3694
3694
|
static get style() { return sdBadgeCss; }
|
|
3695
3695
|
static get cmpMeta() { return {
|
|
@@ -3796,7 +3796,7 @@ class SdCard {
|
|
|
3796
3796
|
bordered = true;
|
|
3797
3797
|
class = '';
|
|
3798
3798
|
render() {
|
|
3799
|
-
return (hAsync(Host, { key: '
|
|
3799
|
+
return (hAsync(Host, { key: 'f19b796cbe69bb22165a52864cf0eef7c8afeac1' }, hAsync("div", { key: '2a6272608b5fca143883d477ddb7f8fdb60acb0d', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.class}` }, hAsync("slot", { key: '60f687272faa536e182e9a65ea0c07a233194bd8' }))));
|
|
3800
3800
|
}
|
|
3801
3801
|
static get style() { return sdCardCss; }
|
|
3802
3802
|
static get cmpMeta() { return {
|
|
@@ -4107,7 +4107,7 @@ class SdDatePicker {
|
|
|
4107
4107
|
this.isOpen = false;
|
|
4108
4108
|
};
|
|
4109
4109
|
render() {
|
|
4110
|
-
return (hAsync(Host, { key: '
|
|
4110
|
+
return (hAsync(Host, { key: '6f835c6778d618a0285dc070c43022e4787e9eb6', class: "sd-date-picker" }, hAsync("sd-input", { key: '9d09bd679c1c239ad6106464b9b6b2bd2fd164cc', ref: el => (this.inputEl = el), value: this.date, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, inputClass: "text-center", onClick: () => this.openMenu() }, hAsync("sd-icon", { key: 'd3790bf739adeef7b381e983bb7426e8684b9e66', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (hAsync("sd-portal", { key: '6e6833f13a1ec4083f06b09ebc61e378e47599cf', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, hAsync("div", { key: 'd6b36f1a26904a8287bcb3b3d64981a0f628a911', class: "sd-date-picker__menu" }, hAsync("div", { key: '37b9795686360b719b69a9a385a7e4bf27c217e5', class: "sd-date-picker__header" }, hAsync("div", { key: 'c885554693c93eddb3d1148e12ca8610f23625a4', class: "year-nav" }, hAsync("button", { key: '8628fca079f02183aaf07f953ebcf9e4141060f3', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, hAsync("sd-icon", { key: '3597f373c01ff11b4dcc97e692cedc31bcd8d548', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("span", { key: 'ed71145dc3a34b8ae491088f65ea43b4cd0acec3', class: "year-nav__current" }, this.currentYear), hAsync("button", { key: 'b1bbd644e7ff7bb8141758e3b897c93f5d2c1a38', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, hAsync("sd-icon", { key: '5a55e81f9e01f3acb73bbb7b6c6f4034430ad2a4', name: "arrowRight", size: "12", color: "#CCCCCC" }))), hAsync("div", { key: '1e95092fd966e7d8c2480fd8823e8886a141c83b', class: "month-nav" }, hAsync("button", { key: 'e49b6e1528ff2f814e021fb70a7df0425f0efb11', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, hAsync("sd-icon", { key: '4d0e61ccb0fcf006d11b48acff31593c95426acd', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("span", { key: '8eacea2970a8b9f2963f4afd3f0e7aa4ee2bdca9', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), hAsync("button", { key: 'd209068e6b0e244b572c42cdc5a3ece8ed4be0fa', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, hAsync("sd-icon", { key: 'a067b7c5e59ae9b32f1e13e1a80b49055b451a80', name: "arrowRight", size: "12", color: "#CCCCCC" })))), hAsync("div", { key: 'c99e6a24b1113f5c78d17586a9491053e23ee053', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (hAsync("div", { key: day, class: "day" }, day)))), hAsync("div", { key: '9e243d5edf78f0fd606e787b714ae993c549b828', class: "sd-date-picker__body" }, [
|
|
4111
4111
|
...this.calendar.prevMonthDays,
|
|
4112
4112
|
...this.calendar.days,
|
|
4113
4113
|
...this.calendar.afterMonthDays,
|
|
@@ -4280,9 +4280,9 @@ class SdDateRangePicker {
|
|
|
4280
4280
|
this.isOpen = false;
|
|
4281
4281
|
};
|
|
4282
4282
|
render() {
|
|
4283
|
-
return (hAsync(Host, { key: '
|
|
4283
|
+
return (hAsync(Host, { key: 'a546e1ab7d199688377b3852b51711b283ed9735', class: "sd-date-range-picker" }, hAsync("sd-input", { key: 'f7edc5f8e03d0f781f906cf1abc9f6eddd93f3b6', ref: el => (this.inputEl = el), value: `${this.dateRange[0]} ~ ${this.dateRange[1]}`, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, inputClass: "text-center", inputStyle: {
|
|
4284
4284
|
margin: '0 0 0 8px',
|
|
4285
|
-
}, onClick: () => this.openMenu() }, hAsync("sd-icon", { key: '
|
|
4285
|
+
}, onClick: () => this.openMenu() }, hAsync("sd-icon", { key: 'dbd1acab929f74afd822c9c9e2ca4bd8e6e25c02', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (hAsync("sd-portal", { key: '86f98f816b61f3dcb49eb284266c32dd644d1641', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, hAsync("div", { key: '221f126d9d4c92daf84312459b4e6aa9069b4131', class: "sd-date-range-picker__menu" }, hAsync("div", { key: 'c3b10e8544af4e52509a90650946045c33cf909c', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, hAsync("button", { key: '253cdb65199cff3d4344eb0a1b0920939f917a18', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, hAsync("sd-icon", { key: '33480e0a2f498f5481908e9e1541bb1a26f2b9d2', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("div", { key: '2db9fed11f2c923a6fba475cacb72cc1865beecd', class: "header-label" }, this.prevYear), hAsync("button", { key: '36603bc40a926337d45f60b416d6dabaaa3cfc7e', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, hAsync("sd-icon", { key: '8d46e41a1fc5d4de945f92c5ae8842f8dd2c75cf', name: "arrowRight", size: "12", color: "#CCCCCC" }))), hAsync("div", { key: '236b93e84d17746e4f8852a9beda0d398edf096b', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (hAsync(Fragment, null, index === 1 && hAsync("div", { class: "separator" }), hAsync("div", { key: index, class: "calendar-container" }, hAsync("div", { class: "calendar-header" }, hAsync("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, hAsync("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
|
|
4286
4286
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
4287
4287
|
: `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), hAsync("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (hAsync("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), hAsync("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (hAsync("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date ===
|
|
4288
4288
|
this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), type: this.getDateBoxType(this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), isToday: today ===
|
|
@@ -4365,11 +4365,11 @@ class SdGuide {
|
|
|
4365
4365
|
};
|
|
4366
4366
|
render() {
|
|
4367
4367
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
4368
|
-
return (hAsync(Host, { key: '
|
|
4368
|
+
return (hAsync(Host, { key: '32cff34a733ab423b4db37aaa91f4c63152566a3', style: {
|
|
4369
4369
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
4370
|
-
} }, hAsync("sd-button", { key: '
|
|
4370
|
+
} }, hAsync("sd-button", { key: '7efc84462239fcab6ac7d532d75ff418bebee957', 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 && (hAsync("sd-portal", { key: '9868dd7fd8b5e42cfd6b2011c2a8679a8f9ece02', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, hAsync("div", { key: '974448ac29c162372a7a5e8ba12c493d4e8a2287', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, hAsync("sd-button", { key: 'e28679c5cdeac9ca8e0b5701d4979a94a7c4f182', class: "sd-guide__popup__close", icon: "close", color: colors$1.grey_65, size: "md", variant: "ghost", noHover: true,
|
|
4371
4371
|
// buttonStyle={{ padding: '0px', minHeight: '0px' }}
|
|
4372
|
-
onSdClick: this.closeDropdown }), hAsync("div", { key: '
|
|
4372
|
+
onSdClick: this.closeDropdown }), hAsync("div", { key: 'c598b70154a4b2c4a4a2790a0072eaf4f7de7099', class: "sd-guide__popup__header" }, hAsync("sd-icon", { key: '6837f7934c24a7da2bf0558d7cdcd5effcdb5481', name: "helpOutline", size: 24, color: colors$1.green_65 }), hAsync("h3", { key: '6b7b8f9d6f3602f3cd036efdd308318988ce339b', class: "sd-guide__popup__title" }, this.popupTitle || GUIDE_LABEL[this.type])), hAsync("ul", { key: 'fbee7a0d4ad49cd6cac2ef5bb4617937aaff5882', class: "sd-guide__popup__list" }, this.renderListItem(this.message)))))));
|
|
4373
4373
|
}
|
|
4374
4374
|
// 현재 2depth까지만 스타일 적용
|
|
4375
4375
|
renderListItem(message, depth = 0) {
|
|
@@ -6415,7 +6415,7 @@ class SdIcon {
|
|
|
6415
6415
|
}
|
|
6416
6416
|
render() {
|
|
6417
6417
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
6418
|
-
return (hAsync("i", { key: '
|
|
6418
|
+
return (hAsync("i", { key: 'dc540c5746fedd2fed7bdf8e179b56878abe5a3b', class: this.getIconClasses(), style: this.iconStyle }, hAsync(IconComponent, { key: 'ff1e903198b5362d8e3521c6477ddd0b96948ad9', color: this.resolvedColor })));
|
|
6419
6419
|
}
|
|
6420
6420
|
static get style() { return sdIconCss; }
|
|
6421
6421
|
static get cmpMeta() { return {
|
|
@@ -6535,11 +6535,11 @@ class SdInput {
|
|
|
6535
6535
|
'--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
6536
6536
|
}
|
|
6537
6537
|
: {};
|
|
6538
|
-
return (hAsync(Host, { key: '
|
|
6538
|
+
return (hAsync(Host, { key: 'f793db1bf48fccad644292b06e725676568d2686', style: inputWidth }, this.label && hAsync("div", { key: '1f59002678f46ffdfeb47a0adb9b48ad74c24191', class: "sd-input__label" }, this.label), hAsync("label", { key: '2fa9f8744f1e6357aa864ea4b97685d35fd0e712', class: {
|
|
6539
6539
|
'sd-input': true,
|
|
6540
6540
|
[this.getInputStatus()]: true,
|
|
6541
6541
|
'sd-input--barcode': !!this.barcode,
|
|
6542
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("slot", { key: '
|
|
6542
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("slot", { key: '6baa7f30c5057bcd96167741b7219877a0de8b81', name: "prefix" }), hAsync("input", { key: 'd3210037a23b3015a3650f2771f0205d3baa9af8', ref: el => (this.nativeEl = el), class: `sd-input__native_element ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onChange: this.handleChange, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) }), hAsync("slot", { key: '72cc3cf71cdcab1e540f68c54a7a7715cb73af83', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-icon", { key: '04a65fa5e2042ffad00a2cfae10d77babdeaaf28', name: "close", color: "#888", class: "sd-input__clear-icon", onClick: () => {
|
|
6543
6543
|
this.internalValue = '';
|
|
6544
6544
|
this.sdChange?.emit(this.internalValue);
|
|
6545
6545
|
this.sdInput?.emit(this.internalValue);
|
|
@@ -6586,7 +6586,7 @@ class SdLoadingSpinner {
|
|
|
6586
6586
|
registerInstance(this, hostRef);
|
|
6587
6587
|
}
|
|
6588
6588
|
render() {
|
|
6589
|
-
return (hAsync(Host, { key: '
|
|
6589
|
+
return (hAsync(Host, { key: '7538c9986c448d666ea1993324d8fd811c2ba289' }, hAsync("svg", { key: '7e254a0b15ecda3e480582c336b33b1020715125', class: "sd-loading-spinner text-positive", width: "72px", height: "72px", viewBox: "25 25 50 50" }, hAsync("circle", { key: '8a6356ba2e8d42c9d1c789ba5676ca6f7485cda1', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
6590
6590
|
}
|
|
6591
6591
|
static get style() { return sdLoadingSpinnerCss; }
|
|
6592
6592
|
static get cmpMeta() { return {
|
|
@@ -6738,12 +6738,12 @@ class SdPagination {
|
|
|
6738
6738
|
}
|
|
6739
6739
|
}
|
|
6740
6740
|
render() {
|
|
6741
|
-
return (hAsync("div", { key: '
|
|
6741
|
+
return (hAsync("div", { key: 'e3abf3098a37fe058088304eefcfa9b6abbdbcaa', class: this.paginationClasses }, hAsync("div", { key: '19db1f5ed8fd2ab9b4f6793b474bf4dd3f48f21c', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "pagination-info" }, hAsync("span", { class: "current-page" }, this.currentPage), hAsync("span", null, "/"), hAsync("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
6742
6742
|
'pagination-btn': true,
|
|
6743
6743
|
'pagination-btn--selected': this.currentPage === n,
|
|
6744
6744
|
}, disabled: this.currentPage === n, style: {
|
|
6745
6745
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
6746
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
6746
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '63096633349b138d679b2a735d0e8d246dfde312', class: "append-btns" }, this.renderNextButtons())));
|
|
6747
6747
|
}
|
|
6748
6748
|
static get style() { return sdPaginationCss; }
|
|
6749
6749
|
static get cmpMeta() { return {
|
|
@@ -6797,11 +6797,11 @@ class SdPopover {
|
|
|
6797
6797
|
this.showPopover = false;
|
|
6798
6798
|
};
|
|
6799
6799
|
render() {
|
|
6800
|
-
return (hAsync(Fragment, { key: '
|
|
6800
|
+
return (hAsync(Fragment, { key: '8c7efcbf49754c518a6a9cf492b300c07ef980f5' }, this.label ? (hAsync("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", onClick: () => (this.showPopover = !this.showPopover) })) : (hAsync("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 && (hAsync("sd-tooltip-portal", { key: 'c61e5138ebba94a31d621ff1b3439d3c37ceb629', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, hAsync("div", { key: 'c88706aa4e7aec4a105459e429a8cfa9313c7aa8', class: {
|
|
6801
6801
|
'sd-popover-menu': true,
|
|
6802
6802
|
[`sd-popover-menu--${this.placement}`]: true,
|
|
6803
6803
|
[this.menuClass]: !!this.menuClass,
|
|
6804
|
-
} }, hAsync("i", { key: '
|
|
6804
|
+
} }, hAsync("i", { key: 'f79cb7d4784bc70d89ed5a3d5fa63af3ffb94921', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: 'e5e6148d67858f972b00ec55e174685cd87c6608' })), hAsync("div", { key: '17d4f8a35d85bf48a6155bf0581f37530c5ea492', class: "sd-popover-menu__content" }, this.menuTitle && hAsync("div", { key: '26d5195b0cde90c8b9251622180021eb33027f6b', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (hAsync("div", { key: 'd1eca72d7d97d16a6caa6a9094c93555ea0cbd53', class: "sd-popover-menu__messages" }, this.messages.map(message => (hAsync("div", null, message))))), this.buttons.length > 0 && (hAsync("div", { key: '2c8258470a30a604398f680b5d02527303d3b6c7', class: `sd-popover-menu__buttons sd-popover-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (hAsync("sd-button", { ...button })))))), this.useClose && (hAsync("button", { key: '480f0a2b1e9aa0f6d31257f1a13fe441c3685e2b', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: '73d77f0e344a86c4a81c0aab4289b6fb5d3603c2', name: "close", size: "12", color: "#AAAAAA" }))))))));
|
|
6805
6805
|
}
|
|
6806
6806
|
static get watchers() { return {
|
|
6807
6807
|
"show": ["watchShowHandler"]
|
|
@@ -6952,7 +6952,7 @@ class SdPortal {
|
|
|
6952
6952
|
this.sdClose.emit();
|
|
6953
6953
|
}
|
|
6954
6954
|
render() {
|
|
6955
|
-
return hAsync("slot", { key: '
|
|
6955
|
+
return hAsync("slot", { key: 'a2227a90c04b58d7f8c468ebc84f0627055d4da8' });
|
|
6956
6956
|
}
|
|
6957
6957
|
static get cmpMeta() { return {
|
|
6958
6958
|
"$flags$": 772,
|
|
@@ -6989,10 +6989,10 @@ class SdProgress {
|
|
|
6989
6989
|
error: '#FB4444',
|
|
6990
6990
|
};
|
|
6991
6991
|
render() {
|
|
6992
|
-
return (hAsync(Host, { key: '
|
|
6992
|
+
return (hAsync(Host, { key: 'd491ac2f5e734f653a991afa1c9e25ceb9947335', style: {
|
|
6993
6993
|
'--progress-color': this.statusColor[this.status],
|
|
6994
6994
|
'--progress-percentage': `${this.percentage}%`,
|
|
6995
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '
|
|
6995
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '0741e3f5492c4f870cc9657e27d3d1a1d73bee10', class: "sd-progress__label" }, this.label)));
|
|
6996
6996
|
}
|
|
6997
6997
|
renderBarProgress() {
|
|
6998
6998
|
return (hAsync("div", { class: `sd-progress__bar sd-progress__bar--${this.status}` }, hAsync("div", { class: ['sd-progress__bar__percent', this.percentage < 100 ? 'proceed' : ''].join(' ') }), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.percentage, "%"), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.percentage, "%")));
|
|
@@ -7076,7 +7076,7 @@ class SdRadioGroup {
|
|
|
7076
7076
|
}
|
|
7077
7077
|
render() {
|
|
7078
7078
|
const groupName = this.name || `sd-radio-group-${Math.random().toString(36).substring(2, 11)}`;
|
|
7079
|
-
return (hAsync("div", { key: '
|
|
7079
|
+
return (hAsync("div", { key: 'f817ced0e784c418c09c6c3e1cd6d9e045d32598', class: this.getGroupClasses(), role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.radioOptions.map((option, index) => {
|
|
7080
7080
|
const isSelected = this.isOptionSelected(option);
|
|
7081
7081
|
const isDisabled = this.isOptionDisabled(option);
|
|
7082
7082
|
return (hAsync("label", { key: `radio-${index}`, class: this.getRadioClasses(option), role: "radio", "aria-checked": isSelected.toString(), "aria-disabled": isDisabled.toString(), "aria-label": option.label || 'radio option' }, hAsync("input", { type: "radio", name: groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && hAsync("span", { class: "sd-radio-group__label" }, option.label)));
|
|
@@ -7419,11 +7419,11 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7419
7419
|
'--select-width': this.width || '200px',
|
|
7420
7420
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
7421
7421
|
};
|
|
7422
|
-
return (hAsync(Host, { key: '
|
|
7422
|
+
return (hAsync(Host, { key: 'a99d2903e6156a30aa834dea2344829edbde67cb', style: style }, hAsync("div", { key: '39862875a121d9add2c0101d81e223d475d14abb', class: {
|
|
7423
7423
|
'sd-select': true,
|
|
7424
7424
|
'sd-select--open': this.isOpen,
|
|
7425
7425
|
'sd-select--disabled': this.disabled,
|
|
7426
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '
|
|
7426
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '6a7e4ffc442e4edfe508e60c8b578f8c8fb5e409', class: "sd-select__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
7427
7427
|
}
|
|
7428
7428
|
renderLabel(label) {
|
|
7429
7429
|
if (!label)
|
|
@@ -8112,11 +8112,11 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
8112
8112
|
'--select-width': this.width || '200px',
|
|
8113
8113
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
8114
8114
|
};
|
|
8115
|
-
return (hAsync(Host, { key: '
|
|
8115
|
+
return (hAsync(Host, { key: '2fb8b95f341cea6870702474d549b10b46a33551', style: style }, hAsync("div", { key: 'f0ffc9960ae27bc1e76e3cd59592de205ae0071d', class: {
|
|
8116
8116
|
'sd-select-multiple-group': true,
|
|
8117
8117
|
'sd-select-multiple-group--open': this.isOpen,
|
|
8118
8118
|
'sd-select-multiple-group--disabled': this.disabled,
|
|
8119
|
-
}, style: this.containerStyle, ref: el => (this.selectRef = el) }, this.renderLabel(this.label, this.labelStyle), hAsync("div", { key: '
|
|
8119
|
+
}, style: this.containerStyle, ref: el => (this.selectRef = el) }, this.renderLabel(this.label, this.labelStyle), hAsync("div", { key: '1496b603a09001a571388baade46e4d14f19e51d', class: "sd-select-multiple-group__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
8120
8120
|
}
|
|
8121
8121
|
renderLabel(label, labelStyle) {
|
|
8122
8122
|
if (!label)
|
|
@@ -8551,10 +8551,10 @@ let SdTable$1 = class SdTable {
|
|
|
8551
8551
|
}, style: this.getStickyStyle(colIdx) }, hAsync("div", { class: `sd-th__content sd-th__content--${col.align || 'left'}` }, hAsync("slot", { name: `header-cell-${col.name}` }, hAsync("div", { class: "sd-th__content--label" }, col.label)), col.usePageMoveIcon && hAsync("sd-icon", { name: "pageMove", size: "12", color: "#006AC1" }), col.tooltip && (hAsync("sd-tooltip", { ...col.tooltipOptions }, hAsync("div", { slot: "content" }, col.tooltip.map(text => (hAsync("p", null, text))))))), this.resizable && typeof window !== 'undefined' && (hAsync("div", { class: "sd-th__resizer", onMouseDown: (evt) => this.handleResize(colIdx, evt) }))))))));
|
|
8552
8552
|
}
|
|
8553
8553
|
render() {
|
|
8554
|
-
return (hAsync(Host, { key: '
|
|
8554
|
+
return (hAsync(Host, { key: 'a1b686469dfc58d9c57cdc975aac423cf9404012' }, hAsync("div", { key: '8707550d614eac9649b0bb7f9842e21ebe032c45', class: "sd-table__wrapper", style: {
|
|
8555
8555
|
'--table-width': this.width,
|
|
8556
8556
|
'--table-height': this.height,
|
|
8557
|
-
} }, hAsync("div", { key: '
|
|
8557
|
+
} }, hAsync("div", { key: 'df9ac71cdf2decd79714a66177ec65524ce35d5a', class: "sd-table__container" }, hAsync("div", { key: 'c4225356f08b883c82038426d923446f85edeb2b', class: "sd-table__middle", role: "table" }, hAsync("div", { key: '3a75336a77e732a5de56d057429f072a2c946042', part: "table", class: this.sdTableClasses }, this.renderHeader(), hAsync("sd-tbody", { key: 'c1aa8c874dfb96e411fb0b66134c5ab098629d87' }, hAsync("slot", { key: 'f2e40bf5c0fea78af06e3cc8be3568d21e9c4f8d' })))), hAsync("div", { key: 'a5e9382c17261d4f11e4ab9be2b26e6154677a03', class: "sd-table__bottom" })), this.pagination && this.innerRows.length > 0 && (hAsync("div", { key: 'f96b29f77f639184d674b3ea3ae7e28e620db1fb', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: 'e21505112e7b31904c1fde0985443f2e43544a2e', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onPageChange: (e) => {
|
|
8558
8558
|
if (!this.useInternalPagination) {
|
|
8559
8559
|
this.sdPageChange.emit(e.detail);
|
|
8560
8560
|
}
|
|
@@ -8562,7 +8562,7 @@ let SdTable$1 = class SdTable {
|
|
|
8562
8562
|
this.currentPage = e.detail;
|
|
8563
8563
|
this.sdPageChange.emit(this.currentPage);
|
|
8564
8564
|
}
|
|
8565
|
-
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '
|
|
8565
|
+
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '32890039f67ebda027e336a31ab790141ec2c7c2', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => {
|
|
8566
8566
|
const changedRowsPerPage = e.detail.value ? Number(e.detail.value) : 0;
|
|
8567
8567
|
if (!this.useInternalPagination) {
|
|
8568
8568
|
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
@@ -9268,16 +9268,16 @@ class SdTable {
|
|
|
9268
9268
|
}, "aria-hidden": "true" }, hAsync("div", { class: "sd-table__skeleton-cell" })));
|
|
9269
9269
|
}
|
|
9270
9270
|
render() {
|
|
9271
|
-
return (hAsync(Host, { key: '
|
|
9271
|
+
return (hAsync(Host, { key: '1c762116fd35be7070aea38b052f8f619176cd32' }, hAsync("div", { key: '4201639381ebbe400ab124e1ab0e2badd3ffba9e', class: "sd-table__wrapper", style: {
|
|
9272
9272
|
'--table-width': this.width,
|
|
9273
9273
|
'--table-height': this.height,
|
|
9274
|
-
} }, hAsync("div", { key: '
|
|
9274
|
+
} }, hAsync("div", { key: 'c17c7b76ab6f33faf605ad2c4f023f5f0411c847', class: "sd-table__container", style: {
|
|
9275
9275
|
'--table-container-height': `calc(${this.height} - ${this.pagination && this.innerRows.length > 0 ? 48 : 0}px)`,
|
|
9276
|
-
} }, hAsync("div", { key: '
|
|
9276
|
+
} }, hAsync("div", { key: 'd7b1e53fbbe6c8c282b6455a113aa1fb7abf0f13', class: {
|
|
9277
9277
|
'sd-table__middle': true,
|
|
9278
9278
|
'sd-table__middle--scrollable': this.paginatedRows.length > 0,
|
|
9279
9279
|
'sd-table__middle--loading': this.isLoading,
|
|
9280
|
-
} }, this.isLoading && (hAsync("div", { key: '
|
|
9280
|
+
} }, this.isLoading && (hAsync("div", { key: '3c8d66915131a8388d19c2d6101716d709f29c4a', class: "sd-table__middle--loading__spinner" }, hAsync("sd-loading-spinner", { key: '5bd2eb67b7f16929dc4829d3ed069ee7b976f4bf' }))), hAsync("table", { key: 'be2d1b31673397a7aebeff85827d40343970aac0', part: "table", class: this.sdTableClasses }, this.renderHead(), this.renderBody())), hAsync("div", { key: 'f6436dc02163f34d3f9efcd6bc312561e88f3d08', class: "sd-table__bottom" }, !this.paginatedRows.length && (hAsync("div", { key: 'b0f27e8d1b7343619c356bc0d9c074e4dbe91ff0', class: "sd-table__no-data" }, hAsync("slot", { key: '0ea8e9e5624ce063c88b71de32ab7c4607344af9', name: "no-data" }, this.noDataLabel))))), this.pagination && this.innerRows.length > 0 && (hAsync("div", { key: '271d506c6f9e98a6f4e69364be977e299fa4f794', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: '1bff466793f04d5c76b9682fa546a66f9546cf0a', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '51731aabcbfd68cf606423e008fcc89995419803', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => this.changeRowsPerPage(e.detail.value) })))))));
|
|
9281
9281
|
}
|
|
9282
9282
|
static get watchers() { return {
|
|
9283
9283
|
"columns": ["handleColumnsChange"],
|
|
@@ -9332,7 +9332,7 @@ class SdTable {
|
|
|
9332
9332
|
}; }
|
|
9333
9333
|
}
|
|
9334
9334
|
|
|
9335
|
-
const sdTagCss = ":host{display:inline-block}:host([full-width]){display:block}.sd-tag{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border:1px solid transparent;border-radius:4px;transition:all 0.2s ease-in-out;position:relative;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box}.sd-tag--custom-color{background:var(--tag-bg-color);color:var(--tag-text-color)}.sd-tag--sm{padding:0 6px;font-size:11px;line-height:18px;height:20px;border-radius:4px}.sd-tag--md{padding:0 8px;font-size:12px;font-weight:700;line-height:20px;height:24px;border-radius:4px}.sd-tag--lg{padding:0 10px;font-size:14px;font-weight:700;line-height:24px;min-height:28px;border-radius:5px}.sd-tag--rounded.sd-tag--sm{border-radius:20px}.sd-tag--rounded.sd-tag--md{border-radius:20px}.sd-tag--rounded.sd-tag--lg{border-radius:15px}";
|
|
9335
|
+
const sdTagCss = ":host{display:inline-block}:host([full-width]){display:block}.sd-tag{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:8px;text-decoration:none;border:1px solid transparent;border-radius:4px;transition:all 0.2s ease-in-out;position:relative;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box}.sd-tag__content{display:inline-block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sd-tag--custom-color{background:var(--tag-bg-color);color:var(--tag-text-color)}.sd-tag--sm{padding:0 6px;font-size:11px;line-height:18px;height:20px;border-radius:4px}.sd-tag--md{padding:0 8px;font-size:12px;font-weight:700;line-height:20px;height:24px;border-radius:4px}.sd-tag--lg{padding:0 10px;font-size:14px;font-weight:700;line-height:24px;min-height:28px;border-radius:5px}.sd-tag--rounded.sd-tag--sm{border-radius:20px}.sd-tag--rounded.sd-tag--md{border-radius:20px}.sd-tag--rounded.sd-tag--lg{border-radius:15px}";
|
|
9336
9336
|
|
|
9337
9337
|
const TAG_COLORS = {
|
|
9338
9338
|
grey: 'bg-grey_20 text-grey_70',
|
|
@@ -9375,7 +9375,7 @@ class SdTag {
|
|
|
9375
9375
|
}
|
|
9376
9376
|
render() {
|
|
9377
9377
|
const tagClasses = this.getTagClasses();
|
|
9378
|
-
return (hAsync("span", { key: '
|
|
9378
|
+
return (hAsync("span", { key: '3ab30b01fbf0c25426e7903ed05372399c380a01', class: tagClasses, style: {
|
|
9379
9379
|
'--tag-bg-color': this.bgColor,
|
|
9380
9380
|
'--tag-text-color': this.textColor,
|
|
9381
9381
|
}, "aria-label": this.label || 'tag' }, this.renderContent()));
|
|
@@ -9471,6 +9471,60 @@ class SdTh {
|
|
|
9471
9471
|
}; }
|
|
9472
9472
|
}
|
|
9473
9473
|
|
|
9474
|
+
const sdToggleCss = "sd-toggle{display:inline-block;height:20px;line-height:0}sd-toggle .sd-toggle{cursor:pointer;display:inline-flex;align-items:center;gap:8px;height:20px}sd-toggle .sd-toggle>input{display:none}sd-toggle .sd-toggle__label{font-size:12px;color:#333333;line-height:20px}sd-toggle .sd-toggle__track{width:36px;height:20px;border-radius:12px;background:#cccccc;position:relative;transition:background-color 0.2s ease}sd-toggle .sd-toggle__thumb{width:16px;height:16px;border-radius:50%;background:white;position:absolute;top:2px;left:2px;transition:transform 0.2s ease}sd-toggle .sd-toggle--checked .sd-toggle__track{background:#0075ff}sd-toggle .sd-toggle--checked .sd-toggle__thumb{transform:translateX(16px)}sd-toggle .sd-toggle--disabled{cursor:not-allowed}sd-toggle .sd-toggle--disabled.sd-toggle--checked .sd-toggle__track{background:#bbdaff}sd-toggle .sd-toggle--disabled.sd-toggle--unchecked .sd-toggle__track{background:#eeeeee}sd-toggle .sd-toggle:hover:not(.sd-toggle--disabled).sd-toggle--checked .sd-toggle__track{background:#005cc9}sd-toggle .sd-toggle:hover:not(.sd-toggle--disabled).sd-toggle--unchecked .sd-toggle__track{background:#bbbbbb}";
|
|
9475
|
+
|
|
9476
|
+
class SdToggle {
|
|
9477
|
+
constructor(hostRef) {
|
|
9478
|
+
registerInstance(this, hostRef);
|
|
9479
|
+
this.sdChange = createEvent(this, "sdChange");
|
|
9480
|
+
}
|
|
9481
|
+
value = false;
|
|
9482
|
+
label = '';
|
|
9483
|
+
disabled = false;
|
|
9484
|
+
isChecked = false;
|
|
9485
|
+
sdChange;
|
|
9486
|
+
componentWillLoad() {
|
|
9487
|
+
this.updateCheckedState(this.value);
|
|
9488
|
+
}
|
|
9489
|
+
componentWillRender() {
|
|
9490
|
+
this.updateCheckedState(this.value);
|
|
9491
|
+
}
|
|
9492
|
+
updateCheckedState(value) {
|
|
9493
|
+
this.isChecked = value;
|
|
9494
|
+
}
|
|
9495
|
+
get toggleClasses() {
|
|
9496
|
+
const classes = ['sd-toggle', this.isChecked ? 'sd-toggle--checked' : 'sd-toggle--unchecked'];
|
|
9497
|
+
if (this.disabled) {
|
|
9498
|
+
classes.push('sd-toggle--disabled');
|
|
9499
|
+
}
|
|
9500
|
+
return classes.join(' ');
|
|
9501
|
+
}
|
|
9502
|
+
handleChange = () => {
|
|
9503
|
+
if (this.disabled)
|
|
9504
|
+
return;
|
|
9505
|
+
const newValue = !this.value;
|
|
9506
|
+
this.value = newValue;
|
|
9507
|
+
this.sdChange.emit(newValue);
|
|
9508
|
+
};
|
|
9509
|
+
render() {
|
|
9510
|
+
return (hAsync("label", { key: '8b196fae6d8931cdd39c7eea51a7f1f843f4cb75', "aria-checked": this.isChecked.toString(), "aria-disabled": this.disabled.toString(), role: "switch", "aria-label": this.label || 'toggle', class: this.toggleClasses }, hAsync("input", { key: '4a60ce883411cb2a598d003ff264fe6659d0df02', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onInput: this.handleChange }), this.label && hAsync("span", { key: 'c0fb2edfb1a2854c31fb6eb0a4e4169e2e409db2', class: "sd-toggle__label" }, this.label), hAsync("div", { key: 'c9f78f892be478cbd1232722487471eae53bee8a', class: "sd-toggle__track" }, hAsync("div", { key: 'b6388556a0d6f4b9f74e6e2684ded4cde93d6384', class: "sd-toggle__thumb" }))));
|
|
9511
|
+
}
|
|
9512
|
+
static get style() { return sdToggleCss; }
|
|
9513
|
+
static get cmpMeta() { return {
|
|
9514
|
+
"$flags$": 768,
|
|
9515
|
+
"$tagName$": "sd-toggle",
|
|
9516
|
+
"$members$": {
|
|
9517
|
+
"value": [1540],
|
|
9518
|
+
"label": [1],
|
|
9519
|
+
"disabled": [4],
|
|
9520
|
+
"isChecked": [32]
|
|
9521
|
+
},
|
|
9522
|
+
"$listeners$": undefined,
|
|
9523
|
+
"$lazyBundleId$": "-",
|
|
9524
|
+
"$attrsToReflect$": [["value", "value"]]
|
|
9525
|
+
}; }
|
|
9526
|
+
}
|
|
9527
|
+
|
|
9474
9528
|
const sdTooltipCss = "sd-tooltip [slot=content]{display:none}sd-tooltip .sd-tooltip{position:relative;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.sd-tooltip-menu{width:fit-content;padding:8px 16px;border-radius:4px;font-size:12px;position:relative;box-sizing:border-box;display:flex;align-items:start;justify-content:center;gap:12px}.sd-tooltip-menu--with-close{padding-right:12px !important}.sd-tooltip-menu__arrow{position:absolute;display:flex;width:9.6px;height:7.2px}.sd-tooltip-menu__arrow svg{width:100%;height:100%}.sd-tooltip-menu__arrow--top{bottom:-7.2px;left:50%;transform:translateX(-50%)}.sd-tooltip-menu__arrow--bottom{top:-7.2px;left:50%;transform:translateX(-50%) rotate(180deg)}.sd-tooltip-menu__arrow--left{right:-7.2px;top:50%;transform:translateY(-50%) rotate(-90deg)}.sd-tooltip-menu__arrow--right{left:-7.2px;top:50%;transform:translateY(-50%) rotate(90deg)}.sd-tooltip-menu__content{line-height:20px;font-weight:500}.sd-tooltip-menu__content p{margin:0}.sd-tooltip-menu__close-button{padding-top:4px;display:flex}.sd-tooltip-menu__close-button button{padding:0;background:none;border:none;cursor:pointer}";
|
|
9475
9529
|
|
|
9476
9530
|
class SdTooltip {
|
|
@@ -9519,20 +9573,20 @@ class SdTooltip {
|
|
|
9519
9573
|
: {
|
|
9520
9574
|
onClick: () => (this.showTooltip = !this.showTooltip),
|
|
9521
9575
|
};
|
|
9522
|
-
return (hAsync(Fragment, { key: '
|
|
9576
|
+
return (hAsync(Fragment, { key: '44ccb9c1a2e9113160ccb516e62fbd175e139f50' }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-tooltip", ...handleTrigger })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (hAsync("sd-tooltip-portal", { key: '83f82f27164df34a1a8e0d1d8975b4f89a82691a', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, hAsync("div", { key: '544085a133cdbbe707ec0c2be35a9a42cd2372bc', class: {
|
|
9523
9577
|
'sd-tooltip-menu': true,
|
|
9524
9578
|
[`sd-tooltip-menu--${this.type}`]: true,
|
|
9525
9579
|
[`sd-tooltip-menu--${this.placement}`]: true,
|
|
9526
9580
|
'sd-tooltip-menu--with-close': this.useClose,
|
|
9527
9581
|
[`bg-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
9528
9582
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].text}`]: true,
|
|
9529
|
-
} }, hAsync("i", { key: '
|
|
9583
|
+
} }, hAsync("i", { key: '4b335754d346d6ae244e83ccdcae25edf05a306a', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: '567fc901e95b918fb0883f9c241836a10e1e58e9', class: {
|
|
9530
9584
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
9531
|
-
} })), hAsync("div", { key: '
|
|
9585
|
+
} })), hAsync("div", { key: '1475d6f5d76f4e3860e2524cb571eb2704460203', class: "sd-tooltip-menu__content", ref: el => {
|
|
9532
9586
|
if (el && this.slotContent && !el.hasChildNodes()) {
|
|
9533
9587
|
el.appendChild(this.slotContent.cloneNode(true));
|
|
9534
9588
|
}
|
|
9535
|
-
} }, !this.slotContent && hAsync("span", { key: '
|
|
9589
|
+
} }, !this.slotContent && hAsync("span", { key: 'f821b0aa74de05c7728b06a2bd78367e43703684' }, this.el.textContent)), this.useClose && (hAsync("div", { key: '2068c369ef957cb25b9ec74e22e2c78f9ffa6232', class: "sd-tooltip-menu__close-button" }, hAsync("button", { key: 'f61156a86ce1b3fd4f2fb97e507711f9602ac157', type: "button", "aria-label": "Close tooltip", title: "Close tooltip", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: '3ba6f3f4dc5379eb2d13aecb9ec1d5d6fdf20dec', name: "close", size: "12", color: "#AAAAAA" })))))))));
|
|
9536
9590
|
}
|
|
9537
9591
|
static get style() { return sdTooltipCss; }
|
|
9538
9592
|
static get cmpMeta() { return {
|
|
@@ -9708,7 +9762,7 @@ class SdTooltipPortal {
|
|
|
9708
9762
|
this.sdClose.emit();
|
|
9709
9763
|
}
|
|
9710
9764
|
render() {
|
|
9711
|
-
return hAsync("slot", { key: '
|
|
9765
|
+
return hAsync("slot", { key: '912ff6aba4bae810c40c95325ffb1109ddcfddbb' });
|
|
9712
9766
|
}
|
|
9713
9767
|
static get cmpMeta() { return {
|
|
9714
9768
|
"$flags$": 777,
|
|
@@ -9776,6 +9830,7 @@ registerComponents([
|
|
|
9776
9830
|
SdTbody,
|
|
9777
9831
|
SdTd,
|
|
9778
9832
|
SdTh,
|
|
9833
|
+
SdToggle,
|
|
9779
9834
|
SdTooltip,
|
|
9780
9835
|
SdTooltipPortal,
|
|
9781
9836
|
SdTr,
|