@sellmate/design-system 1.18.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.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-calendar_2.cjs.entry.js +5 -5
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +29 -2
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +9 -9
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +8 -8
- package/dist/cjs/{sd-ghost-button_2.cjs.entry.js → sd-ghost-button_3.cjs.entry.js} +264 -10
- package/dist/cjs/sd-key-value-table.cjs.entry.js +12 -6
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +8 -8
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +10 -9
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.js +1 -1
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +48 -2
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-field/sd-field.js +5 -5
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +2 -17
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +21 -12
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +1 -0
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +10 -3
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +17 -12
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +34 -3
- 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.css +4 -1
- package/dist/collection/components/sd-table/sd-table.js +15 -14
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/{p-CH6cVc2a.js → p-5GcM22aW.js} +1 -1
- package/dist/components/p-B7PHGGFH.js +1 -0
- package/dist/components/{p-DMS9mQsg.js → p-BHW1fnDC.js} +1 -1
- package/dist/components/{p-B3SKaQId.js → p-BZjIn1hr.js} +1 -1
- package/dist/components/{p-CzCu_NDl.js → p-Bd-fDbVE.js} +1 -1
- package/dist/components/p-BeYMZ1fR.js +1 -0
- package/dist/components/{p-79DExV92.js → p-BuFzlA0M.js} +1 -1
- package/dist/components/{p-CQWZv8vY.js → p-BzUU-npj.js} +1 -1
- package/dist/components/p-CEhI4kUA.js +1 -0
- package/dist/components/{p-4HPAPKne.js → p-CQozoo2-.js} +1 -1
- package/dist/components/p-Cfko62rU.js +1 -0
- package/dist/components/{p-hzCGj0On.js → p-ChncPmp-.js} +1 -1
- package/dist/components/p-CiEAVQT4.js +1 -0
- package/dist/components/p-CjYYBlrZ.js +1 -0
- package/dist/components/p-CvSqieCH.js +1 -0
- package/dist/components/p-DAJIg-VD.js +1 -0
- package/dist/components/p-DRgPF0Fp.js +1 -0
- package/dist/components/p-DYOyb7rq.js +1 -0
- package/dist/components/{p-BD8OoYud.js → p-DaMzYzXI.js} +1 -1
- package/dist/components/{p-BMIgVp9-.js → p-De7UsPPk.js} +1 -1
- package/dist/components/p-Df1g_kVH.js +1 -0
- package/dist/components/p-DpfXh55-.js +1 -0
- package/dist/components/{p-B_5uwji5.js → p-E5buAge1.js} +1 -1
- package/dist/components/{p-BLNc_TL-.js → p-P2jWtk8J.js} +1 -1
- package/dist/components/{p-C_r3z9VA.js → p-lmVlfugh.js} +1 -1
- package/dist/components/p-nruUh8p1.js +1 -0
- package/dist/components/p-pSthmtsz.js +1 -0
- package/dist/components/p-vTnMooAF.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-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-chip-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-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-80bde621.entry.js → p-08343698.entry.js} +1 -1
- package/dist/design-system/{p-bbbc4b27.entry.js → p-2151e081.entry.js} +1 -1
- package/dist/design-system/p-316b8a08.entry.js +1 -0
- package/dist/design-system/{p-f5190934.entry.js → p-4acfc5f9.entry.js} +1 -1
- package/dist/design-system/{p-22484d65.entry.js → p-5039241c.entry.js} +1 -1
- package/dist/design-system/p-52f551a1.entry.js +1 -0
- package/dist/design-system/{p-d726d8e7.entry.js → p-54853a2b.entry.js} +1 -1
- package/dist/design-system/p-5eaa12af.entry.js +1 -0
- package/dist/design-system/{p-827f067b.entry.js → p-646a7830.entry.js} +1 -1
- package/dist/design-system/p-717eba5f.entry.js +1 -0
- package/dist/design-system/{p-8f90620b.entry.js → p-9289eb14.entry.js} +1 -1
- package/dist/design-system/{p-b4b20a86.entry.js → p-98e0b332.entry.js} +1 -1
- package/dist/design-system/{p-9124a1af.entry.js → p-9c38ee79.entry.js} +1 -1
- package/dist/design-system/{p-c318b762.entry.js → p-a4331364.entry.js} +1 -1
- package/dist/design-system/{p-683c3b91.entry.js → p-a5a586da.entry.js} +1 -1
- package/dist/design-system/{p-1602a5fa.entry.js → p-aa1c6202.entry.js} +1 -1
- package/dist/design-system/{p-8a84a4fe.entry.js → p-ae344950.entry.js} +1 -1
- package/dist/design-system/p-b291baab.entry.js +1 -0
- package/dist/design-system/{p-e93dda25.entry.js → p-b63b8df9.entry.js} +1 -1
- package/dist/design-system/{p-3caf2c5b.entry.js → p-bdb7492c.entry.js} +1 -1
- package/dist/design-system/{p-cc5f5bff.entry.js → p-c47198fc.entry.js} +1 -1
- package/dist/design-system/p-c995e6c3.entry.js +1 -0
- package/dist/design-system/{p-9095aab6.entry.js → p-cb80327c.entry.js} +1 -1
- package/dist/design-system/{p-7ed5aed5.entry.js → p-ccf1a3fc.entry.js} +1 -1
- package/dist/design-system/{p-4e1d76b8.entry.js → p-df7c721d.entry.js} +1 -1
- package/dist/design-system/p-e3990243.entry.js +1 -0
- package/dist/design-system/{p-81aa23d1.entry.js → p-e9d1dbb5.entry.js} +1 -1
- package/dist/design-system/p-faf7b64c.entry.js +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.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-calendar_2.entry.js +5 -5
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +29 -2
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-picker_7.entry.js +9 -9
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-field_3.entry.js +8 -8
- package/dist/esm/{sd-ghost-button_2.entry.js → sd-ghost-button_3.entry.js} +265 -12
- package/dist/esm/sd-key-value-table.entry.js +12 -6
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-pagination_4.entry.js +8 -8
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select_3.entry.js +8 -8
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/sd-table.entry.js +10 -9
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +4 -0
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +7 -1
- package/dist/types/components/sd-key-value-table/sd-key-value-table.config.d.ts +1 -0
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +5 -3
- package/dist/types/components/sd-portal/sd-portal.d.ts +1 -0
- package/dist/types/components/sd-table/sd-table.d.ts +1 -1
- package/dist/types/components.d.ts +35 -29
- package/hydrate/index.js +153 -101
- package/hydrate/index.mjs +153 -101
- package/package.json +3 -3
- package/dist/cjs/sd-portal.cjs.entry.js +0 -243
- package/dist/components/p-AI4YlQmL.js +0 -1
- package/dist/components/p-B-4ulKJj.js +0 -1
- package/dist/components/p-BX5uKVOt.js +0 -1
- package/dist/components/p-BYTrIk62.js +0 -1
- package/dist/components/p-Bzo51vnP.js +0 -1
- package/dist/components/p-C0tkFuhj.js +0 -1
- package/dist/components/p-C3wv8gVC.js +0 -1
- package/dist/components/p-CXRFEcE_.js +0 -1
- package/dist/components/p-Cl5io5TH.js +0 -1
- package/dist/components/p-DAOeioSV.js +0 -1
- package/dist/components/p-DTFXzlvq.js +0 -1
- package/dist/components/p-Dr5Q2ZKB.js +0 -1
- package/dist/components/p-DyVh4pNL.js +0 -1
- package/dist/components/p-Ng3JMPxb.js +0 -1
- package/dist/components/p-qJeUUOyB.js +0 -1
- package/dist/design-system/p-0a772d43.entry.js +0 -1
- package/dist/design-system/p-12306783.entry.js +0 -1
- package/dist/design-system/p-43529bba.entry.js +0 -1
- package/dist/design-system/p-46da89f2.entry.js +0 -1
- package/dist/design-system/p-8a025f91.entry.js +0 -1
- package/dist/design-system/p-a263af1b.entry.js +0 -1
- package/dist/design-system/p-a532d998.entry.js +0 -1
- package/dist/design-system/p-bcd7d358.entry.js +0 -1
- package/dist/design-system/p-ff939fbd.entry.js +0 -1
- package/dist/esm/sd-portal.entry.js +0 -241
|
@@ -17,7 +17,7 @@ let nanoid = (size = 21) => {
|
|
|
17
17
|
return id
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const sdTableCss = () => `sd-table,:host{display:block;width:100%;height:var(--table-host-height);max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:100%;width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:calc(100% - var(--pagination-height, 0px));border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--
|
|
20
|
+
const sdTableCss = () => `sd-table,:host{display:block;width:100%;height:var(--table-host-height);max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:100%;width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:calc(100% - var(--pagination-height, 0px));border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--radius-useTop{border-radius:0 0 var(--table-radius, 8px) var(--table-radius, 8px)}.sd-table__wrapper--radius-full{border-radius:0}.sd-table__scroll-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative;font-family:var(--table-body-font-family, inherit);font-weight:var(--table-body-font-weight, 400);font-size:var(--table-body-font-size, 12px);line-height:var(--table-body-line-height, 20px);text-decoration:var(--table-body-text-decoration, none);overflow:auto;background:#FFFFFF}.sd-table__scroll-container--loading{overflow:hidden !important;pointer-events:none}.sd-table__scroll-container--no-data{overflow:hidden;pointer-events:none}.sd-table__no-data{position:absolute;top:36px;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:var(--table-body-font-size, 12px);color:#888888;pointer-events:none;z-index:200;background:rgba(255, 255, 255, 0.6)}.sd-table__no-data-header-overlay{position:absolute;top:0;left:0;right:0;height:36px;background:rgba(255, 255, 255, 0.6);z-index:210;pointer-events:none}.sd-table__no-data-content{pointer-events:auto;min-height:60px;width:100%;display:flex;align-items:center;justify-content:center}.sd-table__loading{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center;pointer-events:none}.sd-table{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table--selectable sd-thead,.sd-table--selectable sd-tbody{--selectable:true}.sd-table--sticky-header sd-thead thead{position:sticky;top:0;z-index:120}.sd-table--sticky-column sd-thead,.sd-table--sticky-column sd-tbody{--sticky-column:true}.sd-table--scrolled-left sd-thead,.sd-table--scrolled-left sd-tbody{--scrolled-left:true}.sd-table--scrolled-right sd-thead,.sd-table--scrolled-right sd-tbody{--scrolled-right:true}.sd-table--resizable sd-thead{--resizable:true}.sd-table--no-data sd-thead{opacity:0.4}.sd-table__pagination{position:relative;background:#F9F9F9;height:48px;display:flex;align-items:center;justify-content:center;border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);margin-top:-1px;border-radius:var(--table-radius, 8px)}.sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}`;
|
|
21
21
|
|
|
22
22
|
const SdTable = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -42,7 +42,7 @@ const SdTable = class {
|
|
|
42
42
|
height;
|
|
43
43
|
stickyHeader = false;
|
|
44
44
|
stickyColumn = { left: 0, right: 0 };
|
|
45
|
-
|
|
45
|
+
radius = 'default';
|
|
46
46
|
noDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
47
47
|
resolvedNoDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
48
48
|
isLoading = false;
|
|
@@ -843,24 +843,25 @@ const SdTable = class {
|
|
|
843
843
|
'--table-selectable-width': `${TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
844
844
|
'--table-host-height': hostHeight,
|
|
845
845
|
};
|
|
846
|
-
return (h(Host, { key: '
|
|
846
|
+
return (h(Host, { key: 'f5a5a2d4012f069619d110dcd9c2d5e6bd446407', style: hostStyle }, h("div", { key: '96ca8b8e4291ac077a6e1b6d3eed897777817b25', class: "sd-table__container", style: {
|
|
847
847
|
'--table-width': this.width,
|
|
848
848
|
'--pagination-height': `${paginationHeight}px`,
|
|
849
|
-
} }, h("div", { key: '
|
|
849
|
+
} }, h("div", { key: 'd8225691e78e5fe5341f03def8ad1d6dfb057056', class: {
|
|
850
850
|
'sd-table__wrapper': true,
|
|
851
|
-
'sd-table__wrapper--
|
|
852
|
-
|
|
851
|
+
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
852
|
+
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
853
|
+
} }, h("div", { key: 'fb8403bd7587a4d1fcbb77b1fe226ae0aa27be7a', class: {
|
|
853
854
|
'sd-table__scroll-container': true,
|
|
854
855
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
855
856
|
'sd-table__scroll-container--no-data': isNoData,
|
|
856
|
-
} }, this.isLoading && (h("div", { key: '
|
|
857
|
+
} }, this.isLoading && (h("div", { key: '4202fa1f03feff066f9779c5eb21c3b0c96f5cf3', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '394c52823f5c24f288d51b34daec6f228de119d7', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: 'bb1d3d8b592194006bea7cd5ab2efc587f9abc44', class: "sd-table__no-data-header-overlay" }), h("div", { key: 'c34df2b4f35c7ea8b5bbe6cf49dc354e11dac344', class: "sd-table__no-data" }, h("div", { key: '05006aacc2c242606ba8585ee0bdea50eea1b688', class: "sd-table__no-data-content", ref: el => {
|
|
857
858
|
this.noDataContentEl = el;
|
|
858
859
|
if (el)
|
|
859
860
|
this.syncNoDataContentObserver();
|
|
860
|
-
} }, h("slot", { key: '
|
|
861
|
+
} }, h("slot", { key: 'ad707be9bc8062da5a6236c9833176adb7b95851', name: "no-data" }, h("span", { key: '3aa57b547e05bd455829cff770c435af2ac78383' }, this.resolvedNoDataLabel)))))), h("table", { key: '6b2958f14d9708a49e3cbaff7cdb3653f7267e1c', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
861
862
|
this.pagination.rowsPerPage > 0 &&
|
|
862
863
|
this.rowCount > 0 &&
|
|
863
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
864
|
+
!this.useVirtualScroll && (h("div", { key: '950e80fdb6c06af2b4423e3b0c75ded7cfe4a298', class: "sd-table__pagination" }, h("sd-pagination", { key: '3257c7b631c262c9ddadbd23c83f2eb43f9bf7f5', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: '7bb00889139aa7dbee4723efac511753afcb15e9', value: this.useInternalPagination
|
|
864
865
|
? this.innerRowsPerPage
|
|
865
866
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
866
867
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -199,7 +199,7 @@ const SdTabs = class {
|
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
render() {
|
|
202
|
-
return (h("div", { key: '
|
|
202
|
+
return (h("div", { key: 'c2a2bd86833267ca4b47e7c6420e04a504af05f5', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
203
203
|
const badgeName = this.getBadgeName(tab);
|
|
204
204
|
return (h("div", { key: `tab-${index}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
205
205
|
if (e.key === 'Enter' || e.key === ' ') {
|
package/dist/esm/sd-td.entry.js
CHANGED
|
@@ -156,7 +156,7 @@ const SdTd = class {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
render() {
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: 'ed5419d9190514381bb8fe43a8588c7d88983527', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '308d16388614375c94bd4c5efc8e173b56b4af2a' })));
|
|
160
160
|
}
|
|
161
161
|
static get watchers() { return {
|
|
162
162
|
"field": [{
|
|
@@ -232,7 +232,7 @@ const SdToastContainer = class {
|
|
|
232
232
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
233
233
|
const indexMap = new Map();
|
|
234
234
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
235
|
-
return (h("div", { key: '
|
|
235
|
+
return (h("div", { key: 'f5b2cb8f4d1286bbd8f7cd648916294397ed4742', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
236
236
|
this.expanded = true;
|
|
237
237
|
this.pauseTimers();
|
|
238
238
|
}, onMouseLeave: () => {
|
|
@@ -82,12 +82,12 @@ const SdToast = class {
|
|
|
82
82
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
83
83
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
84
84
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
85
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: '45a278a76dde70b17794763fa35365ac8d634194', style: {
|
|
86
86
|
'--sd-toast-bg': typeConfig.bg,
|
|
87
87
|
'--sd-toast-text': typeConfig.content,
|
|
88
88
|
'--sd-toast-icon': iconColor,
|
|
89
89
|
'--sd-toast-link': linkColor,
|
|
90
|
-
} }, h("div", { key: '
|
|
90
|
+
} }, h("div", { key: 'eb00957c65514153867322942ed111d24622c75b', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: 'd30f442041ea963e86f8558f3ed07ceb28049ae9', class: "sd-toast__icon" }, h("sd-icon", { key: '04e57935a4fe4344f3eb1338cfc436bef449805e', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: '02270cd25d409d44bbd1d7932b074494d2cbeca1', class: "sd-toast__content" }, h("span", { key: '5f180c70d130fc04b16901c69a399f6effa328b9', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '4fd2adab87dbdaae94c21483f66256ce773ae965', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: '2c60553150114d6d5b99a2e86b35b4a85c4a34a4', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: 'c3e01391b713286b65a05352dd39ab98790564f8', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
SdToast.style = sdToastCss();
|
|
@@ -118,7 +118,7 @@ const SdToggle = class {
|
|
|
118
118
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
119
119
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
120
120
|
};
|
|
121
|
-
return (h("label", { key: '
|
|
121
|
+
return (h("label", { key: '9ef981165b998f43ec23f3bb1cf0ef385962d7fb', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '6b6d2a89f43036f624c7bc291b2c5aa7a93c8f0a', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
SdToggle.style = sdToggleCss();
|
|
@@ -16,6 +16,7 @@ export declare class SdChipInput {
|
|
|
16
16
|
error: boolean;
|
|
17
17
|
useReset: boolean;
|
|
18
18
|
maxCount?: number;
|
|
19
|
+
duplicateLabel?: string;
|
|
19
20
|
suggestions: string[];
|
|
20
21
|
loadingSuggestions: boolean;
|
|
21
22
|
recommendedItems: string[];
|
|
@@ -43,9 +44,11 @@ export declare class SdChipInput {
|
|
|
43
44
|
get value(): string[];
|
|
44
45
|
valuesChanged(newValues: string[]): void;
|
|
45
46
|
errorsChanged(newErrors: boolean[] | ((value: string) => boolean)): void;
|
|
47
|
+
internalValuesChanged_validate(): void;
|
|
46
48
|
suggestionsChanged(newVal: string[] | undefined): void;
|
|
47
49
|
recommendedItemsChanged(newVal: string[] | undefined): void;
|
|
48
50
|
componentWillLoad(): void;
|
|
51
|
+
private isDuplicateChip;
|
|
49
52
|
private getChipError;
|
|
50
53
|
private getChipDisabled;
|
|
51
54
|
update: EventEmitter<string[]>;
|
|
@@ -65,5 +68,6 @@ export declare class SdChipInput {
|
|
|
65
68
|
private closeSuggestions;
|
|
66
69
|
private handleContainerClick;
|
|
67
70
|
private handleResetInput;
|
|
71
|
+
private readonly duplicateRule;
|
|
68
72
|
render(): any;
|
|
69
73
|
}
|
|
@@ -5,12 +5,18 @@ export declare class SdGhostButton {
|
|
|
5
5
|
size: GhostButtonSize;
|
|
6
6
|
intent: GhostButtonIntent;
|
|
7
7
|
ariaLabel: string;
|
|
8
|
-
|
|
8
|
+
tooltipText?: string;
|
|
9
9
|
disabled: boolean;
|
|
10
|
+
hostEl: HTMLElement;
|
|
11
|
+
private isTooltipOpen;
|
|
10
12
|
click: EventEmitter<MouseEvent>;
|
|
11
13
|
private hasWarnedMissingAriaLabel;
|
|
12
14
|
componentWillLoad(): void;
|
|
13
15
|
private handleClick;
|
|
16
|
+
private handleMouseEnter;
|
|
17
|
+
private handleMouseLeave;
|
|
18
|
+
private handleFocus;
|
|
19
|
+
private handleBlur;
|
|
14
20
|
componentWillRender(): void;
|
|
15
21
|
private warnIfMissingAriaLabel;
|
|
16
22
|
render(): any;
|
|
@@ -11,10 +11,12 @@ export declare class SdKeyValueTable {
|
|
|
11
11
|
*/
|
|
12
12
|
search: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* 테이블 border-radius 제어.
|
|
15
|
+
* - 'default': 전체 radius 적용
|
|
16
|
+
* - 'useTop': 상단 radius 0 (헤더·탭 등 하단에 붙여 쓸 때)
|
|
17
|
+
* - 'full': 상하단 모두 radius 0 (요소 사이에 끼워 쓸 때)
|
|
16
18
|
*/
|
|
17
|
-
|
|
19
|
+
radius: 'default' | 'useTop' | 'full';
|
|
18
20
|
change: EventEmitter<SdKeyValueChangeDetail>;
|
|
19
21
|
searchEvent: EventEmitter<void>;
|
|
20
22
|
private emit;
|
|
@@ -333,6 +333,7 @@ export namespace Components {
|
|
|
333
333
|
* @default []
|
|
334
334
|
*/
|
|
335
335
|
"disabledChips": boolean[] | ((value: string) => boolean);
|
|
336
|
+
"duplicateLabel"?: string;
|
|
336
337
|
/**
|
|
337
338
|
* @default false
|
|
338
339
|
*/
|
|
@@ -940,10 +941,7 @@ export namespace Components {
|
|
|
940
941
|
* @default 'sm'
|
|
941
942
|
*/
|
|
942
943
|
"size": GhostButtonSize;
|
|
943
|
-
|
|
944
|
-
* @default ''
|
|
945
|
-
*/
|
|
946
|
-
"tooltipLabel": string;
|
|
944
|
+
"tooltipText"?: string;
|
|
947
945
|
}
|
|
948
946
|
interface SdGuide {
|
|
949
947
|
/**
|
|
@@ -1122,15 +1120,15 @@ export namespace Components {
|
|
|
1122
1120
|
*/
|
|
1123
1121
|
"fields": SdKeyValueField[][];
|
|
1124
1122
|
/**
|
|
1125
|
-
*
|
|
1126
|
-
* @default
|
|
1123
|
+
* 테이블 border-radius 제어. - 'default': 전체 radius 적용 - 'useTop': 상단 radius 0 (헤더·탭 등 하단에 붙여 쓸 때) - 'full': 상하단 모두 radius 0 (요소 사이에 끼워 쓸 때)
|
|
1124
|
+
* @default 'default'
|
|
1127
1125
|
*/
|
|
1128
|
-
"
|
|
1126
|
+
"radius": 'default' | 'useTop' | 'full';
|
|
1129
1127
|
/**
|
|
1130
|
-
* true이면 테이블
|
|
1128
|
+
* true이면 테이블 우측에 검색 버튼 패널을 표시. 클릭 시 `sdSearch` 이벤트 emit.
|
|
1131
1129
|
* @default false
|
|
1132
1130
|
*/
|
|
1133
|
-
"
|
|
1131
|
+
"search": boolean;
|
|
1134
1132
|
}
|
|
1135
1133
|
interface SdLinearProgress {
|
|
1136
1134
|
/**
|
|
@@ -1397,6 +1395,10 @@ export namespace Components {
|
|
|
1397
1395
|
* @default null
|
|
1398
1396
|
*/
|
|
1399
1397
|
"parentRef": HTMLElement | null;
|
|
1398
|
+
/**
|
|
1399
|
+
* @default 'bottom'
|
|
1400
|
+
*/
|
|
1401
|
+
"placement": 'top' | 'bottom';
|
|
1400
1402
|
/**
|
|
1401
1403
|
* @default 'body'
|
|
1402
1404
|
*/
|
|
@@ -1676,6 +1678,10 @@ export namespace Components {
|
|
|
1676
1678
|
*/
|
|
1677
1679
|
"noDataLabel": string;
|
|
1678
1680
|
"pagination"?: SdTablePagination;
|
|
1681
|
+
/**
|
|
1682
|
+
* @default 'default'
|
|
1683
|
+
*/
|
|
1684
|
+
"radius": 'default' | 'useTop' | 'full';
|
|
1679
1685
|
/**
|
|
1680
1686
|
* @default false
|
|
1681
1687
|
*/
|
|
@@ -1721,10 +1727,6 @@ export namespace Components {
|
|
|
1721
1727
|
* @default false
|
|
1722
1728
|
*/
|
|
1723
1729
|
"useRowsPerPageSelect": boolean;
|
|
1724
|
-
/**
|
|
1725
|
-
* @default false
|
|
1726
|
-
*/
|
|
1727
|
-
"useTop": boolean;
|
|
1728
1730
|
/**
|
|
1729
1731
|
* @default false
|
|
1730
1732
|
*/
|
|
@@ -3469,6 +3471,7 @@ declare namespace LocalJSX {
|
|
|
3469
3471
|
* @default []
|
|
3470
3472
|
*/
|
|
3471
3473
|
"disabledChips"?: boolean[] | ((value: string) => boolean);
|
|
3474
|
+
"duplicateLabel"?: string;
|
|
3472
3475
|
/**
|
|
3473
3476
|
* @default false
|
|
3474
3477
|
*/
|
|
@@ -4080,10 +4083,7 @@ declare namespace LocalJSX {
|
|
|
4080
4083
|
* @default 'sm'
|
|
4081
4084
|
*/
|
|
4082
4085
|
"size"?: GhostButtonSize;
|
|
4083
|
-
|
|
4084
|
-
* @default ''
|
|
4085
|
-
*/
|
|
4086
|
-
"tooltipLabel"?: string;
|
|
4086
|
+
"tooltipText"?: string;
|
|
4087
4087
|
}
|
|
4088
4088
|
interface SdGuide {
|
|
4089
4089
|
/**
|
|
@@ -4262,15 +4262,15 @@ declare namespace LocalJSX {
|
|
|
4262
4262
|
"onSdChange"?: (event: SdKeyValueTableCustomEvent<SdKeyValueChangeDetail>) => void;
|
|
4263
4263
|
"onSdSearch"?: (event: SdKeyValueTableCustomEvent<void>) => void;
|
|
4264
4264
|
/**
|
|
4265
|
-
*
|
|
4266
|
-
* @default
|
|
4265
|
+
* 테이블 border-radius 제어. - 'default': 전체 radius 적용 - 'useTop': 상단 radius 0 (헤더·탭 등 하단에 붙여 쓸 때) - 'full': 상하단 모두 radius 0 (요소 사이에 끼워 쓸 때)
|
|
4266
|
+
* @default 'default'
|
|
4267
4267
|
*/
|
|
4268
|
-
"
|
|
4268
|
+
"radius"?: 'default' | 'useTop' | 'full';
|
|
4269
4269
|
/**
|
|
4270
|
-
* true이면 테이블
|
|
4270
|
+
* true이면 테이블 우측에 검색 버튼 패널을 표시. 클릭 시 `sdSearch` 이벤트 emit.
|
|
4271
4271
|
* @default false
|
|
4272
4272
|
*/
|
|
4273
|
-
"
|
|
4273
|
+
"search"?: boolean;
|
|
4274
4274
|
}
|
|
4275
4275
|
interface SdLinearProgress {
|
|
4276
4276
|
/**
|
|
@@ -4533,6 +4533,10 @@ declare namespace LocalJSX {
|
|
|
4533
4533
|
* @default null
|
|
4534
4534
|
*/
|
|
4535
4535
|
"parentRef"?: HTMLElement | null;
|
|
4536
|
+
/**
|
|
4537
|
+
* @default 'bottom'
|
|
4538
|
+
*/
|
|
4539
|
+
"placement"?: 'top' | 'bottom';
|
|
4536
4540
|
/**
|
|
4537
4541
|
* @default 'body'
|
|
4538
4542
|
*/
|
|
@@ -4830,6 +4834,10 @@ declare namespace LocalJSX {
|
|
|
4830
4834
|
to: number;
|
|
4831
4835
|
}>) => void;
|
|
4832
4836
|
"pagination"?: SdTablePagination;
|
|
4837
|
+
/**
|
|
4838
|
+
* @default 'default'
|
|
4839
|
+
*/
|
|
4840
|
+
"radius"?: 'default' | 'useTop' | 'full';
|
|
4833
4841
|
/**
|
|
4834
4842
|
* @default false
|
|
4835
4843
|
*/
|
|
@@ -4872,10 +4880,6 @@ declare namespace LocalJSX {
|
|
|
4872
4880
|
* @default false
|
|
4873
4881
|
*/
|
|
4874
4882
|
"useRowsPerPageSelect"?: boolean;
|
|
4875
|
-
/**
|
|
4876
|
-
* @default false
|
|
4877
|
-
*/
|
|
4878
|
-
"useTop"?: boolean;
|
|
4879
4883
|
/**
|
|
4880
4884
|
* @default false
|
|
4881
4885
|
*/
|
|
@@ -5318,6 +5322,7 @@ declare namespace LocalJSX {
|
|
|
5318
5322
|
"error": boolean;
|
|
5319
5323
|
"useReset": boolean;
|
|
5320
5324
|
"maxCount": number;
|
|
5325
|
+
"duplicateLabel": string;
|
|
5321
5326
|
"loadingSuggestions": boolean;
|
|
5322
5327
|
"loadingRecommendedItems": boolean;
|
|
5323
5328
|
"label": string;
|
|
@@ -5460,7 +5465,7 @@ declare namespace LocalJSX {
|
|
|
5460
5465
|
"size": GhostButtonSize;
|
|
5461
5466
|
"intent": GhostButtonIntent;
|
|
5462
5467
|
"ariaLabel": string;
|
|
5463
|
-
"
|
|
5468
|
+
"tooltipText": string;
|
|
5464
5469
|
"disabled": boolean;
|
|
5465
5470
|
}
|
|
5466
5471
|
interface SdGuideAttributes {
|
|
@@ -5510,7 +5515,7 @@ declare namespace LocalJSX {
|
|
|
5510
5515
|
}
|
|
5511
5516
|
interface SdKeyValueTableAttributes {
|
|
5512
5517
|
"search": boolean;
|
|
5513
|
-
"
|
|
5518
|
+
"radius": 'default' | 'useTop' | 'full';
|
|
5514
5519
|
}
|
|
5515
5520
|
interface SdLinearProgressAttributes {
|
|
5516
5521
|
"indeterminate": boolean;
|
|
@@ -5589,6 +5594,7 @@ declare namespace LocalJSX {
|
|
|
5589
5594
|
"viewportPadding": number;
|
|
5590
5595
|
"zIndex": number;
|
|
5591
5596
|
"open": boolean;
|
|
5597
|
+
"placement": 'top' | 'bottom';
|
|
5592
5598
|
}
|
|
5593
5599
|
interface SdRadioAttributes {
|
|
5594
5600
|
"value": string;
|
|
@@ -5669,7 +5675,7 @@ declare namespace LocalJSX {
|
|
|
5669
5675
|
"width": string;
|
|
5670
5676
|
"height": string;
|
|
5671
5677
|
"stickyHeader": boolean;
|
|
5672
|
-
"
|
|
5678
|
+
"radius": 'default' | 'useTop' | 'full';
|
|
5673
5679
|
"noDataLabel": string;
|
|
5674
5680
|
"isLoading": boolean;
|
|
5675
5681
|
"useInternalPagination": boolean;
|