@sellmate/design-system 0.0.17 → 0.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_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.sd-icon.sd-input.sd-portal.sd-select.sd-select-multiple.sd-select-multiple-group.sd-select-option.sd-select-option-group.entry.cjs.js.map +1 -1
- package/dist/cjs/sd-checkbox_9.cjs.entry.js +92 -39
- package/dist/cjs/sd-date-box.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-guide.cjs.entry.js +3 -3
- package/dist/cjs/sd-pagination_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +2 -2
- package/dist/cjs/sd-tag.cjs.entry.js +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-checkbox/sd-checkbox.css +15 -17
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +2 -2
- package/dist/collection/components/sd-checkbox/sd-checkbox.js.map +1 -1
- package/dist/collection/components/sd-date-box/sd-date-box.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- 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-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-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select.css +1 -1
- package/dist/collection/components/sd-select/sd-select.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js.map +1 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +2 -2
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +71 -15
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js.map +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.css +32 -11
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +47 -12
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js.map +1 -1
- package/dist/collection/components/sd-table/sd-table.js +2 -2
- package/dist/collection/components/sd-tag/sd-tag.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
- package/dist/components/{p-Biihf4L_.js → p-BIPygw9h.js} +3 -3
- package/dist/components/{p-Biihf4L_.js.map → p-BIPygw9h.js.map} +1 -1
- package/dist/components/{p-Ctp8Jcfa.js → p-BYljcT76.js} +6 -6
- package/dist/components/p-BYljcT76.js.map +1 -0
- package/dist/components/{p-C9h8A06v.js → p-C2Pz32ZQ.js} +7 -7
- package/dist/components/{p-C9h8A06v.js.map → p-C2Pz32ZQ.js.map} +1 -1
- package/dist/components/{p-OUj9ew5s.js → p-CJ4AYwcp.js} +5 -5
- package/dist/components/{p-OUj9ew5s.js.map → p-CJ4AYwcp.js.map} +1 -1
- package/dist/components/{p-B60pARKe.js → p-COjeSZYo.js} +3 -3
- package/dist/components/{p-B60pARKe.js.map → p-COjeSZYo.js.map} +1 -1
- package/dist/components/{p-CxfkkYH4.js → p-CvgvoI09.js} +3 -3
- package/dist/components/{p-CxfkkYH4.js.map → p-CvgvoI09.js.map} +1 -1
- package/dist/components/{p-03XlrG8V.js → p-D4mmLFMz.js} +4 -4
- package/dist/components/{p-03XlrG8V.js.map → p-D4mmLFMz.js.map} +1 -1
- package/dist/components/{p-BXPm14Mz.js → p-D7CUg2TH.js} +3 -3
- package/dist/components/{p-BXPm14Mz.js.map → p-D7CUg2TH.js.map} +1 -1
- package/dist/components/{p-BSERuUHP.js → p-GMtCKhd1.js} +5 -5
- package/dist/components/{p-BSERuUHP.js.map → p-GMtCKhd1.js.map} +1 -1
- package/dist/components/{p-ChtYytaJ.js → p-i3HJi3se.js} +5 -5
- package/dist/components/{p-ChtYytaJ.js.map → p-i3HJi3se.js.map} +1 -1
- package/dist/components/{p-CjFMRk1X.js → p-k8sYEez5.js} +16 -17
- package/dist/components/p-k8sYEez5.js.map +1 -0
- 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-box.js +1 -1
- package/dist/components/sd-date-picker.js +6 -6
- package/dist/components/sd-date-range-picker.js +6 -6
- 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-pagination.js +1 -1
- package/dist/components/sd-popover.js +5 -5
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-select-multiple-group.js +76 -20
- package/dist/components/sd-select-multiple-group.js.map +1 -1
- package/dist/components/sd-select-multiple.js +7 -7
- 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 +8 -8
- package/dist/components/sd-select.js.map +1 -1
- package/dist/components/sd-table.js +8 -8
- package/dist/components/sd-tag.js +1 -1
- 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-3435bfa7.entry.js → p-05e67753.entry.js} +2 -2
- package/dist/design-system/{p-17a6e9a6.entry.js → p-0b798814.entry.js} +2 -2
- package/dist/design-system/{p-53475fb4.entry.js → p-401fc23d.entry.js} +2 -2
- package/dist/design-system/{p-f9d2e115.entry.js → p-493d5ae0.entry.js} +2 -2
- package/dist/design-system/{p-68ce5720.entry.js → p-66889084.entry.js} +2 -2
- package/dist/design-system/p-6925d253.entry.js +2 -0
- package/dist/design-system/p-6925d253.entry.js.map +1 -0
- package/dist/design-system/{p-7e7c4c50.entry.js → p-7b514aae.entry.js} +2 -2
- package/dist/design-system/{p-172ac888.entry.js → p-818f7064.entry.js} +2 -2
- package/dist/design-system/{p-26ee9e78.entry.js → p-a08e4575.entry.js} +2 -2
- package/dist/design-system/{p-fbff7da1.entry.js → p-ba68424d.entry.js} +2 -2
- package/dist/design-system/{p-9c782858.entry.js → p-cb191454.entry.js} +2 -2
- package/dist/design-system/{p-273d1488.entry.js → p-cb5f4323.entry.js} +2 -2
- package/dist/design-system/sd-checkbox.sd-icon.sd-input.sd-portal.sd-select.sd-select-multiple.sd-select-multiple-group.sd-select-option.sd-select-option-group.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_2.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.sd-icon.sd-input.sd-portal.sd-select.sd-select-multiple.sd-select-multiple-group.sd-select-option.sd-select-option-group.entry.js.map +1 -1
- package/dist/esm/sd-checkbox_9.entry.js +92 -39
- package/dist/esm/sd-date-box.entry.js +2 -2
- package/dist/esm/sd-date-picker.entry.js +2 -2
- package/dist/esm/sd-date-range-picker.entry.js +2 -2
- package/dist/esm/sd-guide.entry.js +3 -3
- package/dist/esm/sd-pagination_2.entry.js +4 -4
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-table.entry.js +2 -2
- package/dist/esm/sd-tag.entry.js +1 -1
- package/dist/types/components/sd-select/sd-select.d.ts +2 -1
- package/dist/types/components/sd-select-multiple-group/sd-select-multiple-group.d.ts +3 -0
- package/dist/types/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.d.ts +5 -0
- package/dist/types/components.d.ts +16 -0
- package/hydrate/index.js +115 -60
- package/hydrate/index.mjs +115 -60
- package/package.json +2 -2
- package/dist/components/p-CjFMRk1X.js.map +0 -1
- package/dist/components/p-Ctp8Jcfa.js.map +0 -1
- package/dist/design-system/p-f998a926.entry.js +0 -2
- package/dist/design-system/p-f998a926.entry.js.map +0 -1
- /package/dist/design-system/{p-3435bfa7.entry.js.map → p-05e67753.entry.js.map} +0 -0
- /package/dist/design-system/{p-17a6e9a6.entry.js.map → p-0b798814.entry.js.map} +0 -0
- /package/dist/design-system/{p-53475fb4.entry.js.map → p-401fc23d.entry.js.map} +0 -0
- /package/dist/design-system/{p-f9d2e115.entry.js.map → p-493d5ae0.entry.js.map} +0 -0
- /package/dist/design-system/{p-68ce5720.entry.js.map → p-66889084.entry.js.map} +0 -0
- /package/dist/design-system/{p-7e7c4c50.entry.js.map → p-7b514aae.entry.js.map} +0 -0
- /package/dist/design-system/{p-172ac888.entry.js.map → p-818f7064.entry.js.map} +0 -0
- /package/dist/design-system/{p-26ee9e78.entry.js.map → p-a08e4575.entry.js.map} +0 -0
- /package/dist/design-system/{p-fbff7da1.entry.js.map → p-ba68424d.entry.js.map} +0 -0
- /package/dist/design-system/{p-9c782858.entry.js.map → p-cb191454.entry.js.map} +0 -0
- /package/dist/design-system/{p-273d1488.entry.js.map → p-cb5f4323.entry.js.map} +0 -0
|
@@ -80,9 +80,9 @@ const SdDatePicker = class {
|
|
|
80
80
|
this.isOpen = false;
|
|
81
81
|
};
|
|
82
82
|
render() {
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '84beddb7facbc2eaabc5b606392b30f5c1601eb6', class: "sd-date-picker" }, h("sd-input", { key: 'e8110cae23aaa71047762850ab1ac0ecad39fbf8', ref: el => (this.inputEl = el), value: this.date, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, inputClass: "text-center", inputStyle: {
|
|
84
84
|
margin: '0 0 0 8px',
|
|
85
|
-
}, onClick: () => this.openMenu() }, h("sd-icon", { key: '
|
|
85
|
+
}, onClick: () => this.openMenu() }, h("sd-icon", { key: '9668799fd1b978b8d84228cbce66020ecf9c953a', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: 'bdd3d055e108d0965fd33b39521e45d398d56657', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: '32c9bf2c90f65d7341a06f1aa885eaf5830b790d', class: "sd-date-picker__menu" }, h("div", { key: '998be0bcd3acedce805fa64b6b1d627751c7a021', class: "sd-date-picker__header" }, h("div", { key: 'fbcc16d1a914086eac22ec0769041a7cfb68c4ac', class: "year-nav" }, h("button", { key: 'a0483c5a5c11b96e4d04a8705eaeb834a67aabc1', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, h("sd-icon", { key: '417934cc7f8d3a26a1ab7f7d06c4a19cc8f71838', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '9cc39d471b835312480483054b11bfb3a524a8a4', class: "year-nav__current" }, this.currentYear), h("button", { key: '9963b625be6c33c9a7d6c4aabce8aeac04a5e5d8', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, h("sd-icon", { key: '0414b554e1ae46b414d0829bbbbbd109241a1f0e', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '9eab999da7ef2a34f375f96ff799bf75500866da', class: "month-nav" }, h("button", { key: 'ba70f14d3344474b5faaa0778ce1838f00235880', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, h("sd-icon", { key: '3c69117050d690d06071040b7b110f28368d4b2b', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: 'a3f85e24150dcfd644ac98f4075fc63b39cc389a', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), h("button", { key: '4a2e1c80dad428397120cf226807491474b9fef0', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, h("sd-icon", { key: '11f19f794d230afb29854717520dab17b90bf6e2', name: "arrowRight", size: "12", color: "#CCCCCC" })))), h("div", { key: '0dc4fb36b3395f3f626726ffc2c564b7efa7bf1f', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("div", { key: day, class: "day" }, day)))), h("div", { key: '973a4f62ac5588ad8398e668dfa9a1a5808e2860', class: "sd-date-picker__body" }, [
|
|
86
86
|
...this.calendar.prevMonthDays,
|
|
87
87
|
...this.calendar.days,
|
|
88
88
|
...this.calendar.afterMonthDays,
|
|
@@ -155,9 +155,9 @@ const SdDateRangePicker = class {
|
|
|
155
155
|
this.isOpen = false;
|
|
156
156
|
};
|
|
157
157
|
render() {
|
|
158
|
-
return (h(Host, { key: '
|
|
158
|
+
return (h(Host, { key: '7b5927d900306fe0dd51931ccc606f8cc4799298', class: "sd-date-range-picker" }, h("sd-input", { key: 'a88ecd162f6bf66d6a81b008d990741c85836702', 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: {
|
|
159
159
|
margin: '0 0 0 8px',
|
|
160
|
-
}, onClick: () => this.openMenu() }, h("sd-icon", { key: '
|
|
160
|
+
}, onClick: () => this.openMenu() }, h("sd-icon", { key: '22dd8cf3231fd7409cf37474c839d08230daaf0d', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: 'a5067d11416437d885a42745e95f614c8b85030d', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: 'c4478289503f76363051fec4ea48eab63400da24', class: "sd-date-range-picker__menu" }, h("div", { key: '5aa461caf52b0cbcab7e9390b50988c410cac7cb', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, h("button", { key: '9ee59b3d4d08ab1bb22f1ca9a99b658d25163f2b', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, h("sd-icon", { key: '7478ca20ece1d0720c93ab809408af069c3a51e6', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("div", { key: '221890339d4c692250a5c204c8ebffd7fff86f12', class: "header-label" }, this.prevYear), h("button", { key: 'ccc70fdb3fe6a50460d8156590927edeed0f2eba', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, h("sd-icon", { key: 'e70523f34340c4948d014d861c5be107385e7181', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: 'ab67de7e6bcc992486bf030b5c648a22265ed411', 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
|
|
161
161
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
162
162
|
: `${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 ===
|
|
163
163
|
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 ===
|
|
@@ -79,7 +79,7 @@ const SdGuide = class {
|
|
|
79
79
|
render() {
|
|
80
80
|
// const { name: iconName, size: iconSize, color: iconColor } = this.getGuidIcon();
|
|
81
81
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
82
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: 'e6db8a6f508122254393eb1d9a1ccb5f10192e50' }, h("sd-button", { key: 'df737688c5eb29485eaec14894a051824d7c1c9b', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: GUIDE_LABEL[this.type], size: "sm", color: "grey_45", icon: iconName, iconColor: iconColor, iconSize: iconSize,
|
|
83
83
|
// buttonStyle={{
|
|
84
84
|
// height: '28px',
|
|
85
85
|
// minHeight: '28px',
|
|
@@ -91,9 +91,9 @@ const SdGuide = class {
|
|
|
91
91
|
// fontWeight: '400',
|
|
92
92
|
// backgroundColor: 'var(--guide-background)',
|
|
93
93
|
// }}
|
|
94
|
-
onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (h("sd-portal", { key: '
|
|
94
|
+
onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (h("sd-portal", { key: 'badde689ee0f6cdd0c3c0406894761be779e079e', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: '5ac87ededf1b8b0ad1d5145551b74e0f2868b8a9', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, h("sd-button", { key: '6e56ea467fdad7037c8331c5a35184530101962e', class: "sd-guide__popup__close", icon: "close", color: colors.grey_65, size: "md", variant: "ghost", noHover: true,
|
|
95
95
|
// buttonStyle={{ padding: '0px', minHeight: '0px' }}
|
|
96
|
-
onSdClick: this.closeDropdown }), h("div", { key: '
|
|
96
|
+
onSdClick: this.closeDropdown }), h("div", { key: '81414d84ee3314912035adce13afd8f559099b72', class: "sd-guide__popup__header" }, h("sd-icon", { key: 'a90da4a81d2da7065bfa3335c26efd834bd941b3', name: "helpOutline", size: 24, color: colors.green_65 }), h("h3", { key: 'f01358a92ec297782f8ab394c3fa56277d2a9af1', class: "sd-guide__popup__title" }, this.label || GUIDE_LABEL[this.type])), h("ul", { key: '9d0c130e6fdfaa3016199029d0fef5ea153153ed', class: "sd-guide__popup__list" }, this.renderListItem(this.message)))))));
|
|
97
97
|
}
|
|
98
98
|
// 현재 2depth까지만 스타일 적용
|
|
99
99
|
renderListItem(message, depth = 0) {
|
|
@@ -81,12 +81,12 @@ const SdPagination = class {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: 'c73e80cca3ae34331a653f40fcea9f21853729bc', class: this.paginationClasses }, h("div", { key: '0c1be2da1bbb9ca12ed44739c45c083da9b94657', 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: {
|
|
85
85
|
'pagination-btn': true,
|
|
86
86
|
'pagination-btn--selected': this.currentPage === n,
|
|
87
87
|
}, disabled: this.currentPage === n, style: {
|
|
88
88
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
89
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
89
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '866070b571aab944f6f7521b72479c5b26fca000', class: "append-btns" }, this.renderNextButtons())));
|
|
90
90
|
}
|
|
91
91
|
static get watchers() { return {
|
|
92
92
|
"currentPage": ["onPropChange"],
|
|
@@ -127,11 +127,11 @@ const SdTooltip = class {
|
|
|
127
127
|
: {
|
|
128
128
|
onClick: () => (console.log('click tooltip'), (this.showTooltip = !this.showTooltip)),
|
|
129
129
|
};
|
|
130
|
-
return (h(Fragment, { key: '
|
|
130
|
+
return (h(Fragment, { key: '888e359c993244c0175ee8526015b9e142110973' }, 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-tooltip", ...handleTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (h("sd-tooltip-portal", { key: 'bd304ee555a79fac52fcd03d6c27ba158800b531', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, h("div", { key: '1c7fb484df8836ffc456029d9b394c249ab19d9d', class: {
|
|
131
131
|
'sd-tooltip-menu': true,
|
|
132
132
|
[`sd-tooltip-menu--${this.placement}`]: true,
|
|
133
133
|
'sd-tooltip-menu--with-close': this.useClose,
|
|
134
|
-
} }, h("i", { key: '
|
|
134
|
+
} }, h("i", { key: 'ea7c760b17635a7c09604d99f7d4216970c072db', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '92994ac4e8834bae876a9702f38d074dd697abee' })), h("div", { key: '979090bd76ae1a1e5a331faa03d9f670b646ec77', class: "sd-tooltip-menu__content" }, h("slot", { key: '273376d5996f788c50c6a0f5093ec766d8bb3b24' }, this.el.textContent)), this.useClose && (h("div", { key: 'a45363689d51ebdb68294ecd1b0a163a1175efe3', class: "sd-tooltip-menu__close-button" }, h("button", { key: 'b9e73e19e0e03410fdcd71924a31217b6b58bca3', onClick: () => this.handleClose() }, h("sd-icon", { key: '75d7590ef875d3aa035af095bd6cc84a61fb2a43', name: "close", size: "12", color: "#AAAAAA" })))))))));
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
SdTooltip.style = sdTooltipCss;
|
|
@@ -37,11 +37,11 @@ const SdPopover = class {
|
|
|
37
37
|
this.showPopover = false;
|
|
38
38
|
};
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Fragment, { key: '
|
|
40
|
+
return (h(Fragment, { key: 'dffadde8218c26c620b641a5d95799fbfe08b34b' }, 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", onClick: () => (console.log('click popover'), (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: () => (console.log('click popover'), (this.showPopover = !this.showPopover)) })), this.showPopover && (h("sd-tooltip-portal", { key: '6cb7de8b74b9be12131a730a2d02bd304e3524e7', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, h("div", { key: '901d1fc65e9d94c29acca872c55b02128835f4de', class: {
|
|
41
41
|
'sd-popover-menu': true,
|
|
42
42
|
[`sd-popover-menu--${this.placement}`]: true,
|
|
43
43
|
[this.menuClass]: !!this.menuClass,
|
|
44
|
-
} }, h("i", { key: '
|
|
44
|
+
} }, h("i", { key: '6465c9decc572754469759e6f9ba237e6098c245', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '8f65907035de80f0ac721df90a76c8cff706892e' })), h("div", { key: 'a7dedd510101561be1137fcb1f8c43dca2d13383', class: "sd-popover-menu__content" }, this.menuTitle && h("div", { key: '425038b84031c4082348d7a2d5bc3384f4ce87ea', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '0a07d84656579a773924b0b066c9dbd48d44c6b3', class: "sd-popover-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: 'b2daa7b83fbe582cbb829fa8b2bd8e73d3947b48', class: `sd-popover-menu__buttons sd-popover-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("button", { key: '3ceae5f183e487f30570a471bdfada588519ac30', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, h("sd-icon", { key: '7fe6275cc500f8e963766bdfedc3f3b8a79a3609', name: "close", size: "12", color: "#AAAAAA" }))))))));
|
|
45
45
|
}
|
|
46
46
|
static get watchers() { return {
|
|
47
47
|
"show": ["watchShowHandler"]
|
|
@@ -206,10 +206,10 @@ const SdTable = class {
|
|
|
206
206
|
}))))));
|
|
207
207
|
}
|
|
208
208
|
render() {
|
|
209
|
-
return (h(Host, { key: '
|
|
209
|
+
return (h(Host, { key: 'c728250d385b4827eb4ba01f5f196f31d821a47a' }, h("div", { key: '53bae364e8b2e57e4da21a96f423260e4daa1258', class: "sd-table__wrapper", style: {
|
|
210
210
|
'--table-width': this.width,
|
|
211
211
|
'--table-height': this.height,
|
|
212
|
-
} }, h("div", { key: '
|
|
212
|
+
} }, h("div", { key: '335f39cb9f01adce0b619d201cd8157c6abd6d77', class: "sd-table__container" }, h("div", { key: '0e8679571f1b06675a263a356cc2c7e7e9bcf38a', class: "sd-table__middle" }, h("table", { key: 'cdc472d67359460e73a52057dd9dc0793ff907a9', part: "table", class: this.sdTableClasses }, this.renderHeader(), this.renderBody())), h("div", { key: '183446192b9724ef85fbcbcaded436d9247f52e0', class: "sd-table__bottom" })), this.pagination && this.innerRows.length > 0 && (h("div", { key: 'd1d36cd90c3513bada8b86e38f637f318c0595ed', class: "sd-table__pagination" }, h("sd-pagination", { key: 'c6bba92b076e77f83577772ccbe54e7fc14e52dd', currentPage: this.currentPage, lastPage: this.lastPageNumber, onPageChange: (e) => {
|
|
213
213
|
this.currentPage = e.detail;
|
|
214
214
|
this.sdPageChange.emit(this.currentPage);
|
|
215
215
|
} }))))));
|
package/dist/esm/sd-tag.entry.js
CHANGED
|
@@ -43,7 +43,7 @@ const SdTag = class {
|
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
45
|
const tagClasses = this.getTagClasses();
|
|
46
|
-
return (h("span", { key: '
|
|
46
|
+
return (h("span", { key: '42250b22292bd0f6d6ffd4dc46ceda624a7001ba', class: tagClasses, style: {
|
|
47
47
|
'--tag-bg-color': this.bgColor,
|
|
48
48
|
'--tag-text-color': this.textColor,
|
|
49
49
|
}, "aria-label": this.label || 'tag' }, this.renderContent()));
|
|
@@ -5,8 +5,9 @@ export interface SelectOption {
|
|
|
5
5
|
label: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}
|
|
8
|
+
export type SelectGroupOptionType = 'group' | 'subgroup' | 'item';
|
|
8
9
|
export interface SelectOptionGroup extends SelectOption {
|
|
9
|
-
type:
|
|
10
|
+
type: SelectGroupOptionType;
|
|
10
11
|
parent?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface SelectStyleProps {
|
|
@@ -61,11 +61,14 @@ export declare class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
61
61
|
isSelected: boolean | null;
|
|
62
62
|
}) => void;
|
|
63
63
|
private filterOptions;
|
|
64
|
+
private addParentGroups;
|
|
64
65
|
private getSelectedOption;
|
|
65
66
|
private handleDropdownScroll;
|
|
66
67
|
private getNativeInputElement;
|
|
67
68
|
private handleOptionSelection;
|
|
69
|
+
private getAllItemsUnderOption;
|
|
68
70
|
private isAllChildrenSelected;
|
|
71
|
+
private getChildrenOptions;
|
|
69
72
|
closeDropdown(): void;
|
|
70
73
|
private scrollToOption;
|
|
71
74
|
render(): any;
|
|
@@ -11,6 +11,11 @@ export declare class SdSelectOptionGroup {
|
|
|
11
11
|
};
|
|
12
12
|
disabled: boolean;
|
|
13
13
|
useCheckbox: boolean;
|
|
14
|
+
useIndicator?: boolean;
|
|
15
|
+
countInfo?: {
|
|
16
|
+
selectedCount: number;
|
|
17
|
+
totalCount: number;
|
|
18
|
+
};
|
|
14
19
|
isHovered: boolean;
|
|
15
20
|
isDisabled(): Promise<boolean>;
|
|
16
21
|
optionClick: EventEmitter<{
|
|
@@ -531,6 +531,10 @@ export namespace Components {
|
|
|
531
531
|
"useCheckbox": boolean;
|
|
532
532
|
}
|
|
533
533
|
interface SdSelectOptionGroup {
|
|
534
|
+
/**
|
|
535
|
+
* @default { selectedCount: 0, totalCount: 0, }
|
|
536
|
+
*/
|
|
537
|
+
"countInfo"?: { selectedCount: number; totalCount: number };
|
|
534
538
|
/**
|
|
535
539
|
* @default false
|
|
536
540
|
*/
|
|
@@ -551,6 +555,10 @@ export namespace Components {
|
|
|
551
555
|
* @default false
|
|
552
556
|
*/
|
|
553
557
|
"useCheckbox": boolean;
|
|
558
|
+
/**
|
|
559
|
+
* @default true
|
|
560
|
+
*/
|
|
561
|
+
"useIndicator"?: boolean;
|
|
554
562
|
}
|
|
555
563
|
interface SdTable {
|
|
556
564
|
"bodyCellRenderer"?: (
|
|
@@ -1614,6 +1622,10 @@ declare namespace LocalJSX {
|
|
|
1614
1622
|
"useCheckbox"?: boolean;
|
|
1615
1623
|
}
|
|
1616
1624
|
interface SdSelectOptionGroup {
|
|
1625
|
+
/**
|
|
1626
|
+
* @default { selectedCount: 0, totalCount: 0, }
|
|
1627
|
+
*/
|
|
1628
|
+
"countInfo"?: { selectedCount: number; totalCount: number };
|
|
1617
1629
|
/**
|
|
1618
1630
|
* @default false
|
|
1619
1631
|
*/
|
|
@@ -1639,6 +1651,10 @@ declare namespace LocalJSX {
|
|
|
1639
1651
|
* @default false
|
|
1640
1652
|
*/
|
|
1641
1653
|
"useCheckbox"?: boolean;
|
|
1654
|
+
/**
|
|
1655
|
+
* @default true
|
|
1656
|
+
*/
|
|
1657
|
+
"useIndicator"?: boolean;
|
|
1642
1658
|
}
|
|
1643
1659
|
interface SdTable {
|
|
1644
1660
|
"bodyCellRenderer"?: (
|