@sellmate/design-system 1.27.1 → 1.28.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.listBox-MHAv4Yy7.js +15 -0
- package/dist/cjs/{component.listItem-Bnh0r_CA.js → component.listItem-cAO_ppOz.js} +0 -7
- package/dist/cjs/{component.table-BrI3b--h.js → component.table-POXY492T.js} +5 -4
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-DsYLSqCp.js → index-D12oddge.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_2.cjs.entry.js +1 -1
- 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 +2 -3
- package/dist/cjs/sd-chip-input.cjs.entry.js +4 -3
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +5 -3
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +6 -3
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +68 -15
- 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 +1 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +6 -6
- 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 +4 -9
- package/dist/cjs/sd-key-value-table.cjs.entry.js +2 -2
- package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +14 -12
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +2 -3
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +10 -9
- package/dist/cjs/{sd-select.config-C9Ohe1QA.js → sd-select.config-omyxekRa.js} +3 -2
- package/dist/cjs/sd-select_3.cjs.entry.js +12 -11
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +9 -9
- package/dist/cjs/{sd-table.config-DzC55sap.js → sd-table.config-DFy_S4bc.js} +5 -4
- 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 +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/{tooltipArrow-FLiD3ceS.js → tooltipArrow-Dda4ik0V.js} +1 -1
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.css +12 -0
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +23 -1
- package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +9 -0
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +18 -0
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +73 -7
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -1
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.config.js +0 -1
- package/dist/collection/components/sd-guide/sd-guide.css +0 -3
- package/dist/collection/components/sd-guide/sd-guide.js +2 -3
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.css +7 -0
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +18 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.css +2 -2
- 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 -3
- 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-table/sd-tr/sd-tr.js +3 -1
- 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-BaRjXqSM.js → p-1i6Q61TF.js} +1 -1
- package/dist/components/p-4S0_Ykmo.js +1 -0
- package/dist/components/p-5pkzwl5N.js +1 -0
- package/dist/components/{p-BxphFsxh.js → p-B-pJW3nY.js} +1 -1
- package/dist/components/{p-CIPPETF-.js → p-B2pYDEK7.js} +1 -1
- package/dist/components/{p-DTb2c83G.js → p-B3HYnTGx.js} +1 -1
- package/dist/components/{p-BHNytAtJ.js → p-B6ezDhRg.js} +1 -1
- package/dist/components/{p-DsQQFJ8o.js → p-BAVsc1Ml.js} +1 -1
- package/dist/components/{p-PvltLPHp.js → p-BCxePXvg.js} +1 -1
- package/dist/components/{p-BV4cnHWn.js → p-BE6ymp9E.js} +1 -1
- package/dist/components/{p-BU1H7ElF.js → p-BKV1WAFb.js} +1 -1
- package/dist/components/{p-Bk6aI8rL.js → p-BNHhtZUf.js} +1 -1
- package/dist/components/{p-DVq9oE_p.js → p-BQ4Okfcm.js} +1 -1
- package/dist/components/{p-CmK45nj3.js → p-BSxleKw8.js} +1 -1
- package/dist/components/{p-CJcs7kNH.js → p-BUgGuigd.js} +1 -1
- package/dist/components/{p-BOJALVxB.js → p-BWHQn4fD.js} +1 -1
- package/dist/components/{p-BQqXWtI6.js → p-BZXgIBUG.js} +1 -1
- package/dist/components/p-Bgxca9o5.js +1 -0
- package/dist/components/{p-DT-e9J59.js → p-BnI9HUOv.js} +1 -1
- package/dist/components/{p-Du_Yc-lW.js → p-BuADVB78.js} +1 -1
- package/dist/components/{p-BFy8txYj.js → p-Bxb7TcZh.js} +1 -1
- package/dist/components/p-C0tnN4yn.js +1 -0
- package/dist/components/{p-DnxEeX9I.js → p-CHHlQceE.js} +1 -1
- package/dist/components/{p--AZbwi7P.js → p-CMvHDxR5.js} +1 -1
- package/dist/components/{p-DkaajrxX.js → p-CSh-DcM7.js} +1 -1
- package/dist/components/{p-DMrzTImA.js → p-CTDPl65u.js} +1 -1
- package/dist/components/p-Cf62Nvrx.js +1 -0
- package/dist/components/{p-SROa9QCy.js → p-ClD0nx1l.js} +1 -1
- package/dist/components/{p-Cok_EW_N.js → p-DNbbdJIc.js} +1 -1
- package/dist/components/p-DbPS61bp.js +1 -0
- package/dist/components/p-DckXBMgo.js +1 -0
- package/dist/components/p-DlJaYVWf.js +1 -0
- package/dist/components/p-DmAnTwUx.js +1 -0
- package/dist/components/{p-hP1aeMuZ.js → p-E8OA_psS.js} +1 -1
- package/dist/components/{p-D7XGOtx0.js → p-IDlLs_KA.js} +1 -1
- package/dist/components/p-PFLrdhQj.js +1 -0
- package/dist/components/{p-CvSPsoRb.js → p-l9RiSWRc.js} +1 -1
- package/dist/components/{p-CwwJD-NF.js → p-paSLRXAR.js} +1 -1
- package/dist/components/{p-Dy6LmOzw.js → p-pwGA4sDj.js} +1 -1
- package/dist/components/{p-DYp8I4VH.js → p-vtuEYpc6.js} +1 -1
- package/dist/components/p-x9AWBHPy.js +1 -0
- package/dist/components/{p-DeXLIS7e.js → p-yxZBh03f.js} +1 -1
- 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-0048de73.entry.js +1 -0
- package/dist/design-system/{p-9603971e.entry.js → p-071e73e0.entry.js} +1 -1
- package/dist/design-system/{p-7540f591.entry.js → p-0b8c86c3.entry.js} +1 -1
- package/dist/design-system/{p-07755193.entry.js → p-1230b51b.entry.js} +1 -1
- package/dist/design-system/p-20f69606.entry.js +1 -0
- package/dist/design-system/{p-947dcc28.entry.js → p-2553bb1f.entry.js} +1 -1
- package/dist/design-system/{p-b86a69ce.entry.js → p-26f2f4c2.entry.js} +1 -1
- package/dist/design-system/{p-edfb5c83.entry.js → p-27197194.entry.js} +1 -1
- package/dist/design-system/{p-8ac340db.entry.js → p-287d8016.entry.js} +1 -1
- package/dist/design-system/p-3b3a46cd.entry.js +1 -0
- package/dist/design-system/{p-a4e1dd8c.entry.js → p-4970f1ff.entry.js} +1 -1
- package/dist/design-system/p-4S0_Ykmo.js +1 -0
- package/dist/design-system/{p-5aa5aec3.entry.js → p-5687ed0c.entry.js} +1 -1
- package/dist/design-system/{p-06b56059.entry.js → p-58ec51db.entry.js} +1 -1
- package/dist/design-system/{p-d790fbb8.entry.js → p-5c8f4d9c.entry.js} +1 -1
- package/dist/design-system/p-5pkzwl5N.js +1 -0
- package/dist/design-system/{p-dfa16f49.entry.js → p-61f5d5ea.entry.js} +1 -1
- package/dist/design-system/{p-55c8ce37.entry.js → p-67f19734.entry.js} +1 -1
- package/dist/design-system/{p-5142cd06.entry.js → p-70608fec.entry.js} +1 -1
- package/dist/design-system/{p-26297c6e.entry.js → p-750a9112.entry.js} +1 -1
- package/dist/design-system/{p-cb0cbcb0.entry.js → p-75726e20.entry.js} +1 -1
- package/dist/design-system/{p-9825e76c.entry.js → p-7abf62f3.entry.js} +1 -1
- package/dist/design-system/{p-5f5f2fbe.entry.js → p-7ae27a26.entry.js} +1 -1
- package/dist/design-system/p-84d0181b.entry.js +1 -0
- package/dist/design-system/{p-49b1636a.entry.js → p-91f7be74.entry.js} +1 -1
- package/dist/design-system/p-94d6b7b4.entry.js +1 -0
- package/dist/design-system/{p-80abdfe7.entry.js → p-9b21773a.entry.js} +1 -1
- package/dist/design-system/{p-dae6914d.entry.js → p-9c0bca09.entry.js} +1 -1
- package/dist/design-system/{p-B-LOf2aM.js → p-CRWmn35N.js} +1 -1
- package/dist/design-system/p-Cf62Nvrx.js +1 -0
- package/dist/design-system/p-CuAh9n2o.js +1 -0
- package/dist/design-system/p-DDNBPrZh.js +2 -0
- package/dist/design-system/p-DlJaYVWf.js +1 -0
- package/dist/design-system/{p-6aec5853.entry.js → p-a12d7362.entry.js} +1 -1
- package/dist/design-system/{p-459a408f.entry.js → p-a938ffee.entry.js} +1 -1
- package/dist/design-system/{p-270c8529.entry.js → p-b831eded.entry.js} +1 -1
- package/dist/design-system/{p-e63bf0e1.entry.js → p-bab692c6.entry.js} +1 -1
- package/dist/design-system/{p-8c1a9374.entry.js → p-bbd24816.entry.js} +1 -1
- package/dist/design-system/{p-b9387621.entry.js → p-c5502585.entry.js} +1 -1
- package/dist/design-system/p-c81898a0.entry.js +1 -0
- package/dist/design-system/{p-9c0d3011.entry.js → p-d4e2f412.entry.js} +1 -1
- package/dist/design-system/{p-839e6b5a.entry.js → p-d6b3d78b.entry.js} +1 -1
- package/dist/design-system/{p-761c008c.entry.js → p-d7e302af.entry.js} +1 -1
- package/dist/design-system/{p-ff9ccbf6.entry.js → p-dbfa3931.entry.js} +1 -1
- package/dist/design-system/{p-fd671afe.entry.js → p-f16985c9.entry.js} +1 -1
- package/dist/design-system/{p-5f1dae23.entry.js → p-fa967329.entry.js} +1 -1
- package/dist/design-system/{p-ddb9a2c4.entry.js → p-fbeed0e4.entry.js} +1 -1
- package/dist/esm/component.listBox-DlJaYVWf.js +13 -0
- package/dist/esm/{component.listItem-U8VaRj9c.js → component.listItem-4S0_Ykmo.js} +1 -7
- package/dist/esm/{component.table-D9tQwTWy.js → component.table-5pkzwl5N.js} +5 -4
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-BZg-6aSz.js → index-DDNBPrZh.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_2.entry.js +1 -1
- 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 +2 -3
- package/dist/esm/sd-chip-input.entry.js +3 -2
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +5 -3
- package/dist/esm/sd-confirm-modal_2.entry.js +6 -3
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker_7.entry.js +68 -15
- 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 +1 -1
- package/dist/esm/sd-field_3.entry.js +6 -6
- 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 +4 -9
- package/dist/esm/sd-key-value-table.entry.js +2 -2
- package/dist/esm/sd-linear-progress.entry.js +2 -2
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination_4.entry.js +14 -12
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-popup.entry.js +2 -2
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +2 -3
- package/dist/esm/sd-select-list-item_2.entry.js +10 -9
- package/dist/esm/{sd-select.config-D6ktrl7E.js → sd-select.config-CeHGlqOT.js} +2 -1
- package/dist/esm/sd-select_3.entry.js +12 -11
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/{sd-table.config-BbIWNUE2.js → sd-table.config-DmOBlnsM.js} +5 -4
- package/dist/esm/sd-table.entry.js +9 -9
- 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 +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/{tooltipArrow-BAi-pktU.js → tooltipArrow-blL0aWPE.js} +1 -1
- package/dist/types/components/sd-circle-progress/sd-circle-progress.d.ts +2 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.config.d.ts +6 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +10 -0
- package/dist/types/components/sd-guide/sd-guide.config.d.ts +0 -1
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +2 -0
- package/dist/types/components/sd-table/sd-table.config.d.ts +1 -0
- package/dist/types/components.d.ts +27 -0
- package/hydrate/index.js +151 -88
- package/hydrate/index.mjs +151 -88
- package/package.json +1 -1
- package/dist/components/p-BXcizROm.js +0 -1
- package/dist/components/p-BZdgdRXJ.js +0 -1
- package/dist/components/p-CV5LiFKt.js +0 -1
- package/dist/components/p-CiTn4ZiI.js +0 -1
- package/dist/components/p-D9tQwTWy.js +0 -1
- package/dist/components/p-DmC83_E9.js +0 -1
- package/dist/components/p-DvvGi4J_.js +0 -1
- package/dist/components/p-NeXvaRu7.js +0 -1
- package/dist/components/p-U8VaRj9c.js +0 -1
- package/dist/components/p-jwusYvH0.js +0 -1
- package/dist/design-system/p-147e0413.entry.js +0 -1
- package/dist/design-system/p-51c7839c.entry.js +0 -1
- package/dist/design-system/p-65285327.entry.js +0 -1
- package/dist/design-system/p-BXcizROm.js +0 -1
- package/dist/design-system/p-BZg-6aSz.js +0 -2
- package/dist/design-system/p-CAFz8W8_.js +0 -1
- package/dist/design-system/p-D9tQwTWy.js +0 -1
- package/dist/design-system/p-U8VaRj9c.js +0 -1
- package/dist/design-system/p-b84f5550.entry.js +0 -1
- package/dist/design-system/p-efc55114.entry.js +0 -1
- package/dist/design-system/p-fe2b853f.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
2
|
import { nanoid } from "nanoid/non-secure";
|
|
3
|
-
import { FILE_PICKER_LAYOUT, FILE_PICKER_COLORS } from "./sd-file-picker.config";
|
|
3
|
+
import { FILE_PICKER_LAYOUT, FILE_PICKER_COLORS, FILE_PICKER_LIST_BOX, } from "./sd-file-picker.config";
|
|
4
4
|
export class SdFilePicker {
|
|
5
5
|
el;
|
|
6
6
|
/** 선택된 파일 값 */
|
|
@@ -13,6 +13,8 @@ export class SdFilePicker {
|
|
|
13
13
|
inline = false;
|
|
14
14
|
/** 다중 파일 선택 여부 */
|
|
15
15
|
multiple = false;
|
|
16
|
+
/** multiple 파일 목록을 필드 아래 칩 대신, caret(▼) 클릭 시 열리는 리스트박스 카드로 표시 */
|
|
17
|
+
useMultipleListBox = false;
|
|
16
18
|
/** 허용할 파일 타입 (input accept 속성과 동일) */
|
|
17
19
|
accept;
|
|
18
20
|
/** 파일 한 개의 최대 크기 (bytes) */
|
|
@@ -56,9 +58,13 @@ export class SdFilePicker {
|
|
|
56
58
|
hovered = false;
|
|
57
59
|
internalValue = null;
|
|
58
60
|
showTooltip = false;
|
|
61
|
+
isListboxOpen = false;
|
|
62
|
+
listboxWidth = '';
|
|
59
63
|
fileInputRef;
|
|
60
64
|
fileNamesRef;
|
|
65
|
+
contentRef;
|
|
61
66
|
formField;
|
|
67
|
+
static VIEWPORT_PADDING = 20;
|
|
62
68
|
/** 파일 선택 또는 삭제 시 현재 파일 값을 전달합니다. */
|
|
63
69
|
update;
|
|
64
70
|
/** 파일이 크기·개수 제한을 초과하여 거부됐을 때 발생합니다. */
|
|
@@ -160,6 +166,7 @@ export class SdFilePicker {
|
|
|
160
166
|
this.value = clearedValue;
|
|
161
167
|
this.internalValue = clearedValue;
|
|
162
168
|
this.update?.emit(clearedValue);
|
|
169
|
+
this.isListboxOpen = false;
|
|
163
170
|
if (this.fileInputRef) {
|
|
164
171
|
this.fileInputRef.value = '';
|
|
165
172
|
}
|
|
@@ -169,6 +176,23 @@ export class SdFilePicker {
|
|
|
169
176
|
return;
|
|
170
177
|
this.fileInputRef?.click();
|
|
171
178
|
};
|
|
179
|
+
/** caret(▼) 클릭 시 파일 목록 리스트박스를 토글한다. */
|
|
180
|
+
handleListboxToggle = (event) => {
|
|
181
|
+
event.stopPropagation();
|
|
182
|
+
if (this.disabled)
|
|
183
|
+
return;
|
|
184
|
+
if (this.isListboxOpen) {
|
|
185
|
+
this.isListboxOpen = false;
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (this.contentRef) {
|
|
189
|
+
this.listboxWidth = `${this.contentRef.offsetWidth}px`;
|
|
190
|
+
}
|
|
191
|
+
this.isListboxOpen = true;
|
|
192
|
+
};
|
|
193
|
+
closeListbox = () => {
|
|
194
|
+
this.isListboxOpen = false;
|
|
195
|
+
};
|
|
172
196
|
hasFiles() {
|
|
173
197
|
if (Array.isArray(this.internalValue)) {
|
|
174
198
|
return this.internalValue.length > 0;
|
|
@@ -194,12 +218,28 @@ export class SdFilePicker {
|
|
|
194
218
|
this.internalValue = newFiles;
|
|
195
219
|
this.value = newFiles;
|
|
196
220
|
this.update?.emit(this.value);
|
|
221
|
+
// 리스트박스에서 마지막 파일을 지우면 caret 이 사라지므로 함께 닫는다.
|
|
222
|
+
if (newFiles.length === 0) {
|
|
223
|
+
this.isListboxOpen = false;
|
|
224
|
+
}
|
|
197
225
|
};
|
|
198
226
|
renderChipList() {
|
|
199
227
|
if (!this.hasChips())
|
|
200
228
|
return null;
|
|
201
229
|
return (h("div", { class: "sd-file-picker__chip-list" }, this.internalValue.map((file, index) => (h("sd-chip", { value: file.name, onSdRemove: () => this.handleChipRemove(index) })))));
|
|
202
230
|
}
|
|
231
|
+
renderListbox() {
|
|
232
|
+
if (!this.hasChips() || !this.isListboxOpen)
|
|
233
|
+
return null;
|
|
234
|
+
const listboxStyle = {
|
|
235
|
+
width: this.listboxWidth,
|
|
236
|
+
padding: `${FILE_PICKER_LIST_BOX.chipPadding}px`,
|
|
237
|
+
gap: `${FILE_PICKER_LIST_BOX.chipGap}px`,
|
|
238
|
+
borderRadius: `${FILE_PICKER_LIST_BOX.radius}px`,
|
|
239
|
+
background: FILE_PICKER_LIST_BOX.bg,
|
|
240
|
+
};
|
|
241
|
+
return (h("sd-portal", { open: this.isListboxOpen, parentRef: this.contentRef, viewportPadding: SdFilePicker.VIEWPORT_PADDING, onSdClose: this.closeListbox }, h("div", { class: "sd-file-picker__listbox", style: listboxStyle }, this.internalValue.map((file, index) => (h("sd-chip", { value: file.name, editable: false, onSdRemove: () => this.handleChipRemove(index) }))))));
|
|
242
|
+
}
|
|
203
243
|
checkOverflow() {
|
|
204
244
|
if (!this.fileNamesRef)
|
|
205
245
|
return;
|
|
@@ -225,21 +265,25 @@ export class SdFilePicker {
|
|
|
225
265
|
'--sd-system-size-field-sm-height': `${FILE_PICKER_LAYOUT.height}px`,
|
|
226
266
|
'--sd-system-radius-field-sm': `${FILE_PICKER_LAYOUT.radius}px`,
|
|
227
267
|
};
|
|
228
|
-
const
|
|
268
|
+
const showListbox = this.multiple && this.useMultipleListBox;
|
|
269
|
+
const content = (h("div", { key: '692bb28ba1adaa90317e18c6b824ab7d2287eb96', role: "button", tabindex: this.disabled ? -1 : 0, class: "sd-file-picker__content", ref: el => (this.contentRef = el), onClick: this.handleClick, onKeyDown: e => {
|
|
229
270
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
230
271
|
e.preventDefault();
|
|
231
272
|
this.handleClick();
|
|
232
273
|
}
|
|
233
|
-
} }, h("input", { key: '
|
|
274
|
+
} }, h("input", { key: '7a1cddff8097952c0c9eda9ae8d1b46b4a18967e', 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: '2f7dffb5bfc39efb0eace252a45aaaa23091d337', name: "attachFile", size: Number(FILE_PICKER_LAYOUT.iconSize), color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { key: '1a6ae3daa59c7befebcfcfdcbbb2c46a32c6c40c', ref: el => (this.fileNamesRef = el), class: {
|
|
234
275
|
'sd-file-picker__text': true,
|
|
235
276
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
236
277
|
'sd-file-picker__text--active': hasFiles,
|
|
237
|
-
} }, displayText), !this.disabled &&
|
|
238
|
-
|
|
278
|
+
} }, displayText), showListbox && hasFiles && !this.disabled && (h("sd-ghost-button", { key: '895eafa47b1e1d851794fd471b304f8458bcac0f', icon: "caretDown", size: "xxs", ariaLabel: "toggle file list", disabled: this.disabled, class: {
|
|
279
|
+
'sd-file-picker__caret': true,
|
|
280
|
+
'sd-file-picker__caret--open': this.isListboxOpen,
|
|
281
|
+
}, onClick: this.handleListboxToggle })), !this.disabled && hasFiles && (h("sd-ghost-button", { key: '38d3fe31be05ae66a170671ffb4855bce4984630', 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: 'bb94815d7149ce9f1117828f893224c8bc1dbc50', class: "sd-file-picker__tooltip" }, displayText))));
|
|
282
|
+
return (h("div", { key: '3ada174508214a9fafd4f7f228ff52eb60aa76e4', class: {
|
|
239
283
|
'sd-file-picker__wrapper': true,
|
|
240
284
|
'sd-file-picker--inline': this.inline,
|
|
241
285
|
'sd-file-picker--inline-disabled': this.inline && this.disabled,
|
|
242
|
-
}, style: cssVars }, h("sd-field", { key: '
|
|
286
|
+
}, style: cssVars }, h("sd-field", { key: '29314b3ba5fc7c6b7d2f1a93a14381d9fb91bcfc', 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.useMultipleListBox ? this.renderListbox() : this.renderChipList()));
|
|
243
287
|
}
|
|
244
288
|
static get is() { return "sd-file-picker"; }
|
|
245
289
|
static get originalStyleUrls() {
|
|
@@ -357,6 +401,26 @@ export class SdFilePicker {
|
|
|
357
401
|
"attribute": "multiple",
|
|
358
402
|
"defaultValue": "false"
|
|
359
403
|
},
|
|
404
|
+
"useMultipleListBox": {
|
|
405
|
+
"type": "boolean",
|
|
406
|
+
"mutable": false,
|
|
407
|
+
"complexType": {
|
|
408
|
+
"original": "boolean",
|
|
409
|
+
"resolved": "boolean",
|
|
410
|
+
"references": {}
|
|
411
|
+
},
|
|
412
|
+
"required": false,
|
|
413
|
+
"optional": false,
|
|
414
|
+
"docs": {
|
|
415
|
+
"tags": [],
|
|
416
|
+
"text": "multiple \uD30C\uC77C \uBAA9\uB85D\uC744 \uD544\uB4DC \uC544\uB798 \uCE69 \uB300\uC2E0, caret(\u25BC) \uD074\uB9AD \uC2DC \uC5F4\uB9AC\uB294 \uB9AC\uC2A4\uD2B8\uBC15\uC2A4 \uCE74\uB4DC\uB85C \uD45C\uC2DC"
|
|
417
|
+
},
|
|
418
|
+
"getter": false,
|
|
419
|
+
"setter": false,
|
|
420
|
+
"reflect": true,
|
|
421
|
+
"attribute": "use-multiple-list-box",
|
|
422
|
+
"defaultValue": "false"
|
|
423
|
+
},
|
|
360
424
|
"accept": {
|
|
361
425
|
"type": "string",
|
|
362
426
|
"mutable": false,
|
|
@@ -776,7 +840,9 @@ export class SdFilePicker {
|
|
|
776
840
|
static get states() {
|
|
777
841
|
return {
|
|
778
842
|
"internalValue": {},
|
|
779
|
-
"showTooltip": {}
|
|
843
|
+
"showTooltip": {},
|
|
844
|
+
"isListboxOpen": {},
|
|
845
|
+
"listboxWidth": {}
|
|
780
846
|
};
|
|
781
847
|
}
|
|
782
848
|
static get events() {
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
background: var(--sd-floating-bg, #07284A);
|
|
11
11
|
color: var(--sd-floating-content, #FFFFFF);
|
|
12
|
-
box-shadow: 2px 2px 12px 2px rgba(0, 0, 0, 0.1);
|
|
13
12
|
animation: sd-floating-fade-in 0.35s ease-out;
|
|
14
13
|
}
|
|
15
14
|
.sd-floating-menu--top {
|
|
@@ -114,6 +113,7 @@
|
|
|
114
113
|
}
|
|
115
114
|
.sd-floating-menu--popover {
|
|
116
115
|
padding: 16px 20px;
|
|
116
|
+
box-shadow: 2px 2px 12px 2px rgba(0, 0, 0, 0.1);
|
|
117
117
|
}
|
|
118
118
|
.sd-floating-menu--popover .sd-floating-menu__content {
|
|
119
119
|
gap: 4px;
|
|
@@ -173,7 +173,7 @@ export class SdFloatingPopover {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return h("slot", { key: '
|
|
176
|
+
return h("slot", { key: '7bdfc66c7baa0a195d1c0438e6bdd0705a7e5ffd' });
|
|
177
177
|
}
|
|
178
178
|
static get is() { return "sd-floating-portal"; }
|
|
179
179
|
static get originalStyleUrls() {
|
|
@@ -29,7 +29,6 @@ export const GUIDE_CONFIG = {
|
|
|
29
29
|
paddingX: `${contents.paddingX}px`,
|
|
30
30
|
paddingY: `${contents.paddingY}px`,
|
|
31
31
|
gap: `${contents.gap}px`,
|
|
32
|
-
rowGap: `${contents.row.gap}px`,
|
|
33
32
|
bodyGap: `${contents.body.gap}px`,
|
|
34
33
|
titleGap: `${contents.title.gap}px`,
|
|
35
34
|
radius: `${contents.radius}px`,
|
|
@@ -124,9 +124,6 @@ sd-guide {
|
|
|
124
124
|
margin-right: 12px;
|
|
125
125
|
flex-shrink: 0;
|
|
126
126
|
}
|
|
127
|
-
.sd-guide__popup__list__item--depth-1:not(:first-child) {
|
|
128
|
-
margin-top: var(--sd-guide-contents-row-gap);
|
|
129
|
-
}
|
|
130
127
|
.sd-guide__popup__list__item--depth-2 {
|
|
131
128
|
margin-top: var(--sd-guide-contents-body-gap);
|
|
132
129
|
}
|
|
@@ -60,7 +60,6 @@ export class SdGuide {
|
|
|
60
60
|
'--sd-guide-contents-padding-x': contents.paddingX,
|
|
61
61
|
'--sd-guide-contents-padding-y': contents.paddingY,
|
|
62
62
|
'--sd-guide-contents-gap': contents.gap,
|
|
63
|
-
'--sd-guide-contents-row-gap': contents.rowGap,
|
|
64
63
|
'--sd-guide-contents-body-gap': contents.bodyGap,
|
|
65
64
|
'--sd-guide-contents-title-gap': contents.titleGap,
|
|
66
65
|
'--sd-guide-contents-radius': contents.radius,
|
|
@@ -83,10 +82,10 @@ export class SdGuide {
|
|
|
83
82
|
const buttonClasses = ['sd-guide__button', `sd-guide__button--type-${this.type ?? 'tip'}`];
|
|
84
83
|
if (isActive)
|
|
85
84
|
buttonClasses.push('sd-guide__button--active');
|
|
86
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: '7d85d4650de1bef19699cdacaceeeab69a7f221c', class: "sd-guide", style: this.guideStyle }, h("sd-button", { key: 'b4cd191ba9593ce83343097e9b24fb56d86c6859', ref: el => (this.guideRef = el), class: buttonClasses.join(' '), name: isActive ? 'primary_sm' : 'neutral_outline_sm', label: this.label || defaultLabel, icon: iconName, onSdClick: this.handleClickGuide }), this.popupShow && (h("sd-portal", { key: '2523de8af47987b2f0761c999817bf1ca595b4e6', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: '2fcc5a768d626d5ba97427ad99dc1c6155b5c36b', class: "sd-guide__popup", style: {
|
|
87
86
|
...this.guideStyle,
|
|
88
87
|
width: this.popupWidth != null ? this.popupWidth + 'px' : '426px',
|
|
89
|
-
} }, h("sd-ghost-button", { key: '
|
|
88
|
+
} }, h("sd-ghost-button", { key: 'de6b053ff6373bf2690d0874d01692e456a38991', class: "sd-guide__popup__close", icon: "close", ariaLabel: "close", size: "sm", onSdClick: this.closeDropdown }), h("div", { key: '10f2de0819a6a97571719ca2e04101833c78f1d3', class: "sd-guide__popup__header" }, h("sd-icon", { key: 'b11478e02574f5e211cd9d2478080d2c9895cb5d', name: iconName, size: 24, color: popupIconColor }), h("h3", { key: 'ef361769bc0363ebb7215b6fbd1fdb38b2864434', class: "sd-guide__popup__title" }, this.popupTitle || defaultLabel)), h("ul", { key: '914ae5fa0fa7ae52954df58e17beb187ddc2a966', class: "sd-guide__popup__list" }, this.renderListItem(this.message)))))));
|
|
90
89
|
}
|
|
91
90
|
// 현재 2depth까지만 스타일 적용
|
|
92
91
|
renderListItem(message, depth = 0) {
|
|
@@ -152,12 +152,12 @@ export class SdInput {
|
|
|
152
152
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
153
153
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
154
154
|
};
|
|
155
|
-
return (h("sd-field", { key: '
|
|
155
|
+
return (h("sd-field", { key: '7ec67f4433bff2a7d2f1b44935f761d79f0e8681', 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: '6c0118c2610f06d13d4a38a857bf37c7ad9508d0', class: "sd-input__content" }, h("slot", { key: '31cd8fe72ab21cb7a562accff98545fdf59efa80', name: "prefix" }), h("input", { key: '47579f31e9255bda6d5623eca8071ffdafd0ca55', 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: 'f2d6e313c8c542d88c252e26cbb2618977fda5fa', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: 'b24cb32d5963b244aef76e31f1c0f350d316be5c', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
156
156
|
if (this.disabled || this.readonly)
|
|
157
157
|
return;
|
|
158
158
|
this.internalValue = '';
|
|
159
159
|
await this.formField?.sdValidate();
|
|
160
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
160
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '9592350fd3820fa8c8af637cb84f2d4517d6decd', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
161
161
|
if (this.disabled || this.readonly)
|
|
162
162
|
return;
|
|
163
163
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -31,7 +31,7 @@ export class SdLinearProgress {
|
|
|
31
31
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
32
32
|
};
|
|
33
33
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'c87705d4ca2e7d61de15412af8df8fe32aec6e56', style: hostStyle }, h("div", { key: '0343b5d209cf49e7d25bb7ede349eae791890e29', class: "sd-linear-progress__track" }, h("div", { key: '7771c6589c061d7bba7eb2ae88e1752d80912357', class: "sd-linear-progress__fill", style: fillStyle }), !this.indeterminate && (h("span", { key: '66f85b9d5f87d7c2aeafd6eadcdc3fb1739124c9', class: "sd-linear-progress__value sd-linear-progress__value--on-track" }, valueText)), !this.indeterminate && (h("span", { key: 'd8581b453770e4c8db55abddc6c57f9b90701786', class: "sd-linear-progress__value sd-linear-progress__value--on-fill", style: valueOnFillStyle }, valueText))), this.label && h("span", { key: '4223bfa7292cc9adeb9dca1ce18ee45cefc8d670', class: "sd-linear-progress__label" }, this.label)));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "sd-linear-progress"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -32,10 +32,10 @@ export class SdLoadingContainer {
|
|
|
32
32
|
this.prevBodyOverflow = null;
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: 'c2dad1bed0e513341a447f164fecbb2f879ed523', class: {
|
|
36
36
|
'sd-loading-container': true,
|
|
37
37
|
'sd-loading-container--visible': this.visible,
|
|
38
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '
|
|
38
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '254c3cb5eeb25b6c69b3812fbaada2a26d6620e0', class: "sd-loading-container__backdrop" }), h("div", { key: '58ca4033b25302d8a7ea3f25e6b5e8aa7ce9f51c', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: 'c8d48fa1814186a674d3f7c8b63bcd26541299ba', indeterminate: true, type: "inverse" }), this.message && h("p", { key: '899a5f32ceecb23b4f88b750aa634106bb42b394', class: "sd-loading-container__message" }, this.message))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "sd-loading-container"; }
|
|
41
41
|
static get originalStyleUrls() {
|
|
@@ -2,6 +2,7 @@ sd-loading-modal {
|
|
|
2
2
|
display: inline-block;
|
|
3
3
|
}
|
|
4
4
|
sd-loading-modal .sd-loading-modal {
|
|
5
|
+
position: relative;
|
|
5
6
|
display: flex;
|
|
6
7
|
flex-direction: column;
|
|
7
8
|
align-items: center;
|
|
@@ -15,6 +16,12 @@ sd-loading-modal .sd-loading-modal {
|
|
|
15
16
|
background: var(--sd-loading-modal-bg);
|
|
16
17
|
box-shadow: 4px 4px 24px 4px rgba(0, 0, 0, 0.2);
|
|
17
18
|
}
|
|
19
|
+
sd-loading-modal .sd-loading-modal__close {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 16px;
|
|
22
|
+
right: 16px;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
18
25
|
sd-loading-modal .sd-loading-modal__content {
|
|
19
26
|
display: flex;
|
|
20
27
|
align-items: center;
|
|
@@ -17,6 +17,8 @@ export class SdLoadingModal {
|
|
|
17
17
|
progress;
|
|
18
18
|
/** 버튼 클릭 시 발생합니다. */
|
|
19
19
|
click;
|
|
20
|
+
/** 닫기 버튼 클릭 시 발생합니다. (error 상태에서만 노출) */
|
|
21
|
+
close;
|
|
20
22
|
get resolvedState() {
|
|
21
23
|
return this.state ?? 'loading';
|
|
22
24
|
}
|
|
@@ -58,7 +60,7 @@ export class SdLoadingModal {
|
|
|
58
60
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
59
61
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
60
62
|
};
|
|
61
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '71bec4b63fc71720dfc10daecab4e63b8fc12b68', style: hostStyle }, h("div", { key: '20f67d5f61a7c7150b236ebe13fecb345b5a20be', class: "sd-loading-modal" }, this.resolvedState === 'error' && (h("sd-ghost-button", { key: '395097aa0cbf7c277f7669bdc01fe756316ba4a0', class: "sd-loading-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), h("div", { key: '6942b24672bf59b7c7f34bab0cce38b3d0e477f7', 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: '5dd0e24f06c8283b1baa7eeadf6547a96ecc784e', 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.showButton && (h("div", { key: 'b686ab5f29a9a61520ba5a43f9d214f37c1a90d7', class: "sd-loading-modal__button" }, h("sd-button", { key: '2378b8f300538c9aab8775a526104acd6089b580', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
62
64
|
}
|
|
63
65
|
static get is() { return "sd-loading-modal"; }
|
|
64
66
|
static get originalStyleUrls() {
|
|
@@ -235,6 +237,21 @@ export class SdLoadingModal {
|
|
|
235
237
|
"resolved": "void",
|
|
236
238
|
"references": {}
|
|
237
239
|
}
|
|
240
|
+
}, {
|
|
241
|
+
"method": "close",
|
|
242
|
+
"name": "sdClose",
|
|
243
|
+
"bubbles": true,
|
|
244
|
+
"cancelable": true,
|
|
245
|
+
"composed": true,
|
|
246
|
+
"docs": {
|
|
247
|
+
"tags": [],
|
|
248
|
+
"text": "\uB2EB\uAE30 \uBC84\uD2BC \uD074\uB9AD \uC2DC \uBC1C\uC0DD\uD569\uB2C8\uB2E4. (error \uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uB178\uCD9C)"
|
|
249
|
+
},
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "void",
|
|
252
|
+
"resolved": "void",
|
|
253
|
+
"references": {}
|
|
254
|
+
}
|
|
238
255
|
}];
|
|
239
256
|
}
|
|
240
257
|
}
|
|
@@ -314,15 +314,15 @@ export class SdNumberInput {
|
|
|
314
314
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
315
315
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
316
316
|
};
|
|
317
|
-
return (h("sd-field", { key: '
|
|
317
|
+
return (h("sd-field", { key: '9e82f7ec1e40c7f435233d1d8e05fdd2de0c2712', 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("div", { key: 'b5f2e1c32bbba8147a72edf2dfe42f591d81d6f7', class: {
|
|
318
318
|
'sd-number-input__content': true,
|
|
319
319
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
320
|
-
} }, this.useButton && (h("button", { key: '
|
|
320
|
+
} }, this.useButton && (h("button", { key: '07e053c769556282da7595ba7d185db7c9af19a2', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '95b48b8a0fa45ff60b3097d24405b48e4776b928', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
321
321
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
322
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '
|
|
322
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '2381fade9767b593d5f6848bc411c3244a6f9da2', class: "sd-number-input__prefix" }, this.inputPrefix), h("input", { key: '00b886990e9c1155c20ee404eda26777e56d31c2', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
323
323
|
textAlign: this.useButton ? 'center' : 'right',
|
|
324
324
|
...this.inputStyle,
|
|
325
|
-
} }), this.inputSuffix && h("span", { key: '
|
|
325
|
+
} }), this.inputSuffix && h("span", { key: '5254313e957f3ded4139f047b588e38222c33975', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (h("button", { key: 'f7389a1c5869460791249f579b3195b3583255fe', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'b272b62e2ce27a1e5ecb86738af6eacb89b0d6c6', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
326
326
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
327
327
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
328
328
|
}
|
|
@@ -88,13 +88,13 @@ export class SdPagination {
|
|
|
88
88
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
89
89
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
90
90
|
};
|
|
91
|
-
return (h("div", { key: '
|
|
91
|
+
return (h("div", { key: '4a67cbb9ed9d3cafbd3d9f99562948e3b3840210', class: {
|
|
92
92
|
'sd-pagination': true,
|
|
93
93
|
'sd-pagination--simple': this.simple,
|
|
94
|
-
}, style: cssVars }, h("div", { key: '
|
|
94
|
+
}, style: cssVars }, h("div", { key: 'f0cc77abd3b03a1525f52fbcd2587b6ad9cd468d', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
95
95
|
'sd-pagination__item': true,
|
|
96
96
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
97
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
97
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'c4053f5917345cf1e7fcea9f3c2fa0d6b5fa7a3f', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "sd-pagination"; }
|
|
100
100
|
static get originalStyleUrls() {
|
|
@@ -40,7 +40,7 @@ export class SdPopup {
|
|
|
40
40
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
41
41
|
...this.submitButtonProps,
|
|
42
42
|
};
|
|
43
|
-
return (h("div", { key: '
|
|
43
|
+
return (h("div", { key: 'f138f3d792295a6e1cb3894033547176cfd03163', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: '7ff26c89a03cd79d5abe83513d96ae5f40b83869', class: "sd-popup__header" }, h("h2", { key: 'd9d3282b60b5b6baa5c2b1568c13db5847e9f9af', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'a296adcd58df30f4915b2523931c5b9eb4588e5d', class: "sd-popup__body" }, h("slot", { key: 'aaf4dfc93d5664ca19a8071e3f37bf8a5857e471' })), this.useFooter && (h("footer", { key: '1afb1b638fa8bfa69f5d4bc87fca538800614312', class: "sd-popup__footer" }, h("div", { key: '7539bc751847a03fef6ec1e15587b346ffb19c83', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '66fbec51d23bd1a203159f6c968935034a4c086c', name: "footer-left" })), h("sd-button", { key: '8d236d5fcd9b5fdae1c27ade7bff6bc605ef8bde', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "sd-popup"; }
|
|
46
46
|
static get originalStyleUrls() {
|
|
@@ -94,10 +94,10 @@ sd-radio-group .sd-radio-group {
|
|
|
94
94
|
}
|
|
95
95
|
sd-radio-group .sd-radio-group--vertical {
|
|
96
96
|
flex-direction: column;
|
|
97
|
-
gap:
|
|
97
|
+
gap: var(--sd-radio-radio-group-gap-vertical);
|
|
98
98
|
}
|
|
99
99
|
sd-radio-group .sd-radio-group--horizontal {
|
|
100
100
|
flex-direction: row;
|
|
101
101
|
align-items: center;
|
|
102
|
-
gap:
|
|
102
|
+
gap: var(--sd-radio-radio-group-gap-horizontal);
|
|
103
103
|
}
|
|
@@ -78,7 +78,7 @@ export class SdSelectListItem {
|
|
|
78
78
|
return (
|
|
79
79
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
80
80
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
81
|
-
h("div", { key: '
|
|
81
|
+
h("div", { key: '0e0a07c33c9e6718771ba8cc27d62e4909434562', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
82
82
|
'sd-select-list-item': true,
|
|
83
83
|
'sd-select-list-item--group': isGroup,
|
|
84
84
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -88,7 +88,7 @@ export class SdSelectListItem {
|
|
|
88
88
|
'sd-select-list-item--focused': this.isFocused,
|
|
89
89
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
90
90
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
91
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
91
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: 'd3078da8737c28b279f2057c06266710af6191cd', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: '36b88dbda0d2bbd27b5df60eaaa855ebe77e0905', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "sd-select-list-item"; }
|
|
94
94
|
static get originalStyleUrls() {
|
|
@@ -45,15 +45,15 @@ export class SdSelectListItemSearch {
|
|
|
45
45
|
clearTimeout(this.debounceTimer);
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: '6caac256fb6b1fc3e7b3fc7f7ee66b163737f944', class: {
|
|
49
49
|
'sd-select-list-item-search': true,
|
|
50
50
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
51
|
-
} }, h("div", { key: '
|
|
51
|
+
} }, h("div", { key: '3193b47072cb73c4400e606aa8dbd4553e178738', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '6165dae71933cbdf5c66d533d4cae43ae95f7bd4', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: 'd0526a3a20e220068a4b4cb489af060c80952325', ref: el => {
|
|
52
52
|
this.inputEl = el;
|
|
53
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '
|
|
53
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: 'e139b3ddab9ac793bfcf44480161a1d0c501a861', type: "button", class: {
|
|
54
54
|
'sd-select-list-item-search__clear': true,
|
|
55
55
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
56
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
56
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '4d29274a17767dec92bb6052196832272ab215df', name: "close", size: 12, color: "#888888" })))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "sd-select-list-item-search"; }
|
|
59
59
|
static get originalStyleUrls() {
|
|
@@ -361,9 +361,9 @@ export class SdSelectListbox {
|
|
|
361
361
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
362
362
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
363
363
|
};
|
|
364
|
-
return (h("div", { key: '
|
|
364
|
+
return (h("div", { key: '4de15e4c150ee542656ee3f73aa41dd32379748f', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: 'cb656ccafc2833b438f14ac48ca8686684212ead', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: '5ffaefb63605c4319810046e9d40aa5fcb4754de', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
365
365
|
this.listEl = el;
|
|
366
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
366
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: 'e1d3f7a37a037b386aae50cceb61e2b79d37453e', 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 ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (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) })))))));
|
|
367
367
|
}
|
|
368
368
|
static get is() { return "sd-select-listbox"; }
|
|
369
369
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,7 +51,7 @@ export class SdSelectTrigger {
|
|
|
51
51
|
? SELECT_COLORS.icon.disabled
|
|
52
52
|
: SELECT_COLORS.icon.default,
|
|
53
53
|
};
|
|
54
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: '33e639898a581e8556e1e9c966f14cb863246c35', ref: el => {
|
|
55
55
|
this.triggerEl = el;
|
|
56
56
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
57
57
|
'sd-select-trigger': true,
|
|
@@ -62,7 +62,7 @@ export class SdSelectTrigger {
|
|
|
62
62
|
e.preventDefault();
|
|
63
63
|
this.handleClick();
|
|
64
64
|
}
|
|
65
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
65
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'a935f82879727eb212422c875b16e5fbf01460ba', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), h("sd-icon", { key: 'e98e8e317aa86a960674b21714ca90cfa3920197', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
66
66
|
'sd-select-trigger__icon': true,
|
|
67
67
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
68
68
|
} }))));
|
|
@@ -283,15 +283,15 @@ export class SdSelect {
|
|
|
283
283
|
this.closeDropdown();
|
|
284
284
|
},
|
|
285
285
|
};
|
|
286
|
-
return (h("sd-field", { key: '
|
|
286
|
+
return (h("sd-field", { key: '2272f300b9aa6645dd772d06694e728f9abcea28', 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: () => {
|
|
287
287
|
this.hovered = true;
|
|
288
288
|
}, onMouseLeave: () => {
|
|
289
289
|
this.hovered = false;
|
|
290
|
-
} }, h("div", { key: '
|
|
290
|
+
} }, h("div", { key: 'b9c769146720634abb4d018d022e28749ef0b939', class: "sd-select", ref: el => {
|
|
291
291
|
this.triggerRef = el;
|
|
292
|
-
} }, h("sd-select-trigger", { key: '
|
|
292
|
+
} }, h("sd-select-trigger", { key: '792bbee6e36298a306d720bc15bff61d5bba7545', ref: el => {
|
|
293
293
|
this.triggerComponentRef = el;
|
|
294
|
-
}, 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) && (h("sd-portal", { key: '
|
|
294
|
+
}, 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) && (h("sd-portal", { key: 'c70299735ea4f9fd257a0b3384e728bbf9fc9d97', ...portalProps }, h("sd-select-listbox", { key: 'd0dbfc0382131e998f54d6a0cb04fc6b1a9128c8', 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) })))));
|
|
295
295
|
}
|
|
296
296
|
static get is() { return "sd-select"; }
|
|
297
297
|
static get originalStyleUrls() {
|
|
@@ -45,7 +45,7 @@ export class SdSwitch {
|
|
|
45
45
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
46
46
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
47
47
|
};
|
|
48
|
-
return (h("label", { key: '
|
|
48
|
+
return (h("label", { key: '0dd7063a45e2adc589e2e8dfc7cdb5c0c585aeac', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: '01b94b14edd1571b8e21ba5a8bb72a0bd151b3a2', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: '6c6bfaa3909ed885811f3e2af402d3a16c9b75e2', class: "sd-switch__track" }, h("div", { key: 'd3861a5c67779b7e871d7a2f45b20439648402cc', class: "sd-switch__knob" })), this.label && h("span", { key: '25c5198adb208b1016e9eb5bf01eaa6fb501ebe5', class: "sd-switch__label" }, this.label)));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "sd-switch"; }
|
|
51
51
|
static get originalStyleUrls() {
|
|
@@ -28,10 +28,11 @@ export const TABLE_BODY_LAYOUT = {
|
|
|
28
28
|
},
|
|
29
29
|
dense: {
|
|
30
30
|
height: tableTokens.table.body.dense.height,
|
|
31
|
-
paddingY: tableTokens.table.body.dense
|
|
31
|
+
paddingY: tableTokens.table.body.paddingY.dense,
|
|
32
32
|
},
|
|
33
|
-
paddingX: tableTokens.table.body.paddingX.
|
|
34
|
-
|
|
33
|
+
paddingX: tableTokens.table.body.paddingX.wide,
|
|
34
|
+
densePaddingX: tableTokens.table.body.paddingX.default,
|
|
35
|
+
framePadding: tableTokens.table.body.paddingX.default,
|
|
35
36
|
};
|
|
36
37
|
export const TABLE_BODY_TYPOGRAPHY = {
|
|
37
38
|
fontFamily: tableTokens.table.body.typography.fontFamily,
|