@sellmate/design-system 1.7.0 → 1.7.2
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/sd-action-modal.cjs.entry.js +2 -2
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-calendar_2.cjs.entry.js +5 -5
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +10 -10
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-ghost-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +8 -8
- package/dist/cjs/sd-popover.cjs.entry.js +3 -3
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-portal.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +6 -6
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +2 -2
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-text-link.cjs.entry.js +3 -3
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.css +2 -3
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-button/sd-button.js +2 -2
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.js +1 -1
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.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-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-field/sd-field.js +5 -5
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.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 +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +3 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/{p-DeHt0RYQ.js → p-2z2c2umH.js} +1 -1
- package/dist/components/{p-BDJJQALT.js → p-B45aOf4I.js} +1 -1
- package/dist/components/{p-CSbyXQa9.js → p-B6G64i5a.js} +1 -1
- package/dist/components/{p-CRq8zgt_.js → p-B6JOxZKP.js} +1 -1
- package/dist/components/{p-CAP-9lnL.js → p-B6L3bPm2.js} +1 -1
- package/dist/components/{p-C1Fk1556.js → p-BWJtQGYo.js} +1 -1
- package/dist/components/{p-DAAHX92J.js → p-Bhh7ig9Q.js} +1 -1
- package/dist/components/{p-DR1f1cS9.js → p-C8c6MuKQ.js} +1 -1
- package/dist/components/{p-Dq38kgOY.js → p-CARYLqH9.js} +1 -1
- package/dist/components/{p-BYRvYsiC.js → p-CTuKWVTh.js} +1 -1
- package/dist/components/{p-CJRGLvgC.js → p-CkR5oiLy.js} +1 -1
- package/dist/components/{p-5_BC8C6x.js → p-CwQTEZWO.js} +1 -1
- package/dist/components/{p-CK6jFkqR.js → p-CwRItc2J.js} +1 -1
- package/dist/components/{p-CtXad9by.js → p-D6cUtm8p.js} +1 -1
- package/dist/components/{p-2aQ4cVXp.js → p-DCFqtVBm.js} +1 -1
- package/dist/components/{p-D4mjSR0u.js → p-DISZkQqT.js} +1 -1
- package/dist/components/{p-vZLoby4N.js → p-DMrXwfmf.js} +1 -1
- package/dist/components/{p-DwKYjjIC.js → p-DP0Dp12H.js} +1 -1
- package/dist/components/{p-DY1iQfib.js → p-DhmsCQrB.js} +1 -1
- package/dist/components/{p-DfKa36bs.js → p-DhtKHJ7-.js} +1 -1
- package/dist/components/{p-DK4Jvax0.js → p-DmDGMDzt.js} +1 -1
- package/dist/components/p-DoREs-rv.js +1 -0
- package/dist/components/{p-BNXKU1BW.js → p-EcuI_UmK.js} +1 -1
- package/dist/components/{p-CnbeQ2DI.js → p-I9SoAcVO.js} +1 -1
- package/dist/components/{p-BVvVDIo0.js → p-ZSGGRCNc.js} +1 -1
- package/dist/components/{p-F7yyGdIc.js → p-cX2DD74L.js} +1 -1
- package/dist/components/{p-CWGbMz0J.js → p-f10Mw7qM.js} +1 -1
- package/dist/components/{p-D155awu4.js → p-lOVBaLB7.js} +1 -1
- package/dist/components/p-p4bNikji.js +1 -0
- package/dist/components/{p-EbF6qsnG.js → p-uVZjhyvS.js} +1 -1
- package/dist/components/{p-B_2U9h3P.js → p-wLoP3KMv.js} +1 -1
- package/dist/components/p-y_6iWhDy.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.js +1 -1
- package/dist/components/sd-dropdown-button.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-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.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-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.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-32d96a70.entry.js → p-07b0d118.entry.js} +1 -1
- package/dist/design-system/{p-e159f70d.entry.js → p-0de5a53b.entry.js} +1 -1
- package/dist/design-system/{p-e1350f4d.entry.js → p-1219699a.entry.js} +1 -1
- package/dist/design-system/p-18057222.entry.js +1 -0
- package/dist/design-system/{p-08798232.entry.js → p-18d3ae55.entry.js} +1 -1
- package/dist/design-system/{p-643c004a.entry.js → p-1aafbc7b.entry.js} +1 -1
- package/dist/design-system/{p-0060136e.entry.js → p-2c0a8333.entry.js} +1 -1
- package/dist/design-system/{p-ea17a361.entry.js → p-2d3d25bd.entry.js} +1 -1
- package/dist/design-system/p-3e2b5e01.entry.js +1 -0
- package/dist/design-system/{p-840f592d.entry.js → p-46faa7ed.entry.js} +1 -1
- package/dist/design-system/{p-b08ca29b.entry.js → p-4c3ead1b.entry.js} +1 -1
- package/dist/design-system/{p-a6c9baa5.entry.js → p-5c4fd9c1.entry.js} +1 -1
- package/dist/design-system/{p-eef5f8d7.entry.js → p-5d5d8220.entry.js} +1 -1
- package/dist/design-system/p-60b80bf3.entry.js +1 -0
- package/dist/design-system/{p-8d2815cf.entry.js → p-74b3e95b.entry.js} +1 -1
- package/dist/design-system/{p-0964c79a.entry.js → p-78b0b759.entry.js} +1 -1
- package/dist/design-system/p-78c2fd6d.entry.js +1 -0
- package/dist/design-system/p-8674d868.entry.js +1 -0
- package/dist/design-system/{p-10f579ba.entry.js → p-95bbba4f.entry.js} +1 -1
- package/dist/design-system/{p-b5e9320f.entry.js → p-969665c0.entry.js} +1 -1
- package/dist/design-system/{p-adce8704.entry.js → p-97b405aa.entry.js} +1 -1
- package/dist/design-system/{p-4ef942a8.entry.js → p-9d34518e.entry.js} +1 -1
- package/dist/design-system/{p-d1da969d.entry.js → p-a5930cbd.entry.js} +1 -1
- package/dist/design-system/{p-102c2153.entry.js → p-bd4e5141.entry.js} +1 -1
- package/dist/design-system/{p-70f47e43.entry.js → p-c1bac61e.entry.js} +1 -1
- package/dist/design-system/{p-f172920e.entry.js → p-c73cadc7.entry.js} +1 -1
- package/dist/design-system/p-cce38339.entry.js +1 -0
- package/dist/design-system/{p-7444d475.entry.js → p-cffa6da7.entry.js} +1 -1
- package/dist/design-system/{p-914d74c4.entry.js → p-deec1ef0.entry.js} +1 -1
- package/dist/design-system/{p-2e4d1fe1.entry.js → p-e6bd8ab1.entry.js} +1 -1
- package/dist/design-system/{p-1743651a.entry.js → p-e81cb8c9.entry.js} +1 -1
- package/dist/design-system/{p-e9079238.entry.js → p-ea586c5e.entry.js} +1 -1
- package/dist/design-system/{p-733aa107.entry.js → p-f14962bd.entry.js} +1 -1
- package/dist/design-system/{p-521e5d2e.entry.js → p-f3dff8b8.entry.js} +1 -1
- package/dist/design-system/{p-282b1260.entry.js → p-ff33d019.entry.js} +1 -1
- package/dist/esm/sd-action-modal.entry.js +2 -2
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-button_2.entry.js +2 -2
- package/dist/esm/sd-calendar_2.entry.js +5 -5
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-picker_7.entry.js +10 -10
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-field_3.entry.js +8 -8
- package/dist/esm/sd-ghost-button.entry.js +2 -2
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-pagination_4.entry.js +8 -8
- package/dist/esm/sd-popover.entry.js +3 -3
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-portal.entry.js +1 -1
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select_3.entry.js +8 -8
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/sd-table.entry.js +6 -6
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-tag.entry.js +2 -2
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-text-link.entry.js +3 -3
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/hydrate/index.js +92 -92
- package/hydrate/index.mjs +92 -92
- package/package.json +1 -1
- package/dist/components/p-BFAQ4nY2.js +0 -1
- package/dist/components/p-LZKaKr8O.js +0 -1
- package/dist/components/p-pTx5xpqU.js +0 -1
- package/dist/design-system/p-17ec576c.entry.js +0 -1
- package/dist/design-system/p-4cf1c8ae.entry.js +0 -1
- package/dist/design-system/p-69a208c0.entry.js +0 -1
- package/dist/design-system/p-9c74571a.entry.js +0 -1
- package/dist/design-system/p-afdca5bb.entry.js +0 -1
- package/dist/design-system/p-f97b75d3.entry.js +0 -1
|
@@ -178,7 +178,7 @@ const SdRadioButton = class {
|
|
|
178
178
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
179
179
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
180
180
|
};
|
|
181
|
-
return (index.h("div", { key: '
|
|
181
|
+
return (index.h("div", { key: 'b916d790862409f8b8e1da566f049daadfc4e5e2', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
182
182
|
const isSelected = this.isOptionSelected(option);
|
|
183
183
|
const isDisabled = this.isOptionDisabled(option);
|
|
184
184
|
return (index.h("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, index.h("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && index.h("span", { class: "sd-radio-button__label" }, option.label)));
|
|
@@ -118,7 +118,7 @@ const SdRadio = class {
|
|
|
118
118
|
'--sd-radio-disabled-dot': RADIO_COLORS.disabled.dot,
|
|
119
119
|
'--sd-radio-label-color': RADIO_COLORS.label,
|
|
120
120
|
};
|
|
121
|
-
return (index.h("label", { key: '
|
|
121
|
+
return (index.h("label", { key: '68f1b169f2a7b072a92a64286fa88eff99313faf', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, index.h("input", { key: 'fa2474cc359ef4f5480a68d9b5d0b6f151e7eec8', type: "radio", name: String(this.val), value: String(this.val), checked: this.isSelected, disabled: this.disabled, "aria-label": this.label || String(this.val), onInput: this.handleRadioChange }), index.h("span", { key: '345f286e2f87e5dd0687fb94a59f6886eac25f24', class: "sd-radio__circle" }), this.label && index.h("span", { key: 'e8bd76682569820121c9469984f0054386d9b117', class: "sd-radio__label" }, this.label)));
|
|
122
122
|
}
|
|
123
123
|
static get watchers() { return {
|
|
124
124
|
"value": [{
|
|
@@ -79,7 +79,7 @@ const SdSelectListItem = class {
|
|
|
79
79
|
return (
|
|
80
80
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
81
81
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
82
|
-
index.h("div", { key: '
|
|
82
|
+
index.h("div", { key: '33f5d4383d2bfac91507d72d98b8a73b380a70e8', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
83
83
|
'sd-select-list-item': true,
|
|
84
84
|
'sd-select-list-item--group': isGroup,
|
|
85
85
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -89,7 +89,7 @@ const SdSelectListItem = class {
|
|
|
89
89
|
'sd-select-list-item--focused': this.isFocused,
|
|
90
90
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
91
91
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
92
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '
|
|
92
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: 'a93dec7a45e140d7f715a6fc823c4438c58cdd8f', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), index.h("span", { key: '81b0bfdd0825b795f2638d6529e8c5fb346be6db', class: "sd-select-list-item__label" }, this.option.label), this.countInfo && (index.h("span", { key: '2e1425a5d6ab9082a30b4d9079be1d4104d95fc2', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -142,15 +142,15 @@ const SdSelectListItemSearch = class {
|
|
|
142
142
|
clearTimeout(this.debounceTimer);
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (index.h("div", { key: '
|
|
145
|
+
return (index.h("div", { key: '8c0c85ac9c382e2978e32924c33a580a4fac3485', class: {
|
|
146
146
|
'sd-select-list-item-search': true,
|
|
147
147
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
148
|
-
} }, index.h("div", { key: '
|
|
148
|
+
} }, index.h("div", { key: '92425ff6eab4cf16f96f45dabb8f07c27ad9e747', class: "sd-select-list-item-search__inner" }, index.h("sd-icon", { key: '253a40e4e624e828e351d08c1f05fb2d098c8b9b', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), index.h("input", { key: 'b38735ae6e75b9fe19ceb3038c5b873ad42760ef', ref: el => {
|
|
149
149
|
this.inputEl = el;
|
|
150
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), index.h("button", { key: '
|
|
150
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), index.h("button", { key: '8045fef5d1821ea60ac261ee07f7eddf8a7a189d', type: "button", class: {
|
|
151
151
|
'sd-select-list-item-search__clear': true,
|
|
152
152
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
153
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: '
|
|
153
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: '110c0420fd17c51055cfc1815a528cf7c385d91e', name: "close", size: 12, color: "#888888" })))));
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
@@ -265,15 +265,15 @@ const SdSelect = class {
|
|
|
265
265
|
this.closeDropdown();
|
|
266
266
|
},
|
|
267
267
|
};
|
|
268
|
-
return (index.h("sd-field", { key: '
|
|
268
|
+
return (index.h("sd-field", { key: '3c188cbdd8c612e78780d18c03acc382d32080c9', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
269
269
|
this.hovered = true;
|
|
270
270
|
}, onMouseLeave: () => {
|
|
271
271
|
this.hovered = false;
|
|
272
|
-
} }, index.h("div", { key: '
|
|
272
|
+
} }, index.h("div", { key: 'be596d399856ed966408ba1525fea9dbdf8fcc7e', class: "sd-select", ref: el => {
|
|
273
273
|
this.triggerRef = el;
|
|
274
|
-
} }, index.h("sd-select-trigger", { key: '
|
|
274
|
+
} }, index.h("sd-select-trigger", { key: 'f8a29b1ac2469c60af8c7101d05157674566f00f', ref: el => {
|
|
275
275
|
this.triggerComponentRef = el;
|
|
276
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: '
|
|
276
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: '3cef3f95f69b09d0e4e8f6b01615df4cca031cff', ...portalProps }, index.h("sd-select-listbox", { key: 'e8833c547aa2e8084754c7a439d3860df5c97e5b', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
277
277
|
}
|
|
278
278
|
static get watchers() { return {
|
|
279
279
|
"isOpen": [{
|
|
@@ -637,9 +637,9 @@ const SdSelectListbox = class {
|
|
|
637
637
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
638
638
|
'--listbox-radius': `${sdSelect_config.LIST_BOX_LAYOUT.radius}px`,
|
|
639
639
|
};
|
|
640
|
-
return (index.h("div", { key: '
|
|
640
|
+
return (index.h("div", { key: '7505e221ddb890880f0ba5088c3fdc76700e3b2f', class: "sd-select-listbox", style: cssVars }, this.showSearch && (index.h("sd-select-list-item-search", { key: '54b97ad40c5e7abe92b478689d09337843736652', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), index.h("div", { key: 'f7417f923cc34cbb2c2a56ae70ed54701d013d3d', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
641
641
|
this.listEl = el;
|
|
642
|
-
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '
|
|
642
|
+
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '5e8cfcb1f9f0953b9eaa6fc73de992b52a0a23d7', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (index.h("div", { class: "sd-select-listbox__empty" }, sdSelect_config.EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (index.h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
643
643
|
}
|
|
644
644
|
static get watchers() { return {
|
|
645
645
|
"searchKeyword": [{
|
|
@@ -699,7 +699,7 @@ const SdSelectTrigger = class {
|
|
|
699
699
|
? sdSelect_config.SELECT_COLORS.icon.disabled
|
|
700
700
|
: sdSelect_config.SELECT_COLORS.icon.default,
|
|
701
701
|
};
|
|
702
|
-
return (index.h("div", { key: '
|
|
702
|
+
return (index.h("div", { key: '3a97ed909e3088528714682050a3986081e19433', ref: el => {
|
|
703
703
|
this.triggerEl = el;
|
|
704
704
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
705
705
|
'sd-select-trigger': true,
|
|
@@ -710,7 +710,7 @@ const SdSelectTrigger = class {
|
|
|
710
710
|
e.preventDefault();
|
|
711
711
|
this.handleClick();
|
|
712
712
|
}
|
|
713
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: '
|
|
713
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: '986faba7d79980f0bcd10fff32495d2100e1805f', class: "sd-select-trigger__content" }, index.h("span", { key: 'c51b268186de7cdabcf06ac3d540ccb570c9e865', class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택')), index.h("sd-icon", { key: '8a03b400d5aef2e0ca9aeb4b1f6122db2932455a', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
714
714
|
'sd-select-trigger__icon': true,
|
|
715
715
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
716
716
|
} }))));
|
|
@@ -102,7 +102,7 @@ const SdSwitch = class {
|
|
|
102
102
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
103
103
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
104
104
|
};
|
|
105
|
-
return (index.h("label", { key: '
|
|
105
|
+
return (index.h("label", { key: '04674e9fc781ac58b2e68ae30cb90c948de8b5e3', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, index.h("input", { key: 'b87970c38aa2ccbe3d8f91414c96c2f05aaaa818', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), index.h("div", { key: 'd87bcaf8b16d17401215dd962875dc585f747d65', class: "sd-switch__track" }, index.h("div", { key: '408a034cd6b063d9cd968f647995cc77dfdd0577', class: "sd-switch__knob" })), this.label && index.h("span", { key: '58d7ab18329007eac2e23b0fcda66a841e4df0c2', class: "sd-switch__label" }, this.label)));
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -842,25 +842,25 @@ const SdTable = class {
|
|
|
842
842
|
'--table-body-text-decoration': sdTable_config.TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
843
843
|
'--table-selectable-width': `${sdTable_config.TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
844
844
|
};
|
|
845
|
-
return (index.h(index.Host, { key: '
|
|
845
|
+
return (index.h(index.Host, { key: '4596e04bd57aca00fa6378fd26ce33a06a795eaf', style: hostStyle }, index.h("div", { key: '11a20d327410b0be659cede32917164e036e796c', class: "sd-table__container", style: {
|
|
846
846
|
'--table-width': this.width,
|
|
847
847
|
'--table-height': effectiveTableHeight,
|
|
848
848
|
'--table-container-height': `calc(${effectiveTableHeight} - ${paginationHeight}px)`,
|
|
849
|
-
} }, index.h("div", { key: '
|
|
849
|
+
} }, index.h("div", { key: 'f4f3acf584dc4eacdae25b11aa2b62b73ffab949', class: {
|
|
850
850
|
'sd-table__wrapper': true,
|
|
851
851
|
'sd-table__wrapper--use-top': this.useTop,
|
|
852
|
-
} }, index.h("div", { key: '
|
|
852
|
+
} }, index.h("div", { key: 'c8ab618b9c990a22b8e9466a5bfb5f02f4de8b12', class: {
|
|
853
853
|
'sd-table__scroll-container': true,
|
|
854
854
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
855
855
|
'sd-table__scroll-container--no-data': isNoData,
|
|
856
|
-
} }, this.isLoading && (index.h("div", { key: '
|
|
856
|
+
} }, this.isLoading && (index.h("div", { key: 'a696933a70799ba282fc743281d0af27fd691a2e', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, index.h("sd-circle-progress", { key: 'cba6ac47367ef6499bf338b9b757ee74fdd7e6c1', indeterminate: true }))), isNoData && (index.h(index.h.Fragment, null, index.h("div", { key: '6e22156bf5b0fb9814d9bf9cad57506758c6284b', class: "sd-table__no-data-header-overlay" }), index.h("div", { key: 'b72f9fabcc8acb8e700ad55acc4d7aff08355a1c', class: "sd-table__no-data" }, index.h("div", { key: '43f271a8803121362f16e8153748328658f073ec', class: "sd-table__no-data-content", ref: el => {
|
|
857
857
|
this.noDataContentEl = el;
|
|
858
858
|
if (el)
|
|
859
859
|
this.syncNoDataContentObserver();
|
|
860
|
-
} }, index.h("slot", { key: '
|
|
860
|
+
} }, index.h("slot", { key: '4b8533115bbc81962b80c9c2533fe4b44a87193c', name: "no-data" }, index.h("span", { key: 'd94c4f7cf9eca7901b99434f712480a7b20c869a' }, this.resolvedNoDataLabel)))))), index.h("table", { key: 'a9a353aca09124ed8a82fcd2f8a0a7de09b234f5', class: this.tableClasses }, this.autoThead ? (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-thead", { rows: this.rows ?? [] }))) : (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
861
861
|
this.pagination.rowsPerPage > 0 &&
|
|
862
862
|
this.rowCount > 0 &&
|
|
863
|
-
!this.useVirtualScroll && (index.h("div", { key: '
|
|
863
|
+
!this.useVirtualScroll && (index.h("div", { key: '8afeb9398c3d7540a54b9a3660fb9685ae1cddca', class: "sd-table__pagination" }, index.h("sd-pagination", { key: 'e2cbb3f7414f65b81ab2d33eaec5d9f28bed6cc8', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (index.h("sd-select", { key: 'ce723544dbc7e4cc0d77ced3b685b8575cf67e6f', value: this.useInternalPagination
|
|
864
864
|
? this.innerRowsPerPage
|
|
865
865
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
866
866
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -188,7 +188,7 @@ const SdTabs = class {
|
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
render() {
|
|
191
|
-
return (index.h("div", { key: '
|
|
191
|
+
return (index.h("div", { key: '92384577bf4ce85de90ae05a32e44715e595fe16', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
192
192
|
const badgeName = this.getBadgeName(tab);
|
|
193
193
|
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
194
194
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -209,7 +209,7 @@ const SdTag = class {
|
|
|
209
209
|
render() {
|
|
210
210
|
const config = this.resolvedConfig;
|
|
211
211
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
212
|
-
return (index.h("span", { key: '
|
|
212
|
+
return (index.h("span", { key: '945a8a13f4891b5174e48e262b2a108674da7198', class: "sd-tag", style: {
|
|
213
213
|
'--sd-tag-background': config.background,
|
|
214
214
|
'--sd-tag-content': config.content,
|
|
215
215
|
'--sd-tag-height': config.height,
|
|
@@ -219,7 +219,7 @@ const SdTag = class {
|
|
|
219
219
|
'--sd-tag-font-weight': config.fontWeight,
|
|
220
220
|
'--sd-tag-line-height': config.lineHeight,
|
|
221
221
|
'--sd-tag-radius': config.radius,
|
|
222
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '
|
|
222
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '441932c2eb85eea471838db541fb95302527df23', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
SdTag.style = sdTagCss();
|
|
@@ -158,7 +158,7 @@ const SdTd = class {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return (index.h(index.Host, { key: '
|
|
161
|
+
return (index.h(index.Host, { key: '1d7123e1f35cfb513a1fa89b4d60f8dde7715a2f', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: 'f7b9266106a6df93e2101ca9a324035960281a6f' })));
|
|
162
162
|
}
|
|
163
163
|
static get watchers() { return {
|
|
164
164
|
"field": [{
|
|
@@ -76,7 +76,7 @@ const SdTextLink = class {
|
|
|
76
76
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
77
77
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
78
78
|
};
|
|
79
|
-
return (index.h("span", { key: '
|
|
79
|
+
return (index.h("span", { key: '23ddcce86220acc4e6c8a585e4240ecb7baee9f8', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
80
80
|
'sd-text-link': true,
|
|
81
81
|
'sd-text-link--disabled': this.disabled,
|
|
82
82
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -84,13 +84,13 @@ const SdTextLink = class {
|
|
|
84
84
|
e.preventDefault();
|
|
85
85
|
this.handleClick();
|
|
86
86
|
}
|
|
87
|
-
} }, this.icon && (index.h("sd-icon", { key: '
|
|
87
|
+
} }, this.icon && (index.h("sd-icon", { key: 'd265458a74db086efa270fd165fa5fa9855b708b', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: '9cb7e5909036aea5b70496fbe5ca69ce10ab3035', class: labelClassName }, this.label), this.useArrow && (index.h("span", { key: '5ebe27c5929095d1799d81e930b2efa8d616f5bd', class: "sd-text-link__arrow", style: {
|
|
88
88
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
89
89
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
90
90
|
display: 'inline-flex',
|
|
91
91
|
alignItems: 'center',
|
|
92
92
|
justifyContent: 'center',
|
|
93
|
-
} }, index.h("sd-icon", { key: '
|
|
93
|
+
} }, index.h("sd-icon", { key: '5fc735391386ac733b77bfac6947cccc61fad198', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -234,7 +234,7 @@ const SdToastContainer = class {
|
|
|
234
234
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
235
235
|
const indexMap = new Map();
|
|
236
236
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
237
|
-
return (index.h("div", { key: '
|
|
237
|
+
return (index.h("div", { key: '1de55d255b75842f52e3f0a147a69493ed1a7de5', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
238
238
|
this.expanded = true;
|
|
239
239
|
this.pauseTimers();
|
|
240
240
|
}, onMouseLeave: () => {
|
|
@@ -84,12 +84,12 @@ const SdToast = class {
|
|
|
84
84
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
85
85
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
86
86
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
87
|
-
return (index.h("div", { key: '
|
|
87
|
+
return (index.h("div", { key: '735fa3f949ee4c7d0178f999c02e90c829c133b4', style: {
|
|
88
88
|
'--sd-toast-bg': typeConfig.bg,
|
|
89
89
|
'--sd-toast-text': typeConfig.content,
|
|
90
90
|
'--sd-toast-icon': iconColor,
|
|
91
91
|
'--sd-toast-link': linkColor,
|
|
92
|
-
} }, index.h("div", { key: '
|
|
92
|
+
} }, index.h("div", { key: '4e483d858c3268bde838ddc5c5c9cb5065855326', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '007eded85c508bdd2da05b1c9d489ff2d03a4df9', class: "sd-toast__icon" }, index.h("sd-icon", { key: '099d5556f4b0a11f5162cb76a6166a2d662d9590', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '3825916248bc2385fe87c8aeb6d741b59738246f', class: "sd-toast__content" }, index.h("span", { key: 'fba817baf33179296f50d3fe4147cc99c38fbb83', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '39667765a9a72c761f0b464f78c7652e60e6dd16', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: '3da2f9a5daf53de4400bfec79654b5795c3b6af4', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '2578d35dc11e06178c6902cb358bcdb8ccabbf36', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
SdToast.style = sdToastCss();
|
|
@@ -120,7 +120,7 @@ const SdToggle = class {
|
|
|
120
120
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
121
121
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
122
122
|
};
|
|
123
|
-
return (index.h("label", { key: '
|
|
123
|
+
return (index.h("label", { key: 'f1b1b68270d523f7f3e40c8145f35e93df269d73', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: '7e07c190916e19ffe8744f6b491e92e6bf8efd36', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
SdToggle.style = sdToggleCss();
|
|
@@ -53,16 +53,15 @@ sd-action-modal .sd-action-modal__body {
|
|
|
53
53
|
sd-action-modal .sd-action-modal__footer {
|
|
54
54
|
display: flex;
|
|
55
55
|
align-items: center;
|
|
56
|
+
justify-content: flex-end;
|
|
56
57
|
flex-shrink: 0;
|
|
57
58
|
gap: var(--sd-action-modal-footer-gap);
|
|
58
59
|
padding: var(--sd-action-modal-footer-padding-y) var(--sd-action-modal-footer-padding-x);
|
|
59
60
|
background: var(--sd-action-modal-footer-bg);
|
|
60
61
|
border-top: 1px solid var(--sd-action-modal-footer-border);
|
|
61
62
|
}
|
|
62
|
-
sd-action-modal .sd-action-modal__footer > sd-button {
|
|
63
|
-
margin-left: auto;
|
|
64
|
-
}
|
|
65
63
|
sd-action-modal .sd-action-modal__footer-sub {
|
|
64
|
+
flex: 1 1 auto;
|
|
66
65
|
display: flex;
|
|
67
66
|
align-items: center;
|
|
68
67
|
gap: 8px;
|
|
@@ -39,7 +39,7 @@ export class SdActionModal {
|
|
|
39
39
|
if (this.height != null && this.height !== '') {
|
|
40
40
|
sizeStyle.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
|
41
41
|
}
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '91a94a7058a38f4433809705cf2fefdc3bbaefa9', class: "sd-action-modal", style: { ...cssVars, ...sizeStyle } }, h("header", { key: 'e47efbc4183c9cff34d0ed66aab69521efb9e9e5', class: "sd-action-modal__header" }, h("h2", { key: '7a54d5f4decb8d6d599808feafca68e548cf173e', class: "sd-action-modal__title" }, this.modalTitle), h("div", { key: '621c4a86ef0ba69833b84515c74d4972f0a6cc42', class: "sd-action-modal__header-sub" }, h("slot", { key: 'f7453ed96822804094c239cef05638934aed288e', name: "header-sub-title" })), h("sd-ghost-button", { key: '29cee49b27b6f261d719e6856f8b38a9fa590bf4', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), h("div", { key: '610840c291b3a26a82146549220ff1be470eafc2', class: "sd-action-modal__body" }, h("slot", { key: '7d390550e2ba1ae27409fb64beccf4f33f744aad', name: "body" })), (this.buttonProps != null || this.buttonProps != undefined) && (h("footer", { key: 'c835a2fb96066b393a8833d492d03adc2806cb07', class: "sd-action-modal__footer" }, h("div", { key: 'b46ed9f18f9e760bd5159260e2cf4b3f27d8dd23', class: "sd-action-modal__footer-sub" }, h("slot", { key: '4b9cce3c5b44b7921e82cb813a87ca5e76cd4928', name: "bottom-sub-content" })), h("sd-button", { key: '6cf14c10ef064a1c5993a48ef9f921069d6d70f6', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() })))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "sd-action-modal"; }
|
|
45
45
|
static get originalStyleUrls() {
|
|
@@ -4,7 +4,7 @@ export class SdBadge {
|
|
|
4
4
|
color = 'blue';
|
|
5
5
|
render() {
|
|
6
6
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '5fec3220f60c6567d1aa5de6aa3d1c7c9f9e605b', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, h("div", { key: '892f2c5c1d004d172c06bc0871688d30e449e80f', class: "sd-badge__dot" })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "sd-badge"; }
|
|
10
10
|
static get originalStyleUrls() {
|
|
@@ -102,7 +102,7 @@ export class SdBarcodeInput {
|
|
|
102
102
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
103
103
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
104
104
|
};
|
|
105
|
-
return (h("sd-field", { key: '
|
|
105
|
+
return (h("sd-field", { key: 'c009f4c33b31e9498c230e9a0f4064925a1e5757', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'a614817eab514a80f7132ebb92ebb0b8bb8009e4', class: "sd-barcode-input__content" }, h("slot", { key: '16a0bf4c55eafec3fb827ba8fe54f61e546fbbca', name: "prefix" }), h("input", { key: 'de9e2abcfe4b8f34084feb8691ef6c8183568932', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: 'dbfc3e2c03b20da68e80cc3855cace42aae268ec', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: '05670236ffb93c7b894bdea9763d11adcab75e05', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
106
106
|
if (this.disabled)
|
|
107
107
|
return;
|
|
108
108
|
this.internalValue = '';
|
|
@@ -69,13 +69,13 @@ export class SdButton {
|
|
|
69
69
|
const validRightIcon = isValidIcon(this.rightIcon) ? this.rightIcon : undefined;
|
|
70
70
|
const iconOnly = !hasLabel && Boolean(validIcon) !== Boolean(validRightIcon);
|
|
71
71
|
const accessibleName = iconOnly && this.ariaLabel.trim() !== '' ? this.ariaLabel : undefined;
|
|
72
|
-
return (h("button", { key: '
|
|
72
|
+
return (h("button", { key: 'a234c7f16473512ada9eb1e06bf64f77c399cbfc', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type ?? 'button', disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
73
73
|
'--sd-button-bg': config.color,
|
|
74
74
|
'--sd-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
75
75
|
'--sd-button-border': PRESET_BORDER_COLORS[preset],
|
|
76
76
|
'--sd-button-content': PRESET_CONTENT_COLORS[preset],
|
|
77
77
|
'--sd-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
78
|
-
}, onClick: this.handleClick }, h("span", { key: '
|
|
78
|
+
}, onClick: this.handleClick }, h("span", { key: 'f7b9352e23e52ff28380e06deb25e777a5432800', class: "sd-button__content" }, validIcon && (h("sd-icon", { key: '07327cab83e95c69cf8739be2eb08cdd8272393d', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && h("span", { key: '4274f4b275c3ac9f3f09d4a6c1bf75d2d5f650ee', class: "sd-button__label" }, this.label), validRightIcon && (h("sd-icon", { key: 'ba796a53ba1cb389db209d91c224b04381445b25', class: "sd-button__icon sd-button__icon--right", name: validRightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "sd-button"; }
|
|
81
81
|
static get originalStyleUrls() {
|
|
@@ -173,7 +173,7 @@ export class SdCalendar {
|
|
|
173
173
|
const eventMap = this.eventMap;
|
|
174
174
|
const legend = this.legendItems;
|
|
175
175
|
const hasEvents = (this.events?.length ?? 0) > 0;
|
|
176
|
-
return (h("div", { key: '
|
|
176
|
+
return (h("div", { key: 'd85abe861103677565ff172def182761255eee97', class: { 'sd-calendar': true, 'sd-calendar--elevated': this.elevated }, style: cssVars }, h("div", { key: '2d087beb6f61c1545c61c040d7266eb809c59c56', class: "sd-calendar__header" }, h("div", { key: '90b85428cd8f22aac7f0d8915a0fb0fc1ba0fd0f', class: "sd-calendar__nav-group" }, h("sd-ghost-button", { key: '6a5b6c35489eeeae6d2fca4a96a77755b5d48c5a', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: 'b00bab4993fb6f57bf1c6e8fd02243b8cbab8007', class: "sd-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: '1ed1ea634a311b429c6e2053c22e1d043d34aa82', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: '1d471e12d7e5a48998b33ef6c3b7208c2fff1796', class: "sd-calendar__divider", "aria-hidden": "true" }), h("div", { key: '07e70fb3696cfe6bcf2253c0ead87fead96ad04e', class: "sd-calendar__nav-group sd-calendar__nav-group-month" }, h("sd-ghost-button", { key: 'c8401e8f8a1018eec46d9ee9857e8aa64235fff5', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: '3ceaa4a07a45eb16c43ed70e953f4540c2554ae9', class: "sd-calendar__label sd-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: '6dd7c2c29159e549e2294141726b39c0ad559634', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: '623928bc8970c2746f3d924a4ae36149ce7d21f7', class: "sd-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-calendar__week-cell" }, label)))), h("div", { key: '5ab1f7042906eb7542f4effa35c0c9992ded34dc', class: "sd-calendar__grid" }, this.cells.map(cell => {
|
|
177
177
|
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
178
178
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
179
179
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
@@ -186,8 +186,8 @@ export class SdCalendar {
|
|
|
186
186
|
'sd-calendar__day--disabled': isDisabled,
|
|
187
187
|
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, h("span", { class: "sd-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : ''), hasEvents && (h("span", { class: "sd-calendar__dot-row", "aria-hidden": "true" }, dayEvents?.map((ev, i) => (h("span", { key: `${ev.color}|${ev.label}|${i}`, class: "sd-calendar__dot", style: { backgroundColor: ev.color } })))))));
|
|
188
188
|
})), legend.length > 0 && [
|
|
189
|
-
h("span", { key: '
|
|
190
|
-
h("div", { key: '
|
|
189
|
+
h("span", { key: '9d3f938ca0ac1d48ec6189a6b9f7598c06dbaf13', class: "sd-calendar__divider-bottom", "aria-hidden": "true" }),
|
|
190
|
+
h("div", { key: '1b5a55959212257085707478d7d0a358dc355403', class: "sd-calendar__legend" }, legend.map(item => (h("span", { key: `${item.color}|${item.label}`, class: "sd-calendar__legend-item" }, h("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: item.color }, "aria-hidden": "true" }), h("span", { class: "sd-calendar__legend-label" }, item.label))))),
|
|
191
191
|
]));
|
|
192
192
|
}
|
|
193
193
|
static get is() { return "sd-calendar"; }
|
|
@@ -49,7 +49,7 @@ export class SdCallout {
|
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
51
|
const showTitle = this.type === 'danger';
|
|
52
|
-
return (h("div", { key: '
|
|
52
|
+
return (h("div", { key: 'b11c9ade2fcd2a17704b4d8965e53cc80ddd4a15', class: "sd-callout", style: this.calloutStyle, role: "note" }, showTitle && this.renderTitle(), h("div", { key: '0c5712690ab2141820f444092a63ac4c11d33c80', class: "sd-callout__body" }, this.renderBody())));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "sd-callout"; }
|
|
55
55
|
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: '366604b2ca458d2b9b26f61c1cb282543b27a699' }, h("div", { key: '889e8ec8d359eb26713762ebb9990ea07dfaf0ba', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: 'd680bfe14dc135da77e35440587f089781ef383f' }))));
|
|
7
7
|
}
|
|
8
8
|
static get is() { return "sd-card"; }
|
|
9
9
|
static get originalStyleUrls() {
|
|
@@ -205,7 +205,7 @@ export class SdChip {
|
|
|
205
205
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
206
206
|
'--sd-chip-line-height': typography.lineHeight,
|
|
207
207
|
};
|
|
208
|
-
return (h("span", { key: '
|
|
208
|
+
return (h("span", { key: '6503611c9cb03be2de4fc09398e2ce1b34b8ab10', class: {
|
|
209
209
|
'sd-chip': true,
|
|
210
210
|
[`sd-chip--${state}`]: true,
|
|
211
211
|
'sd-chip--disabled': this.disabled,
|
|
@@ -27,7 +27,7 @@ export class SdCircleProgress {
|
|
|
27
27
|
}
|
|
28
28
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
29
29
|
const showPercent = !this.indeterminate;
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '9a4424e79b095c240b2dd53c8655b9a4cccaf581', style: hostStyle }, h("svg", { key: '37ca87d4c4aa6ab6b84a4301225d775f1998c0c1', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '372f7031310dddba431323b0527c273311a498e3', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: 'def6ff7573e4c4a08648f35f7cb545d6b8064f6d', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle })), showPercent && (h("span", { key: '13d6345672fdafaf6a1e1eef9f5987179a99c3ae', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && h("span", { key: 'c42e2fa2826284017e530e967975e45277ae9ee3', class: "sd-circle-progress__label" }, this.label)));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "sd-circle-progress"; }
|
|
33
33
|
static get originalStyleUrls() {
|
|
@@ -73,9 +73,9 @@ export class SdConfirmModal {
|
|
|
73
73
|
const type = this.resolvedType;
|
|
74
74
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
75
75
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
76
|
-
return (h("div", { key: '
|
|
76
|
+
return (h("div", { key: 'c41a58f13b95da7f1f0aea3620abf239dcb116b6', class: "sd-confirm-modal" }, h("sd-ghost-button", { key: 'bdc1bc374934c2f9745f567b4e6ffd55ec3675ce', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: 'ff16ebde448157e657eb74e1b0c5f4a331cf396a', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: 'd718b2ae6f6e92f8c77ec821b78924ffbe267d12', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), h("div", { key: 'a3909abde84c4d6987c9036a705cba4aa7d01ea6', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: '29a4bf80ab75d973544c0a29c87133c9ef8a5aab', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) }))))), this.showContentBox && (h("div", { key: '93eb2c75728cf26969a229a876f9217b4e00c63a', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
77
77
|
this.customContentRef = el;
|
|
78
|
-
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '
|
|
78
|
+
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '730fd073ade9b8788de77d36fc4aeddd0b304c07', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) })))))), h("div", { key: '059fd87fb39b8e2976fcb671c7dd78310324119f', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button", { key: '6b320645505c099783a4a6704e96e9261054c7dc', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), h("sd-button", { key: 'd6a4554a7db861ae7afc610a629591224946d990', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "sd-confirm-modal"; }
|
|
81
81
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js
CHANGED
|
@@ -33,7 +33,7 @@ export class SdDatePickerTrigger {
|
|
|
33
33
|
? DATEPICKER_COLORS.icon.disabled
|
|
34
34
|
: DATEPICKER_COLORS.icon.default,
|
|
35
35
|
};
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: '8a41444172b2d9aa54fa6efe09c4440705d55e06', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
37
37
|
'sd-date-picker-trigger': true,
|
|
38
38
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
39
39
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -41,7 +41,7 @@ export class SdDatePickerTrigger {
|
|
|
41
41
|
e.preventDefault();
|
|
42
42
|
this.handleClick();
|
|
43
43
|
}
|
|
44
|
-
} }, h("sd-icon", { key: '
|
|
44
|
+
} }, h("sd-icon", { key: '74613a1b65814a1f73d00c67d7c1f01019961511', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: '118733548ddee2bc20ccdc92785ada3bbc765303', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "sd-date-picker-trigger"; }
|
|
47
47
|
static get originalStyleUrls() {
|
|
@@ -93,9 +93,9 @@ export class SdDatePicker {
|
|
|
93
93
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
94
94
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
95
95
|
};
|
|
96
|
-
return (h("sd-field", { key: '
|
|
96
|
+
return (h("sd-field", { key: '12d77a181caa4a6a9125db8a5c823149386ee059', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '2abc775817955caf06dd721d7b91c65d1bfd54de', class: "sd-date-picker", ref: el => {
|
|
97
97
|
this.triggerRef = el;
|
|
98
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
98
|
+
} }, h("sd-date-picker-trigger", { key: 'c8c041a503785e35ac4a14d902eeef0a20fa2dd7', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '2c3bf831068ca090247fa4494fac6c2ce3b20e81', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-calendar", { key: '52df44d23b85540cbca17c352aba5568ff43685d', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "sd-date-picker"; }
|
|
101
101
|
static get originalStyleUrls() {
|
|
@@ -239,7 +239,7 @@ export class SdDateRangePickerCalendar {
|
|
|
239
239
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
240
240
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
241
241
|
};
|
|
242
|
-
return (h(Fragment, { key: '
|
|
242
|
+
return (h(Fragment, { key: 'a9e5bc8198cfda50227069661812341e7a19b21d' }, h("div", { key: 'a2c5bf6ae806fc24f421cb6b52323f4e92bfc255', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: '2575175fa3537e010e1c7d573428d5c8ebfae488', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: 'bd43ac98b88665dbe85804c8b6345c19dca7d9fa', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
243
243
|
}
|
|
244
244
|
static get is() { return "sd-date-range-picker-calendar"; }
|
|
245
245
|
static get originalStyleUrls() {
|
|
@@ -7,7 +7,7 @@ export class SdDivider {
|
|
|
7
7
|
const hostStyle = {
|
|
8
8
|
'--sd-divider-color': DIVIDER_COLORS.default,
|
|
9
9
|
};
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '92e9f5ef8d6d382e1e2a62f3421feaf1bc27aab7', style: hostStyle }, h("hr", { key: '40827e6308a258e6de4a438c53d4de9465a6d0a1', "aria-orientation": this.vertical ? 'vertical' : 'horizontal' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "sd-divider"; }
|
|
13
13
|
static get originalStyleUrls() {
|
|
@@ -172,21 +172,21 @@ export class SdField {
|
|
|
172
172
|
: {}),
|
|
173
173
|
}
|
|
174
174
|
: {};
|
|
175
|
-
return (h("div", { key: '
|
|
175
|
+
return (h("div", { key: 'c6d4bc9d09982d65c31596319569590df9b994b1', class: {
|
|
176
176
|
'sd-field': true,
|
|
177
177
|
'sd-field--has-label': this.label !== '',
|
|
178
178
|
'sd-field--has-addon': addon !== '',
|
|
179
179
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
180
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: '
|
|
180
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: '24f3e7702b3d3be42f8236988e1d64e26a31840e', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '7c45edce014adee7e2eb91296779896d9fd9fcc3', class: "sd-field__main", style: this.width !== '' && this.width !== 0
|
|
181
181
|
? {
|
|
182
182
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
183
183
|
flex: 'none',
|
|
184
184
|
}
|
|
185
|
-
: {} }, h("div", { key: '
|
|
185
|
+
: {} }, h("div", { key: '13c99702bf11e4ff76332141a9eaff93185882d3', class: {
|
|
186
186
|
'sd-field__control': true,
|
|
187
187
|
'sd-field__control--has-addon': addon !== '',
|
|
188
|
-
} }, addon && (h("div", { key: '
|
|
189
|
-
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '
|
|
188
|
+
} }, addon && (h("div", { key: '461170360e26e24051fab4507a22e932f5a37244', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: 'c8b63273a253da7911e5d8a6f57143a9cc909853', name: this.icon.name, size: this.icon.size ??
|
|
189
|
+
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '3c4a72a6152c50d525df972a2a4c4d6840240116' })), this.errorMsg !== '' || this.errorMessage !== '' ? (h("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && h("div", { class: "sd-field__hint" }, this.hint))))));
|
|
190
190
|
}
|
|
191
191
|
renderLabel(label) {
|
|
192
192
|
if (label == null || label === '')
|