@sellmate/design-system 1.4.0 → 1.5.0
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/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sanitize-inline-html-BZCCwH_U.js +65 -0
- package/dist/cjs/sd-calendar_2.cjs.entry.js +7 -6
- package/dist/cjs/sd-callout.cjs.entry.js +152 -0
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +9 -4
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +9 -9
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +6 -5
- package/dist/cjs/sd-field_3.cjs.entry.js +7 -7
- package/dist/cjs/sd-guide.cjs.entry.js +5 -4
- package/dist/cjs/sd-key-value-table.cjs.entry.js +1 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +10 -10
- package/dist/cjs/sd-popup.cjs.entry.js +6 -5
- package/dist/cjs/sd-portal.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 +19 -16
- package/dist/cjs/{sd-table.config-B7psrvV4.js → sd-table.config-DqgNOdXO.js} +1 -1
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +4 -2
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- 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/cjs/{system-VmZRYp6V.js → system-wrt-tcOq.js} +12 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/sd-calendar/sd-calendar.css +3 -1
- package/dist/collection/components/sd-calendar/sd-calendar.js +24 -3
- package/dist/collection/components/sd-callout/sd-callout.config.js +45 -0
- package/dist/collection/components/sd-callout/sd-callout.css +87 -0
- package/dist/collection/components/sd-callout/sd-callout.js +114 -0
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +9 -4
- 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 +3 -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-dropdown-button/sd-dropdown-button.js +5 -4
- package/dist/collection/components/sd-field/sd-field.js +4 -4
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.js +4 -3
- 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-modal-container/sd-modal-container.js +8 -0
- 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-popup/sd-popup.config.js +3 -4
- package/dist/collection/components/sd-popup/sd-popup.js +4 -2
- package/dist/collection/components/sd-portal/sd-portal.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 +17 -14
- 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 +4 -2
- 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/collection/utils/html/sanitize-inline-html.js +61 -0
- package/dist/collection/utils/modal.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Da5i_Sa6.js → p-AO2RGdjH.js} +1 -1
- package/dist/components/{p-X-8I-A3g.js → p-B3sb3aIX.js} +1 -1
- package/dist/components/{p-CIUE4qr7.js → p-BGb86o0p.js} +1 -1
- package/dist/components/{p-C3fqSH7A.js → p-BLhu2So8.js} +1 -1
- package/dist/components/{p-INdVvadB.js → p-BSQsJHnV.js} +1 -1
- package/dist/components/{p-xX3QT-8K.js → p-BZCvsLRf.js} +1 -1
- package/dist/components/{p-BFC3Etk2.js → p-BqrZA_Nl.js} +1 -1
- package/dist/components/{p-DS7Ypvt5.js → p-C54v30vB.js} +1 -1
- package/dist/components/{p-DlREBZ-C.js → p-CJ-QHG0F.js} +1 -1
- package/dist/components/{p-kSfaCwf1.js → p-CbXb6ylI.js} +1 -1
- package/dist/components/{p-BRxXhFqt.js → p-CgYjGJEh.js} +1 -1
- package/dist/components/{p-CLxVZFEG.js → p-Co3H5873.js} +1 -1
- package/dist/components/{p-BRk9YZBe.js → p-Cvk-Luhs.js} +1 -1
- package/dist/components/{p-BeBiPTbd.js → p-D5inekTL.js} +1 -1
- package/dist/components/{p-Bs1Z5QtN.js → p-DChOBMCc.js} +1 -1
- package/dist/components/p-DGlmvjGc.js +1 -0
- package/dist/components/{p-DwgaMhOM.js → p-DUcbofDO.js} +1 -1
- package/dist/components/{p-DykVq5VY.js → p-DZbc1mgp.js} +1 -1
- package/dist/components/{p-t161LJqb.js → p-DeK3og10.js} +1 -1
- package/dist/components/{p-BjpbUGud.js → p-DmaopssQ.js} +1 -1
- package/dist/components/p-DopVneZA.js +1 -0
- package/dist/components/p-DrrsZftV.js +1 -0
- package/dist/components/{p-CpgTSxf0.js → p-DyZNk1VT.js} +1 -1
- package/dist/components/{p-oyZgWRnC.js → p-HK6Bwtz8.js} +1 -1
- package/dist/components/{p-Z5Vk33zf.js → p-IThoLpLs.js} +1 -1
- package/dist/components/{p-JlZdKw4C.js → p-J3eT660D.js} +1 -1
- package/dist/components/p-fpzgqVv1.js +1 -0
- package/dist/components/{p-DiP0LJGq.js → p-iCuIUhaK.js} +1 -1
- package/dist/components/p-m_OtjUs1.js +1 -0
- package/dist/components/{p-BwPmM1Pm.js → p-uHITnW_J.js} +1 -1
- package/dist/components/{p-Cx_d5vsS.js → p-yH47DvUh.js} +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.d.ts +11 -0
- package/dist/components/sd-callout.js +1 -0
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.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-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-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-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-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/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-74bf0ed9.entry.js → p-06a6798d.entry.js} +1 -1
- package/dist/design-system/{p-e611dcd4.entry.js → p-0894c492.entry.js} +1 -1
- package/dist/design-system/p-14e30f67.entry.js +1 -0
- package/dist/design-system/{p-9b9bf9db.entry.js → p-1e530c87.entry.js} +1 -1
- package/dist/design-system/{p-84a94775.entry.js → p-2bdceecb.entry.js} +1 -1
- package/dist/design-system/{p-a98f9a29.entry.js → p-339cb954.entry.js} +1 -1
- package/dist/design-system/{p-a7ea1cf0.entry.js → p-352c68ae.entry.js} +1 -1
- package/dist/design-system/p-3d61e68f.entry.js +1 -0
- package/dist/design-system/{p-fe3ae346.entry.js → p-3f4a281f.entry.js} +1 -1
- package/dist/design-system/p-40bdbe5a.entry.js +1 -0
- package/dist/design-system/{p-481e6934.entry.js → p-435ae69e.entry.js} +1 -1
- package/dist/design-system/p-4473c051.entry.js +1 -0
- package/dist/design-system/p-61f4238b.entry.js +1 -0
- package/dist/design-system/p-786c72e9.entry.js +1 -0
- package/dist/design-system/{p-d890a680.entry.js → p-78de36f2.entry.js} +1 -1
- package/dist/design-system/p-795bae4c.entry.js +1 -0
- package/dist/design-system/{p-522d1481.entry.js → p-819e28fe.entry.js} +1 -1
- package/dist/design-system/{p-32e2d71e.entry.js → p-843d4b16.entry.js} +1 -1
- package/dist/design-system/{p-cc97f4b4.entry.js → p-8ee990bd.entry.js} +1 -1
- package/dist/design-system/{p-42f7febe.entry.js → p-9404ab06.entry.js} +1 -1
- package/dist/design-system/p-DGlmvjGc.js +1 -0
- package/dist/design-system/{p-DykVq5VY.js → p-DZbc1mgp.js} +1 -1
- package/dist/design-system/p-DopVneZA.js +1 -0
- package/dist/design-system/{p-e8e64511.entry.js → p-aac84d22.entry.js} +1 -1
- package/dist/design-system/{p-f7074386.entry.js → p-b868d747.entry.js} +1 -1
- package/dist/design-system/{p-3b8954d9.entry.js → p-b8e34533.entry.js} +1 -1
- package/dist/design-system/p-c3e4853c.entry.js +1 -0
- package/dist/design-system/{p-11b904a3.entry.js → p-d226bd61.entry.js} +1 -1
- package/dist/design-system/{p-dbeaeb31.entry.js → p-d3cc8538.entry.js} +1 -1
- package/dist/design-system/{p-ae117afa.entry.js → p-eae21a79.entry.js} +1 -1
- package/dist/design-system/{p-e23dac79.entry.js → p-fa670cc4.entry.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sanitize-inline-html-DopVneZA.js +63 -0
- package/dist/esm/sd-calendar_2.entry.js +7 -6
- package/dist/esm/sd-callout.entry.js +150 -0
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +9 -4
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +4 -3
- package/dist/esm/sd-date-picker_7.entry.js +9 -9
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +6 -5
- package/dist/esm/sd-field_3.entry.js +7 -7
- package/dist/esm/sd-guide.entry.js +5 -4
- package/dist/esm/sd-key-value-table.entry.js +1 -1
- package/dist/esm/sd-linear-progress.entry.js +2 -2
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-pagination_4.entry.js +10 -10
- package/dist/esm/sd-popup.entry.js +6 -5
- package/dist/esm/sd-portal.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.config-DU7Pc6YH.js → sd-table.config-CFHtQ8LX.js} +1 -1
- package/dist/esm/sd-table.entry.js +19 -16
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-tag.entry.js +4 -2
- package/dist/esm/sd-td.entry.js +1 -1
- 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/dist/esm/{system-GBlVDmy4.js → system-DGlmvjGc.js} +12 -1
- package/dist/types/components/sd-calendar/sd-calendar.d.ts +1 -0
- package/dist/types/components/sd-callout/sd-callout.config.d.ts +34 -0
- package/dist/types/components/sd-callout/sd-callout.d.ts +11 -0
- package/dist/types/components.d.ts +43 -0
- package/dist/types/utils/html/sanitize-inline-html.d.ts +1 -0
- package/hydrate/index.js +338 -95
- package/hydrate/index.mjs +338 -95
- package/package.json +1 -1
- package/dist/components/p-BDVrZ5mV.js +0 -1
- package/dist/components/p-CETxX4-M.js +0 -1
- package/dist/components/p-CyObYB-g.js +0 -1
- package/dist/components/p-GBlVDmy4.js +0 -1
- package/dist/design-system/p-29fd86d8.entry.js +0 -1
- package/dist/design-system/p-36d744fb.entry.js +0 -1
- package/dist/design-system/p-8f4ccae4.entry.js +0 -1
- package/dist/design-system/p-9f7f1b8b.entry.js +0 -1
- package/dist/design-system/p-GBlVDmy4.js +0 -1
- package/dist/design-system/p-a640e509.entry.js +0 -1
- package/dist/design-system/p-a97033a2.entry.js +0 -1
- package/dist/design-system/p-fc5c4f85.entry.js +0 -1
package/hydrate/index.mjs
CHANGED
|
@@ -6716,7 +6716,7 @@ const CALENDAR_LAYOUT = {
|
|
|
6716
6716
|
};
|
|
6717
6717
|
const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|
|
6718
6718
|
|
|
6719
|
-
const sdCalendarCss = () => `sd-calendar{display:block}sd-calendar .sd-calendar{display:flex;flex-direction:column;gap:var(--calendar-gap);width:328px;min-height:328px;padding:var(--calendar-padding);background:var(--calendar-bg);border-radius:var(--calendar-radius);box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.2)
|
|
6719
|
+
const sdCalendarCss = () => `sd-calendar{display:block}sd-calendar .sd-calendar{display:flex;flex-direction:column;gap:var(--calendar-gap);width:328px;min-height:328px;padding:var(--calendar-padding);background:var(--calendar-bg);border-radius:var(--calendar-radius);user-select:none}sd-calendar .sd-calendar--elevated{box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.2)}sd-calendar .sd-calendar__header{display:flex;align-items:center;justify-content:center;gap:var(--calendar-header-gap);font-size:var(--calendar-header-font-size);line-height:var(--calendar-header-line-height);font-weight:var(--calendar-header-font-weight);color:var(--calendar-day-text)}sd-calendar .sd-calendar__nav-group{display:inline-flex;align-items:center;gap:var(--calendar-gap)}sd-calendar .sd-calendar__nav-group-month{width:100%}sd-calendar .sd-calendar__label{display:inline-flex;align-items:center;justify-content:center;min-width:40px;text-align:center}sd-calendar .sd-calendar__label-month{width:100%}sd-calendar .sd-calendar__divider{display:inline-block;width:1px;height:16px;background:var(--calendar-header-divider)}sd-calendar .sd-calendar__week{display:grid;grid-template-columns:repeat(7, var(--calendar-day-size))}sd-calendar .sd-calendar__week-cell{display:inline-flex;align-items:center;justify-content:center;height:20px;font-size:var(--calendar-week-font-size);line-height:var(--calendar-week-line-height);font-weight:var(--calendar-week-font-weight);color:var(--calendar-week-color)}sd-calendar .sd-calendar__grid{display:grid;grid-template-columns:repeat(7, var(--calendar-day-size));row-gap:var(--calendar-grid-row-gap)}sd-calendar .sd-calendar__day{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;width:var(--calendar-day-size);min-height:var(--calendar-day-circle-size);padding:0;border:none;background:transparent;cursor:pointer;font-size:var(--calendar-day-font-size);line-height:var(--calendar-day-line-height);font-weight:var(--calendar-day-font-weight);color:var(--calendar-day-text)}sd-calendar .sd-calendar__day-circle{display:inline-flex;align-items:center;justify-content:center;width:var(--calendar-day-circle-size);height:var(--calendar-day-circle-size);border-radius:calc(var(--calendar-day-circle-radius) * 1px);border:1px solid transparent;box-sizing:border-box}sd-calendar .sd-calendar__day:not(:disabled):hover .sd-calendar__day-circle{border-radius:16px;border:1px solid var(--calendar-day-hover-border)}sd-calendar .sd-calendar__day--today .sd-calendar__day-circle{font-weight:700}sd-calendar .sd-calendar__day--selected .sd-calendar__day-circle{border-radius:16px;background:var(--calendar-day-select-bg);color:var(--calendar-day-select-text)}sd-calendar .sd-calendar__day--selected:not(:disabled):hover .sd-calendar__day-circle{background:var(--calendar-day-select-bg);color:var(--calendar-day-select-text)}sd-calendar .sd-calendar__day--disabled{color:var(--calendar-day-disabled-text);background:none !important;cursor:not-allowed}sd-calendar .sd-calendar__day--empty{visibility:hidden;pointer-events:none}sd-calendar .sd-calendar__dot-row{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--calendar-day-dot-gap);box-sizing:border-box;width:100%;min-height:14px;padding-top:var(--calendar-day-dot-padding-y);padding-bottom:var(--calendar-day-dot-padding-y)}sd-calendar .sd-calendar__dot{display:inline-block;width:var(--calendar-day-dot-size);height:var(--calendar-day-dot-size);border-radius:50%}sd-calendar .sd-calendar__divider-bottom{display:block;width:100%;height:1px;background:var(--calendar-header-divider)}sd-calendar .sd-calendar__legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:var(--calendar-legend-group-gap);row-gap:4px;font-size:var(--calendar-legend-font-size);line-height:var(--calendar-legend-line-height);font-weight:var(--calendar-legend-font-weight);color:var(--calendar-day-text)}sd-calendar .sd-calendar__legend-item{display:inline-flex;align-items:center;gap:var(--calendar-legend-gap)}sd-calendar .sd-calendar__legend-dot{display:inline-block;width:var(--calendar-day-dot-size);height:var(--calendar-day-dot-size);border-radius:50%;flex-shrink:0}sd-calendar .sd-calendar__legend-label{display:inline-block}`;
|
|
6720
6720
|
|
|
6721
6721
|
class SdCalendar {
|
|
6722
6722
|
constructor(hostRef) {
|
|
@@ -6727,6 +6727,7 @@ class SdCalendar {
|
|
|
6727
6727
|
value = null;
|
|
6728
6728
|
selectable;
|
|
6729
6729
|
events;
|
|
6730
|
+
elevated = false;
|
|
6730
6731
|
currentYear;
|
|
6731
6732
|
currentMonth;
|
|
6732
6733
|
update;
|
|
@@ -6893,7 +6894,7 @@ class SdCalendar {
|
|
|
6893
6894
|
const eventMap = this.eventMap;
|
|
6894
6895
|
const legend = this.legendItems;
|
|
6895
6896
|
const hasEvents = (this.events?.length ?? 0) > 0;
|
|
6896
|
-
return (hAsync("div", { key: '
|
|
6897
|
+
return (hAsync("div", { key: '0ed0317b3cecffea4015de8688888e0ab2a38586', class: { 'sd-calendar': true, 'sd-calendar--elevated': this.elevated }, style: cssVars }, hAsync("div", { key: 'b915f275a31617711d06d98c8a4d9369ddd36af5', class: "sd-calendar__header" }, hAsync("div", { key: 'cd3b625e4e26af4b11f6af8b22c02099e8ab68a5', class: "sd-calendar__nav-group" }, hAsync("sd-ghost-button", { key: 'e0ebfed48a7fdb61fd082371e7247176c02a8fb1', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), hAsync("span", { key: '6bfebc94dce54ca472ad5b3e03a7630e32676c3f', class: "sd-calendar__label" }, this.currentYear), hAsync("sd-ghost-button", { key: '2e42ad52cd7d1b5d3502d578347c997910f3efc3', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), hAsync("span", { key: '95be4ab5e03d7378e82006221f190ffd55659cf1', class: "sd-calendar__divider", "aria-hidden": "true" }), hAsync("div", { key: 'edce7cf91a873cdaeed68e50372bdfa20af7507d', class: "sd-calendar__nav-group sd-calendar__nav-group-month" }, hAsync("sd-ghost-button", { key: '9ba274e9db32177d30d8c218303384855b7a3f60', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), hAsync("span", { key: 'bc113063e769fe12c2a39732cd82060752b7d9eb', class: "sd-calendar__label sd-calendar__label-month" }, this.currentMonth, "\uC6D4"), hAsync("sd-ghost-button", { key: '52cfde203e06334c5eee85abc9d82d6889bf511c', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), hAsync("div", { key: '9ae80aee03a4e6392a1d9a4ef28e565db20faea3', class: "sd-calendar__week" }, WEEK_LABELS.map(label => (hAsync("span", { key: label, class: "sd-calendar__week-cell" }, label)))), hAsync("div", { key: '7c47907311ea24f1af030931b8efd11955e55436', class: "sd-calendar__grid" }, this.cells.map(cell => {
|
|
6897
6898
|
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
6898
6899
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
6899
6900
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
@@ -6906,8 +6907,8 @@ class SdCalendar {
|
|
|
6906
6907
|
'sd-calendar__day--disabled': isDisabled,
|
|
6907
6908
|
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, hAsync("span", { class: "sd-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : ''), hasEvents && (hAsync("span", { class: "sd-calendar__dot-row", "aria-hidden": "true" }, dayEvents?.map((ev, i) => (hAsync("span", { key: `${ev.color}|${ev.label}|${i}`, class: "sd-calendar__dot", style: { backgroundColor: ev.color } })))))));
|
|
6908
6909
|
})), legend.length > 0 && [
|
|
6909
|
-
hAsync("span", { key: '
|
|
6910
|
-
hAsync("div", { key: '
|
|
6910
|
+
hAsync("span", { key: '4ba064cad3188db8342f51ca017e4bf5af8aa460', class: "sd-calendar__divider-bottom", "aria-hidden": "true" }),
|
|
6911
|
+
hAsync("div", { key: 'ac132a1f1f948e618ee75d4c01a1c99a0dfc2c0a', class: "sd-calendar__legend" }, legend.map(item => (hAsync("span", { key: `${item.color}|${item.label}`, class: "sd-calendar__legend-item" }, hAsync("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: item.color }, "aria-hidden": "true" }), hAsync("span", { class: "sd-calendar__legend-label" }, item.label))))),
|
|
6911
6912
|
]));
|
|
6912
6913
|
}
|
|
6913
6914
|
static get watchers() { return {
|
|
@@ -6923,6 +6924,7 @@ class SdCalendar {
|
|
|
6923
6924
|
"value": [1025],
|
|
6924
6925
|
"selectable": [16],
|
|
6925
6926
|
"events": [16],
|
|
6927
|
+
"elevated": [4],
|
|
6926
6928
|
"currentYear": [32],
|
|
6927
6929
|
"currentMonth": [32]
|
|
6928
6930
|
},
|
|
@@ -6932,6 +6934,225 @@ class SdCalendar {
|
|
|
6932
6934
|
}; }
|
|
6933
6935
|
}
|
|
6934
6936
|
|
|
6937
|
+
const callout$1 = {
|
|
6938
|
+
radius: "8",
|
|
6939
|
+
border: {
|
|
6940
|
+
width: "1"
|
|
6941
|
+
},
|
|
6942
|
+
body: {
|
|
6943
|
+
gap: "2",
|
|
6944
|
+
typography: {
|
|
6945
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
6946
|
+
fontSize: "12",
|
|
6947
|
+
fontWeight: "400",
|
|
6948
|
+
lineHeight: "20"},
|
|
6949
|
+
paddingX: "12",
|
|
6950
|
+
paddingY: "8"
|
|
6951
|
+
},
|
|
6952
|
+
"default": {
|
|
6953
|
+
bg: "#F9F9F9",
|
|
6954
|
+
border: "#E1E1E1",
|
|
6955
|
+
content: "#555555"
|
|
6956
|
+
},
|
|
6957
|
+
danger: {
|
|
6958
|
+
bg: "#FCEFEF",
|
|
6959
|
+
border: "#FFB5B5",
|
|
6960
|
+
content: "#222222",
|
|
6961
|
+
title: {
|
|
6962
|
+
bg: "#FB4444",
|
|
6963
|
+
paddingX: "24",
|
|
6964
|
+
gap: "2",
|
|
6965
|
+
typography: {
|
|
6966
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
6967
|
+
fontWeight: "700",
|
|
6968
|
+
fontSize: "16",
|
|
6969
|
+
lineHeight: "26"
|
|
6970
|
+
},
|
|
6971
|
+
color: "#FFFFFF",
|
|
6972
|
+
icon: "24"
|
|
6973
|
+
}
|
|
6974
|
+
}
|
|
6975
|
+
};
|
|
6976
|
+
var calloutTokens = {
|
|
6977
|
+
callout: callout$1
|
|
6978
|
+
};
|
|
6979
|
+
|
|
6980
|
+
const { callout } = calloutTokens;
|
|
6981
|
+
const CALLOUT_LAYOUT = {
|
|
6982
|
+
radius: `${callout.radius}px`,
|
|
6983
|
+
borderWidth: `${callout.border.width}px`,
|
|
6984
|
+
bodyPaddingX: `${callout.body.paddingX}px`,
|
|
6985
|
+
bodyPaddingY: `${callout.body.paddingY}px`,
|
|
6986
|
+
bodyGap: `${callout.body.gap}px`,
|
|
6987
|
+
titlePaddingX: `${callout.danger.title.paddingX}px`,
|
|
6988
|
+
titleGap: `${callout.danger.title.gap}px`,
|
|
6989
|
+
titleIconSize: Number(callout.danger.title.icon),
|
|
6990
|
+
};
|
|
6991
|
+
const CALLOUT_TYPOGRAPHY = {
|
|
6992
|
+
body: {
|
|
6993
|
+
fontFamily: callout.body.typography.fontFamily,
|
|
6994
|
+
fontSize: `${callout.body.typography.fontSize}px`,
|
|
6995
|
+
fontWeight: callout.body.typography.fontWeight,
|
|
6996
|
+
lineHeight: `${callout.body.typography.lineHeight}px`,
|
|
6997
|
+
},
|
|
6998
|
+
title: {
|
|
6999
|
+
fontFamily: callout.danger.title.typography.fontFamily,
|
|
7000
|
+
fontSize: `${callout.danger.title.typography.fontSize}px`,
|
|
7001
|
+
fontWeight: callout.danger.title.typography.fontWeight,
|
|
7002
|
+
lineHeight: `${callout.danger.title.typography.lineHeight}px`,
|
|
7003
|
+
},
|
|
7004
|
+
};
|
|
7005
|
+
const CALLOUT_TYPE_CONFIG = {
|
|
7006
|
+
default: {
|
|
7007
|
+
bg: callout.default.bg,
|
|
7008
|
+
border: callout.default.border,
|
|
7009
|
+
content: callout.default.content,
|
|
7010
|
+
},
|
|
7011
|
+
danger: {
|
|
7012
|
+
bg: callout.danger.bg,
|
|
7013
|
+
border: callout.danger.border,
|
|
7014
|
+
content: callout.danger.content,
|
|
7015
|
+
titleBg: callout.danger.title.bg,
|
|
7016
|
+
titleColor: callout.danger.title.color,
|
|
7017
|
+
},
|
|
7018
|
+
};
|
|
7019
|
+
const DANGER_TITLE_LABEL = '주의사항';
|
|
7020
|
+
const TYPE_ICON = {
|
|
7021
|
+
default: undefined,
|
|
7022
|
+
danger: 'warningFill',
|
|
7023
|
+
};
|
|
7024
|
+
|
|
7025
|
+
const ALLOWED_INLINE_TAGS = new Set(['B', 'STRONG', 'I', 'EM', 'BR', 'SPAN']);
|
|
7026
|
+
const DROP_CONTENT_TAGS = new Set([
|
|
7027
|
+
'SCRIPT',
|
|
7028
|
+
'STYLE',
|
|
7029
|
+
'IFRAME',
|
|
7030
|
+
'OBJECT',
|
|
7031
|
+
'EMBED',
|
|
7032
|
+
'META',
|
|
7033
|
+
'LINK',
|
|
7034
|
+
'BASE',
|
|
7035
|
+
'NOSCRIPT',
|
|
7036
|
+
]);
|
|
7037
|
+
const escapeHtml = (value) => value
|
|
7038
|
+
.replaceAll('&', '&')
|
|
7039
|
+
.replaceAll('<', '<')
|
|
7040
|
+
.replaceAll('>', '>')
|
|
7041
|
+
.replaceAll('"', '"')
|
|
7042
|
+
.replaceAll("'", ''');
|
|
7043
|
+
const createSanitizerTemplate = () => {
|
|
7044
|
+
if (typeof document === 'undefined') {
|
|
7045
|
+
return null;
|
|
7046
|
+
}
|
|
7047
|
+
return document.createElement('template');
|
|
7048
|
+
};
|
|
7049
|
+
const sanitizeNode = (node, doc) => {
|
|
7050
|
+
if (node.nodeType === Node.COMMENT_NODE) {
|
|
7051
|
+
node.remove();
|
|
7052
|
+
return;
|
|
7053
|
+
}
|
|
7054
|
+
if (node.nodeType !== Node.ELEMENT_NODE) {
|
|
7055
|
+
return;
|
|
7056
|
+
}
|
|
7057
|
+
const element = node;
|
|
7058
|
+
const tagName = element.tagName;
|
|
7059
|
+
if (DROP_CONTENT_TAGS.has(tagName)) {
|
|
7060
|
+
element.remove();
|
|
7061
|
+
return;
|
|
7062
|
+
}
|
|
7063
|
+
Array.from(element.childNodes).forEach(child => sanitizeNode(child));
|
|
7064
|
+
Array.from(element.attributes).forEach(attr => element.removeAttribute(attr.name));
|
|
7065
|
+
if (ALLOWED_INLINE_TAGS.has(tagName)) {
|
|
7066
|
+
return;
|
|
7067
|
+
}
|
|
7068
|
+
const parent = element.parentNode;
|
|
7069
|
+
if (parent == null) {
|
|
7070
|
+
return;
|
|
7071
|
+
}
|
|
7072
|
+
while (element.firstChild) {
|
|
7073
|
+
parent.insertBefore(element.firstChild, element);
|
|
7074
|
+
}
|
|
7075
|
+
parent.removeChild(element);
|
|
7076
|
+
};
|
|
7077
|
+
const sanitizeInlineHtml = (value) => {
|
|
7078
|
+
const template = createSanitizerTemplate();
|
|
7079
|
+
if (template == null) {
|
|
7080
|
+
return escapeHtml(value);
|
|
7081
|
+
}
|
|
7082
|
+
template.innerHTML = value;
|
|
7083
|
+
Array.from(template.content.childNodes).forEach(child => sanitizeNode(child));
|
|
7084
|
+
return template.innerHTML;
|
|
7085
|
+
};
|
|
7086
|
+
|
|
7087
|
+
const sdCalloutCss = () => `@charset "UTF-8";sd-callout{display:block;width:fit-content}sd-callout .sd-callout{display:inline-flex;align-items:stretch;width:fit-content;border:var(--sd-callout-border-width) solid var(--sd-callout-border);border-radius:var(--sd-callout-radius);background-color:var(--sd-callout-bg);color:var(--sd-callout-content);overflow:hidden}sd-callout .sd-callout__title{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:var(--sd-callout-title-gap);padding:8px var(--sd-callout-title-padding-x);background-color:var(--sd-callout-title-bg);color:var(--sd-callout-title-color);font-family:var(--sd-callout-title-font-family);font-size:var(--sd-callout-title-font-size);font-weight:var(--sd-callout-title-font-weight);line-height:var(--sd-callout-title-line-height);flex-shrink:0}sd-callout .sd-callout__title-text{white-space:nowrap}sd-callout .sd-callout__body{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--sd-callout-body-gap);padding:var(--sd-callout-body-padding-y) var(--sd-callout-body-padding-x);font-family:var(--sd-callout-body-font-family);font-size:var(--sd-callout-body-font-size);font-weight:var(--sd-callout-body-font-weight);line-height:var(--sd-callout-body-line-height)}sd-callout .sd-callout__list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;justify-content:center;gap:var(--sd-callout-body-gap)}sd-callout .sd-callout__list__item{display:flex;align-items:flex-start;color:var(--sd-callout-content)}sd-callout .sd-callout__list__item p{margin:0;padding:0;flex:1;min-width:0;word-break:break-word}sd-callout .sd-callout__list__item::before{display:block;flex-shrink:0;text-align:center;color:var(--sd-callout-content);font-size:var(--sd-callout-body-font-size);font-weight:var(--sd-callout-body-font-weight);line-height:var(--sd-callout-body-line-height)}sd-callout .sd-callout__list__item--depth-1::before{content:"-";width:24px}sd-callout .sd-callout__list__item--depth-2{padding-left:32px}sd-callout .sd-callout__list__item--depth-2::before{content:"•";width:24px}`;
|
|
7088
|
+
|
|
7089
|
+
class SdCallout {
|
|
7090
|
+
constructor(hostRef) {
|
|
7091
|
+
registerInstance(this, hostRef);
|
|
7092
|
+
}
|
|
7093
|
+
type = 'default';
|
|
7094
|
+
message = [];
|
|
7095
|
+
get calloutStyle() {
|
|
7096
|
+
const typeConfig = CALLOUT_TYPE_CONFIG[this.type] ?? CALLOUT_TYPE_CONFIG.default;
|
|
7097
|
+
return {
|
|
7098
|
+
'--sd-callout-bg': typeConfig.bg,
|
|
7099
|
+
'--sd-callout-border': typeConfig.border,
|
|
7100
|
+
'--sd-callout-border-width': CALLOUT_LAYOUT.borderWidth,
|
|
7101
|
+
'--sd-callout-content': typeConfig.content,
|
|
7102
|
+
'--sd-callout-radius': CALLOUT_LAYOUT.radius,
|
|
7103
|
+
'--sd-callout-body-padding-x': CALLOUT_LAYOUT.bodyPaddingX,
|
|
7104
|
+
'--sd-callout-body-padding-y': CALLOUT_LAYOUT.bodyPaddingY,
|
|
7105
|
+
'--sd-callout-body-gap': CALLOUT_LAYOUT.bodyGap,
|
|
7106
|
+
'--sd-callout-body-font-family': CALLOUT_TYPOGRAPHY.body.fontFamily,
|
|
7107
|
+
'--sd-callout-body-font-size': CALLOUT_TYPOGRAPHY.body.fontSize,
|
|
7108
|
+
'--sd-callout-body-font-weight': CALLOUT_TYPOGRAPHY.body.fontWeight,
|
|
7109
|
+
'--sd-callout-body-line-height': CALLOUT_TYPOGRAPHY.body.lineHeight,
|
|
7110
|
+
'--sd-callout-title-bg': typeConfig.titleBg ?? 'transparent',
|
|
7111
|
+
'--sd-callout-title-color': typeConfig.titleColor ?? 'inherit',
|
|
7112
|
+
'--sd-callout-title-padding-x': CALLOUT_LAYOUT.titlePaddingX,
|
|
7113
|
+
'--sd-callout-title-gap': CALLOUT_LAYOUT.titleGap,
|
|
7114
|
+
'--sd-callout-title-font-family': CALLOUT_TYPOGRAPHY.title.fontFamily,
|
|
7115
|
+
'--sd-callout-title-font-size': CALLOUT_TYPOGRAPHY.title.fontSize,
|
|
7116
|
+
'--sd-callout-title-font-weight': CALLOUT_TYPOGRAPHY.title.fontWeight,
|
|
7117
|
+
'--sd-callout-title-line-height': CALLOUT_TYPOGRAPHY.title.lineHeight,
|
|
7118
|
+
};
|
|
7119
|
+
}
|
|
7120
|
+
renderListItem(msg, depth = 0) {
|
|
7121
|
+
if (Array.isArray(msg)) {
|
|
7122
|
+
return msg.flatMap(m => this.renderListItem(m, depth + 1));
|
|
7123
|
+
}
|
|
7124
|
+
return [this.renderLi(msg, depth)];
|
|
7125
|
+
}
|
|
7126
|
+
renderLi = (msg, depth) => {
|
|
7127
|
+
const safeDepth = Math.min(Math.max(depth, 1), 2);
|
|
7128
|
+
return (hAsync("li", { class: `sd-callout__list__item sd-callout__list__item--depth-${safeDepth}` }, hAsync("p", { innerHTML: sanitizeInlineHtml(msg) })));
|
|
7129
|
+
};
|
|
7130
|
+
renderBody() {
|
|
7131
|
+
return hAsync("ul", { class: "sd-callout__list" }, this.renderListItem(this.message));
|
|
7132
|
+
}
|
|
7133
|
+
renderTitle() {
|
|
7134
|
+
const iconName = TYPE_ICON[this.type];
|
|
7135
|
+
const titleColor = CALLOUT_TYPE_CONFIG[this.type].titleColor;
|
|
7136
|
+
return (hAsync("div", { class: "sd-callout__title" }, iconName && (hAsync("sd-icon", { name: iconName, size: CALLOUT_LAYOUT.titleIconSize, color: titleColor })), hAsync("span", { class: "sd-callout__title-text" }, DANGER_TITLE_LABEL)));
|
|
7137
|
+
}
|
|
7138
|
+
render() {
|
|
7139
|
+
const showTitle = this.type === 'danger';
|
|
7140
|
+
return (hAsync("div", { key: 'ce91120e7c71907e6c07728554e340ad552d6e34', class: "sd-callout", style: this.calloutStyle, role: "note" }, showTitle && this.renderTitle(), hAsync("div", { key: '56b55c2fed40e59023856029b8c86c35b29d26e5', class: "sd-callout__body" }, this.renderBody())));
|
|
7141
|
+
}
|
|
7142
|
+
static get style() { return sdCalloutCss(); }
|
|
7143
|
+
static get cmpMeta() { return {
|
|
7144
|
+
"$flags$": 512,
|
|
7145
|
+
"$tagName$": "sd-callout",
|
|
7146
|
+
"$members$": {
|
|
7147
|
+
"type": [513],
|
|
7148
|
+
"message": [16]
|
|
7149
|
+
},
|
|
7150
|
+
"$listeners$": undefined,
|
|
7151
|
+
"$lazyBundleId$": "-",
|
|
7152
|
+
"$attrsToReflect$": [["type", "type"]]
|
|
7153
|
+
}; }
|
|
7154
|
+
}
|
|
7155
|
+
|
|
6935
7156
|
const sdCardCss = () => `sd-card{display:block;height:fit-content}sd-card .sd-card{border-radius:8px;background:white}sd-card .sd-card--bordered{border:1px solid #E1E1E1}`;
|
|
6936
7157
|
|
|
6937
7158
|
class SdCard {
|
|
@@ -6941,7 +7162,7 @@ class SdCard {
|
|
|
6941
7162
|
bordered = false;
|
|
6942
7163
|
sdClass = '';
|
|
6943
7164
|
render() {
|
|
6944
|
-
return (hAsync(Fragment, { key: '
|
|
7165
|
+
return (hAsync(Fragment, { key: '2700ffa3af5b6b35882c396a838d9da2e866ee4b' }, hAsync("div", { key: '3d3aeaac318fc089c42ae4348bc72015d4476276', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, hAsync("slot", { key: 'e72f00bc8c209644baf5f431ce485fb5b691f354' }))));
|
|
6945
7166
|
}
|
|
6946
7167
|
static get style() { return sdCardCss(); }
|
|
6947
7168
|
static get cmpMeta() { return {
|
|
@@ -7112,7 +7333,12 @@ class SdCheckbox {
|
|
|
7112
7333
|
this.hasWarnedMissingVal = true;
|
|
7113
7334
|
}
|
|
7114
7335
|
const valueSet = new Set(this.value);
|
|
7115
|
-
valueSet.has(this.val)
|
|
7336
|
+
if (valueSet.has(this.val)) {
|
|
7337
|
+
valueSet.delete(this.val);
|
|
7338
|
+
}
|
|
7339
|
+
else {
|
|
7340
|
+
valueSet.add(this.val);
|
|
7341
|
+
}
|
|
7116
7342
|
newValue = Array.from(valueSet);
|
|
7117
7343
|
}
|
|
7118
7344
|
else if (this.value === null) {
|
|
@@ -7145,13 +7371,13 @@ class SdCheckbox {
|
|
|
7145
7371
|
'--sd-checkbox-inverse-icon': CHECKBOX_COLORS.checked.iconInverse,
|
|
7146
7372
|
'--sd-checkbox-inverse-label': CHECKBOX_COLORS.labelInverse,
|
|
7147
7373
|
};
|
|
7148
|
-
return (hAsync("label", { key: '
|
|
7374
|
+
return (hAsync("label", { key: '1e1ba8ab22e34327cfdfb8d236aba0e1ff2806f6', class: this.checkboxClasses, style: cssVars }, hAsync("input", { key: '82b852e0fb3ca94c460b7181ae1c575b361ddd4d', type: "checkbox", ref: el => {
|
|
7149
7375
|
this.inputEl = el;
|
|
7150
|
-
}, value: this.val, checked: !!this.isChecked, disabled: this.disabled, onChange: this.handleChange, name: this.val?.toString() || 'checkbox', "aria-label": this.label || 'checkbox', "aria-checked": this.isChecked === null ? 'mixed' : this.isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }), hAsync("div", { key: '
|
|
7376
|
+
}, value: this.val, checked: !!this.isChecked, disabled: this.disabled, onChange: this.handleChange, name: this.val?.toString() || 'checkbox', "aria-label": this.label || 'checkbox', "aria-checked": this.isChecked === null ? 'mixed' : this.isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }), hAsync("div", { key: 'e7a32ccbb915c857d188fecde0b388e15edebdfb', class: "sd-checkbox__bg" }, this.isChecked !== false ? (hAsync("sd-icon", { name: this.isChecked === true ? 'checkboxCheck' : 'checkboxIndeterminate', size: Number(CHECKBOX_LAYOUT.iconSize), color: this.disabled
|
|
7151
7377
|
? CHECKBOX_COLORS.checked.iconDisabled
|
|
7152
7378
|
: this.inverse
|
|
7153
7379
|
? CHECKBOX_COLORS.checked.iconInverse
|
|
7154
|
-
: CHECKBOX_COLORS.checked.icon })) : null), this.label && hAsync("span", { key: '
|
|
7380
|
+
: CHECKBOX_COLORS.checked.icon })) : null), this.label && hAsync("span", { key: '396b7aa27a10428e5d9d24a3f523c3a384d4e463', class: "sd-checkbox__label" }, this.label)));
|
|
7155
7381
|
}
|
|
7156
7382
|
static get watchers() { return {
|
|
7157
7383
|
"value": [{
|
|
@@ -7465,7 +7691,7 @@ class SdChip {
|
|
|
7465
7691
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
7466
7692
|
'--sd-chip-line-height': typography.lineHeight,
|
|
7467
7693
|
};
|
|
7468
|
-
return (hAsync("span", { key: '
|
|
7694
|
+
return (hAsync("span", { key: '0addb8566b639d05921b9320b99abab7f1d67899', class: {
|
|
7469
7695
|
'sd-chip': true,
|
|
7470
7696
|
[`sd-chip--${state}`]: true,
|
|
7471
7697
|
'sd-chip--disabled': this.disabled,
|
|
@@ -7557,8 +7783,19 @@ const color = {
|
|
|
7557
7783
|
strong: "#006AC1"},
|
|
7558
7784
|
grey: {
|
|
7559
7785
|
strong: "#737373"}};
|
|
7786
|
+
const shadow = {
|
|
7787
|
+
spread: {
|
|
7788
|
+
md: {
|
|
7789
|
+
x: "0",
|
|
7790
|
+
y: "0",
|
|
7791
|
+
blur: "24",
|
|
7792
|
+
spread: "0",
|
|
7793
|
+
color: "rgba(34,34,34,0.2)"}
|
|
7794
|
+
}};
|
|
7560
7795
|
var systemTokens = {
|
|
7561
|
-
color: color
|
|
7796
|
+
color: color,
|
|
7797
|
+
shadow: shadow
|
|
7798
|
+
};
|
|
7562
7799
|
|
|
7563
7800
|
const CIRCLE_PROGRESS_LABEL_COLOR = progressTokens.progress.color.label;
|
|
7564
7801
|
const CIRCLE_PROGRESS_PERCENT_ZERO_COLOR = systemTokens.color.fg.tertiary;
|
|
@@ -7618,7 +7855,7 @@ class SdCircleProgress {
|
|
|
7618
7855
|
}
|
|
7619
7856
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
7620
7857
|
const showPercent = !this.indeterminate;
|
|
7621
|
-
return (hAsync(Host, { key: '
|
|
7858
|
+
return (hAsync(Host, { key: 'f92bf4d6e4f1133c4465a4fec7b2bad4549a6d06', style: hostStyle }, hAsync("svg", { key: '669fa503cc6007f48f35474b08e4359de695026d', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '020c7d840a6592d7705b65b14d27e3b5752629bf', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), hAsync("circle", { key: 'e409da4a5c34adcd8744f16040ae9d5d6019a415', 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 && (hAsync("span", { key: '91c0b91e69293b67c8a0ad67a6d4b9e9db5c6d4a', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && hAsync("span", { key: '03a5bee22a2e2f1b4ba75dbeca2ef5b4b9840aeb', class: "sd-circle-progress__label" }, this.label)));
|
|
7622
7859
|
}
|
|
7623
7860
|
static get style() { return sdCircleProgressCss(); }
|
|
7624
7861
|
static get cmpMeta() { return {
|
|
@@ -7734,9 +7971,9 @@ class SdConfirmModal {
|
|
|
7734
7971
|
const type = this.resolvedType;
|
|
7735
7972
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
7736
7973
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
7737
|
-
return (hAsync("div", { key: '
|
|
7974
|
+
return (hAsync("div", { key: 'f9a1d63c1cd047969c72d0e71ccd3b1cf30bac15', class: "sd-confirm-modal" }, hAsync("sd-ghost-button", { key: '8f1e4ec22a12ad9347c8c8c843f6dbb91591b289', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (hAsync("sd-icon", { key: '8adada47e2dc0a6677cdf004ca8cad8794123d03', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), hAsync("h2", { key: 'ddc0636d2cd8333aa0d5a3f242dbf2d57759fc5b', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), hAsync("div", { key: '66d4c779f4269824937306ca34a0b51e6208d03f', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (hAsync("div", { key: '87634b26cba0fb24115f0cd59fcc7956f9fde53c', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) }))))), this.showContentBox && (hAsync("div", { key: '0b495d1393cf029e8b07f9041c51e344ff7cb5da', class: "sd-confirm-modal__content-box" }, this.tagContents ? (hAsync("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
7738
7975
|
this.customContentRef = el;
|
|
7739
|
-
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && hAsync("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel }), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: '
|
|
7976
|
+
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (hAsync("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: '09d34f47a466e4277f1bb2215a3b087bc78e240d', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) })))))), hAsync("div", { key: '2a62193311791f84b6eca22a49cff8a0fc65d5a7', class: "sd-confirm-modal__button" }, this.subButtonLabel && (hAsync("sd-button", { key: '4c800376dec7ca035b2aaaaac00738851829108d', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), hAsync("sd-button", { key: 'dcb473b7b6ce29983d89df6c288526071962ac01', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
7740
7977
|
}
|
|
7741
7978
|
static get style() { return sdConfirmModalCss(); }
|
|
7742
7979
|
static get cmpMeta() { return {
|
|
@@ -7962,9 +8199,9 @@ class SdDatePicker {
|
|
|
7962
8199
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
7963
8200
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
7964
8201
|
};
|
|
7965
|
-
return (hAsync("sd-field", { key: '
|
|
8202
|
+
return (hAsync("sd-field", { key: '35d821e9a21a09e4b2dc0d47f9a95d895c4f9dc4', 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 }, hAsync("div", { key: '21fe3c0ab5dff10265139111de741216fb06e4e4', class: "sd-date-picker", ref: el => {
|
|
7966
8203
|
this.triggerRef = el;
|
|
7967
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
8204
|
+
} }, hAsync("sd-date-picker-trigger", { key: 'b9fd9b90afa512aefdd4b227c66d0b4660b69318', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: 'b6e439d2b507922cc2e345fe1fba856d77441cbc', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-calendar", { key: 'ae09060fec5542b9e30d051133f4bca3c772f5d9', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
7968
8205
|
}
|
|
7969
8206
|
static get watchers() { return {
|
|
7970
8207
|
"isOpen": [{
|
|
@@ -8047,7 +8284,7 @@ class SdDatePickerTrigger {
|
|
|
8047
8284
|
? DATEPICKER_COLORS.icon.disabled
|
|
8048
8285
|
: DATEPICKER_COLORS.icon.default,
|
|
8049
8286
|
};
|
|
8050
|
-
return (hAsync("div", { key: '
|
|
8287
|
+
return (hAsync("div", { key: 'df53dd75ead71167d7089daab5718c7ff1c990ae', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
8051
8288
|
'sd-date-picker-trigger': true,
|
|
8052
8289
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
8053
8290
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -8055,7 +8292,7 @@ class SdDatePickerTrigger {
|
|
|
8055
8292
|
e.preventDefault();
|
|
8056
8293
|
this.handleClick();
|
|
8057
8294
|
}
|
|
8058
|
-
} }, hAsync("sd-icon", { key: '
|
|
8295
|
+
} }, hAsync("sd-icon", { key: '76f41c99e1695eaa191cbc81ae057e65cb78e955', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), hAsync("span", { key: '4e1a4b2b41737f05dc1a4e642d317f5fc93bf9b2', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
8059
8296
|
}
|
|
8060
8297
|
static get style() { return sdDatePickerTriggerCss(); }
|
|
8061
8298
|
static get cmpMeta() { return {
|
|
@@ -8475,7 +8712,7 @@ class SdDateRangePickerCalendar {
|
|
|
8475
8712
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
8476
8713
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
8477
8714
|
};
|
|
8478
|
-
return (hAsync(Fragment, { key: '
|
|
8715
|
+
return (hAsync(Fragment, { key: 'b4082936889d6bed77917d9b06aafa3c80d413a7' }, hAsync("div", { key: 'baf10fa376bf32982816258f950edf65d5622a99', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), hAsync("div", { key: 'bacc88f756b64f4382b1c8c648269bb2c233dc54', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), hAsync("span", { key: 'dcebf3cd120e2e606784c365c309d4c48296a5ae', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
8479
8716
|
}
|
|
8480
8717
|
static get watchers() { return {
|
|
8481
8718
|
"value": [{
|
|
@@ -8831,12 +9068,12 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
8831
9068
|
if (!item.disabled) {
|
|
8832
9069
|
this.itemIndex = index;
|
|
8833
9070
|
}
|
|
8834
|
-
} }, item.icon && (hAsync("sd-icon", { class: "sd-dropdown-button__menu-item-icon", name: item.icon, size: 12, color: "var(--sd-dropdown-button-menu-item-current-color)" })), hAsync("span", { class: "sd-dropdown-button__menu-item-label", innerHTML: item.label })));
|
|
9071
|
+
} }, item.icon && (hAsync("sd-icon", { class: "sd-dropdown-button__menu-item-icon", name: item.icon, size: 12, color: "var(--sd-dropdown-button-menu-item-current-color)" })), hAsync("span", { class: "sd-dropdown-button__menu-item-label", innerHTML: sanitizeInlineHtml(item.label) })));
|
|
8835
9072
|
})))));
|
|
8836
9073
|
}
|
|
8837
9074
|
render() {
|
|
8838
9075
|
const { config, preset } = this.resolvedConfig;
|
|
8839
|
-
return (hAsync("div", { key: '
|
|
9076
|
+
return (hAsync("div", { key: '69cc705c92386162bfe3eaaec92d60c5daedd673', class: "sd-dropdown-button" }, hAsync("button", { key: 'c054cd7f979a5b5d7e6266fc098722b13f6419f6', type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: {
|
|
8840
9077
|
'--sd-dropdown-button-bg': config.color,
|
|
8841
9078
|
'--sd-dropdown-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
8842
9079
|
'--sd-dropdown-button-border': PRESET_BORDER_COLORS[preset],
|
|
@@ -8846,10 +9083,10 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
8846
9083
|
'--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
|
|
8847
9084
|
'--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_TEXT,
|
|
8848
9085
|
'--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
|
|
8849
|
-
} }, hAsync("span", { key: '
|
|
9086
|
+
} }, hAsync("span", { key: 'de889d149ece2a5856dc37940cc8f8cc612546d7', class: "sd-dropdown-button__trigger-label" }, this.label), hAsync("span", { key: '8ae62fe45e6f292f4269da090adda28c6fd47854', class: "sd-dropdown-button__trigger-divider", "aria-hidden": "true" }), hAsync("span", { key: 'c2bc641416469fc2a375f07cb68f36e1c782ba48', class: {
|
|
8850
9087
|
'sd-dropdown-button__trigger-icon': true,
|
|
8851
9088
|
'sd-dropdown-button__trigger-icon--open': this.isOpen,
|
|
8852
|
-
}, "aria-hidden": "true" }, hAsync("sd-icon", { key: '
|
|
9089
|
+
}, "aria-hidden": "true" }, hAsync("sd-icon", { key: '46111923f6a95fdd789aa9493a6941218e1fe0f5', name: "chevronDown", size: DROPDOWN_CHEVRON_ICON_SIZE[config.size], color: "var(--sd-dropdown-button-current-content)" }))), this.renderDropdown(preset)));
|
|
8853
9090
|
}
|
|
8854
9091
|
static get watchers() { return {
|
|
8855
9092
|
"isOpen": [{
|
|
@@ -9122,20 +9359,20 @@ class SdField {
|
|
|
9122
9359
|
: {}),
|
|
9123
9360
|
}
|
|
9124
9361
|
: {};
|
|
9125
|
-
return (hAsync("div", { key: '
|
|
9362
|
+
return (hAsync("div", { key: '1cc135c77708546f23b699bf337c018f6c4d315e', class: {
|
|
9126
9363
|
'sd-field': true,
|
|
9127
9364
|
'sd-field--has-label': this.label !== '',
|
|
9128
9365
|
'sd-field--has-addon': addon !== '',
|
|
9129
9366
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
9130
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '
|
|
9367
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '506ace23aa27ad50a8ad60dcf6c71a0bdf04d7af', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: '41b77a52c21eef8c38127362423378f1b9a6cb77', class: "sd-field__main", style: this.width !== '' && this.width !== 0
|
|
9131
9368
|
? {
|
|
9132
9369
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
9133
9370
|
flex: 'none',
|
|
9134
9371
|
}
|
|
9135
|
-
: {} }, hAsync("div", { key: '
|
|
9372
|
+
: {} }, hAsync("div", { key: '1f3c5f2009a0d96b8a3544c58b96f7ecc4ddee6b', class: {
|
|
9136
9373
|
'sd-field__control': true,
|
|
9137
9374
|
'sd-field__control--has-addon': addon !== '',
|
|
9138
|
-
} }, addon && hAsync("div", { key: '
|
|
9375
|
+
} }, addon && hAsync("div", { key: '39a28adaa959b89d3724672910157662e50b35ed', class: "sd-field__addon" }, addon), hAsync("slot", { key: '0c9360e8644df658c389554c13a04bc22985e84d' })), this.errorMsg !== '' || this.errorMessage !== '' ? (hAsync("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && hAsync("div", { class: "sd-field__hint" }, this.hint))))));
|
|
9139
9376
|
}
|
|
9140
9377
|
renderLabel(label) {
|
|
9141
9378
|
if (label == null || label === '')
|
|
@@ -9621,7 +9858,7 @@ class SdFloatingPopover {
|
|
|
9621
9858
|
}
|
|
9622
9859
|
}
|
|
9623
9860
|
render() {
|
|
9624
|
-
return hAsync("slot", { key: '
|
|
9861
|
+
return hAsync("slot", { key: '5b469964bfbbdf1d40c6d7c88a266d655fe3e029' });
|
|
9625
9862
|
}
|
|
9626
9863
|
static get style() { return sdFloatingPortalCss(); }
|
|
9627
9864
|
static get cmpMeta() { return {
|
|
@@ -10108,10 +10345,10 @@ class SdGuide {
|
|
|
10108
10345
|
const buttonClasses = ['sd-guide__button', `sd-guide__button--type-${this.type ?? 'tip'}`];
|
|
10109
10346
|
if (isActive)
|
|
10110
10347
|
buttonClasses.push('sd-guide__button--active');
|
|
10111
|
-
return (hAsync("div", { key: '
|
|
10348
|
+
return (hAsync("div", { key: 'ea4f220faf6165f7650360f74a19d9f781b81489', class: "sd-guide", style: this.guideStyle }, hAsync("sd-button", { key: 'c90eaa6cc42a9a2f20b8fc79db16697db0cf2ff2', ref: el => (this.guideRef = el), class: buttonClasses.join(' '), name: isActive ? 'primary_sm' : 'neutral_outline_sm', label: this.label || defaultLabel, icon: iconName, onSdClick: this.handleClickGuide }), this.popupShow && (hAsync("sd-portal", { key: '21f57a739141ffa36f3b799a2688ca5b3c1bd428', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, hAsync("div", { key: '2a803402b120509ef8b6de361f360a7b5b96e9db', style: { position: 'absolute', width: '0px', height: '0px' } }, hAsync("div", { key: '3e591b85ac24ea1db37bdaaf130f983d70ef2f36', class: "sd-guide__popup", style: {
|
|
10112
10349
|
...this.guideStyle,
|
|
10113
10350
|
width: this.popupWidth != null ? this.popupWidth + 'px' : '426px',
|
|
10114
|
-
} }, hAsync("sd-ghost-button", { key: '
|
|
10351
|
+
} }, hAsync("sd-ghost-button", { key: '1aa20f7bd3a1ba45c4932a67a8c1e67d6e068702', class: "sd-guide__popup__close", icon: "close", ariaLabel: "close", size: "sm", onSdClick: this.closeDropdown }), hAsync("div", { key: 'e48378d1731e0b9fcd5990cb908ae3af236d0346', class: "sd-guide__popup__header" }, hAsync("sd-icon", { key: 'c8c71c7c2f0fdb25e3741415c1f1fae1a8d4d3d2', name: iconName, size: 24, color: popupIconColor }), hAsync("h3", { key: '4996225c27fbeae4fd9b4d68d6e493d87225d427', class: "sd-guide__popup__title" }, this.popupTitle || defaultLabel)), hAsync("ul", { key: 'edb2d35594b47f19f2e847ba546fac0fc19b21b4', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
|
|
10115
10352
|
}
|
|
10116
10353
|
// 현재 2depth까지만 스타일 적용
|
|
10117
10354
|
renderListItem(message, depth = 0) {
|
|
@@ -10126,7 +10363,7 @@ class SdGuide {
|
|
|
10126
10363
|
return listItems;
|
|
10127
10364
|
}
|
|
10128
10365
|
renderLi = (message, depth) => {
|
|
10129
|
-
return (hAsync("li", { class: `sd-guide__popup__list__item sd-guide__popup__list__item--depth-${depth}` }, hAsync("p", { innerHTML: message })));
|
|
10366
|
+
return (hAsync("li", { class: `sd-guide__popup__list__item sd-guide__popup__list__item--depth-${depth}` }, hAsync("p", { innerHTML: sanitizeInlineHtml(message) })));
|
|
10130
10367
|
};
|
|
10131
10368
|
static get style() { return sdGuideCss(); }
|
|
10132
10369
|
static get cmpMeta() { return {
|
|
@@ -10612,12 +10849,12 @@ class SdInput {
|
|
|
10612
10849
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
10613
10850
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
10614
10851
|
};
|
|
10615
|
-
return (hAsync("sd-field", { key: '
|
|
10852
|
+
return (hAsync("sd-field", { key: 'e6e58ebc18e458f1d52a3f8afcd0892bfd8ffa45', 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, readonly: this.readonly, 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 }, hAsync("label", { key: '9bdcdf6e515a57e9cd72e263bcd8d2c59aac22c9', class: "sd-input__content" }, hAsync("slot", { key: '0273119e456386ba23c361ef1e826b4d2d9bf1be', name: "prefix" }), hAsync("input", { key: 'ad61c8ff1372f6163f2e742cf31884363e8fd31f', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), hAsync("slot", { key: 'e68578946f23fff0e4abc3f9919d12b3d624b5f8', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (hAsync("sd-ghost-button", { key: '3c64ce859d71dbd57800a4a34b6a09696f90ff60', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
10616
10853
|
if (this.disabled || this.readonly)
|
|
10617
10854
|
return;
|
|
10618
10855
|
this.internalValue = '';
|
|
10619
10856
|
await this.formField?.sdValidate();
|
|
10620
|
-
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '
|
|
10857
|
+
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: 'db4c66f0b3e91d780262ec7320fc15ffc32e622d', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
10621
10858
|
if (this.disabled || this.readonly)
|
|
10622
10859
|
return;
|
|
10623
10860
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -11028,7 +11265,7 @@ class SdLinearProgress {
|
|
|
11028
11265
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
11029
11266
|
};
|
|
11030
11267
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
11031
|
-
return (hAsync(Host, { key: '
|
|
11268
|
+
return (hAsync(Host, { key: 'ae56f969b9d4cd6e6e4d697d919ad122e2e4dad7', style: hostStyle }, hAsync("div", { key: '86af10d7d1e6e343700a1c161745599ec863b3d7', class: 'sd-linear-progress__track' }, hAsync("div", { key: '46d5dfe06e82facc5dc83977584bc93970b7fd28', class: 'sd-linear-progress__fill', style: fillStyle }), !this.indeterminate && (hAsync("span", { key: 'd1ae1220a482c50bc770a22ccbc45ccb66ebfc27', class: 'sd-linear-progress__value sd-linear-progress__value--on-track' }, valueText)), !this.indeterminate && (hAsync("span", { key: '39bc3af718e0797c5e06cda62ee8a6047f303a34', class: 'sd-linear-progress__value sd-linear-progress__value--on-fill', style: valueOnFillStyle }, valueText))), this.label && hAsync("span", { key: '944ca6d50f6588894e97265a8ef0484f3e676981', class: 'sd-linear-progress__label' }, this.label)));
|
|
11032
11269
|
}
|
|
11033
11270
|
static get style() { return sdLinearProgressCss(); }
|
|
11034
11271
|
static get cmpMeta() { return {
|
|
@@ -11062,10 +11299,10 @@ class SdLoadingContainer {
|
|
|
11062
11299
|
this.visible = false;
|
|
11063
11300
|
}
|
|
11064
11301
|
render() {
|
|
11065
|
-
return (hAsync("div", { key: '
|
|
11302
|
+
return (hAsync("div", { key: '0b6c91593d615ac39f8a4fc30df8466969ae4d9b', class: {
|
|
11066
11303
|
'sd-loading-container': true,
|
|
11067
11304
|
'sd-loading-container--visible': this.visible,
|
|
11068
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, hAsync("div", { key: '
|
|
11305
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, hAsync("div", { key: 'de41bd4fe1c824c9517d000b91abb817ea58e90c', class: "sd-loading-container__backdrop" }), hAsync("div", { key: '4de64a1540a0af9c955bbea5d4c83c129e6846ea', class: "sd-loading-container__content" }, hAsync("sd-circle-progress", { key: 'ae2955bc1d40123f06e7c9e107afe4b46c3b0175', indeterminate: true, type: "inverse" }), this.message && (hAsync("p", { key: '6c58c3fd4074edd48cdd0d21eef15c49c94626db', class: "sd-loading-container__message" }, this.message)))));
|
|
11069
11306
|
}
|
|
11070
11307
|
static get style() { return sdLoadingContainerCss(); }
|
|
11071
11308
|
static get cmpMeta() { return {
|
|
@@ -11161,7 +11398,7 @@ class SdLoadingModal {
|
|
|
11161
11398
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
11162
11399
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
11163
11400
|
};
|
|
11164
|
-
return (hAsync(Host, { key: '
|
|
11401
|
+
return (hAsync(Host, { key: 'e4b95f8fcd666e0b616d193c40f7b57313527a78', style: hostStyle }, hAsync("div", { key: '397f63795ab8523cb41a989c7fc0e2187ceb3d18', class: "sd-loading-modal" }, hAsync("div", { key: '1c2f6f16dbc8fe3b76db29707602b3df6de1380e', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (hAsync("sd-circle-progress", { indeterminate: true })) : (hAsync("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), hAsync("div", { key: '439302e28cd4843f86f2060c66fe3e5c358ec379', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (hAsync("p", { class: "sd-loading-modal__message" }, message)))) : (hAsync("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (hAsync("div", { key: 'a6facf71c52d242ff521adbf7f9161c51431cf9d', class: "sd-loading-modal__button" }, hAsync("sd-button", { key: '26d66b9ccf569bbf7bd9d3819fb0380eced791a2', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
11165
11402
|
}
|
|
11166
11403
|
static get style() { return sdLoadingModalCss(); }
|
|
11167
11404
|
static get cmpMeta() { return {
|
|
@@ -11952,15 +12189,15 @@ class SdNumberInput {
|
|
|
11952
12189
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
11953
12190
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
11954
12191
|
};
|
|
11955
|
-
return (hAsync("sd-field", { key: '
|
|
12192
|
+
return (hAsync("sd-field", { key: 'b32943cd55dad7d6bb4fc1a18812360c2ab01a83', 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, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: '050395b8ab3bd77ff5f786b3de182b7a35b8b01f', class: {
|
|
11956
12193
|
'sd-number-input__content': true,
|
|
11957
12194
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
11958
|
-
} }, this.useButton && (hAsync("button", { key: '
|
|
12195
|
+
} }, this.useButton && (hAsync("button", { key: 'e76188a1f1f76450227328854ee3048d7b2b9e85', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: '544e5a41790302df564ca0a3e83e2f9052c3f290', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
11959
12196
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
11960
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && hAsync("span", { key: '
|
|
12197
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && hAsync("span", { key: '34e8c9af864332b8614e3c9a5d2cf94310a2555d', class: "sd-number-input__prefix" }, this.inputPrefix), hAsync("input", { key: '07e0484ad473e010d9ba8f971875bd463585ca47', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
11961
12198
|
textAlign: this.useButton ? 'center' : 'right',
|
|
11962
12199
|
...this.inputStyle,
|
|
11963
|
-
} }), this.inputSuffix && hAsync("span", { key: '
|
|
12200
|
+
} }), this.inputSuffix && hAsync("span", { key: '990a3e1dc5cfeaa8e1823391e0bb0218ce4cfb02', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (hAsync("button", { key: 'd2496ab718cf44fd658c871086d8e67c66380668', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: 'fcab0109e01a1c683bf09349cb699534eaa1a8d1', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
11964
12201
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
11965
12202
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
11966
12203
|
}
|
|
@@ -12167,13 +12404,13 @@ class SdPagination {
|
|
|
12167
12404
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
12168
12405
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
12169
12406
|
};
|
|
12170
|
-
return (hAsync("div", { key: '
|
|
12407
|
+
return (hAsync("div", { key: 'b16a4c0ff75913e80fdb9a539d8afb714931a531', class: {
|
|
12171
12408
|
'sd-pagination': true,
|
|
12172
12409
|
'sd-pagination--simple': this.simple,
|
|
12173
|
-
}, style: cssVars }, hAsync("div", { key: '
|
|
12410
|
+
}, style: cssVars }, hAsync("div", { key: '42d019164c409d09d13b94845c9ee99ece41a8f3', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "sd-pagination__info" }, hAsync("span", { class: "sd-pagination__current" }, this.currentPage), hAsync("span", { class: "sd-pagination__divider" }, "/"), hAsync("span", { class: "sd-pagination__last" }, this.lastPage))) : (hAsync("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
12174
12411
|
'sd-pagination__item': true,
|
|
12175
12412
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
12176
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), hAsync("div", { key: '
|
|
12413
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), hAsync("div", { key: '9695ce3aaede66529547151800fede0f5413e7d8', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
12177
12414
|
}
|
|
12178
12415
|
static get style() { return sdPaginationCss(); }
|
|
12179
12416
|
static get cmpMeta() { return {
|
|
@@ -12324,6 +12561,7 @@ var popupTokens = {
|
|
|
12324
12561
|
};
|
|
12325
12562
|
|
|
12326
12563
|
const { popup } = popupTokens;
|
|
12564
|
+
const shadowSpreadMd = systemTokens.shadow.spread.md;
|
|
12327
12565
|
const POPUP_LAYOUT = {
|
|
12328
12566
|
bodyBg: popup.bg,
|
|
12329
12567
|
};
|
|
@@ -12340,7 +12578,6 @@ const POPUP_HEADER = {
|
|
|
12340
12578
|
fontWeight: popup.header.typography.fontWeight,
|
|
12341
12579
|
fontSize: Number(popup.header.typography.fontSize),
|
|
12342
12580
|
lineHeight: Number(popup.header.typography.lineHeight),
|
|
12343
|
-
// TODO: 토큰 반영 후 교체
|
|
12344
12581
|
height: 50,
|
|
12345
12582
|
paddingX: 16,
|
|
12346
12583
|
paddingY: 10,
|
|
@@ -12350,11 +12587,9 @@ const POPUP_FOOTER = {
|
|
|
12350
12587
|
paddingX: Number(popup.footer.paddingX),
|
|
12351
12588
|
paddingY: Number(popup.footer.paddingY),
|
|
12352
12589
|
gap: Number(popup.footer.gap),
|
|
12353
|
-
// TODO: 토큰 반영 후 교체
|
|
12354
12590
|
height: 52,
|
|
12355
12591
|
slotHeight: 36,
|
|
12356
|
-
|
|
12357
|
-
shadow: '0 -2px 8px 0 rgba(0, 0, 0, 0.08)',
|
|
12592
|
+
shadow: `${shadowSpreadMd.x}px ${shadowSpreadMd.y}px ${shadowSpreadMd.blur}px ${shadowSpreadMd.spread}px ${shadowSpreadMd.color}`,
|
|
12358
12593
|
};
|
|
12359
12594
|
|
|
12360
12595
|
const sdPopupCss = () => `sd-popup{display:block;width:100%;height:100%}sd-popup .sd-popup{display:flex;flex-direction:column;width:100%;height:100%;background:var(--sd-popup-bg);overflow:hidden;box-sizing:border-box}sd-popup .sd-popup__header{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:100%;height:var(--sd-popup-header-height);padding:var(--sd-popup-header-padding-y) var(--sd-popup-header-padding-x);background:var(--sd-popup-header-bg);box-sizing:border-box}sd-popup .sd-popup__title{margin:0;color:var(--sd-popup-header-title-color);font-family:var(--sd-popup-header-font-family);font-weight:var(--sd-popup-header-font-weight);font-size:var(--sd-popup-header-font-size);line-height:var(--sd-popup-header-line-height);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}sd-popup .sd-popup__body{flex:1 1 auto;min-height:0;overflow:auto}sd-popup .sd-popup__footer{display:flex;align-items:center;flex-shrink:0;width:100%;height:var(--sd-popup-footer-height);padding:var(--sd-popup-footer-padding-y) var(--sd-popup-footer-padding-x);gap:var(--sd-popup-footer-gap);background:var(--sd-popup-footer-bg);box-shadow:var(--sd-popup-footer-shadow);box-sizing:border-box;position:relative;z-index:1}sd-popup .sd-popup__footer-slot{display:flex;align-items:center;height:var(--sd-popup-footer-slot-height)}sd-popup .sd-popup__footer-slot--left{justify-content:flex-start;flex:1 1 auto;min-width:0}sd-popup .sd-popup__footer-slot:empty{display:none}sd-popup .sd-popup__submit{flex-shrink:0;margin-left:auto}`;
|
|
@@ -12370,6 +12605,8 @@ class SdPopup {
|
|
|
12370
12605
|
}
|
|
12371
12606
|
popupTitle = '';
|
|
12372
12607
|
type = 'default';
|
|
12608
|
+
// 기본 footer 표시가 자연스러운 UX. prop 이름 변경(hideFooter 등)은 public API breaking 이라 별도 이슈로 분리.
|
|
12609
|
+
// eslint-disable-next-line stencil/ban-default-true
|
|
12373
12610
|
useFooter = true;
|
|
12374
12611
|
submitButtonProps;
|
|
12375
12612
|
submit;
|
|
@@ -12397,7 +12634,7 @@ class SdPopup {
|
|
|
12397
12634
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
12398
12635
|
...this.submitButtonProps,
|
|
12399
12636
|
};
|
|
12400
|
-
return (hAsync("div", { key: '
|
|
12637
|
+
return (hAsync("div", { key: 'fe8ca033482913b9c8c7a62963d81d8c5c86c724', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, hAsync("header", { key: 'b27afc04689384abc8cdd45e67e4765c3fef82e9', class: "sd-popup__header" }, hAsync("h2", { key: '15d6cf170e483bfdea861aa7a218df8379d83be2', class: "sd-popup__title" }, this.popupTitle)), hAsync("div", { key: 'daf70c8196ad95b214c978166f547a2a2fa56814', class: "sd-popup__body" }, hAsync("slot", { key: 'f8f4a9f93b88404993e2c8f7155abe4756f9bdba' })), this.useFooter && (hAsync("footer", { key: '38ff051abd11378ad0a83b2d634985d689e0dc27', class: "sd-popup__footer" }, hAsync("div", { key: '149a3de3d7ab0703d9cec41b35af23a6eebd67de', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, hAsync("slot", { key: '2507cece435fa3e00ea698bebf6c980fea081521', name: "footer-left" })), hAsync("sd-button", { key: '5ae38a07e39437d6f3b8aa111258d60aa044152d', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
12401
12638
|
}
|
|
12402
12639
|
static get style() { return sdPopupCss(); }
|
|
12403
12640
|
static get cmpMeta() { return {
|
|
@@ -12640,7 +12877,7 @@ class SdPortal {
|
|
|
12640
12877
|
this.close.emit();
|
|
12641
12878
|
}
|
|
12642
12879
|
render() {
|
|
12643
|
-
return hAsync("slot", { key: '
|
|
12880
|
+
return hAsync("slot", { key: 'a227fa8a0639de7fd3a014762998692151284f87' });
|
|
12644
12881
|
}
|
|
12645
12882
|
static get watchers() { return {
|
|
12646
12883
|
"open": [{
|
|
@@ -13318,15 +13555,15 @@ class SdSelect {
|
|
|
13318
13555
|
this.closeDropdown();
|
|
13319
13556
|
},
|
|
13320
13557
|
};
|
|
13321
|
-
return (hAsync("sd-field", { key: '
|
|
13558
|
+
return (hAsync("sd-field", { key: '21849c194994f51c36b2fa5eafd606230b21e365', 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: () => {
|
|
13322
13559
|
this.hovered = true;
|
|
13323
13560
|
}, onMouseLeave: () => {
|
|
13324
13561
|
this.hovered = false;
|
|
13325
|
-
} }, hAsync("div", { key: '
|
|
13562
|
+
} }, hAsync("div", { key: 'bcba54ed8d325a540d14af14c9b3bf332f631ce8', class: "sd-select", ref: el => {
|
|
13326
13563
|
this.triggerRef = el;
|
|
13327
|
-
} }, hAsync("sd-select-trigger", { key: '
|
|
13564
|
+
} }, hAsync("sd-select-trigger", { key: '72e361ca6e162eee56b82398902e89226e980d3d', ref: el => {
|
|
13328
13565
|
this.triggerComponentRef = el;
|
|
13329
|
-
}, 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) && (hAsync("sd-portal", { key: '
|
|
13566
|
+
}, 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) && (hAsync("sd-portal", { key: '0ff55857cbc146db57caa53d560752d0fae8413b', ...portalProps }, hAsync("sd-select-listbox", { key: '20c103309dc7f2eaf4bee6abae271606b64ace8b', 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) })))));
|
|
13330
13567
|
}
|
|
13331
13568
|
static get watchers() { return {
|
|
13332
13569
|
"isOpen": [{
|
|
@@ -13618,7 +13855,7 @@ class SdSelectListItem {
|
|
|
13618
13855
|
return (
|
|
13619
13856
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
13620
13857
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
13621
|
-
hAsync("div", { key: '
|
|
13858
|
+
hAsync("div", { key: '37189acb2854061fd120d662050fddddb396170c', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
13622
13859
|
'sd-select-list-item': true,
|
|
13623
13860
|
'sd-select-list-item--group': isGroup,
|
|
13624
13861
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -13628,7 +13865,7 @@ class SdSelectListItem {
|
|
|
13628
13865
|
'sd-select-list-item--focused': this.isFocused,
|
|
13629
13866
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
13630
13867
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
13631
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (hAsync("sd-checkbox", { key: '
|
|
13868
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (hAsync("sd-checkbox", { key: '7cc43ed0a1c4a2019be3a7f6f60de1c7f03a6148', 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 })), hAsync("span", { key: '331c7d1ded82834521f3292dc739612f24d7209e', class: "sd-select-list-item__label" }, this.option.label), this.countInfo && (hAsync("span", { key: '80b34cd1a6e67719d50c62afedf23c0903259c78', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
13632
13869
|
}
|
|
13633
13870
|
static get style() { return sdSelectListItemCss(); }
|
|
13634
13871
|
static get cmpMeta() { return {
|
|
@@ -13696,15 +13933,15 @@ class SdSelectListItemSearch {
|
|
|
13696
13933
|
clearTimeout(this.debounceTimer);
|
|
13697
13934
|
}
|
|
13698
13935
|
render() {
|
|
13699
|
-
return (hAsync("div", { key: '
|
|
13936
|
+
return (hAsync("div", { key: 'a8b62b61ec6a0afd69de50b8df02e57de2a04c8c', class: {
|
|
13700
13937
|
'sd-select-list-item-search': true,
|
|
13701
13938
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
13702
|
-
} }, hAsync("div", { key: '
|
|
13939
|
+
} }, hAsync("div", { key: '2b04a677a8b4e3212eff83c07609a4b7d89799c1', class: "sd-select-list-item-search__inner" }, hAsync("sd-icon", { key: 'c0c51d4b0150fee7151c7e2bcc5aaf8428d31043', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), hAsync("input", { key: '85d2309cbb037851053c34baeca5f59c690c0881', ref: el => {
|
|
13703
13940
|
this.inputEl = el;
|
|
13704
|
-
}, 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() }), hAsync("button", { key: '
|
|
13941
|
+
}, 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() }), hAsync("button", { key: '564b6ae6dbab1fa5f4f6d977fa9fd52bb9114873', type: "button", class: {
|
|
13705
13942
|
'sd-select-list-item-search__clear': true,
|
|
13706
13943
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
13707
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, hAsync("sd-icon", { key: '
|
|
13944
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, hAsync("sd-icon", { key: '8ae0f92f8762681cc4c2a6fc11340498b8b01c98', name: "close", size: 12, color: "#888888" })))));
|
|
13708
13945
|
}
|
|
13709
13946
|
static get style() { return sdSelectListItemSearchCss(); }
|
|
13710
13947
|
static get cmpMeta() { return {
|
|
@@ -14075,9 +14312,9 @@ class SdSelectListbox {
|
|
|
14075
14312
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
14076
14313
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
14077
14314
|
};
|
|
14078
|
-
return (hAsync("div", { key: '
|
|
14315
|
+
return (hAsync("div", { key: '1834dbfee219988e78ad47d3640ebafb9983298c', class: "sd-select-listbox", style: cssVars }, this.showSearch && (hAsync("sd-select-list-item-search", { key: '28fbfce57184f2a8c090d628c5b33cecf9337c3c', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), hAsync("div", { key: 'b7430d72cdb26cad59b226af8cf98d796645390c', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
14079
14316
|
this.listEl = el;
|
|
14080
|
-
} }, this.showSelectAll && (hAsync("sd-select-list-item", { key: '
|
|
14317
|
+
} }, this.showSelectAll && (hAsync("sd-select-list-item", { key: '8f159cdef838c0f39bb7aad1717a88c04c75dbda', 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 ? (hAsync("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (hAsync("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) })))))));
|
|
14081
14318
|
}
|
|
14082
14319
|
static get watchers() { return {
|
|
14083
14320
|
"searchKeyword": [{
|
|
@@ -14158,7 +14395,7 @@ class SdSelectTrigger {
|
|
|
14158
14395
|
? SELECT_COLORS.icon.disabled
|
|
14159
14396
|
: SELECT_COLORS.icon.default,
|
|
14160
14397
|
};
|
|
14161
|
-
return (hAsync("div", { key: '
|
|
14398
|
+
return (hAsync("div", { key: '645d8e7ff5065664a3510b127628cb54d97fb613', ref: el => {
|
|
14162
14399
|
this.triggerEl = el;
|
|
14163
14400
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
14164
14401
|
'sd-select-trigger': true,
|
|
@@ -14169,7 +14406,7 @@ class SdSelectTrigger {
|
|
|
14169
14406
|
e.preventDefault();
|
|
14170
14407
|
this.handleClick();
|
|
14171
14408
|
}
|
|
14172
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, hAsync("div", { key: '
|
|
14409
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, hAsync("div", { key: '515dda6d98ad09b0854e0ef0e04f0bf8c9592d1a', class: "sd-select-trigger__content" }, hAsync("span", { key: '9d92577675d0c7e6ba32174ae0cdd754788dbccb', class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택')), hAsync("sd-icon", { key: '347532a73d9ff2929d9f716fb8d2e314af7d7069', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
14173
14410
|
'sd-select-trigger__icon': true,
|
|
14174
14411
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
14175
14412
|
} }))));
|
|
@@ -14291,7 +14528,7 @@ class SdSwitch {
|
|
|
14291
14528
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
14292
14529
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
14293
14530
|
};
|
|
14294
|
-
return (hAsync("label", { key: '
|
|
14531
|
+
return (hAsync("label", { key: '3d9449733d73dcbd2d7a95505b6afd930a43a114', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, hAsync("input", { key: 'f8d35ea743b5f85697d9d4de8fe915ce2d8f7b56', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), hAsync("div", { key: 'b62a6bfa60c488270184698610337926b688baff', class: "sd-switch__track" }, hAsync("div", { key: 'da7764fe4a4202366fe0a922de687ece121eb73f', class: "sd-switch__knob" })), this.label && hAsync("span", { key: '924c2939f0cb2196ff69be560e1c7f113590c73b', class: "sd-switch__label" }, this.label)));
|
|
14295
14532
|
}
|
|
14296
14533
|
static get style() { return sdSwitchCss(); }
|
|
14297
14534
|
static get cmpMeta() { return {
|
|
@@ -14615,6 +14852,10 @@ class SdTable {
|
|
|
14615
14852
|
if (this.pagination?.rowsPerPage != null) {
|
|
14616
14853
|
this.innerRowsPerPage = this.pagination.rowsPerPage;
|
|
14617
14854
|
}
|
|
14855
|
+
// host element 에 자식 컴포넌트(sd-thead/sd-tbody/sd-tr) 가 직접 접근하는 internal sync helpers 를 monkey-patch.
|
|
14856
|
+
// 28개 메서드 전체를 typed interface 로 노출하면 코드 비용이 크고, 어차피 internal 이라 외부 사용자가 호출하지 않는다.
|
|
14857
|
+
// 정식 @Method 노출로 옮기는 작업은 별도 이슈로 분리.
|
|
14858
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14618
14859
|
const el = this.el;
|
|
14619
14860
|
el.isRowSelectedSync = this.isRowSelectedSync.bind(this);
|
|
14620
14861
|
el.updateRowSelectSync = this.updateRowSelectSync.bind(this);
|
|
@@ -14731,7 +14972,6 @@ class SdTable {
|
|
|
14731
14972
|
}
|
|
14732
14973
|
});
|
|
14733
14974
|
}
|
|
14734
|
-
// light DOM(manual mode 자식)과 shadow DOM(autoThead/autoTbody fallback) 양쪽 모두에서 자식을 찾는다.
|
|
14735
14975
|
queryChildEl(selector) {
|
|
14736
14976
|
return (this.el.querySelector(selector) ??
|
|
14737
14977
|
this.el.shadowRoot?.querySelector(selector) ??
|
|
@@ -14759,12 +14999,12 @@ class SdTable {
|
|
|
14759
14999
|
refreshChildrenSelection() {
|
|
14760
15000
|
const thead = this.queryChildEl('sd-thead');
|
|
14761
15001
|
thead?.refreshSelection?.();
|
|
14762
|
-
this.queryAllTr().forEach(tr => tr
|
|
15002
|
+
this.queryAllTr().forEach(tr => tr.refreshSelection?.());
|
|
14763
15003
|
}
|
|
14764
15004
|
refreshChildrenConfig() {
|
|
14765
15005
|
const thead = this.queryChildEl('sd-thead');
|
|
14766
15006
|
thead?.refreshConfig?.();
|
|
14767
|
-
this.queryAllTr().forEach(tr => tr
|
|
15007
|
+
this.queryAllTr().forEach(tr => tr.refreshConfig?.());
|
|
14768
15008
|
}
|
|
14769
15009
|
maybeEmitVirtualReachEnd(start, end) {
|
|
14770
15010
|
const threshold = Math.max(1, this.virtualEndThreshold);
|
|
@@ -14796,6 +15036,7 @@ class SdTable {
|
|
|
14796
15036
|
this.vsEnd = end;
|
|
14797
15037
|
const topHeight = start * this.effectiveRowHeight;
|
|
14798
15038
|
const bottomHeight = Math.max(0, (this.rowCount - end) * this.effectiveRowHeight);
|
|
15039
|
+
// setSpacersSync 는 sd-tbody 가 host element 에 monkey-patch 하는 internal sync helper.
|
|
14799
15040
|
const tbody = this.queryChildEl('sd-tbody');
|
|
14800
15041
|
tbody?.setSpacersSync?.(topHeight, bottomHeight);
|
|
14801
15042
|
if (rangeChanged) {
|
|
@@ -14916,7 +15157,7 @@ class SdTable {
|
|
|
14916
15157
|
this.updateRowsVisibility();
|
|
14917
15158
|
}
|
|
14918
15159
|
updateRowsVisibility() {
|
|
14919
|
-
this.queryAllTr().forEach(tr => tr
|
|
15160
|
+
this.queryAllTr().forEach(tr => tr.updateVisibility?.());
|
|
14920
15161
|
}
|
|
14921
15162
|
changeRowsPerPage(perPage) {
|
|
14922
15163
|
const changedRowsPerPage = perPage != null && perPage !== '' ? Number(perPage) : 0;
|
|
@@ -14955,7 +15196,7 @@ class SdTable {
|
|
|
14955
15196
|
this.columnWidths = this.columnWidths.map((width, idx) => (idx === index ? newWidth : width));
|
|
14956
15197
|
const thead = this.queryChildEl('sd-thead');
|
|
14957
15198
|
thead?.setColumnWidths?.(this.columnWidths);
|
|
14958
|
-
this.queryAllTr().forEach(tr => tr
|
|
15199
|
+
this.queryAllTr().forEach(tr => tr.setColumnWidths?.(this.columnWidths));
|
|
14959
15200
|
const stickyRightCount = this.stickyColumn?.right || 0;
|
|
14960
15201
|
const visibleColCount = this.columns.filter(c => c.visible !== false).length;
|
|
14961
15202
|
const isRightStickyEdgeResizer = stickyRightCount > 0 && index === visibleColCount - stickyRightCount;
|
|
@@ -15010,9 +15251,8 @@ class SdTable {
|
|
|
15010
15251
|
// 경우가 있어, sd-tr의 @State (spansVersion)을 통해 재렌더를 강제한다.
|
|
15011
15252
|
requestAllTrUpdate() {
|
|
15012
15253
|
this.queryAllTr().forEach(tr => {
|
|
15013
|
-
|
|
15014
|
-
|
|
15015
|
-
trAny.bumpSpansVersion();
|
|
15254
|
+
if (typeof tr.bumpSpansVersion === 'function') {
|
|
15255
|
+
tr.bumpSpansVersion();
|
|
15016
15256
|
}
|
|
15017
15257
|
});
|
|
15018
15258
|
}
|
|
@@ -15249,25 +15489,25 @@ class SdTable {
|
|
|
15249
15489
|
'--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
15250
15490
|
'--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
15251
15491
|
};
|
|
15252
|
-
return (hAsync(Host, { key: '
|
|
15492
|
+
return (hAsync(Host, { key: '9ee5b528b330f9edf406ff40ec089136c0807653', style: hostStyle }, hAsync("div", { key: '9ac6cbba84b7ef7d0897474168748811fb15af92', class: "sd-table__container", style: {
|
|
15253
15493
|
'--table-width': this.width,
|
|
15254
15494
|
'--table-height': effectiveTableHeight,
|
|
15255
15495
|
'--table-container-height': `calc(${effectiveTableHeight} - ${paginationHeight}px)`,
|
|
15256
|
-
} }, hAsync("div", { key: '
|
|
15496
|
+
} }, hAsync("div", { key: '11f916debfd443e1d243bfa2335dbb0a3cb094bc', class: {
|
|
15257
15497
|
'sd-table__wrapper': true,
|
|
15258
15498
|
'sd-table__wrapper--radius-use-top': this.radius === 'useTop',
|
|
15259
|
-
} }, hAsync("div", { key: '
|
|
15499
|
+
} }, hAsync("div", { key: '3cad3d86f731a3edc0d2b5a680bcaf6ad6be7399', class: {
|
|
15260
15500
|
'sd-table__scroll-container': true,
|
|
15261
15501
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
15262
15502
|
'sd-table__scroll-container--no-data': isNoData,
|
|
15263
|
-
} }, this.isLoading && (hAsync("div", { key: '
|
|
15503
|
+
} }, this.isLoading && (hAsync("div", { key: '6f0aac84dcb3d9ca721ed82cd45214b3956d3f94', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, hAsync("sd-circle-progress", { key: '8bb6b8025fceee6ef856efd9cafefe925fc95272', indeterminate: true }))), isNoData && (hAsync(hAsync.Fragment, null, hAsync("div", { key: '69e6e22b68261832a299de470c8ca7f5a16205dd', class: "sd-table__no-data-header-overlay" }), hAsync("div", { key: 'c797a2d41c752698bed1f034beefddc4bf8b951d', class: "sd-table__no-data" }, hAsync("div", { key: '0f0306bc89b5d9046de2aec935822eab0c3ca36c', class: "sd-table__no-data-content", ref: el => {
|
|
15264
15504
|
this.noDataContentEl = el;
|
|
15265
15505
|
if (el)
|
|
15266
15506
|
this.syncNoDataContentObserver();
|
|
15267
|
-
} }, hAsync("slot", { key: '
|
|
15507
|
+
} }, hAsync("slot", { key: '042671d4c65c4031a756da386ed010146c17f736', name: "no-data" }, hAsync("span", { key: '5994f656dbea3fd1dea69c105907b188658f8c41' }, this.resolvedNoDataLabel)))))), hAsync("table", { key: '16bb3a7c6b32e5312eda79015cd7d90bef37bdff', class: this.tableClasses }, this.autoThead ? (hAsync("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, hAsync("sd-thead", { rows: this.rows ?? [] }))) : (hAsync("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (hAsync("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, hAsync("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (hAsync("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
15268
15508
|
this.pagination.rowsPerPage > 0 &&
|
|
15269
15509
|
this.rowCount > 0 &&
|
|
15270
|
-
!this.useVirtualScroll && (hAsync("div", { key: '
|
|
15510
|
+
!this.useVirtualScroll && (hAsync("div", { key: '6c3ee5d93fb395154c4c42c914669af535c1a5bc', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: '46053012374e1255037706a8fa4d068dbc60f2d9', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: 'df04b19e857e823be8237148d84456d492575ce3', value: this.useInternalPagination
|
|
15271
15511
|
? this.innerRowsPerPage
|
|
15272
15512
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
15273
15513
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -15559,7 +15799,7 @@ class SdTabs {
|
|
|
15559
15799
|
};
|
|
15560
15800
|
}
|
|
15561
15801
|
render() {
|
|
15562
|
-
return (hAsync("div", { key: '
|
|
15802
|
+
return (hAsync("div", { key: '181916a72512a6802a06dc56fca418a806d18a0e', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
15563
15803
|
const badgeName = this.getBadgeName(tab);
|
|
15564
15804
|
return (hAsync("div", { key: `tab-${index}`, 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 => {
|
|
15565
15805
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -15774,6 +16014,8 @@ class SdTag {
|
|
|
15774
16014
|
name = 'square_sm_grey';
|
|
15775
16015
|
label = '';
|
|
15776
16016
|
icon;
|
|
16017
|
+
// 아이콘이 좌측 배치되는 게 자연스러운 default. prop 이름 변경(isRight 등)은 public API breaking 이라 별도 이슈로 분리.
|
|
16018
|
+
// eslint-disable-next-line stencil/ban-default-true
|
|
15777
16019
|
isLeft = true;
|
|
15778
16020
|
componentWillLoad() {
|
|
15779
16021
|
this.name = this.name ?? 'square_sm_grey';
|
|
@@ -15795,7 +16037,7 @@ class SdTag {
|
|
|
15795
16037
|
render() {
|
|
15796
16038
|
const config = this.resolvedConfig;
|
|
15797
16039
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
15798
|
-
return (hAsync("span", { key: '
|
|
16040
|
+
return (hAsync("span", { key: 'c8b8b88e2c83401bb9d3e05004b0517d7e4a3a6a', class: "sd-tag", style: {
|
|
15799
16041
|
'--sd-tag-background': config.background,
|
|
15800
16042
|
'--sd-tag-content': config.content,
|
|
15801
16043
|
'--sd-tag-height': config.height,
|
|
@@ -15805,7 +16047,7 @@ class SdTag {
|
|
|
15805
16047
|
'--sd-tag-font-weight': config.fontWeight,
|
|
15806
16048
|
'--sd-tag-line-height': config.lineHeight,
|
|
15807
16049
|
'--sd-tag-radius': config.radius,
|
|
15808
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '
|
|
16050
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '67094b09ab1d7b7e865c9f6b8017f8c5c3f8274a', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
15809
16051
|
}
|
|
15810
16052
|
static get style() { return sdTagCss(); }
|
|
15811
16053
|
static get cmpMeta() { return {
|
|
@@ -15873,9 +16115,9 @@ class SdTbody {
|
|
|
15873
16115
|
}
|
|
15874
16116
|
}
|
|
15875
16117
|
render() {
|
|
15876
|
-
return (hAsync(Host, { key: '
|
|
16118
|
+
return (hAsync(Host, { key: 'a3d0ee1c1820474e97e430ba91f48e12ee0e252d', slot: `${this.tableId}-body` }, hAsync("tbody", { key: 'bbd5b9acf02150b146c9b25d07f2e7a9dd347921', class: { tbody: true } }, [
|
|
15877
16119
|
this.topSpacerHeight > 0 && (hAsync("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
15878
|
-
hAsync("slot", { key: '
|
|
16120
|
+
hAsync("slot", { key: 'f0ec0aa4d7e7190fc93d96afe5591004174fff63' }),
|
|
15879
16121
|
this.bottomSpacerHeight > 0 && (hAsync("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
15880
16122
|
])));
|
|
15881
16123
|
}
|
|
@@ -16050,7 +16292,7 @@ class SdTd {
|
|
|
16050
16292
|
}
|
|
16051
16293
|
}
|
|
16052
16294
|
render() {
|
|
16053
|
-
return (hAsync(Host, { key: '
|
|
16295
|
+
return (hAsync(Host, { key: '91c033a0c4c3a6c3c9b29c0be99912c5ac1283ee', class: { [`align-${this.align}`]: Boolean(this.align) } }, hAsync("slot", { key: 'abfbc911c707012bc7d924e328ba07d71b96f9a9' })));
|
|
16054
16296
|
}
|
|
16055
16297
|
static get watchers() { return {
|
|
16056
16298
|
"field": [{
|
|
@@ -16334,7 +16576,7 @@ class SdTextarea {
|
|
|
16334
16576
|
'--sd-system-size-field-sm-height': 'auto',
|
|
16335
16577
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
16336
16578
|
};
|
|
16337
|
-
return (hAsync("sd-field", { key: '
|
|
16579
|
+
return (hAsync("sd-field", { key: 'd877d2598cad84c2bf495e76e0cc1d087f52cc8e', 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, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: 'c4e864b958b806d4ecc293bd47375dabe0b9e825', class: "sd-textarea__content" }, hAsync("textarea", { key: '8d12c0178392c07150f0fdde5bab4c0e91534efb', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
16338
16580
|
}
|
|
16339
16581
|
static get watchers() { return {
|
|
16340
16582
|
"value": [{
|
|
@@ -16550,16 +16792,16 @@ class SdThead {
|
|
|
16550
16792
|
'--table-border-color': TABLE_BORDER.color,
|
|
16551
16793
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
16552
16794
|
};
|
|
16553
|
-
return (hAsync(Host, { key: '
|
|
16795
|
+
return (hAsync(Host, { key: '234ca55bb2507aef21df976066e5ce377c2e9e89', slot: `${this.tableId}-head`, style: headStyle }, hAsync("thead", { key: 'fecd6b54f72a8643b663c3af1988eed60300d08d', class: {
|
|
16554
16796
|
'thead': true,
|
|
16555
16797
|
'thead--sticky': this._stickyHeader,
|
|
16556
|
-
} }, hAsync("tr", { key: '
|
|
16798
|
+
} }, hAsync("tr", { key: '21d56c50076d3340733b7fa0a8e569fec005e415', class: "tr" }, this._selectable && (hAsync("th", { key: 'ace570ae2157ae63a21ec6ba60d8b8898dd0c33c', class: {
|
|
16557
16799
|
'th': true,
|
|
16558
16800
|
'th--selected': true,
|
|
16559
16801
|
'sticky-left': true,
|
|
16560
16802
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
16561
16803
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
16562
|
-
}, style: { '--sticky-left-offset': '0px' } }, hAsync("sd-checkbox", { key: '
|
|
16804
|
+
}, style: { '--sticky-left-offset': '0px' } }, hAsync("sd-checkbox", { key: '4b30536f427b9985355c4e22b6b532a3033306c0', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (hAsync("th", { key: col.name, class: {
|
|
16563
16805
|
'th': true,
|
|
16564
16806
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
16565
16807
|
'sticky-left': true,
|
|
@@ -16710,12 +16952,12 @@ class SdToast {
|
|
|
16710
16952
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
16711
16953
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
16712
16954
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
16713
|
-
return (hAsync("div", { key: '
|
|
16955
|
+
return (hAsync("div", { key: '82579581897d7845b95456ccb5e2a1745c84bcc5', style: {
|
|
16714
16956
|
'--sd-toast-bg': typeConfig.bg,
|
|
16715
16957
|
'--sd-toast-text': typeConfig.content,
|
|
16716
16958
|
'--sd-toast-icon': iconColor,
|
|
16717
16959
|
'--sd-toast-link': linkColor,
|
|
16718
|
-
} }, hAsync("div", { key: '
|
|
16960
|
+
} }, hAsync("div", { key: '5f41392a25dee4e53917255453c97c2203940f21', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (hAsync("div", { key: '8f38f7c9842ec295510135589a63994011a856f4', class: "sd-toast__icon" }, hAsync("sd-icon", { key: '62ef897ddfc3b47fe7b640d430d0baf95bdb5b51', name: this.icon, size: iconSize, color: iconColor }))), hAsync("div", { key: 'f6db6cb9776cb41400c9a9052cdea94990245298', class: "sd-toast__content" }, hAsync("span", { key: 'fbd7cdd72422e9ad08f99302b4dcd607d058926f', class: "sd-toast__message" }, this.message)), this.link && (hAsync("a", { key: 'f599928ad9d0d7536086d7dd2d1ce65b429fd8f4', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (hAsync("sd-button", { key: '2be68a412c4b6b9dac64dbd89447c4905fa7512f', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (hAsync("sd-ghost-button", { key: '065030362b37383ee7ae31e9b8a771b160427cbe', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
16719
16961
|
}
|
|
16720
16962
|
static get style() { return sdToastCss(); }
|
|
16721
16963
|
static get cmpMeta() { return {
|
|
@@ -16968,7 +17210,7 @@ class SdToastContainer {
|
|
|
16968
17210
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
16969
17211
|
const indexMap = new Map();
|
|
16970
17212
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
16971
|
-
return (hAsync("div", { key: '
|
|
17213
|
+
return (hAsync("div", { key: 'c80d46b63f50591d4d92b810c0625701e4741e3a', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
16972
17214
|
this.expanded = true;
|
|
16973
17215
|
this.pauseTimers();
|
|
16974
17216
|
}, onMouseLeave: () => {
|
|
@@ -17126,7 +17368,7 @@ class SdToggle {
|
|
|
17126
17368
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
17127
17369
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
17128
17370
|
};
|
|
17129
|
-
return (hAsync("label", { key: '
|
|
17371
|
+
return (hAsync("label", { key: 'c5c8b9448dabb6619e80fd55b11f94bf78706994', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, hAsync("input", { key: 'bd43e7f286da217653461ec3128998c5f5a821d9', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
17130
17372
|
}
|
|
17131
17373
|
static get style() { return sdToggleCss(); }
|
|
17132
17374
|
static get cmpMeta() { return {
|
|
@@ -17256,14 +17498,14 @@ class SdTooltip {
|
|
|
17256
17498
|
const hasLabel = this.label !== undefined && this.label !== '';
|
|
17257
17499
|
const divTrigger = trigger === 'hover' ? hoverTrigger : hasLabel ? {} : { onClick: toggleTooltip };
|
|
17258
17500
|
const buttonClickTrigger = trigger === 'click' && hasLabel ? { onSdClick: toggleTooltip } : {};
|
|
17259
|
-
return (hAsync(Fragment, { key: '
|
|
17501
|
+
return (hAsync(Fragment, { key: 'c7ed53cfd1505b394353a9a37d0fe012cdf29217' }, hAsync("div", { key: 'd31332c8717dd954bb1c79bb9d0fd974f74d6e73', class: `sd-tooltip-trigger ${this.sdClass !== undefined && this.sdClass !== '' ? this.sdClass : ''}`, ...divTrigger }, hasLabel ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-tooltip", ...buttonClickTrigger })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (hAsync("sd-floating-portal", { key: 'a63971f2fa15e9ef8a6294a2284284e7d7154a8f', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.tooltipOffset }, hAsync("div", { key: 'dc3259612bf303b320fdc849bbb83f224f410737', ref: el => (this.menuEl = el), class: {
|
|
17260
17502
|
'sd-floating-menu': true,
|
|
17261
17503
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
17262
17504
|
[`sd-floating-menu--${placement}`]: true,
|
|
17263
17505
|
}, style: {
|
|
17264
17506
|
'--sd-floating-bg': typeConfig.bg,
|
|
17265
17507
|
'--sd-floating-content': typeConfig.content,
|
|
17266
|
-
}, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, hAsync("i", { key: '
|
|
17508
|
+
}, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, hAsync("i", { key: '8b3d132320c27710c9346f5313ee7c173df4275e', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, hAsync(TooltipArrow, { key: '66e90298fa62b7660e3d785abd024e9acae38fe3' })), hAsync("div", { key: '115d0ee83abb2d9ca607759f009c47acd34196e2', class: "sd-floating-menu__content", innerHTML: this.slotContentHTML }))))));
|
|
17267
17509
|
}
|
|
17268
17510
|
static get style() { return sdTooltipCss(); }
|
|
17269
17511
|
static get cmpMeta() { return {
|
|
@@ -17617,6 +17859,7 @@ registerComponents([
|
|
|
17617
17859
|
SdBarcodeInput,
|
|
17618
17860
|
SdButton,
|
|
17619
17861
|
SdCalendar,
|
|
17862
|
+
SdCallout,
|
|
17620
17863
|
SdCard,
|
|
17621
17864
|
SdCheckbox,
|
|
17622
17865
|
SdChip,
|