@sellmate/design-system 1.5.0 → 1.7.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/{component.table-qOFez3z3.js → component.table-DIxmbGBT.js} +4 -1
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-Cw-78mnC.js → index-BGwB03Tk.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- 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-DH08UNfl.js → sd-button.config-BSHkfgdC.js} +17 -12
- package/dist/cjs/sd-button_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-calendar_2.cjs.entry.js +1 -1
- 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.cjs.entry.js +4 -4
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -2
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +56 -25
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +27 -0
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +47 -22
- package/dist/cjs/sd-field_3.cjs.entry.js +7 -6
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +4 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +31 -51
- package/dist/cjs/sd-popover.cjs.entry.js +10 -8
- package/dist/cjs/sd-popup.cjs.entry.js +3 -3
- package/dist/cjs/sd-portal.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +7 -7
- package/dist/cjs/sd-select_3.cjs.entry.js +9 -9
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +15 -49
- package/dist/cjs/{sd-table.config-DqgNOdXO.js → sd-table.config-BjJW74Zx.js} +7 -3
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-tag.cjs.entry.js +1 -1
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{system-wrt-tcOq.js → system-CdAyz3ej.js} +3 -0
- package/dist/cjs/{tooltipArrow-BjSFKIUq.js → tooltipArrow-COD-SNZL.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sd-chip/sd-chip.js +3 -3
- package/dist/collection/components/sd-divider/sd-divider.config.js +4 -0
- package/dist/collection/components/sd-divider/sd-divider.css +25 -0
- package/dist/collection/components/sd-divider/sd-divider.js +47 -0
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +3 -3
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +29 -10
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +74 -15
- package/dist/collection/components/sd-field/sd-field.js +2 -1
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +15 -1
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +44 -16
- 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-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 +21 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +3 -0
- package/dist/collection/components/sd-number-input/sd-number-input.js +75 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +13 -44
- 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.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 +4 -1
- package/dist/collection/components/sd-table/sd-table.css +1 -1
- package/dist/collection/components/sd-table/sd-table.js +17 -51
- 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.css +15 -5
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +6 -5
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +6 -7
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +20 -40
- 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 +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CJ-QHG0F.js → p-2aQ4cVXp.js} +1 -1
- package/dist/components/{p-BGb86o0p.js → p-5_BC8C6x.js} +1 -1
- package/dist/components/{p-wOAxmZ1V.js → p-BDJJQALT.js} +1 -1
- package/dist/components/{p-HK6Bwtz8.js → p-BFAQ4nY2.js} +1 -1
- package/dist/components/{p-AO2RGdjH.js → p-BNXKU1BW.js} +1 -1
- package/dist/components/{p-DeK3og10.js → p-BVvVDIo0.js} +1 -1
- package/dist/components/{p-FKKk7Bk8.js → p-BYRvYsiC.js} +1 -1
- package/dist/components/{p-DmaopssQ.js → p-B_2U9h3P.js} +1 -1
- package/dist/{design-system/p-C29HUShl.js → components/p-BasCjDiE.js} +1 -1
- package/dist/components/{p-B3sb3aIX.js → p-C1Fk1556.js} +1 -1
- package/dist/components/{p-VuxN5d2D.js → p-CAP-9lnL.js} +1 -1
- package/dist/components/{p-BZabVWBD.js → p-CJRGLvgC.js} +1 -1
- package/dist/components/{p-m_OtjUs1.js → p-CK6jFkqR.js} +1 -1
- package/dist/components/{p-DrrsZftV.js → p-CRq8zgt_.js} +1 -1
- package/dist/components/{p-BqrZA_Nl.js → p-CSbyXQa9.js} +1 -1
- package/dist/components/{p-fpzgqVv1.js → p-CWGbMz0J.js} +1 -1
- package/dist/components/{p-Cvk-Luhs.js → p-CnbeQ2DI.js} +1 -1
- package/dist/components/{p-IThoLpLs.js → p-CtXad9by.js} +1 -1
- package/dist/components/p-CvfW21oo.js +1 -0
- package/dist/components/{p-BSQsJHnV.js → p-Cye8r1MG.js} +1 -1
- package/dist/components/{p-D5inekTL.js → p-D155awu4.js} +1 -1
- package/dist/components/{p-J3eT660D.js → p-D4mjSR0u.js} +1 -1
- package/dist/components/{p-DQFHAKL_.js → p-D6GUzecR.js} +1 -1
- package/dist/components/p-DAAHX92J.js +1 -0
- package/dist/components/p-DGyTYauz.js +1 -0
- package/dist/components/p-DK4Jvax0.js +1 -0
- package/dist/components/{p-BSfu4DO2.js → p-DQj-S8AC.js} +1 -1
- package/dist/components/p-DR1f1cS9.js +1 -0
- package/dist/components/p-DY1iQfib.js +1 -0
- package/dist/components/{p-C54v30vB.js → p-DeHt0RYQ.js} +1 -1
- package/dist/components/{p-D7nYP2a4.js → p-DfKa36bs.js} +1 -1
- package/dist/components/{p-Co3H5873.js → p-Dq38kgOY.js} +1 -1
- package/dist/components/{p-BLhu2So8.js → p-DwKYjjIC.js} +1 -1
- package/dist/components/{p-CgYjGJEh.js → p-EbF6qsnG.js} +1 -1
- package/dist/components/{p-yH47DvUh.js → p-F7yyGdIc.js} +1 -1
- package/dist/components/p-LZKaKr8O.js +1 -0
- package/dist/components/p-_zllPZMm.js +1 -0
- package/dist/components/p-j2khhcHY.js +1 -0
- package/dist/components/{p-CbXb6ylI.js → p-pTx5xpqU.js} +1 -1
- package/dist/components/p-pwNG5WaX.js +1 -0
- package/dist/components/p-vZLoby4N.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.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.d.ts +11 -0
- package/dist/components/sd-divider.js +1 -0
- 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-c3e4853c.entry.js → p-0060136e.entry.js} +1 -1
- package/dist/design-system/{p-0894c492.entry.js → p-08798232.entry.js} +1 -1
- package/dist/design-system/{p-d39e515d.entry.js → p-0964c79a.entry.js} +1 -1
- package/dist/design-system/{p-4473c051.entry.js → p-102c2153.entry.js} +1 -1
- package/dist/design-system/{p-aac84d22.entry.js → p-10f579ba.entry.js} +1 -1
- package/dist/design-system/{p-b868d747.entry.js → p-1743651a.entry.js} +1 -1
- package/dist/design-system/p-17ec576c.entry.js +1 -0
- package/dist/design-system/{p-399d416c.entry.js → p-25fad267.entry.js} +1 -1
- package/dist/design-system/{p-06a6798d.entry.js → p-282b1260.entry.js} +1 -1
- package/dist/design-system/{p-d226bd61.entry.js → p-2e4d1fe1.entry.js} +1 -1
- package/dist/design-system/{p-819e28fe.entry.js → p-32d96a70.entry.js} +1 -1
- package/dist/design-system/{p-b8e34533.entry.js → p-4b43648c.entry.js} +1 -1
- package/dist/design-system/{p-61f4238b.entry.js → p-4cf1c8ae.entry.js} +1 -1
- package/dist/design-system/{p-435ae69e.entry.js → p-4ef942a8.entry.js} +1 -1
- package/dist/design-system/{p-9681b0ba.entry.js → p-521e5d2e.entry.js} +1 -1
- package/dist/design-system/p-54086285.entry.js +1 -0
- package/dist/design-system/{p-3f4a281f.entry.js → p-643c004a.entry.js} +1 -1
- package/dist/design-system/p-69a208c0.entry.js +1 -0
- package/dist/design-system/{p-795bae4c.entry.js → p-70f47e43.entry.js} +1 -1
- package/dist/design-system/{p-c7099e9e.entry.js → p-733aa107.entry.js} +1 -1
- package/dist/design-system/{p-352c68ae.entry.js → p-7444d475.entry.js} +1 -1
- package/dist/design-system/{p-03badf68.entry.js → p-840f592d.entry.js} +1 -1
- package/dist/design-system/{p-d3cc8538.entry.js → p-8d2815cf.entry.js} +1 -1
- package/dist/design-system/{p-9404ab06.entry.js → p-8fc49d2d.entry.js} +1 -1
- package/dist/design-system/{p-339cb954.entry.js → p-914d74c4.entry.js} +1 -1
- package/dist/design-system/p-9c74571a.entry.js +1 -0
- package/dist/design-system/{p-aeccfb2b.entry.js → p-9e75a5dc.entry.js} +1 -1
- package/dist/design-system/p-C7p6g_sM.js +1 -0
- package/dist/design-system/{p-DQFHAKL_.js → p-D6GUzecR.js} +1 -1
- package/dist/design-system/p-DGyTYauz.js +1 -0
- package/dist/design-system/p-DNWwGHho.js +2 -0
- package/dist/design-system/p-LIf7YMBN.js +1 -0
- package/dist/design-system/{p-2bdceecb.entry.js → p-a6c9baa5.entry.js} +1 -1
- package/dist/design-system/{p-fa670cc4.entry.js → p-adce8704.entry.js} +1 -1
- package/dist/design-system/{p-4a91875c.entry.js → p-afdca5bb.entry.js} +1 -1
- package/dist/design-system/{p-00b2c850.entry.js → p-b08ca29b.entry.js} +1 -1
- package/dist/design-system/p-b5e9320f.entry.js +1 -0
- package/dist/design-system/{p-1e530c87.entry.js → p-d1da969d.entry.js} +1 -1
- package/dist/design-system/{p-679bce6c.entry.js → p-d8292621.entry.js} +1 -1
- package/dist/design-system/{p-eae21a79.entry.js → p-e1350f4d.entry.js} +1 -1
- package/dist/design-system/p-e159f70d.entry.js +1 -0
- package/dist/design-system/{p-e902a3f4.entry.js → p-e9079238.entry.js} +1 -1
- package/dist/design-system/{p-14e30f67.entry.js → p-ea17a361.entry.js} +1 -1
- package/dist/design-system/{p-a71d4947.entry.js → p-eef5f8d7.entry.js} +1 -1
- package/dist/design-system/p-f172920e.entry.js +1 -0
- package/dist/design-system/{p-8ee990bd.entry.js → p-f97b75d3.entry.js} +1 -1
- package/dist/design-system/p-j2khhcHY.js +1 -0
- package/dist/esm/{component.table-DQFHAKL_.js → component.table-D6GUzecR.js} +4 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-0U6dRjlq.js → index-DNWwGHho.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +1 -1
- 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-BDjErF_K.js → sd-button.config-C7p6g_sM.js} +17 -12
- package/dist/esm/sd-button_2.entry.js +2 -2
- package/dist/esm/sd-calendar_2.entry.js +1 -1
- 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.entry.js +4 -4
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -2
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker_7.entry.js +56 -25
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +25 -0
- package/dist/esm/sd-dropdown-button.entry.js +47 -22
- package/dist/esm/sd-field_3.entry.js +7 -6
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button.entry.js +1 -1
- package/dist/esm/sd-guide.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/sd-modal-container.entry.js +4 -1
- package/dist/esm/sd-pagination_4.entry.js +31 -51
- package/dist/esm/sd-popover.entry.js +10 -8
- package/dist/esm/sd-popup.entry.js +3 -3
- package/dist/esm/sd-portal.entry.js +1 -1
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +7 -7
- package/dist/esm/sd-select_3.entry.js +9 -9
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/{sd-table.config-CFHtQ8LX.js → sd-table.config-D9meRqTx.js} +7 -4
- package/dist/esm/sd-table.entry.js +15 -49
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-tag.entry.js +1 -1
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{system-DGlmvjGc.js → system-j2khhcHY.js} +3 -0
- package/dist/esm/{tooltipArrow-O5LOsHae.js → tooltipArrow-Cj3AqWK0.js} +1 -1
- package/dist/types/components/sd-chip/sd-chip.d.ts +1 -1
- package/dist/types/components/sd-divider/sd-divider.config.d.ts +3 -0
- package/dist/types/components/sd-divider/sd-divider.d.ts +5 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +5 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +3 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -0
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +4 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +2 -2
- package/dist/types/components/sd-table/sd-table.config.d.ts +2 -0
- package/dist/types/components/sd-table/sd-table.d.ts +1 -6
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +1 -5
- package/dist/types/components.d.ts +83 -29
- package/hydrate/index.js +253 -194
- package/hydrate/index.mjs +253 -194
- package/package.json +1 -1
- package/dist/components/p-BZCvsLRf.js +0 -1
- package/dist/components/p-BjkROjjt.js +0 -1
- package/dist/components/p-DChOBMCc.js +0 -1
- package/dist/components/p-DGlmvjGc.js +0 -1
- package/dist/components/p-DUcbofDO.js +0 -1
- package/dist/components/p-DZbc1mgp.js +0 -1
- package/dist/components/p-DdLntfiw.js +0 -1
- package/dist/components/p-DhTcn6jX.js +0 -1
- package/dist/components/p-DyZNk1VT.js +0 -1
- package/dist/components/p-iCuIUhaK.js +0 -1
- package/dist/components/p-uHITnW_J.js +0 -1
- package/dist/design-system/p-0U6dRjlq.js +0 -2
- package/dist/design-system/p-3d61e68f.entry.js +0 -1
- package/dist/design-system/p-40bdbe5a.entry.js +0 -1
- package/dist/design-system/p-786c72e9.entry.js +0 -1
- package/dist/design-system/p-78de36f2.entry.js +0 -1
- package/dist/design-system/p-843d4b16.entry.js +0 -1
- package/dist/design-system/p-92f368a2.entry.js +0 -1
- package/dist/design-system/p-BDjErF_K.js +0 -1
- package/dist/design-system/p-DGlmvjGc.js +0 -1
- package/dist/design-system/p-DZbc1mgp.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
sd-divider {
|
|
2
|
+
flex-shrink: 0;
|
|
3
|
+
line-height: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:where(sd-divider:not([vertical])) {
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 1px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(sd-divider[vertical]) {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
align-self: stretch;
|
|
15
|
+
width: 1px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
sd-divider hr {
|
|
19
|
+
display: block;
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
margin: 0;
|
|
23
|
+
border: 0;
|
|
24
|
+
background-color: var(--sd-divider-color);
|
|
25
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { DIVIDER_COLORS } from "./sd-divider.config";
|
|
3
|
+
export class SdDivider {
|
|
4
|
+
/** true면 수직 분할선, false면 수평 분할선 */
|
|
5
|
+
vertical = false;
|
|
6
|
+
render() {
|
|
7
|
+
const hostStyle = {
|
|
8
|
+
'--sd-divider-color': DIVIDER_COLORS.default,
|
|
9
|
+
};
|
|
10
|
+
return (h(Host, { key: '3b3c22b1c5bf2d1bfa52c136113719e26b2e6767', style: hostStyle }, h("hr", { key: '4eca9f280e452330a2f57b03466e00f04688ad06', "aria-orientation": this.vertical ? 'vertical' : 'horizontal' })));
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "sd-divider"; }
|
|
13
|
+
static get originalStyleUrls() {
|
|
14
|
+
return {
|
|
15
|
+
"$": ["sd-divider.scss"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static get styleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["sd-divider.css"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get properties() {
|
|
24
|
+
return {
|
|
25
|
+
"vertical": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"mutable": false,
|
|
28
|
+
"complexType": {
|
|
29
|
+
"original": "boolean",
|
|
30
|
+
"resolved": "boolean",
|
|
31
|
+
"references": {}
|
|
32
|
+
},
|
|
33
|
+
"required": false,
|
|
34
|
+
"optional": false,
|
|
35
|
+
"docs": {
|
|
36
|
+
"tags": [],
|
|
37
|
+
"text": "true\uBA74 \uC218\uC9C1 \uBD84\uD560\uC120, false\uBA74 \uC218\uD3C9 \uBD84\uD560\uC120"
|
|
38
|
+
},
|
|
39
|
+
"getter": false,
|
|
40
|
+
"setter": false,
|
|
41
|
+
"reflect": true,
|
|
42
|
+
"attribute": "vertical",
|
|
43
|
+
"defaultValue": "false"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -11,11 +11,11 @@ export const PRESET_HOVER_BACKGROUNDS = BUTTON_PRESET_HOVER_BACKGROUNDS;
|
|
|
11
11
|
export const PRESET_CONTENT_COLORS = BUTTON_PRESET_CONTENT_COLORS;
|
|
12
12
|
export const PRESET_BORDER_COLORS = BUTTON_PRESET_BORDER_COLORS;
|
|
13
13
|
export const PRESET_DIVIDER_COLORS = {
|
|
14
|
-
primary: buttonTokens.button.brand.strong.
|
|
15
|
-
secondary: buttonTokens.button.brand.subtle.
|
|
14
|
+
primary: buttonTokens.button.dropdown.brand.strong.split,
|
|
15
|
+
secondary: buttonTokens.button.dropdown.brand.subtle.split,
|
|
16
16
|
primary_outline: PRESET_BORDER_COLORS.primary_outline,
|
|
17
17
|
neutral_outline: PRESET_BORDER_COLORS.neutral_outline,
|
|
18
|
-
danger: buttonTokens.button.danger.strong.
|
|
18
|
+
danger: buttonTokens.button.dropdown.danger.strong.split,
|
|
19
19
|
danger_outline: PRESET_BORDER_COLORS.danger_outline,
|
|
20
20
|
};
|
|
21
21
|
const MENU_ITEM_COLOR = systemTokens.color.fg.secondary;
|
|
@@ -96,8 +96,35 @@ sd-dropdown-button {
|
|
|
96
96
|
--sd-dropdown-button-current-content: var(--sd-dropdown-button-disabled-content);
|
|
97
97
|
cursor: not-allowed;
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
|
|
100
|
+
.sd-dropdown-button:not(.sd-dropdown-button--split) .sd-dropdown-button__trigger {
|
|
101
|
+
gap: var(--sd-dropdown-button-gap);
|
|
102
|
+
padding: 0 var(--sd-dropdown-button-padding-x);
|
|
103
|
+
}
|
|
104
|
+
.sd-dropdown-button:not(.sd-dropdown-button--split) .sd-dropdown-button__trigger-label {
|
|
105
|
+
padding: 0;
|
|
106
|
+
}
|
|
107
|
+
.sd-dropdown-button:not(.sd-dropdown-button--split) .sd-dropdown-button__trigger-icon {
|
|
108
|
+
min-width: 0;
|
|
109
|
+
padding: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sd-dropdown-button--split {
|
|
113
|
+
display: inline-flex;
|
|
114
|
+
align-items: stretch;
|
|
115
|
+
}
|
|
116
|
+
.sd-dropdown-button--split .sd-dropdown-button__trigger--label-part {
|
|
117
|
+
border-top-right-radius: 0;
|
|
118
|
+
border-bottom-right-radius: 0;
|
|
119
|
+
border-right-width: 0;
|
|
120
|
+
}
|
|
121
|
+
.sd-dropdown-button--split .sd-dropdown-button__trigger--chevron-part {
|
|
122
|
+
border-top-left-radius: 0;
|
|
123
|
+
border-bottom-left-radius: 0;
|
|
124
|
+
border-left: var(--sd-button-button-border-width-default, 1px) solid var(--sd-dropdown-button-divider);
|
|
125
|
+
}
|
|
126
|
+
.sd-dropdown-button--split .sd-dropdown-button__trigger--chevron-part.sd-dropdown-button__trigger--disabled {
|
|
127
|
+
border-left-color: var(--sd-dropdown-button-disabled-border);
|
|
101
128
|
}
|
|
102
129
|
|
|
103
130
|
.sd-dropdown-button__trigger-label,
|
|
@@ -113,14 +140,6 @@ sd-dropdown-button {
|
|
|
113
140
|
padding: 0 var(--sd-dropdown-button-padding-x);
|
|
114
141
|
}
|
|
115
142
|
|
|
116
|
-
.sd-dropdown-button__trigger-divider {
|
|
117
|
-
align-self: stretch;
|
|
118
|
-
width: 1px;
|
|
119
|
-
height: auto;
|
|
120
|
-
background: var(--sd-dropdown-button-divider);
|
|
121
|
-
opacity: 0.9;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
143
|
.sd-dropdown-button__trigger-icon {
|
|
125
144
|
flex: 0 0 auto;
|
|
126
145
|
min-width: calc(var(--sd-dropdown-button-height) - 2px);
|
|
@@ -12,6 +12,7 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
12
12
|
label = '';
|
|
13
13
|
items = [];
|
|
14
14
|
disabled = false;
|
|
15
|
+
split = false;
|
|
15
16
|
static CLOSE_ANIMATION_DURATION = 150;
|
|
16
17
|
isOpen = false;
|
|
17
18
|
isAnimatingOut = false;
|
|
@@ -20,6 +21,7 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
20
21
|
menuRef;
|
|
21
22
|
closeAnimationTimer;
|
|
22
23
|
click;
|
|
24
|
+
buttonClick;
|
|
23
25
|
dropDownShow;
|
|
24
26
|
handleOpenChange(isOpen) {
|
|
25
27
|
this.onDropdownToggle(isOpen);
|
|
@@ -135,6 +137,14 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
135
137
|
this.isOpen = true;
|
|
136
138
|
}
|
|
137
139
|
};
|
|
140
|
+
handleButtonClick = (event) => {
|
|
141
|
+
event.stopPropagation();
|
|
142
|
+
if (this.disabled) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
this.buttonClick.emit();
|
|
146
|
+
this.closeDropdown();
|
|
147
|
+
};
|
|
138
148
|
selectItem(item, event) {
|
|
139
149
|
event?.stopPropagation();
|
|
140
150
|
if (!item || item.disabled) {
|
|
@@ -143,7 +153,7 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
143
153
|
this.click.emit(item.value);
|
|
144
154
|
this.closeDropdown();
|
|
145
155
|
}
|
|
146
|
-
getTriggerClasses(preset, size, disabled, isOpen) {
|
|
156
|
+
getTriggerClasses(preset, size, disabled, isOpen, part) {
|
|
147
157
|
const classes = [
|
|
148
158
|
'sd-dropdown-button__trigger',
|
|
149
159
|
`sd-dropdown-button__trigger--${preset}`,
|
|
@@ -155,8 +165,24 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
155
165
|
if (isOpen) {
|
|
156
166
|
classes.push('sd-dropdown-button__trigger--open');
|
|
157
167
|
}
|
|
168
|
+
if (part !== undefined) {
|
|
169
|
+
classes.push(`sd-dropdown-button__trigger--${part}-part`);
|
|
170
|
+
}
|
|
158
171
|
return classes.join(' ');
|
|
159
172
|
}
|
|
173
|
+
getTriggerStyle(config, preset) {
|
|
174
|
+
return {
|
|
175
|
+
'--sd-dropdown-button-bg': config.color,
|
|
176
|
+
'--sd-dropdown-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
177
|
+
'--sd-dropdown-button-border': PRESET_BORDER_COLORS[preset],
|
|
178
|
+
'--sd-dropdown-button-content': PRESET_CONTENT_COLORS[preset],
|
|
179
|
+
'--sd-dropdown-button-divider': PRESET_DIVIDER_COLORS[preset],
|
|
180
|
+
'--sd-dropdown-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
181
|
+
'--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
|
|
182
|
+
'--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_TEXT,
|
|
183
|
+
'--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
160
186
|
getMenuItemClasses(isActive, isDisabled) {
|
|
161
187
|
const classes = ['sd-dropdown-button__menu-item'];
|
|
162
188
|
if (isActive) {
|
|
@@ -187,22 +213,20 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
187
213
|
} }, item.icon && (h("sd-icon", { class: "sd-dropdown-button__menu-item-icon", name: item.icon, size: 12, color: "var(--sd-dropdown-button-menu-item-current-color)" })), h("span", { class: "sd-dropdown-button__menu-item-label", innerHTML: sanitizeInlineHtml(item.label) })));
|
|
188
214
|
})))));
|
|
189
215
|
}
|
|
216
|
+
renderChevron(size) {
|
|
217
|
+
const iconName = this.split ? 'etc' : 'caretDown';
|
|
218
|
+
return (h("span", { class: {
|
|
219
|
+
'sd-dropdown-button__trigger-icon': true,
|
|
220
|
+
'sd-dropdown-button__trigger-icon--open': this.isOpen && !this.split,
|
|
221
|
+
}, "aria-hidden": "true" }, h("sd-icon", { name: iconName, size: DROPDOWN_CHEVRON_ICON_SIZE[size], color: "var(--sd-dropdown-button-current-content)" })));
|
|
222
|
+
}
|
|
190
223
|
render() {
|
|
191
224
|
const { config, preset } = this.resolvedConfig;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
'--sd-dropdown-button-divider': PRESET_DIVIDER_COLORS[preset],
|
|
198
|
-
'--sd-dropdown-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
199
|
-
'--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
|
|
200
|
-
'--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_TEXT,
|
|
201
|
-
'--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
|
|
202
|
-
} }, h("span", { key: 'de889d149ece2a5856dc37940cc8f8cc612546d7', class: "sd-dropdown-button__trigger-label" }, this.label), h("span", { key: '8ae62fe45e6f292f4269da090adda28c6fd47854', class: "sd-dropdown-button__trigger-divider", "aria-hidden": "true" }), h("span", { key: 'c2bc641416469fc2a375f07cb68f36e1c782ba48', class: {
|
|
203
|
-
'sd-dropdown-button__trigger-icon': true,
|
|
204
|
-
'sd-dropdown-button__trigger-icon--open': this.isOpen,
|
|
205
|
-
}, "aria-hidden": "true" }, h("sd-icon", { key: '46111923f6a95fdd789aa9493a6941218e1fe0f5', name: "chevronDown", size: DROPDOWN_CHEVRON_ICON_SIZE[config.size], color: "var(--sd-dropdown-button-current-content)" }))), this.renderDropdown(preset)));
|
|
225
|
+
const triggerStyle = this.getTriggerStyle(config, preset);
|
|
226
|
+
if (this.split) {
|
|
227
|
+
return (h("div", { class: "sd-dropdown-button sd-dropdown-button--split" }, h("button", { type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen, 'label'), disabled: this.disabled, onClick: this.handleButtonClick, style: triggerStyle }, h("span", { class: "sd-dropdown-button__trigger-label" }, this.label)), h("button", { type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen, 'chevron'), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), "aria-label": "dropdown toggle", onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: triggerStyle }, this.renderChevron(config.size)), this.renderDropdown(preset)));
|
|
228
|
+
}
|
|
229
|
+
return (h("div", { class: "sd-dropdown-button" }, h("button", { 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: triggerStyle }, h("span", { class: "sd-dropdown-button__trigger-label" }, this.label), this.renderChevron(config.size)), this.renderDropdown(preset)));
|
|
206
230
|
}
|
|
207
231
|
static get is() { return "sd-dropdown-button"; }
|
|
208
232
|
static get originalStyleUrls() {
|
|
@@ -308,6 +332,26 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
308
332
|
"reflect": false,
|
|
309
333
|
"attribute": "disabled",
|
|
310
334
|
"defaultValue": "false"
|
|
335
|
+
},
|
|
336
|
+
"split": {
|
|
337
|
+
"type": "boolean",
|
|
338
|
+
"mutable": false,
|
|
339
|
+
"complexType": {
|
|
340
|
+
"original": "boolean",
|
|
341
|
+
"resolved": "boolean",
|
|
342
|
+
"references": {}
|
|
343
|
+
},
|
|
344
|
+
"required": false,
|
|
345
|
+
"optional": false,
|
|
346
|
+
"docs": {
|
|
347
|
+
"tags": [],
|
|
348
|
+
"text": ""
|
|
349
|
+
},
|
|
350
|
+
"getter": false,
|
|
351
|
+
"setter": false,
|
|
352
|
+
"reflect": false,
|
|
353
|
+
"attribute": "split",
|
|
354
|
+
"defaultValue": "false"
|
|
311
355
|
}
|
|
312
356
|
};
|
|
313
357
|
}
|
|
@@ -341,6 +385,21 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
341
385
|
}
|
|
342
386
|
}
|
|
343
387
|
}
|
|
388
|
+
}, {
|
|
389
|
+
"method": "buttonClick",
|
|
390
|
+
"name": "sdButtonClick",
|
|
391
|
+
"bubbles": true,
|
|
392
|
+
"cancelable": true,
|
|
393
|
+
"composed": true,
|
|
394
|
+
"docs": {
|
|
395
|
+
"tags": [],
|
|
396
|
+
"text": ""
|
|
397
|
+
},
|
|
398
|
+
"complexType": {
|
|
399
|
+
"original": "void",
|
|
400
|
+
"resolved": "void",
|
|
401
|
+
"references": {}
|
|
402
|
+
}
|
|
344
403
|
}, {
|
|
345
404
|
"method": "dropDownShow",
|
|
346
405
|
"name": "sdDropDownShow",
|
|
@@ -185,7 +185,8 @@ export class SdField {
|
|
|
185
185
|
: {} }, h("div", { key: '1f3c5f2009a0d96b8a3544c58b96f7ecc4ddee6b', class: {
|
|
186
186
|
'sd-field__control': true,
|
|
187
187
|
'sd-field__control--has-addon': addon !== '',
|
|
188
|
-
} }, addon && h("div", { key: '
|
|
188
|
+
} }, addon && (h("div", { key: 'e4f180f0183267ea99e2b8b65b6e4cd769a47946', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: 'c5503a823d8c5534abd27dc59bbd399702a07283', name: this.icon.name, size: this.icon.size ??
|
|
189
|
+
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '8b8bd230703e0b1e45eab3a5334dbdbb55fae8c9' })), 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))))));
|
|
189
190
|
}
|
|
190
191
|
renderLabel(label) {
|
|
191
192
|
if (label == null || label === '')
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
sd-file-picker {
|
|
2
|
-
display:
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.sd-file-picker__wrapper {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
3
10
|
width: 100%;
|
|
4
11
|
}
|
|
5
12
|
|
|
13
|
+
.sd-file-picker__chip-list {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
margin-top: 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
6
20
|
.sd-file-picker__content {
|
|
7
21
|
width: 100%;
|
|
8
22
|
height: 100%;
|
|
@@ -65,11 +65,11 @@ export class SdFilePicker {
|
|
|
65
65
|
return undefined;
|
|
66
66
|
return typeof value === 'string' ? Number(value) : value;
|
|
67
67
|
}
|
|
68
|
-
validateFiles(files) {
|
|
68
|
+
validateFiles(files, existingCount = 0) {
|
|
69
69
|
const maxFileSize = this.toBytes(this.maxFileSize);
|
|
70
70
|
const maxTotalSize = this.toBytes(this.maxTotalSize);
|
|
71
71
|
const maxFiles = this.maxFiles != null ? Number(this.maxFiles) : undefined;
|
|
72
|
-
if (maxFiles != null && files.length > maxFiles) {
|
|
72
|
+
if (maxFiles != null && existingCount + files.length > maxFiles) {
|
|
73
73
|
return { accepted: [], rejected: files, reason: 'max-files' };
|
|
74
74
|
}
|
|
75
75
|
if (maxFileSize != null) {
|
|
@@ -93,22 +93,34 @@ export class SdFilePicker {
|
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
95
|
const fileArray = Array.from(files);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
if (this.multiple) {
|
|
97
|
+
const existing = Array.isArray(this.internalValue) ? this.internalValue : [];
|
|
98
|
+
const { accepted, rejected, reason } = this.validateFiles(fileArray, existing.length);
|
|
99
99
|
if (this.fileInputRef) {
|
|
100
100
|
this.fileInputRef.value = '';
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
if (reason != null) {
|
|
103
|
+
this.reject?.emit({ files: rejected, reason });
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const merged = [...existing, ...accepted];
|
|
107
|
+
this.internalValue = merged;
|
|
108
|
+
this.value = merged;
|
|
109
|
+
this.update?.emit(this.value);
|
|
106
110
|
}
|
|
107
111
|
else {
|
|
112
|
+
const { accepted, rejected, reason } = this.validateFiles(fileArray);
|
|
113
|
+
if (reason != null) {
|
|
114
|
+
this.reject?.emit({ files: rejected, reason });
|
|
115
|
+
if (this.fileInputRef) {
|
|
116
|
+
this.fileInputRef.value = '';
|
|
117
|
+
}
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
108
120
|
this.internalValue = accepted[0];
|
|
121
|
+
this.value = this.internalValue;
|
|
122
|
+
this.update?.emit(this.value);
|
|
109
123
|
}
|
|
110
|
-
this.value = this.internalValue;
|
|
111
|
-
this.update?.emit(this.value);
|
|
112
124
|
};
|
|
113
125
|
handleClear = (event) => {
|
|
114
126
|
if (this.disabled)
|
|
@@ -128,6 +140,8 @@ export class SdFilePicker {
|
|
|
128
140
|
this.fileInputRef?.click();
|
|
129
141
|
};
|
|
130
142
|
hasFiles() {
|
|
143
|
+
if (this.multiple)
|
|
144
|
+
return false;
|
|
131
145
|
if (!this.internalValue)
|
|
132
146
|
return false;
|
|
133
147
|
if (Array.isArray(this.internalValue)) {
|
|
@@ -135,14 +149,28 @@ export class SdFilePicker {
|
|
|
135
149
|
}
|
|
136
150
|
return true;
|
|
137
151
|
}
|
|
152
|
+
hasChips() {
|
|
153
|
+
return Array.isArray(this.internalValue) && this.internalValue.length > 0;
|
|
154
|
+
}
|
|
138
155
|
getDisplayText() {
|
|
139
156
|
if (!this.hasFiles())
|
|
140
157
|
return this.placeholder ?? 'Click to upload';
|
|
141
|
-
if (Array.isArray(this.internalValue)) {
|
|
142
|
-
return this.internalValue.map(f => f.name).join(', ');
|
|
143
|
-
}
|
|
144
158
|
return this.internalValue?.name || (this.placeholder ?? 'Click to upload');
|
|
145
159
|
}
|
|
160
|
+
handleChipRemove = (index) => {
|
|
161
|
+
if (!Array.isArray(this.internalValue))
|
|
162
|
+
return;
|
|
163
|
+
const newFiles = [...this.internalValue];
|
|
164
|
+
newFiles.splice(index, 1);
|
|
165
|
+
this.internalValue = newFiles;
|
|
166
|
+
this.value = newFiles;
|
|
167
|
+
this.update?.emit(this.value);
|
|
168
|
+
};
|
|
169
|
+
renderChipList() {
|
|
170
|
+
if (!this.hasChips())
|
|
171
|
+
return null;
|
|
172
|
+
return (h("div", { class: "sd-file-picker__chip-list" }, this.internalValue.map((file, index) => (h("sd-chip", { value: file.name, onSdRemove: () => this.handleChipRemove(index) })))));
|
|
173
|
+
}
|
|
146
174
|
checkOverflow() {
|
|
147
175
|
if (!this.fileNamesRef)
|
|
148
176
|
return;
|
|
@@ -182,9 +210,9 @@ export class SdFilePicker {
|
|
|
182
210
|
return (h("div", { class: {
|
|
183
211
|
'sd-file-picker--inline': true,
|
|
184
212
|
'sd-file-picker--inline-disabled': this.disabled,
|
|
185
|
-
}, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content));
|
|
213
|
+
}, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content, this.renderChipList()));
|
|
186
214
|
}
|
|
187
|
-
return (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)
|
|
215
|
+
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()));
|
|
188
216
|
}
|
|
189
217
|
static get is() { return "sd-file-picker"; }
|
|
190
218
|
static get originalStyleUrls() {
|
|
@@ -153,7 +153,7 @@ export class SdFloatingPopover {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return h("slot", { key: '
|
|
156
|
+
return h("slot", { key: 'b1514fc54df3e304cfb53b824df96431fa815a6e' });
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "sd-floating-portal"; }
|
|
159
159
|
static get originalStyleUrls() {
|
|
@@ -112,12 +112,12 @@ export class SdInput {
|
|
|
112
112
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
113
113
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
114
114
|
};
|
|
115
|
-
return (h("sd-field", { key: '
|
|
115
|
+
return (h("sd-field", { key: '44bf19bfbe047e00eb02530a4f9c9eac37d9f0fb', 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 }, h("label", { key: '2f610f980107fc552554b9415d878a7b8464e460', class: "sd-input__content" }, h("slot", { key: 'da4fa13a9f4c8e5cabb238743b74dbc216cf3d27', name: "prefix" }), h("input", { key: 'dd4fc95ef5136348e764552fb8847a7fedf6fd42', 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 }), h("slot", { key: 'ab2403fafd7eecf37bc03b0147025b06154230a7', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: '7b6ca184d3c08fc160556abf135939d1e8064b98', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
116
116
|
if (this.disabled || this.readonly)
|
|
117
117
|
return;
|
|
118
118
|
this.internalValue = '';
|
|
119
119
|
await this.formField?.sdValidate();
|
|
120
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
120
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '52b5a72f6140b441ea971330594749208e302597', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
121
121
|
if (this.disabled || this.readonly)
|
|
122
122
|
return;
|
|
123
123
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -28,7 +28,7 @@ export class SdLinearProgress {
|
|
|
28
28
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
29
29
|
};
|
|
30
30
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '0ae06e8a25685038b5e0834eba2ea090f8334fed', style: hostStyle }, h("div", { key: 'bc4d4b10d0ec63dbeda35eff00de62ab7335ce81', class: 'sd-linear-progress__track' }, h("div", { key: '5c228c7dade94c9cf22edbf48ef7d2edbc81d7b9', class: 'sd-linear-progress__fill', style: fillStyle }), !this.indeterminate && (h("span", { key: 'e8abe8b206fc0b07fd348038ad81c3fdd8141797', class: 'sd-linear-progress__value sd-linear-progress__value--on-track' }, valueText)), !this.indeterminate && (h("span", { key: 'b6f43931cbd98e799e3481c23d1ae98f1a65da34', class: 'sd-linear-progress__value sd-linear-progress__value--on-fill', style: valueOnFillStyle }, valueText))), this.label && h("span", { key: '616eba6d54d25cad5eceebc8de6f1122668307cf', class: 'sd-linear-progress__label' }, this.label)));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "sd-linear-progress"; }
|
|
34
34
|
static get originalStyleUrls() {
|
|
@@ -10,10 +10,10 @@ export class SdLoadingContainer {
|
|
|
10
10
|
this.visible = false;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("div", { key: '
|
|
13
|
+
return (h("div", { key: 'bae5e9473237c0389d6fb404294abe6897c9847c', class: {
|
|
14
14
|
'sd-loading-container': true,
|
|
15
15
|
'sd-loading-container--visible': this.visible,
|
|
16
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '
|
|
16
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: 'd78b4d84c7cd34739452b0ab84df640c94939b2b', class: "sd-loading-container__backdrop" }), h("div", { key: '890c86605412bf67ab878155fd299c2f0b84e375', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: '0912c4b7c23700b6ccf8ffdc6b4ce0d67b568320', indeterminate: true, type: "inverse" }), this.message && (h("p", { key: '373d1765d0a7c24b54bb22e65a8a6a525771ed78', class: "sd-loading-container__message" }, this.message)))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "sd-loading-container"; }
|
|
19
19
|
static get originalStyleUrls() {
|
|
@@ -7,6 +7,7 @@ export class SdLoadingModal {
|
|
|
7
7
|
buttonLabel = '';
|
|
8
8
|
width;
|
|
9
9
|
height;
|
|
10
|
+
progress;
|
|
10
11
|
click;
|
|
11
12
|
get resolvedState() {
|
|
12
13
|
return this.state ?? 'loading';
|
|
@@ -45,7 +46,7 @@ export class SdLoadingModal {
|
|
|
45
46
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
46
47
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
47
48
|
};
|
|
48
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'f14baf774d5d8547158a84bc3948035e69e022b5', style: hostStyle }, h("div", { key: 'f441c9718abd608c687e92884fbbefb6030610f4', class: "sd-loading-modal" }, h("div", { key: '9e7a73f9f35fc800326ffd809058ae23a5b60688', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (h("sd-circle-progress", { value: this.progress })) : (h("sd-circle-progress", { indeterminate: true }))) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("div", { key: '1d468a2ad713efa5162648868b6c137255834a39', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (h("div", { key: '75a88c01cd7df4953c766cb71a7cf89a150de65e', class: "sd-loading-modal__button" }, h("sd-button", { key: 'bdd17775f1b57e140cc09f7a79835ca10693ceff', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
49
50
|
}
|
|
50
51
|
static get is() { return "sd-loading-modal"; }
|
|
51
52
|
static get originalStyleUrls() {
|
|
@@ -184,6 +185,25 @@ export class SdLoadingModal {
|
|
|
184
185
|
"setter": false,
|
|
185
186
|
"reflect": false,
|
|
186
187
|
"attribute": "height"
|
|
188
|
+
},
|
|
189
|
+
"progress": {
|
|
190
|
+
"type": "number",
|
|
191
|
+
"mutable": false,
|
|
192
|
+
"complexType": {
|
|
193
|
+
"original": "number",
|
|
194
|
+
"resolved": "number | undefined",
|
|
195
|
+
"references": {}
|
|
196
|
+
},
|
|
197
|
+
"required": false,
|
|
198
|
+
"optional": true,
|
|
199
|
+
"docs": {
|
|
200
|
+
"tags": [],
|
|
201
|
+
"text": ""
|
|
202
|
+
},
|
|
203
|
+
"getter": false,
|
|
204
|
+
"setter": false,
|
|
205
|
+
"reflect": false,
|
|
206
|
+
"attribute": "progress"
|
|
187
207
|
}
|
|
188
208
|
};
|
|
189
209
|
}
|
|
@@ -195,6 +195,9 @@ export class SdModalContainer {
|
|
|
195
195
|
if (this.hasOwnProp(options, 'height')) {
|
|
196
196
|
this.setAttr(el, 'height', options.height != null ? String(options.height) : undefined);
|
|
197
197
|
}
|
|
198
|
+
if (this.hasOwnProp(options, 'progress')) {
|
|
199
|
+
el.progress = options.progress;
|
|
200
|
+
}
|
|
198
201
|
}
|
|
199
202
|
applyProps(el, options) {
|
|
200
203
|
if (this.hasOwnProp(options, 'type'))
|