@sellmate/design-system 1.26.1 → 1.27.1
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/{component.field-YIQ9TAhV.js → component.field-C7it8cZm.js} +2 -2
- package/dist/cjs/{component.modal-BFelrSMx.js → component.modal-CrZe2db_.js} +0 -14
- package/dist/cjs/component.overlay-CBhFnzM2.js +29 -0
- package/dist/cjs/{component.progress-Bmg3vAAy.js → component.progress-DimGJZAd.js} +1 -2
- package/dist/cjs/{component.table-DIxmbGBT.js → component.table-BrI3b--h.js} +4 -5
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-BuaQW9U4.js → index-DsYLSqCp.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +12 -10
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/{sd-button.config-eTAJM2iW.js → sd-button.config-BH7gFPmM.js} +1 -2
- package/dist/cjs/sd-button_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-calendar_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +6 -16
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +8 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/{sd-date-picker.config-CtXmufyj.js → sd-date-picker.config-De7ahWIs.js} +1 -1
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +25 -29
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +4 -4
- package/dist/cjs/sd-field_3.cjs.entry.js +18 -12
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +2 -3
- package/dist/cjs/sd-guide.cjs.entry.js +1 -1
- package/dist/cjs/sd-key-value-table.cjs.entry.js +3 -3
- package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-loading-container.cjs.entry.js +23 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +17 -12
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-popup.cjs.entry.js +9 -14
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +7 -7
- package/dist/cjs/sd-select_3.cjs.entry.js +10 -10
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +10 -10
- package/dist/cjs/{sd-table.config-B7MuRLoR.js → sd-table.config-DzC55sap.js} +3 -3
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +2 -3
- package/dist/cjs/sd-toast-container.cjs.entry.js +5 -5
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +3 -4
- package/dist/cjs/{tooltipArrow-VQq73W83.js → tooltipArrow-FLiD3ceS.js} +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.config.js +10 -8
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.config.js +4 -5
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +2 -2
- package/dist/collection/components/sd-field/sd-field.css +5 -0
- package/dist/collection/components/sd-field/sd-field.js +30 -4
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +2 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +14 -17
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -0
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +1 -1
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +22 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.config.js +4 -4
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +5 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.config.js +1 -0
- package/dist/collection/components/sd-pagination/sd-pagination.css +1 -1
- package/dist/collection/components/sd-pagination/sd-pagination.js +4 -3
- package/dist/collection/components/sd-popup/sd-popup.config.js +6 -4
- package/dist/collection/components/sd-popup/sd-popup.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.css +16 -0
- 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.config.js +3 -3
- package/dist/collection/components/sd-table/sd-table.css +16 -0
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-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 +4 -4
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CBXH-GWN.js → p--AZbwi7P.js} +1 -1
- package/dist/components/{p-DoJxhlz2.js → p-BFy8txYj.js} +1 -1
- package/dist/components/{p-BBRQlkBM.js → p-BHNytAtJ.js} +1 -1
- package/dist/components/{p-DlBZuGIN.js → p-BOJALVxB.js} +1 -1
- package/dist/components/{p-Dz70SQco.js → p-BQqXWtI6.js} +1 -1
- package/dist/components/{p-BnhzUsGP.js → p-BU1H7ElF.js} +1 -1
- package/dist/components/{p-C4Vfr3RI.js → p-BV4cnHWn.js} +1 -1
- package/dist/components/p-BXcizROm.js +1 -0
- package/dist/components/p-BZdgdRXJ.js +1 -0
- package/dist/components/{p-BNxNJ3CK.js → p-BaRjXqSM.js} +1 -1
- package/dist/components/{p-c9mdxFTZ.js → p-Bk6aI8rL.js} +1 -1
- package/dist/components/p-BxphFsxh.js +1 -0
- package/dist/components/{p-k89ztBz6.js → p-CIPPETF-.js} +1 -1
- package/dist/components/{p-C3rOud8J.js → p-CJcs7kNH.js} +1 -1
- package/dist/components/{p-CaQ-qyG-.js → p-CV5LiFKt.js} +1 -1
- package/dist/components/p-CiTn4ZiI.js +1 -0
- package/dist/components/p-CmK45nj3.js +1 -0
- package/dist/components/{p-BOTW76OV.js → p-Cok_EW_N.js} +1 -1
- package/dist/components/{p-j1n74q9u.js → p-CvSPsoRb.js} +1 -1
- package/dist/components/p-Cw8yDfQh.js +1 -0
- package/dist/components/{p-B90EQBEX.js → p-CwwJD-NF.js} +1 -1
- package/dist/components/{p-D3dq5pt5.js → p-D7XGOtx0.js} +1 -1
- package/dist/components/{p-D6GUzecR.js → p-D9tQwTWy.js} +1 -1
- package/dist/{design-system/p-GXE2lEVj.js → components/p-DMrzTImA.js} +1 -1
- package/dist/components/{p-UIytIOVz.js → p-DT-e9J59.js} +1 -1
- package/dist/components/{p-346Z6-KH.js → p-DTb2c83G.js} +1 -1
- package/dist/components/{p-DUHiXyfJ.js → p-DVq9oE_p.js} +1 -1
- package/dist/components/p-DYp8I4VH.js +1 -0
- package/dist/components/p-De0OtxK5.js +1 -0
- package/dist/components/{p-D6AroYk-.js → p-DeXLIS7e.js} +1 -1
- package/dist/components/{p-BOJJ_sQS.js → p-DjKOoQuF.js} +1 -1
- package/dist/components/{p-DiJvHjSG.js → p-DkaajrxX.js} +1 -1
- package/dist/components/p-DmC83_E9.js +1 -0
- package/dist/components/{p-BxiJsH7Z.js → p-DnxEeX9I.js} +1 -1
- package/dist/components/{p-BSnINeoq.js → p-DsQQFJ8o.js} +1 -1
- package/dist/components/{p-DhgwAPO4.js → p-Du_Yc-lW.js} +1 -1
- package/dist/components/{p-D9tjoBhH.js → p-Dy6LmOzw.js} +1 -1
- package/dist/components/p-NeXvaRu7.js +1 -0
- package/dist/components/{p-DsZ3vasC.js → p-PvltLPHp.js} +1 -1
- package/dist/components/{p-DGBRubiD.js → p-SROa9QCy.js} +1 -1
- package/dist/components/{p-DNRm9_Bv.js → p-hP1aeMuZ.js} +1 -1
- package/dist/components/p-jwusYvH0.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-chip-input.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-box.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-form.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-754c11a8.entry.js → p-06b56059.entry.js} +1 -1
- package/dist/design-system/{p-5b184e17.entry.js → p-07755193.entry.js} +1 -1
- package/dist/design-system/p-147e0413.entry.js +1 -0
- package/dist/design-system/{p-352a72ef.entry.js → p-26297c6e.entry.js} +1 -1
- package/dist/design-system/{p-d4097b87.entry.js → p-270c8529.entry.js} +1 -1
- package/dist/design-system/{p-9761ef4a.entry.js → p-459a408f.entry.js} +1 -1
- package/dist/design-system/{p-a0349edd.entry.js → p-49b1636a.entry.js} +1 -1
- package/dist/design-system/{p-20bb91ed.entry.js → p-5142cd06.entry.js} +1 -1
- package/dist/design-system/p-51c7839c.entry.js +1 -0
- package/dist/design-system/{p-ba5bb1ee.entry.js → p-55c8ce37.entry.js} +1 -1
- package/dist/design-system/p-5aa5aec3.entry.js +1 -0
- package/dist/design-system/{p-992f9509.entry.js → p-5f1dae23.entry.js} +1 -1
- package/dist/design-system/p-5f5f2fbe.entry.js +1 -0
- package/dist/design-system/{p-8c5451f2.entry.js → p-65285327.entry.js} +1 -1
- package/dist/design-system/{p-4d68b0a8.entry.js → p-6aec5853.entry.js} +1 -1
- package/dist/design-system/{p-1680b427.entry.js → p-7540f591.entry.js} +1 -1
- package/dist/design-system/p-761c008c.entry.js +1 -0
- package/dist/design-system/{p-3064d7c6.entry.js → p-80abdfe7.entry.js} +1 -1
- package/dist/design-system/{p-f910d33f.entry.js → p-839e6b5a.entry.js} +1 -1
- package/dist/design-system/{p-8001447c.entry.js → p-8ac340db.entry.js} +1 -1
- package/dist/design-system/{p-c79bf2eb.entry.js → p-8c1a9374.entry.js} +1 -1
- package/dist/design-system/p-947dcc28.entry.js +1 -0
- package/dist/design-system/{p-e77fe58a.entry.js → p-9603971e.entry.js} +1 -1
- package/dist/design-system/p-9825e76c.entry.js +1 -0
- package/dist/design-system/{p-c8e86fb4.entry.js → p-9c0d3011.entry.js} +1 -1
- package/dist/design-system/p-B-LOf2aM.js +1 -0
- package/dist/design-system/p-BXcizROm.js +1 -0
- package/dist/design-system/p-BZg-6aSz.js +2 -0
- package/dist/design-system/p-Cw8yDfQh.js +1 -0
- package/dist/design-system/{p-d24F7UcR.js → p-D2S9Zafz.js} +1 -1
- package/dist/design-system/{p-D6GUzecR.js → p-D9tQwTWy.js} +1 -1
- package/dist/design-system/p-De0OtxK5.js +1 -0
- package/dist/design-system/{p-BOJJ_sQS.js → p-DjKOoQuF.js} +1 -1
- package/dist/design-system/{p-a76a8463.entry.js → p-a4e1dd8c.entry.js} +1 -1
- package/dist/design-system/{p-a32704bc.entry.js → p-b84f5550.entry.js} +1 -1
- package/dist/design-system/{p-eb1233ff.entry.js → p-b86a69ce.entry.js} +1 -1
- package/dist/design-system/{p-90a360ca.entry.js → p-b9387621.entry.js} +1 -1
- package/dist/design-system/p-cb0cbcb0.entry.js +1 -0
- package/dist/design-system/{p-f089fc54.entry.js → p-d790fbb8.entry.js} +1 -1
- package/dist/design-system/{p-f9c0013c.entry.js → p-dae6914d.entry.js} +1 -1
- package/dist/design-system/{p-d6329729.entry.js → p-ddb9a2c4.entry.js} +1 -1
- package/dist/design-system/{p-9b53de38.entry.js → p-dfa16f49.entry.js} +1 -1
- package/dist/design-system/{p-2646a746.entry.js → p-e63bf0e1.entry.js} +1 -1
- package/dist/design-system/p-edfb5c83.entry.js +1 -0
- package/dist/design-system/{p-89c8585f.entry.js → p-efc55114.entry.js} +1 -1
- package/dist/design-system/p-fd671afe.entry.js +1 -0
- package/dist/design-system/{p-83a86e6d.entry.js → p-fe2b853f.entry.js} +1 -1
- package/dist/design-system/{p-25a11d7d.entry.js → p-ff9ccbf6.entry.js} +1 -1
- package/dist/esm/{component.field-BOJJ_sQS.js → component.field-DjKOoQuF.js} +2 -2
- package/dist/esm/{component.modal-DOXMJi-V.js → component.modal-Cw8yDfQh.js} +0 -14
- package/dist/esm/component.overlay-De0OtxK5.js +27 -0
- package/dist/esm/{component.progress-D1vaasIp.js → component.progress-BG5nGnBi.js} +1 -2
- package/dist/esm/{component.table-D6GUzecR.js → component.table-D9tQwTWy.js} +4 -5
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-BZ5lcC25.js → index-BZg-6aSz.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +12 -10
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/{sd-button.config-DjcjlPt7.js → sd-button.config-ClMlDGkX.js} +1 -2
- package/dist/esm/sd-button_2.entry.js +2 -2
- package/dist/esm/sd-calendar_2.entry.js +3 -3
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +1 -1
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +6 -16
- package/dist/esm/sd-confirm-modal_2.entry.js +8 -4
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/{sd-date-picker.config-6dvDZPGx.js → sd-date-picker.config-D-ks6qNf.js} +1 -1
- package/dist/esm/sd-date-picker_7.entry.js +25 -29
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +4 -4
- package/dist/esm/sd-field_3.entry.js +18 -12
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +2 -3
- package/dist/esm/sd-guide.entry.js +1 -1
- package/dist/esm/sd-key-value-table.entry.js +3 -3
- package/dist/esm/sd-linear-progress.entry.js +3 -3
- package/dist/esm/sd-loading-container.entry.js +23 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination_4.entry.js +17 -12
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-popup.entry.js +9 -14
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +7 -7
- package/dist/esm/sd-select_3.entry.js +10 -10
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/{sd-table.config-B3wuA5wX.js → sd-table.config-BbIWNUE2.js} +3 -3
- package/dist/esm/sd-table.entry.js +10 -10
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +2 -3
- package/dist/esm/sd-toast-container.entry.js +5 -5
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +3 -4
- package/dist/esm/{tooltipArrow-ByHjyr3Z.js → tooltipArrow-BAi-pktU.js} +1 -1
- package/dist/types/components/sd-field/sd-field.d.ts +5 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +1 -1
- package/dist/types/components/sd-loading-container/sd-loading-container.d.ts +6 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +2 -0
- package/dist/types/components/sd-pagination/sd-pagination.config.d.ts +1 -0
- package/dist/types/components.d.ts +13 -2
- package/hydrate/index.js +176 -153
- package/hydrate/index.mjs +176 -153
- package/package.json +1 -1
- package/dist/components/p-B3bERWUt.js +0 -1
- package/dist/components/p-BTWJkT9Y.js +0 -1
- package/dist/components/p-BVVYrEje.js +0 -1
- package/dist/components/p-B_12VhSA.js +0 -1
- package/dist/components/p-C3rAloxT.js +0 -1
- package/dist/components/p-CEVDmQdt.js +0 -1
- package/dist/components/p-Cmg10jpN.js +0 -1
- package/dist/components/p-DLZRxIKh.js +0 -1
- package/dist/components/p-DOXMJi-V.js +0 -1
- package/dist/components/p-DlROb9xa.js +0 -1
- package/dist/components/p-h-EFBJM4.js +0 -1
- package/dist/design-system/p-0fcb6fb3.entry.js +0 -1
- package/dist/design-system/p-12e7b9fc.entry.js +0 -1
- package/dist/design-system/p-250b8e5d.entry.js +0 -1
- package/dist/design-system/p-3f16f44b.entry.js +0 -1
- package/dist/design-system/p-43c47cd5.entry.js +0 -1
- package/dist/design-system/p-6e702726.entry.js +0 -1
- package/dist/design-system/p-7cf2305b.entry.js +0 -1
- package/dist/design-system/p-8be26652.entry.js +0 -1
- package/dist/design-system/p-BZ5lcC25.js +0 -2
- package/dist/design-system/p-Cmg10jpN.js +0 -1
- package/dist/design-system/p-DOXMJi-V.js +0 -1
- package/dist/design-system/p-c4e0c490.entry.js +0 -1
- package/dist/design-system/p-f418055d.entry.js +0 -1
- /package/dist/components/{p-D1vaasIp.js → p-BG5nGnBi.js} +0 -0
- /package/dist/components/{p-Dp6NByuZ.js → p-CGs6_91u.js} +0 -0
- /package/dist/design-system/{p-D1vaasIp.js → p-BG5nGnBi.js} +0 -0
- /package/dist/design-system/{p-DjcjlPt7.js → p-ClMlDGkX.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
var index$1 = require('./index-BUvXpPc3.js');
|
|
5
5
|
var sdSelect_config = require('./sd-select.config-C9Ohe1QA.js');
|
|
6
6
|
var sanitizeInlineHtml = require('./sanitize-inline-html-CRCAeQ46.js');
|
|
@@ -296,15 +296,15 @@ const SdSelect = class {
|
|
|
296
296
|
this.closeDropdown();
|
|
297
297
|
},
|
|
298
298
|
};
|
|
299
|
-
return (index.h("sd-field", { key: '
|
|
299
|
+
return (index.h("sd-field", { key: '426e5777a976da591726108e8a19c27822151c34', 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: () => {
|
|
300
300
|
this.hovered = true;
|
|
301
301
|
}, onMouseLeave: () => {
|
|
302
302
|
this.hovered = false;
|
|
303
|
-
} }, index.h("div", { key: '
|
|
303
|
+
} }, index.h("div", { key: '2e47d100a63bd6445f452701409cf05efabb30e0', class: "sd-select", ref: el => {
|
|
304
304
|
this.triggerRef = el;
|
|
305
|
-
} }, index.h("sd-select-trigger", { key: '
|
|
305
|
+
} }, index.h("sd-select-trigger", { key: '65763371f56bae558f927189931b567e5ca73df6', ref: el => {
|
|
306
306
|
this.triggerComponentRef = el;
|
|
307
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: '
|
|
307
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: '98518c875649c8e38c15565d9bfccf9c0b0eeb9a', ...portalProps }, index.h("sd-select-listbox", { key: 'be8e2c814bd30a57ee20b0a0b378f3809ffef26a', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.dropdownWidth || this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
308
308
|
}
|
|
309
309
|
static get watchers() { return {
|
|
310
310
|
"isOpen": [{
|
|
@@ -314,7 +314,7 @@ const SdSelect = class {
|
|
|
314
314
|
};
|
|
315
315
|
SdSelect.style = sdSelectCss();
|
|
316
316
|
|
|
317
|
-
const sdSelectListboxCss = () => `:host{display:block}:host .sd-select-listbox{display:flex;flex-direction:column;width:var(--listbox-trigger-width);max-width:var(--listbox-max-width);max-height:var(--listbox-max-height);border-radius:var(--listbox-radius);background:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);overflow:hidden;outline:none}:host .sd-select-listbox__list{flex:1;min-height:0;overflow-y:auto;padding-bottom:0}:host .sd-select-listbox__empty{padding:12px;text-align:center;font-size:12px;line-height:20px;color:#888888}`;
|
|
317
|
+
const sdSelectListboxCss = () => `:host{display:block}:host .sd-select-listbox{display:flex;flex-direction:column;width:var(--listbox-trigger-width);max-width:var(--listbox-max-width);max-height:var(--listbox-max-height);border-radius:var(--listbox-radius);background:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);overflow:hidden;outline:none}:host .sd-select-listbox__list{flex:1;min-height:0;overflow-y:auto;padding-bottom:0}:host .sd-select-listbox__list::-webkit-scrollbar{opacity:0;width:8px;background:#E5E5E5}:host .sd-select-listbox__list::-webkit-scrollbar:horizontal{height:8px}:host .sd-select-listbox__list::-webkit-scrollbar-thumb{height:80px;background-color:#CCCCCC;border-radius:4px}:host .sd-select-listbox__list::-webkit-scrollbar-track{background-color:#E5E5E5}:host .sd-select-listbox__empty{padding:12px;text-align:center;font-size:12px;line-height:20px;color:#888888}`;
|
|
318
318
|
|
|
319
319
|
const SdSelectListbox = class {
|
|
320
320
|
constructor(hostRef) {
|
|
@@ -681,9 +681,9 @@ const SdSelectListbox = class {
|
|
|
681
681
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
682
682
|
'--listbox-radius': `${sdSelect_config.LIST_BOX_LAYOUT.radius}px`,
|
|
683
683
|
};
|
|
684
|
-
return (index.h("div", { key: '
|
|
684
|
+
return (index.h("div", { key: '0e322ab6384a37b9ea83883e8012799f157ec833', class: "sd-select-listbox", style: cssVars }, this.showSearch && (index.h("sd-select-list-item-search", { key: '12d35a6ab654d4ce0cf504c0d1b1b6e4cc7eac78', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), index.h("div", { key: 'ba99682e9c486fe0efa02a888166a06a600c189e', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
685
685
|
this.listEl = el;
|
|
686
|
-
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '
|
|
686
|
+
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '8f66c32cc3f8287d04ad7081e71903ccb4467b4f', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (index.h("div", { class: "sd-select-listbox__empty" }, sdSelect_config.EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (index.h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
687
687
|
}
|
|
688
688
|
static get watchers() { return {
|
|
689
689
|
"searchKeyword": [{
|
|
@@ -751,7 +751,7 @@ const SdSelectTrigger = class {
|
|
|
751
751
|
? sdSelect_config.SELECT_COLORS.icon.disabled
|
|
752
752
|
: sdSelect_config.SELECT_COLORS.icon.default,
|
|
753
753
|
};
|
|
754
|
-
return (index.h("div", { key: '
|
|
754
|
+
return (index.h("div", { key: 'a261a38ab844572d693bdb736e8c6c5df8b2b0c6', ref: el => {
|
|
755
755
|
this.triggerEl = el;
|
|
756
756
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
757
757
|
'sd-select-trigger': true,
|
|
@@ -762,7 +762,7 @@ const SdSelectTrigger = class {
|
|
|
762
762
|
e.preventDefault();
|
|
763
763
|
this.handleClick();
|
|
764
764
|
}
|
|
765
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: '
|
|
765
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: 'c8255f624c101fa984d7dc081231f0ce957f8707', class: "sd-select-trigger__content" }, hasValue && sdSelect_config.isHtmlLabel(this.displayText) ? (index.h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml.sanitizeInlineHtml(this.displayText)) })) : (index.h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), index.h("sd-icon", { key: 'bf2145a098a31eba8a5210eb265fb252b84c9e0b', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
766
766
|
'sd-select-trigger__icon': true,
|
|
767
767
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
768
768
|
} }))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
var switchTokens = {
|
|
6
6
|
"switch": {
|
|
@@ -109,7 +109,7 @@ const SdSwitch = class {
|
|
|
109
109
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
110
110
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
111
111
|
};
|
|
112
|
-
return (index.h("label", { key: '
|
|
112
|
+
return (index.h("label", { key: 'dded99ece17ee7308da9c7183a725493f705caf2', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, index.h("input", { key: '8ca9b17fbbd97cdfe351f06fa5dba7efb22faf39', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), index.h("div", { key: 'dffb2503df8755076218fc24ce974ed5cccb37c3', class: "sd-switch__track" }, index.h("div", { key: '52b8d7b125bf3a2fdddbcfe4690933432cb0ff29', class: "sd-switch__knob" })), this.label && index.h("span", { key: 'e4e62e02aa1d7336bf1de5add45ed0b2dbecbcd1', class: "sd-switch__label" }, this.label)));
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
|
-
var sdTable_config = require('./sd-table.config-
|
|
6
|
-
require('./component.table-
|
|
5
|
+
var sdTable_config = require('./sd-table.config-DzC55sap.js');
|
|
6
|
+
require('./component.table-BrI3b--h.js');
|
|
7
7
|
require('./system-MjrAugX-.js');
|
|
8
8
|
|
|
9
9
|
let urlAlphabet =
|
|
@@ -19,7 +19,7 @@ let nanoid = (size = 21) => {
|
|
|
19
19
|
return id
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
const sdTableCss = () => `sd-table,:host{display:block;width:100%;height:var(--table-host-height);max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:100%;width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:calc(100% - var(--pagination-height, 0px));border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--radius-useTop{border-radius:0 0 var(--table-radius, 8px) var(--table-radius, 8px)}.sd-table__wrapper--radius-full{border-radius:0}.sd-table__scroll-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative;font-family:var(--table-body-font-family, inherit);font-weight:var(--table-body-font-weight, 400);font-size:var(--table-body-font-size, 12px);line-height:var(--table-body-line-height, 20px);text-decoration:var(--table-body-text-decoration, none);overflow:auto;background:#FFFFFF}.sd-table__scroll-container--loading{overflow:hidden !important;pointer-events:none}.sd-table__scroll-container--no-data{overflow:hidden;pointer-events:none}.sd-table__no-data{position:absolute;top:36px;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:var(--table-body-font-size, 12px);color:#888888;pointer-events:none;z-index:200;background:rgba(255, 255, 255, 0.6)}.sd-table__no-data-header-overlay{position:absolute;top:0;left:0;right:0;height:36px;background:rgba(255, 255, 255, 0.6);z-index:210;pointer-events:none}.sd-table__no-data-content{pointer-events:auto;min-height:60px;width:100%;display:flex;align-items:center;justify-content:center}.sd-table__loading{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center;pointer-events:none}.sd-table{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table--selectable sd-thead,.sd-table--selectable sd-tbody{--selectable:true}.sd-table--sticky-header sd-thead thead{position:sticky;top:0;z-index:120}.sd-table--sticky-column sd-thead,.sd-table--sticky-column sd-tbody{--sticky-column:true}.sd-table--scrolled-left sd-thead,.sd-table--scrolled-left sd-tbody{--scrolled-left:true}.sd-table--scrolled-right sd-thead,.sd-table--scrolled-right sd-tbody{--scrolled-right:true}.sd-table--resizable sd-thead{--resizable:true}.sd-table--no-data sd-thead{opacity:0.4}.sd-table__pagination{position:relative;background:#F9F9F9;height:48px;display:flex;align-items:center;justify-content:center;border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);margin-top:-1px;border-radius:var(--table-radius, 8px)}.sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}`;
|
|
22
|
+
const sdTableCss = () => `sd-table,:host{display:block;width:100%;height:var(--table-host-height);max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:100%;width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:calc(100% - var(--pagination-height, 0px));border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--radius-useTop{border-radius:0 0 var(--table-radius, 8px) var(--table-radius, 8px)}.sd-table__wrapper--radius-full{border-radius:0}.sd-table__scroll-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative;font-family:var(--table-body-font-family, inherit);font-weight:var(--table-body-font-weight, 400);font-size:var(--table-body-font-size, 12px);line-height:var(--table-body-line-height, 20px);text-decoration:var(--table-body-text-decoration, none);overflow:auto;background:#FFFFFF}.sd-table__scroll-container::-webkit-scrollbar{opacity:0;width:8px;background:#E5E5E5}.sd-table__scroll-container::-webkit-scrollbar:horizontal{height:8px}.sd-table__scroll-container::-webkit-scrollbar-thumb{height:80px;background-color:#CCCCCC;border-radius:4px}.sd-table__scroll-container::-webkit-scrollbar-track{background-color:#E5E5E5}.sd-table__scroll-container--loading{overflow:hidden !important;pointer-events:none}.sd-table__scroll-container--no-data{overflow:hidden;pointer-events:none}.sd-table__no-data{position:absolute;top:36px;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:var(--table-body-font-size, 12px);color:#888888;pointer-events:none;z-index:200;background:rgba(255, 255, 255, 0.6)}.sd-table__no-data-header-overlay{position:absolute;top:0;left:0;right:0;height:36px;background:rgba(255, 255, 255, 0.6);z-index:210;pointer-events:none}.sd-table__no-data-content{pointer-events:auto;min-height:60px;width:100%;display:flex;align-items:center;justify-content:center}.sd-table__loading{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center;pointer-events:none}.sd-table{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table--selectable sd-thead,.sd-table--selectable sd-tbody{--selectable:true}.sd-table--sticky-header sd-thead thead{position:sticky;top:0;z-index:120}.sd-table--sticky-column sd-thead,.sd-table--sticky-column sd-tbody{--sticky-column:true}.sd-table--scrolled-left sd-thead,.sd-table--scrolled-left sd-tbody{--scrolled-left:true}.sd-table--scrolled-right sd-thead,.sd-table--scrolled-right sd-tbody{--scrolled-right:true}.sd-table--resizable sd-thead{--resizable:true}.sd-table--no-data sd-thead{opacity:0.4}.sd-table__pagination{position:relative;background:#F9F9F9;height:48px;display:flex;align-items:center;justify-content:center;border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);margin-top:-1px;border-radius:var(--table-radius, 8px)}.sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}`;
|
|
23
23
|
|
|
24
24
|
const SdTable = class {
|
|
25
25
|
constructor(hostRef) {
|
|
@@ -880,25 +880,25 @@ const SdTable = class {
|
|
|
880
880
|
'--table-selectable-width': `${sdTable_config.TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
881
881
|
'--table-host-height': hostHeight,
|
|
882
882
|
};
|
|
883
|
-
return (index.h(index.Host, { key: '
|
|
883
|
+
return (index.h(index.Host, { key: 'b90b9865f78c2b42c3c13ad27ed968dd97827eb6', style: hostStyle }, index.h("div", { key: '2eb291b03b219a3abb4da5967c6d0f43195b458e', class: "sd-table__container", style: {
|
|
884
884
|
'--table-width': this.width,
|
|
885
885
|
'--pagination-height': `${paginationHeight}px`,
|
|
886
|
-
} }, index.h("div", { key: '
|
|
886
|
+
} }, index.h("div", { key: '999feaffbf82db9233416a1d66974e8859b9b3a0', class: {
|
|
887
887
|
'sd-table__wrapper': true,
|
|
888
888
|
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
889
889
|
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
890
|
-
} }, index.h("div", { key: '
|
|
890
|
+
} }, index.h("div", { key: 'ff0a04325ab9fe1ba5e6b25f52bb8265226fbba4', class: {
|
|
891
891
|
'sd-table__scroll-container': true,
|
|
892
892
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
893
893
|
'sd-table__scroll-container--no-data': isNoData,
|
|
894
|
-
} }, this.isLoading && (index.h("div", { key: '
|
|
894
|
+
} }, this.isLoading && (index.h("div", { key: '1a4dbf4a721240b3395230997c18c8ef989bbffc', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, index.h("sd-circle-progress", { key: '793a6772ef4c792e7f50c2ad90d43bdfbdde11a0', indeterminate: true }))), isNoData && (index.h(index.h.Fragment, null, index.h("div", { key: '13b76f695edddfa3d4a13bcb1091f95cafb1ae17', class: "sd-table__no-data-header-overlay" }), index.h("div", { key: 'f271bfa20d06cba0cc6c5fe6b5af5c874c1e0682', class: "sd-table__no-data" }, index.h("div", { key: '6791f70e0b4cd1226bdcc16414249ad178b70396', class: "sd-table__no-data-content", ref: el => {
|
|
895
895
|
this.noDataContentEl = el;
|
|
896
896
|
if (el)
|
|
897
897
|
this.syncNoDataContentObserver();
|
|
898
|
-
} }, index.h("slot", { key: '
|
|
898
|
+
} }, index.h("slot", { key: '9cba0ff5c5ea3b4c78ccdb961de9cfe3ef2ac1e9', name: "no-data" }, index.h("span", { key: '1022372f37f1564b0d636c888a17cb5ab5ac2e35' }, this.resolvedNoDataLabel)))))), index.h("table", { key: 'e3d8c7dec8b3c76896b3063266dd5450bbfa7c13', class: this.tableClasses }, this.autoThead ? (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-thead", { rows: this.rows ?? [] }))) : (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
899
899
|
this.pagination.rowsPerPage > 0 &&
|
|
900
900
|
this.rowCount > 0 &&
|
|
901
|
-
!this.useVirtualScroll && (index.h("div", { key: '
|
|
901
|
+
!this.useVirtualScroll && (index.h("div", { key: '5410b53a9182f97406a0992464bc3435eb8439b1', class: "sd-table__pagination" }, index.h("sd-pagination", { key: 'aa237fe475797dd626856f5335395bdfa870f6db', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (index.h("sd-select", { key: 'd2b98c053c6d63f0bbea73d66779dfa5c1828b5a', value: this.useInternalPagination
|
|
902
902
|
? this.innerRowsPerPage
|
|
903
903
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
904
904
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var component_table = require('./component.table-
|
|
3
|
+
var component_table = require('./component.table-BrI3b--h.js');
|
|
4
4
|
var system = require('./system-MjrAugX-.js');
|
|
5
5
|
|
|
6
6
|
// ── Header Tokens ──
|
|
@@ -33,8 +33,8 @@ const TABLE_BODY_LAYOUT = {
|
|
|
33
33
|
height: component_table.tableTokens.table.body.dense.height,
|
|
34
34
|
paddingY: component_table.tableTokens.table.body.dense.paddingY,
|
|
35
35
|
},
|
|
36
|
-
paddingX: component_table.tableTokens.table.body.paddingX,
|
|
37
|
-
framePadding: component_table.tableTokens.table.body.frame
|
|
36
|
+
paddingX: component_table.tableTokens.table.body.paddingX.default,
|
|
37
|
+
framePadding: component_table.tableTokens.table.body.paddingX.frame,
|
|
38
38
|
};
|
|
39
39
|
const TABLE_BODY_TYPOGRAPHY = {
|
|
40
40
|
fontFamily: component_table.tableTokens.table.body.typography.fontFamily,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const tab = {
|
|
6
6
|
main: {
|
|
@@ -207,7 +207,7 @@ const SdTabs = class {
|
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
render() {
|
|
210
|
-
return (index.h("div", { key: '
|
|
210
|
+
return (index.h("div", { key: 'd5df329922f73444775ec827ce8cf3850c369131', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
211
211
|
const badgeName = this.getBadgeName(tab);
|
|
212
212
|
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
213
213
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
|
|
6
6
|
const sdTdCss = () => `sd-td *{box-sizing:border-box}sd-td{display:contents}sd-td.align-left{text-align:left}sd-td.align-center{text-align:center}sd-td.align-right{text-align:right}`;
|
|
@@ -167,7 +167,7 @@ const SdTd = class {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
return (index.h(index.Host, { key: '
|
|
170
|
+
return (index.h(index.Host, { key: '2fce45ffda30fd75a0c0ef2ff0de5896c409c108', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '3e2131547d544d01c745017f3375a26df35a9d6e' })));
|
|
171
171
|
}
|
|
172
172
|
static get watchers() { return {
|
|
173
173
|
"field": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const textLink = {
|
|
6
6
|
sm: {
|
|
@@ -69,8 +69,7 @@ const textLink = {
|
|
|
69
69
|
},
|
|
70
70
|
gap: "8",
|
|
71
71
|
icon: "20"
|
|
72
|
-
}
|
|
73
|
-
};
|
|
72
|
+
}};
|
|
74
73
|
var textLinkTokens = {
|
|
75
74
|
textLink: textLink
|
|
76
75
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_DURATION = 4000;
|
|
6
6
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -161,9 +161,9 @@ const SdToastContainer = class {
|
|
|
161
161
|
'top-left': { top: '20px', left: '20px' },
|
|
162
162
|
'top-center': { top: '20px', left: '50%', transform: 'translateX(-50%)' },
|
|
163
163
|
'top-right': { top: '20px', right: '20px' },
|
|
164
|
-
'bottom-left': { bottom: '
|
|
165
|
-
'bottom-center': { bottom: '
|
|
166
|
-
'bottom-right': { bottom: '
|
|
164
|
+
'bottom-left': { bottom: '100px', left: '20px' },
|
|
165
|
+
'bottom-center': { bottom: '100px', left: '50%', transform: 'translateX(-50%)' },
|
|
166
|
+
'bottom-right': { bottom: '100px', right: '20px' },
|
|
167
167
|
};
|
|
168
168
|
return { ...base, ...posMap[position] };
|
|
169
169
|
}
|
|
@@ -243,7 +243,7 @@ const SdToastContainer = class {
|
|
|
243
243
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
244
244
|
const indexMap = new Map();
|
|
245
245
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
246
|
-
return (index.h("div", { key: '
|
|
246
|
+
return (index.h("div", { key: '17526924c57e06a77725f66233f5b5360097fac0', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
247
247
|
this.expanded = true;
|
|
248
248
|
this.pauseTimers();
|
|
249
249
|
}, onMouseLeave: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const toast = {
|
|
6
6
|
icon: "16",
|
|
@@ -93,12 +93,12 @@ const SdToast = class {
|
|
|
93
93
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
94
94
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
95
95
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
96
|
-
return (index.h("div", { key: '
|
|
96
|
+
return (index.h("div", { key: '124b32e52e9dfd7a09ac67ffb8032bf2217e9c05', style: {
|
|
97
97
|
'--sd-toast-bg': typeConfig.bg,
|
|
98
98
|
'--sd-toast-text': typeConfig.content,
|
|
99
99
|
'--sd-toast-icon': iconColor,
|
|
100
100
|
'--sd-toast-link': linkColor,
|
|
101
|
-
} }, index.h("div", { key: '
|
|
101
|
+
} }, index.h("div", { key: '54eddcc1fe8a0eab427a084e589c0f9a2e0412bf', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '0ff05c4e7cb8dda2f2732cd09bfc586cb21020b6', class: "sd-toast__icon" }, index.h("sd-icon", { key: '41e1e259ef605454ee680bbd3228c418f013283e', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '7db4e1bc0ce80bd1887476ac728a7999cb4fee93', class: "sd-toast__content" }, index.h("span", { key: '88925dfa075a5da813466a74a0f5fa4cb61e3bc9', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '068aaf887a6fe8c18f7db6e513778d862e09bd56', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: 'fb066d2cfaad7668aec48caafc6eb6d6e19ebaee', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: 'e610479efe5034a222aa98d19232682243214ee0', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
SdToast.style = sdToastCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const toggle = {
|
|
6
6
|
height: "28",
|
|
@@ -30,8 +30,7 @@ const toggle = {
|
|
|
30
30
|
hover: "#FFFFFF",
|
|
31
31
|
select: "#0075FF",
|
|
32
32
|
disabled: "#888888"
|
|
33
|
-
}
|
|
34
|
-
};
|
|
33
|
+
}};
|
|
35
34
|
var toggleTokens = {
|
|
36
35
|
toggle: toggle
|
|
37
36
|
};
|
|
@@ -124,7 +123,7 @@ const SdToggle = class {
|
|
|
124
123
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
125
124
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
126
125
|
};
|
|
127
|
-
return (index.h("label", { key: '
|
|
126
|
+
return (index.h("label", { key: '2b988ca6148da376d9af21538b03764423cb3a0a', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: 'b1bd161b88a627ba296197902d46181925511c70', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
128
127
|
}
|
|
129
128
|
};
|
|
130
129
|
SdToggle.style = sdToggleCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const TooltipArrow = (props) => (index.h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, index.h("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
|
|
6
6
|
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import modalTokens from "../../tokens/generated/component.modal.json";
|
|
2
|
+
import overlayTokens from "../../tokens/generated/component.overlay.json";
|
|
2
3
|
const { modal } = modalTokens;
|
|
3
4
|
const action = modal.action;
|
|
5
|
+
const overlayHeader = overlayTokens.overlay.header;
|
|
4
6
|
export const ACTION_MODAL_LAYOUT = {
|
|
5
7
|
radius: Number(modal.radius),
|
|
6
8
|
bg: modal.bg,
|
|
7
|
-
headerPaddingX: Number(
|
|
8
|
-
headerPaddingY: Number(
|
|
9
|
-
headerGap: Number(
|
|
9
|
+
headerPaddingX: Number(overlayHeader.paddingX),
|
|
10
|
+
headerPaddingY: Number(overlayHeader.paddingY),
|
|
11
|
+
headerGap: Number(overlayHeader.gap),
|
|
10
12
|
bodyPaddingX: Number(action.body.paddingX),
|
|
11
13
|
bodyPaddingBottom: Number(action.body.paddingBottom),
|
|
12
14
|
footerPaddingX: Number(action.footer.paddingX),
|
|
@@ -16,9 +18,9 @@ export const ACTION_MODAL_LAYOUT = {
|
|
|
16
18
|
footerBorder: action.footer.border,
|
|
17
19
|
};
|
|
18
20
|
export const ACTION_MODAL_TITLE = {
|
|
19
|
-
color:
|
|
20
|
-
fontFamily:
|
|
21
|
-
fontWeight:
|
|
22
|
-
fontSize: Number(
|
|
23
|
-
lineHeight: Number(
|
|
21
|
+
color: overlayHeader.title.color,
|
|
22
|
+
fontFamily: overlayHeader.title.typography.fontFamily,
|
|
23
|
+
fontWeight: overlayHeader.title.typography.fontWeight,
|
|
24
|
+
fontSize: Number(overlayHeader.title.typography.fontSize),
|
|
25
|
+
lineHeight: Number(overlayHeader.title.typography.lineHeight),
|
|
24
26
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import spinnerTokens from "../../tokens/generated/component.spinner.json";
|
|
2
1
|
import progressTokens from "../../tokens/generated/component.progress.json";
|
|
3
2
|
import systemTokens from "../../tokens/generated/system.json";
|
|
4
3
|
export const CIRCLE_PROGRESS_LABEL_COLOR = progressTokens.progress.color.label;
|
|
@@ -6,8 +5,8 @@ export const CIRCLE_PROGRESS_PERCENT_ZERO_COLOR = systemTokens.color.fg.tertiary
|
|
|
6
5
|
// TODO: error/complete 색상 및 inverse 흰색은 토큰 반영 후 교체
|
|
7
6
|
export const CIRCLE_PROGRESS_COLOR_MAP = {
|
|
8
7
|
primary: {
|
|
9
|
-
arc:
|
|
10
|
-
track:
|
|
8
|
+
arc: progressTokens.progress.active.color,
|
|
9
|
+
track: progressTokens.progress.color.track,
|
|
11
10
|
},
|
|
12
11
|
inverse: {
|
|
13
12
|
arc: '#FFFFFF',
|
|
@@ -15,11 +14,11 @@ export const CIRCLE_PROGRESS_COLOR_MAP = {
|
|
|
15
14
|
},
|
|
16
15
|
error: {
|
|
17
16
|
arc: '#E30000',
|
|
18
|
-
track:
|
|
17
|
+
track: progressTokens.progress.color.track,
|
|
19
18
|
},
|
|
20
19
|
complete: {
|
|
21
20
|
arc: '#01BB4B',
|
|
22
|
-
track:
|
|
21
|
+
track: progressTokens.progress.color.track,
|
|
23
22
|
},
|
|
24
23
|
};
|
|
25
24
|
export const CIRCLE_PROGRESS_VIEWBOX_SIZE = 80;
|
|
@@ -54,8 +54,8 @@ export const DROPDOWN_CHEVRON_ICON_SIZE = {
|
|
|
54
54
|
// 버튼 자체의 min-width (px). split 여부에 따라 chevron 버튼이 추가되므로 별도 값을 지정.
|
|
55
55
|
// TODO: 디자인 토큰으로 관리될 때 대체 예정
|
|
56
56
|
export const DROPDOWN_BUTTON_MIN_WIDTH = {
|
|
57
|
-
xs: { default:
|
|
58
|
-
sm: { default:
|
|
57
|
+
xs: { default: 64, split: 72 },
|
|
58
|
+
sm: { default: 72, split: 88 },
|
|
59
59
|
md: { default: 100, split: 106 },
|
|
60
60
|
};
|
|
61
61
|
export const DROPDOWN_DISABLED_BACKGROUND = buttonTokens.button.bg.disabled;
|
|
@@ -112,6 +112,11 @@ sd-field .sd-field.sd-field--focus:not(.sd-field--readonly) .sd-field__wrapper .
|
|
|
112
112
|
border: 1px solid var(--sd-system-color-field-border-focus) !important;
|
|
113
113
|
box-shadow: 0px 0px 4px 0px rgba(0, 113, 255, 0.4);
|
|
114
114
|
}
|
|
115
|
+
sd-field .sd-field.sd-field--borderless .sd-field__wrapper .sd-field__control, sd-field .sd-field.sd-field--borderless.sd-field--error .sd-field__wrapper .sd-field__control:not(:hover), sd-field .sd-field.sd-field--borderless.sd-field--pass .sd-field__wrapper .sd-field__control, sd-field .sd-field.sd-field--borderless:not(.sd-field--disabled):not(.sd-field--readonly) .sd-field__wrapper .sd-field__control:hover, sd-field .sd-field.sd-field--borderless.sd-field--focus:not(.sd-field--readonly) .sd-field__wrapper .sd-field__control {
|
|
116
|
+
border-color: transparent !important;
|
|
117
|
+
background: transparent !important;
|
|
118
|
+
box-shadow: none !important;
|
|
119
|
+
}
|
|
115
120
|
sd-field .sd-field .sd-field__error-message {
|
|
116
121
|
color: var(--sd-field-error-message-color);
|
|
117
122
|
font-size: var(--sd-field-error-message-font-size);
|
|
@@ -38,6 +38,11 @@ export class SdField {
|
|
|
38
38
|
width = '';
|
|
39
39
|
/** 필드 크기 */
|
|
40
40
|
size = 'sm';
|
|
41
|
+
/**
|
|
42
|
+
* 테두리 박스 제거 (inline 컨트롤용) — border/배경/hover·focus 강조만 사라지고
|
|
43
|
+
* label·hint·errorMessage 등 나머지 필드 구성은 그대로 동작한다.
|
|
44
|
+
*/
|
|
45
|
+
borderless = false;
|
|
41
46
|
// props - label
|
|
42
47
|
/** 레이블 텍스트 */
|
|
43
48
|
label = '';
|
|
@@ -205,18 +210,19 @@ export class SdField {
|
|
|
205
210
|
: {}),
|
|
206
211
|
}
|
|
207
212
|
: {};
|
|
208
|
-
return (h("div", { key: '
|
|
213
|
+
return (h("div", { key: 'bce0bc8ccc19e41c2a61980bd12f07d7f8838569', class: {
|
|
209
214
|
'sd-field': true,
|
|
210
215
|
'sd-field--has-label': this.label !== '',
|
|
211
216
|
'sd-field--has-addon': addon !== '',
|
|
217
|
+
'sd-field--borderless': this.borderless,
|
|
212
218
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
213
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '
|
|
219
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: 'c6c4e3ec6e018ebd0dc6fbbae5fbaef4ea6503e5', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: 'bd778a24325412924e0a331db592535e4b4e542b', class: "sd-field__main" }, h("div", { key: '485cfbdbfa7299cb27d84e61306d6e2cf196d071', class: {
|
|
214
220
|
'sd-field__control': true,
|
|
215
221
|
'sd-field__control--has-addon': addon !== '',
|
|
216
222
|
}, style: this.width !== '' && this.width !== 0
|
|
217
223
|
? { width: typeof this.width === 'number' ? `${this.width}px` : this.width }
|
|
218
|
-
: {} }, addon && (h("div", { key: '
|
|
219
|
-
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '
|
|
224
|
+
: {} }, addon && (h("div", { key: '510238ac22b7e923724cc20abf2541adbddcb594', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: '2cca5b62cbe56050acd536764c33cbc3009f740b', name: this.icon.name, size: this.icon.size ??
|
|
225
|
+
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '470c0d559409a11f1c5650e88a50555a4656d3f9' })), this.errorMsg !== '' || this.errorMessage !== '' ? (h("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && h("div", { class: "sd-field__hint" }, this.hint))))));
|
|
220
226
|
}
|
|
221
227
|
renderLabel(label) {
|
|
222
228
|
if (label == null || label === '')
|
|
@@ -488,6 +494,26 @@ export class SdField {
|
|
|
488
494
|
"attribute": "size",
|
|
489
495
|
"defaultValue": "'sm'"
|
|
490
496
|
},
|
|
497
|
+
"borderless": {
|
|
498
|
+
"type": "boolean",
|
|
499
|
+
"mutable": false,
|
|
500
|
+
"complexType": {
|
|
501
|
+
"original": "boolean",
|
|
502
|
+
"resolved": "boolean",
|
|
503
|
+
"references": {}
|
|
504
|
+
},
|
|
505
|
+
"required": false,
|
|
506
|
+
"optional": false,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": "\uD14C\uB450\uB9AC \uBC15\uC2A4 \uC81C\uAC70 (inline \uCEE8\uD2B8\uB864\uC6A9) \u2014 border/\uBC30\uACBD/hover\u00B7focus \uAC15\uC870\uB9CC \uC0AC\uB77C\uC9C0\uACE0\nlabel\u00B7hint\u00B7errorMessage \uB4F1 \uB098\uBA38\uC9C0 \uD544\uB4DC \uAD6C\uC131\uC740 \uADF8\uB300\uB85C \uB3D9\uC791\uD55C\uB2E4."
|
|
510
|
+
},
|
|
511
|
+
"getter": false,
|
|
512
|
+
"setter": false,
|
|
513
|
+
"reflect": false,
|
|
514
|
+
"attribute": "borderless",
|
|
515
|
+
"defaultValue": "false"
|
|
516
|
+
},
|
|
491
517
|
"label": {
|
|
492
518
|
"type": "string",
|
|
493
519
|
"mutable": false,
|
|
@@ -12,7 +12,7 @@ sd-file-picker {
|
|
|
12
12
|
|
|
13
13
|
.sd-file-picker__chip-list {
|
|
14
14
|
display: flex;
|
|
15
|
-
flex-
|
|
15
|
+
flex-flow: row wrap;
|
|
16
16
|
gap: 8px;
|
|
17
17
|
margin-top: 8px;
|
|
18
18
|
}
|
|
@@ -90,15 +90,12 @@ sd-file-picker {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.sd-file-picker--inline .sd-file-picker__content {
|
|
93
|
-
border: none;
|
|
94
|
-
background-color: transparent;
|
|
95
93
|
padding: 0;
|
|
96
|
-
height: auto;
|
|
97
94
|
}
|
|
98
95
|
.sd-file-picker--inline .sd-file-picker__text {
|
|
99
96
|
color: var(--sd-file-picker-placeholder-color);
|
|
100
97
|
}
|
|
101
|
-
.sd-file-picker--inline:
|
|
98
|
+
.sd-file-picker--inline:not(.sd-file-picker--inline-disabled) .sd-file-picker__content:hover .sd-file-picker__text {
|
|
102
99
|
color: var(--sd-file-picker-text-color);
|
|
103
100
|
}
|
|
104
101
|
.sd-file-picker--inline .sd-file-picker__text--active {
|
|
@@ -9,7 +9,7 @@ export class SdFilePicker {
|
|
|
9
9
|
placeholder = 'Click to upload';
|
|
10
10
|
/** 비활성 상태 여부 */
|
|
11
11
|
disabled = false;
|
|
12
|
-
/** sd-field
|
|
12
|
+
/** 인라인 표시 — sd-field 테두리 박스만 사라지고 label/rules/hint 는 그대로 동작 */
|
|
13
13
|
inline = false;
|
|
14
14
|
/** 다중 파일 선택 여부 */
|
|
15
15
|
multiple = false;
|
|
@@ -170,14 +170,10 @@ export class SdFilePicker {
|
|
|
170
170
|
this.fileInputRef?.click();
|
|
171
171
|
};
|
|
172
172
|
hasFiles() {
|
|
173
|
-
if (this.multiple)
|
|
174
|
-
return false;
|
|
175
|
-
if (!this.internalValue)
|
|
176
|
-
return false;
|
|
177
173
|
if (Array.isArray(this.internalValue)) {
|
|
178
174
|
return this.internalValue.length > 0;
|
|
179
175
|
}
|
|
180
|
-
return
|
|
176
|
+
return !!this.internalValue;
|
|
181
177
|
}
|
|
182
178
|
hasChips() {
|
|
183
179
|
return Array.isArray(this.internalValue) && this.internalValue.length > 0;
|
|
@@ -185,6 +181,9 @@ export class SdFilePicker {
|
|
|
185
181
|
getDisplayText() {
|
|
186
182
|
if (!this.hasFiles())
|
|
187
183
|
return this.placeholder ?? 'Click to upload';
|
|
184
|
+
if (this.multiple && Array.isArray(this.internalValue)) {
|
|
185
|
+
return this.internalValue.map(f => f.name).join(', ');
|
|
186
|
+
}
|
|
188
187
|
return this.internalValue?.name || (this.placeholder ?? 'Click to upload');
|
|
189
188
|
}
|
|
190
189
|
handleChipRemove = (index) => {
|
|
@@ -226,23 +225,21 @@ export class SdFilePicker {
|
|
|
226
225
|
'--sd-system-size-field-sm-height': `${FILE_PICKER_LAYOUT.height}px`,
|
|
227
226
|
'--sd-system-radius-field-sm': `${FILE_PICKER_LAYOUT.radius}px`,
|
|
228
227
|
};
|
|
229
|
-
const content = (h("div", { role: "button", tabindex: this.disabled ? -1 : 0, class: "sd-file-picker__content", onClick: this.handleClick, onKeyDown: e => {
|
|
228
|
+
const content = (h("div", { key: 'f686c8d06b3dbecc037e21f41e7f307d08349e8b', role: "button", tabindex: this.disabled ? -1 : 0, class: "sd-file-picker__content", onClick: this.handleClick, onKeyDown: e => {
|
|
230
229
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
231
230
|
e.preventDefault();
|
|
232
231
|
this.handleClick();
|
|
233
232
|
}
|
|
234
|
-
} }, h("input", { ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder ?? 'Click to upload' }), h("sd-icon", { name: "attachFile", size: Number(FILE_PICKER_LAYOUT.iconSize), color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { ref: el => (this.fileNamesRef = el), class: {
|
|
233
|
+
} }, h("input", { key: 'a519e5a7c253d9d9bba21401b2f83092aa8a3a91', ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder ?? 'Click to upload' }), h("sd-icon", { key: 'b9e7548365f1d54957b6e575d3532a833e301a98', name: "attachFile", size: Number(FILE_PICKER_LAYOUT.iconSize), color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { key: 'cb28d1c3abf0e9c30454f01bb8c81cb0ea4477af', ref: el => (this.fileNamesRef = el), class: {
|
|
235
234
|
'sd-file-picker__text': true,
|
|
236
235
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
237
236
|
'sd-file-picker__text--active': hasFiles,
|
|
238
|
-
} }, displayText), !this.disabled && hasFiles && (h("sd-ghost-button", { icon: "close", size: "xxs", ariaLabel: "clear", disabled: this.disabled, class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { class: "sd-file-picker__tooltip" }, displayText))));
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
return (h("div", { class: "sd-file-picker__wrapper", style: cssVars }, h("sd-field", { name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content), this.renderChipList()));
|
|
237
|
+
} }, displayText), !this.disabled && hasFiles && (h("sd-ghost-button", { key: 'c97d7c306ef2087a9874a16b6e485a94c7cc571f', icon: "close", size: "xxs", ariaLabel: "clear", disabled: this.disabled, class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { key: '293a4c75766be383a4ad6f79052111c09608e0e2', class: "sd-file-picker__tooltip" }, displayText))));
|
|
238
|
+
return (h("div", { key: '4e25add1b74a232e8786efca26f87ccb5d48f19d', class: {
|
|
239
|
+
'sd-file-picker__wrapper': true,
|
|
240
|
+
'sd-file-picker--inline': this.inline,
|
|
241
|
+
'sd-file-picker--inline-disabled': this.inline && this.disabled,
|
|
242
|
+
}, style: cssVars }, h("sd-field", { key: 'fda8f53237f5efb4f1dec906d87851dd10c03593', borderless: this.inline, name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content), this.renderChipList()));
|
|
246
243
|
}
|
|
247
244
|
static get is() { return "sd-file-picker"; }
|
|
248
245
|
static get originalStyleUrls() {
|
|
@@ -332,7 +329,7 @@ export class SdFilePicker {
|
|
|
332
329
|
"optional": false,
|
|
333
330
|
"docs": {
|
|
334
331
|
"tags": [],
|
|
335
|
-
"text": "sd-field \
|
|
332
|
+
"text": "\uC778\uB77C\uC778 \uD45C\uC2DC \u2014 sd-field \uD14C\uB450\uB9AC \uBC15\uC2A4\uB9CC \uC0AC\uB77C\uC9C0\uACE0 label/rules/hint \uB294 \uADF8\uB300\uB85C \uB3D9\uC791"
|
|
336
333
|
},
|
|
337
334
|
"getter": false,
|
|
338
335
|
"setter": false,
|