@sellmate/design-system 1.0.49 → 1.0.50
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.button-BKa5OPya.js → component.button-DUsddONR.js} +15 -14
- package/dist/cjs/{component.modal-CtW5Gmy5.js → component.modal-DmQUWbve.js} +0 -4
- package/dist/cjs/{component.textinput-43trvZ5m.js → component.textinput-DIDZPtYE.js} +0 -3
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +0 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{resolveColor-Di1RNekE.js → resolveColor-LhfOKtTZ.js} +2 -0
- package/dist/cjs/sd-action-modal.cjs.entry.js +2 -4
- package/dist/cjs/sd-barcode-input.cjs.entry.js +5 -7
- package/dist/cjs/{sd-button-v2.config-CQoTThio.js → sd-button-v2.config-B4___nhv.js} +5 -5
- package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-button_4.cjs.entry.js +8 -8
- package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal.cjs.entry.js +4 -6
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +17 -6
- package/dist/cjs/sd-file-picker.cjs.entry.js +5 -3
- package/dist/cjs/sd-ghost-button.cjs.entry.js +148 -0
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-input_2.cjs.entry.js +7 -12
- package/dist/cjs/sd-loading-spinner_3.cjs.entry.js +4 -4
- package/dist/cjs/sd-number-input.cjs.entry.js +3 -3
- package/dist/cjs/sd-popover.cjs.entry.js +10 -10
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-multiple.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-v2-list-item_2.cjs.entry.js +5 -5
- package/dist/cjs/sd-select-v2-listbox_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-v2.cjs.entry.js +3 -3
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -3
- package/dist/cjs/sd-tag.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +3 -3
- package/dist/cjs/sd-textarea.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sd-action-modal/sd-action-modal.config.js +0 -2
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +2 -2
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.config.js +0 -5
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.css +8 -5
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +4 -2
- package/dist/collection/components/sd-button/sd-button.js +5 -5
- package/dist/collection/components/sd-button-v2/sd-button-v2.config.js +4 -4
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.config.js +0 -2
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.css +2 -3
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +3 -3
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +5 -3
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +0 -4
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.config.js +37 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +43 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +205 -0
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-input/sd-input.config.js +0 -5
- package/dist/collection/components/sd-input/sd-input.css +0 -1
- package/dist/collection/components/sd-input/sd-input.js +3 -3
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +11 -7
- package/dist/collection/components/sd-progress/sd-progress.js +2 -34
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
- package/dist/collection/components/sd-select-group/sd-select-group.js +1 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +3 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +1 -1
- package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +2 -3
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
- package/dist/collection/components/sd-toast/sd-toast.css +0 -14
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/index.js +0 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BBYig1zV.js → p-9cpjtLyu.js} +1 -1
- package/dist/components/p-AFiQTtI8.js +1 -0
- package/dist/components/p-B2f7Cose.js +1 -0
- package/dist/components/{p-BYaBx4Ar.js → p-B9ODOaHR.js} +1 -1
- package/dist/components/{p-uWsY9w9i.js → p-BDddwnsY.js} +1 -1
- package/dist/components/{p-CbjDAdZ_.js → p-BGovA1BG.js} +1 -1
- package/dist/components/p-BSD19ZXd.js +1 -0
- package/dist/components/{p-DqwiOEb3.js → p-BWpdlAkY.js} +1 -1
- package/dist/components/p-BcM38Hvd.js +1 -0
- package/dist/components/{p-CUy8ulXZ.js → p-BkGwQ37a.js} +1 -1
- package/dist/components/p-BlIVa7pk.js +1 -0
- package/dist/components/{p-CdoxVzYC.js → p-Bm5vdtK6.js} +1 -1
- package/dist/components/p-BxPyZJaz.js +1 -0
- package/dist/components/p-C-ITXCaO.js +1 -0
- package/dist/components/{p-DAWMGK_A.js → p-C6dJGijx.js} +1 -1
- package/dist/components/{p-C0ptbo29.js → p-CID8dmhm.js} +1 -1
- package/dist/components/{p-ZoQO0p2E.js → p-CMIQp1d_.js} +1 -1
- package/dist/components/{p-B6NYLHOZ.js → p-CSCkf9FA.js} +1 -1
- package/dist/components/p-CS_IUXhu.js +1 -0
- package/dist/components/{p-Dl7yIIDW.js → p-CuKx-cil.js} +1 -1
- package/dist/components/{p-BeZsmobQ.js → p-CzJDdzv9.js} +1 -1
- package/dist/components/{p-By4ufaS3.js → p-D3hfkcth.js} +1 -1
- package/dist/components/p-DVFkk4Uh.js +1 -0
- package/dist/components/{p-DJScHgLW.js → p-DYzmoNdd.js} +1 -1
- package/dist/components/{p-BeIOWDKk.js → p-DgH5_0xH.js} +1 -1
- package/dist/components/p-Do9_zPoB.js +1 -0
- package/dist/components/{p-DhKZT8lW.js → p-Dpm7Otkw.js} +1 -1
- package/dist/components/p-mO5GcwI3.js +1 -0
- package/dist/components/{p-DdjivpAF.js → p-z1GAfC0Y.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button-v2.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-ghost-button.d.ts +11 -0
- package/dist/components/sd-ghost-button.js +1 -0
- 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-loading-spinner.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-progress.js +1 -1
- package/dist/components/sd-select-dropdown.js +1 -1
- package/dist/components/sd-select-group.js +1 -1
- package/dist/components/sd-select-multiple-group.js +1 -1
- package/dist/components/sd-select-multiple.js +1 -1
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select-search-input.js +1 -1
- package/dist/components/sd-select-v2-list-item-search.js +1 -1
- package/dist/components/sd-select-v2-list-item.js +1 -1
- package/dist/components/sd-select-v2-listbox.js +1 -1
- package/dist/components/sd-select-v2-trigger.js +1 -1
- package/dist/components/sd-select-v2.js +1 -1
- package/dist/components/sd-select.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-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-tooltip.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/index.esm.js +1 -1
- package/dist/design-system/{p-19b18e4c.entry.js → p-075c1811.entry.js} +1 -1
- package/dist/design-system/{p-4e9abae8.entry.js → p-28f46b43.entry.js} +1 -1
- package/dist/design-system/{p-d4da5815.entry.js → p-3046d095.entry.js} +1 -1
- package/dist/design-system/p-3165d54b.entry.js +1 -0
- package/dist/design-system/{p-e58e5fa2.entry.js → p-3a507d25.entry.js} +1 -1
- package/dist/design-system/{p-d659e98e.entry.js → p-426c7f12.entry.js} +1 -1
- package/dist/design-system/p-45f6bd30.entry.js +1 -0
- package/dist/design-system/{p-0e0992bf.entry.js → p-49611410.entry.js} +1 -1
- package/dist/design-system/p-513306a1.entry.js +1 -0
- package/dist/design-system/p-559d6c56.entry.js +1 -0
- package/dist/design-system/{p-fd2e0035.entry.js → p-57e3132f.entry.js} +1 -1
- package/dist/design-system/p-5ce6b4e1.entry.js +1 -0
- package/dist/design-system/p-6a0fe603.entry.js +1 -0
- package/dist/design-system/{p-ee25a675.entry.js → p-7b14c068.entry.js} +1 -1
- package/dist/design-system/p-8b11f4f1.entry.js +1 -0
- package/dist/design-system/p-9d5d578e.entry.js +1 -0
- package/dist/design-system/{p-CbjDAdZ_.js → p-BGovA1BG.js} +1 -1
- package/dist/design-system/p-BcM38Hvd.js +1 -0
- package/dist/design-system/p-BxPyZJaz.js +1 -0
- package/dist/design-system/p-a589cab8.entry.js +1 -0
- package/dist/design-system/{p-4d904e5a.entry.js → p-a6946300.entry.js} +1 -1
- package/dist/design-system/{p-e8cb12b7.entry.js → p-ae21d6ba.entry.js} +1 -1
- package/dist/design-system/{p-ef654bbe.entry.js → p-d2db1b44.entry.js} +1 -1
- package/dist/design-system/p-d47fdd44.entry.js +1 -0
- package/dist/design-system/{p-53326ad6.entry.js → p-d83673a2.entry.js} +1 -1
- package/dist/design-system/{p-07a3c3fc.entry.js → p-d87aa2ec.entry.js} +1 -1
- package/dist/design-system/{p-DzagopqQ.js → p-ePjRdqmD.js} +1 -1
- package/dist/design-system/p-f193b3b9.entry.js +1 -0
- package/dist/design-system/{p-de02d3b8.entry.js → p-f23038d4.entry.js} +1 -1
- package/dist/design-system/{p-242c605c.entry.js → p-f496bd56.entry.js} +1 -1
- package/dist/design-system/{p-19e62a3d.entry.js → p-fc2dc308.entry.js} +1 -1
- package/dist/design-system/p-mO5GcwI3.js +1 -0
- package/dist/esm/{component.button-DwYSoCyW.js → component.button-BcM38Hvd.js} +15 -14
- package/dist/esm/{component.modal-rGbM8XR_.js → component.modal-mO5GcwI3.js} +0 -4
- package/dist/esm/{component.textinput-CbjDAdZ_.js → component.textinput-BGovA1BG.js} +0 -3
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/index.js +1 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{resolveColor-CquSJNHV.js → resolveColor-BxPyZJaz.js} +2 -0
- package/dist/esm/sd-action-modal.entry.js +2 -4
- package/dist/esm/sd-barcode-input.entry.js +5 -7
- package/dist/esm/{sd-button-v2.config-B4Fmn4Ju.js → sd-button-v2.config-C7s1j4_P.js} +5 -5
- package/dist/esm/sd-button-v2_2.entry.js +3 -3
- package/dist/esm/sd-button_4.entry.js +8 -8
- package/dist/esm/sd-calendar.entry.js +1 -1
- package/dist/esm/sd-confirm-modal.entry.js +4 -6
- package/dist/esm/sd-dropdown-button.entry.js +14 -3
- package/dist/esm/sd-file-picker.entry.js +5 -3
- package/dist/esm/sd-ghost-button.entry.js +146 -0
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-input_2.entry.js +7 -12
- package/dist/esm/sd-loading-spinner_3.entry.js +4 -4
- package/dist/esm/sd-number-input.entry.js +3 -3
- package/dist/esm/sd-popover.entry.js +10 -10
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-select-dropdown_2.entry.js +3 -3
- package/dist/esm/sd-select-group.entry.js +1 -1
- package/dist/esm/sd-select-multiple.entry.js +1 -1
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/esm/sd-select-v2-list-item_2.entry.js +5 -5
- package/dist/esm/sd-select-v2-listbox_2.entry.js +3 -3
- package/dist/esm/sd-select-v2.entry.js +3 -3
- package/dist/esm/sd-tabs.entry.js +2 -3
- package/dist/esm/sd-tag.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +3 -3
- package/dist/esm/sd-textarea.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/types/components/sd-action-modal/sd-action-modal.config.d.ts +0 -2
- package/dist/types/components/sd-barcode-input/sd-barcode-input.config.d.ts +0 -4
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.config.d.ts +0 -2
- package/dist/types/components/sd-ghost-button/sd-ghost-button.config.d.ts +12 -0
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +15 -0
- package/dist/types/components/sd-input/sd-input.config.d.ts +0 -4
- package/dist/types/components.d.ts +76 -4
- package/dist/types/index.d.ts +0 -1
- package/hydrate/index.js +284 -143
- package/hydrate/index.mjs +284 -143
- package/package.json +1 -1
- package/dist/cjs/system-lN7yOMPF.js +0 -20
- package/dist/collection/components/event-management.js +0 -19
- package/dist/collection/styles/fonts/fontBase64.js +0 -141910
- package/dist/collection/utils/utils.js +0 -3
- package/dist/components/p-7tPcjtqM.js +0 -1
- package/dist/components/p-B09D2cZD.js +0 -1
- package/dist/components/p-C3XBhNH9.js +0 -1
- package/dist/components/p-CS6ohqwt.js +0 -1
- package/dist/components/p-CquSJNHV.js +0 -1
- package/dist/components/p-DE3qbfEZ.js +0 -1
- package/dist/components/p-DeTDTmN7.js +0 -1
- package/dist/components/p-Du3VqeNP.js +0 -1
- package/dist/components/p-DwYSoCyW.js +0 -1
- package/dist/components/p-poQ9yAeD.js +0 -1
- package/dist/components/p-rGbM8XR_.js +0 -1
- package/dist/design-system/p-021e4171.entry.js +0 -1
- package/dist/design-system/p-127445af.entry.js +0 -1
- package/dist/design-system/p-14d1d9d7.entry.js +0 -1
- package/dist/design-system/p-498d333c.entry.js +0 -1
- package/dist/design-system/p-7a029f03.entry.js +0 -1
- package/dist/design-system/p-CS6ohqwt.js +0 -1
- package/dist/design-system/p-CquSJNHV.js +0 -1
- package/dist/design-system/p-DwYSoCyW.js +0 -1
- package/dist/design-system/p-ade2ed02.entry.js +0 -1
- package/dist/design-system/p-aeed9b29.entry.js +0 -1
- package/dist/design-system/p-b5d8e54d.entry.js +0 -1
- package/dist/design-system/p-bddf2246.entry.js +0 -1
- package/dist/design-system/p-d93c6ea8.entry.js +0 -1
- package/dist/design-system/p-rGbM8XR_.js +0 -1
- package/dist/esm/system-CS6ohqwt.js +0 -18
- package/dist/types/components/event-management.d.ts +0 -6
- package/dist/types/styles/fonts/fontBase64.d.ts +0 -3
- package/dist/types/utils/utils.d.ts +0 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { GHOST_BUTTON_CONTENT_COLORS, GHOST_BUTTON_DISABLED_ICON, GHOST_BUTTON_FOCUS_RING_COLOR, GHOST_BUTTON_HOVER_BG_COLORS, GHOST_BUTTON_HOVER_OPACITY, GHOST_BUTTON_RADIUS, GHOST_BUTTON_SIZES, } from "./sd-ghost-button.config";
|
|
3
|
+
export class SdGhostButton {
|
|
4
|
+
icon;
|
|
5
|
+
size = 'sm';
|
|
6
|
+
intent = 'default';
|
|
7
|
+
ariaLabel = '';
|
|
8
|
+
disabled = false;
|
|
9
|
+
click;
|
|
10
|
+
hasWarnedMissingAriaLabel = false;
|
|
11
|
+
handleClick = (event) => {
|
|
12
|
+
if (this.disabled) {
|
|
13
|
+
event.preventDefault();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
this.click.emit(event);
|
|
17
|
+
};
|
|
18
|
+
componentWillRender() {
|
|
19
|
+
this.warnIfMissingAriaLabel();
|
|
20
|
+
}
|
|
21
|
+
warnIfMissingAriaLabel() {
|
|
22
|
+
const missing = !this.ariaLabel.trim();
|
|
23
|
+
if (!missing) {
|
|
24
|
+
this.hasWarnedMissingAriaLabel = false;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (this.hasWarnedMissingAriaLabel)
|
|
28
|
+
return;
|
|
29
|
+
console.warn(`[sd-ghost-button] icon-only buttons require \`ariaLabel\`. Received icon="${this.icon}".`);
|
|
30
|
+
this.hasWarnedMissingAriaLabel = true;
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const sizeConfig = GHOST_BUTTON_SIZES[this.size];
|
|
34
|
+
const contentColor = this.disabled
|
|
35
|
+
? GHOST_BUTTON_DISABLED_ICON
|
|
36
|
+
: GHOST_BUTTON_CONTENT_COLORS[this.intent];
|
|
37
|
+
const accessibleName = this.ariaLabel.trim() || undefined;
|
|
38
|
+
return (h("button", { key: '616698f4a8efbae1013d1f962cadedf72575789a', class: {
|
|
39
|
+
'sd-ghost-button': true,
|
|
40
|
+
'sd-ghost-button--disabled': this.disabled,
|
|
41
|
+
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
42
|
+
'--sd-ghost-button-size': `${sizeConfig.size}px`,
|
|
43
|
+
'--sd-ghost-button-radius': `${GHOST_BUTTON_RADIUS}px`,
|
|
44
|
+
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[this.intent],
|
|
45
|
+
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
46
|
+
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
47
|
+
}, onClick: this.handleClick }, h("sd-icon", { key: 'b8203a9ba9a6f385503289f299225e5df468ae8f', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
48
|
+
}
|
|
49
|
+
static get is() { return "sd-ghost-button"; }
|
|
50
|
+
static get originalStyleUrls() {
|
|
51
|
+
return {
|
|
52
|
+
"$": ["sd-ghost-button.scss"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static get styleUrls() {
|
|
56
|
+
return {
|
|
57
|
+
"$": ["sd-ghost-button.css"]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
static get properties() {
|
|
61
|
+
return {
|
|
62
|
+
"icon": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"mutable": false,
|
|
65
|
+
"complexType": {
|
|
66
|
+
"original": "IconName",
|
|
67
|
+
"resolved": "\"add\" | \"alert\" | \"alignKorean\" | \"archive\" | \"arrowDown\" | \"arrowLeft\" | \"arrowRight\" | \"arrowUp\" | \"attachFile\" | \"barcode\" | \"bell\" | \"board\" | \"box\" | \"camera\" | \"cancelFill\" | \"cancelOutline\" | \"caretDown\" | \"caretLeft\" | \"caretRight\" | \"caretUp\" | \"check\" | \"checkFill\" | \"checkOutline\" | \"chevronDown\" | \"chevronLeft\" | \"chevronLeftEnd\" | \"chevronRight\" | \"chevronRightEnd\" | \"chevronUp\" | \"clockFill\" | \"clockOutline\" | \"close\" | \"copy\" | \"dashboard\" | \"date\" | \"download\" | \"drag\" | \"edit\" | \"etc\" | \"event\" | \"global\" | \"helpFill\" | \"helpOutline\" | \"history\" | \"imageFill\" | \"imageOutline\" | \"inline\" | \"line\" | \"location\" | \"logout\" | \"minus\" | \"new\" | \"notificationFill\" | \"notificationOutline\" | \"notion\" | \"outline\" | \"pageEdit\" | \"pageMove\" | \"pdf\" | \"print\" | \"remove\" | \"reset\" | \"robot\" | \"row\" | \"save\" | \"search\" | \"setting\" | \"star\" | \"synchronize\" | \"updown\" | \"user\" | \"visibilityOff\" | \"visibilityOn\" | \"warehouseFill\" | \"warehouseOutline\" | \"warningFill\" | \"warningOutline\" | \"youtube\"",
|
|
68
|
+
"references": {
|
|
69
|
+
"IconName": {
|
|
70
|
+
"location": "global",
|
|
71
|
+
"id": "global::IconName"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": true,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"getter": false,
|
|
82
|
+
"setter": false,
|
|
83
|
+
"reflect": false,
|
|
84
|
+
"attribute": "icon"
|
|
85
|
+
},
|
|
86
|
+
"size": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"mutable": false,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "GhostButtonSize",
|
|
91
|
+
"resolved": "\"lg\" | \"md\" | \"sm\" | \"xs\" | \"xxs\"",
|
|
92
|
+
"references": {
|
|
93
|
+
"GhostButtonSize": {
|
|
94
|
+
"location": "import",
|
|
95
|
+
"path": "./sd-ghost-button.config",
|
|
96
|
+
"id": "src/components/sd-ghost-button/sd-ghost-button.config.ts::GhostButtonSize",
|
|
97
|
+
"referenceLocation": "GhostButtonSize"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": ""
|
|
106
|
+
},
|
|
107
|
+
"getter": false,
|
|
108
|
+
"setter": false,
|
|
109
|
+
"reflect": false,
|
|
110
|
+
"attribute": "size",
|
|
111
|
+
"defaultValue": "'sm'"
|
|
112
|
+
},
|
|
113
|
+
"intent": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "GhostButtonIntent",
|
|
118
|
+
"resolved": "\"action\" | \"danger\" | \"default\"",
|
|
119
|
+
"references": {
|
|
120
|
+
"GhostButtonIntent": {
|
|
121
|
+
"location": "import",
|
|
122
|
+
"path": "./sd-ghost-button.config",
|
|
123
|
+
"id": "src/components/sd-ghost-button/sd-ghost-button.config.ts::GhostButtonIntent",
|
|
124
|
+
"referenceLocation": "GhostButtonIntent"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"required": false,
|
|
129
|
+
"optional": false,
|
|
130
|
+
"docs": {
|
|
131
|
+
"tags": [],
|
|
132
|
+
"text": ""
|
|
133
|
+
},
|
|
134
|
+
"getter": false,
|
|
135
|
+
"setter": false,
|
|
136
|
+
"reflect": false,
|
|
137
|
+
"attribute": "intent",
|
|
138
|
+
"defaultValue": "'default'"
|
|
139
|
+
},
|
|
140
|
+
"ariaLabel": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"mutable": false,
|
|
143
|
+
"complexType": {
|
|
144
|
+
"original": "string",
|
|
145
|
+
"resolved": "string",
|
|
146
|
+
"references": {}
|
|
147
|
+
},
|
|
148
|
+
"required": false,
|
|
149
|
+
"optional": false,
|
|
150
|
+
"docs": {
|
|
151
|
+
"tags": [],
|
|
152
|
+
"text": ""
|
|
153
|
+
},
|
|
154
|
+
"getter": false,
|
|
155
|
+
"setter": false,
|
|
156
|
+
"reflect": false,
|
|
157
|
+
"attribute": "aria-label",
|
|
158
|
+
"defaultValue": "''"
|
|
159
|
+
},
|
|
160
|
+
"disabled": {
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"mutable": false,
|
|
163
|
+
"complexType": {
|
|
164
|
+
"original": "boolean",
|
|
165
|
+
"resolved": "boolean",
|
|
166
|
+
"references": {}
|
|
167
|
+
},
|
|
168
|
+
"required": false,
|
|
169
|
+
"optional": false,
|
|
170
|
+
"docs": {
|
|
171
|
+
"tags": [],
|
|
172
|
+
"text": ""
|
|
173
|
+
},
|
|
174
|
+
"getter": false,
|
|
175
|
+
"setter": false,
|
|
176
|
+
"reflect": false,
|
|
177
|
+
"attribute": "disabled",
|
|
178
|
+
"defaultValue": "false"
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
static get events() {
|
|
183
|
+
return [{
|
|
184
|
+
"method": "click",
|
|
185
|
+
"name": "sdClick",
|
|
186
|
+
"bubbles": true,
|
|
187
|
+
"cancelable": true,
|
|
188
|
+
"composed": true,
|
|
189
|
+
"docs": {
|
|
190
|
+
"tags": [],
|
|
191
|
+
"text": ""
|
|
192
|
+
},
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "MouseEvent",
|
|
195
|
+
"resolved": "MouseEvent",
|
|
196
|
+
"references": {
|
|
197
|
+
"MouseEvent": {
|
|
198
|
+
"location": "global",
|
|
199
|
+
"id": "global::MouseEvent"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}];
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -47,9 +47,9 @@ export class SdGuide {
|
|
|
47
47
|
};
|
|
48
48
|
render() {
|
|
49
49
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
50
|
-
return (h("div", { key: '
|
|
50
|
+
return (h("div", { key: '1105258bc9d9d4d8d0c209ad735bb445e29ec0a0', class: "sd-guide", style: {
|
|
51
51
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
52
|
-
} }, h("sd-button", { key: '
|
|
52
|
+
} }, h("sd-button", { key: '68b032fc6c5cb145002f7c982939a9f8f98b0039', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: this.label || GUIDE_LABEL[this.type], size: "sm", color: this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45', icon: iconName, iconColor: this.popupShow ? 'white' : iconColor, iconSize: iconSize, noHover: this.popupShow, onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (h("sd-portal", { key: 'd5a4cf958f0428606d21d7b0f1e2fc9a9820e374', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: 'be20ea71204a52c31d8cfc16a6dcb973542dd2d6', style: { position: 'absolute', width: '0px', height: '0px' } }, h("div", { key: '344111896761d721cc35e453cc3cf13cb4d6547b', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, h("sd-button", { key: '984f743925fa2cae64b93103da38d6cbba0109fc', class: "sd-guide__popup__close", icon: "close", color: "grey_65", size: "md", variant: "ghost", noHover: true, onSdClick: this.closeDropdown }), h("div", { key: 'ae8d5c7e00035e81ebe39359ca0809c78688dd7d', class: "sd-guide__popup__header" }, h("sd-icon", { key: '7527b4a66b314279d3cdddfc448a2d7e00f25ac4', name: "helpOutline", size: 24, color: "green_65" }), h("h3", { key: 'fe99c45c4a4b9fa970adbbb4d6f7902ce863b318', class: "sd-guide__popup__title" }, this.popupTitle || GUIDE_LABEL[this.type])), h("ul", { key: '00ad86270d3639796fa3d6df3c763be899082d0b', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
|
|
53
53
|
}
|
|
54
54
|
// 현재 2depth까지만 스타일 적용
|
|
55
55
|
renderListItem(message, depth = 0) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import inputTokens from "../../tokens/generated/component.textinput.json";
|
|
2
|
-
import systemTokens from "../../tokens/generated/system.json";
|
|
3
2
|
const sm = inputTokens.input.sm;
|
|
4
3
|
const md = inputTokens.input.md;
|
|
5
4
|
export const INPUT_SIZE_MAP = {
|
|
@@ -28,7 +27,3 @@ export const INPUT_COLORS = {
|
|
|
28
27
|
text: inputTokens.input.text,
|
|
29
28
|
icon: inputTokens.input.icon,
|
|
30
29
|
};
|
|
31
|
-
export const INPUT_ICON = {
|
|
32
|
-
frameSize: Number(inputTokens.input.size.icon),
|
|
33
|
-
iconSize: Number(systemTokens.size.field.icon),
|
|
34
|
-
};
|
|
@@ -181,7 +181,6 @@ sd-input .sd-input__content .sd-input__native::placeholder {
|
|
|
181
181
|
sd-input .sd-input__content .sd-input__clear-icon,
|
|
182
182
|
sd-input .sd-input__content .sd-input__password-icon {
|
|
183
183
|
flex-shrink: 0;
|
|
184
|
-
cursor: pointer;
|
|
185
184
|
}
|
|
186
185
|
sd-input .sd-input__content .sd-input__native[disabled] ~ .sd-input__clear-icon,
|
|
187
186
|
sd-input .sd-input__content .sd-input__native[disabled] ~ .sd-input__password-icon {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
2
|
import { nanoid } from "nanoid/non-secure";
|
|
3
|
-
import { INPUT_SIZE_MAP, INPUT_COLORS
|
|
3
|
+
import { INPUT_SIZE_MAP, INPUT_COLORS } from "./sd-input.config";
|
|
4
4
|
export class SdInput {
|
|
5
5
|
host;
|
|
6
6
|
value = null;
|
|
@@ -104,12 +104,12 @@ export class SdInput {
|
|
|
104
104
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
105
105
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
106
106
|
};
|
|
107
|
-
return (h("sd-field", { key: '
|
|
107
|
+
return (h("sd-field", { key: '00cffcf0886042fbc10be8a3521fbe46f2a29911', name: this.name, label: this.label, addonLabel: this.addonLabel, 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), style: cssVars }, h("label", { key: 'e4cf6f84306a8ddde595c317173c98c3ab00d51f', class: "sd-input__content" }, h("slot", { key: 'd59f97019d7830fe8a050ed0ddcb212e6f8ceead', name: "prefix" }), h("input", { key: 'e949741fe2e5f6919e1a0ee07d06c8adb3ff433f', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '3bc1dd7c7034556c7c5baa4ceb02240e0062e995', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (h("sd-ghost-button", { key: '0edf50176fe97d8a8cd0f0b92c0ebe538c85d740', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
108
108
|
if (this.disabled)
|
|
109
109
|
return;
|
|
110
110
|
this.internalValue = '';
|
|
111
111
|
await this.formField?.sdValidate();
|
|
112
|
-
} })), this.type === 'password' && (h("sd-
|
|
112
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '0b58e8a381931f03f98917c368160538347336c5', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
|
|
113
113
|
if (this.disabled)
|
|
114
114
|
return;
|
|
115
115
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -6,7 +6,7 @@ export class SdLoadingSpinner {
|
|
|
6
6
|
return resolveColor(this.color);
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Fragment, { key: '
|
|
9
|
+
return (h(Fragment, { key: '0cfc7069d024e08cfad7b4f6479b8ba2835428c2' }, h("svg", { key: 'fe4c1e68baa60142eaceaaef6e4df88c79b626b2', class: "sd-loading-spinner", width: "72px", height: "72px", viewBox: "25 25 50 50", style: { color: this.resolvedColor } }, h("circle", { key: '3e923b3a138d7aafc9b8cabcd884610addd916c1', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "sd-loading-spinner"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -271,12 +271,12 @@ export class SdNumberInput {
|
|
|
271
271
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
272
272
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
273
273
|
};
|
|
274
|
-
return (h("sd-field", { key: '
|
|
274
|
+
return (h("sd-field", { key: '20d010b26dc955dcbf30e908a3ebab33644f1e3c', name: this.name, label: this.label, addonLabel: this.addonLabel, 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, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '35ad9cb4ff6db3354b87aedd503a0ddd4c7493b2', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'f18fc88a39608857ddf6028b6fb12a500c0c4cab', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'd55e76ddf3bc3e07102307c392f6ba3037335246', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
275
275
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
276
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '
|
|
276
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '328f58b6b34b9dff32d722ac55f88e76bfa24b31', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: '1b63561986e1433b8c111487de607d74462881c2', 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: {
|
|
277
277
|
textAlign: this.useButton ? 'center' : 'right',
|
|
278
278
|
...this.inputStyle,
|
|
279
|
-
} }), this.inputSuffix && (h("span", { key: '
|
|
279
|
+
} }), this.inputSuffix && (h("span", { key: 'cbe0be362ae8e5d5db11f32ae689964e3a1fc57f', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: '4bcdfafd3ca67a5ddcbcaa8ad63c80ba75104811', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '2df5dac96b6e60d108e1769a1e3d7c2045c15886', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
280
280
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
281
281
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
282
282
|
}
|
|
@@ -68,12 +68,12 @@ export class SdPagination {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return (h("div", { key: '
|
|
71
|
+
return (h("div", { key: '9b8ab3ae0c63267ab7933087cd85b2fd2f6f5697', class: this.paginationClasses }, h("div", { key: '963f072a708ad1800492ce5467e17af8648f6171', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
72
72
|
'pagination-btn': true,
|
|
73
73
|
'pagination-btn--selected': this.currentPage === n,
|
|
74
74
|
}, disabled: this.currentPage === n, style: {
|
|
75
75
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
76
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
76
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '5a0f5b9d866e873420ef6e29e0650e5884c2ab7c', class: "append-btns" }, this.renderNextButtons())));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "sd-pagination"; }
|
|
79
79
|
static get originalStyleUrls() {
|
|
@@ -29,24 +29,28 @@ export class SdPopover {
|
|
|
29
29
|
buttonEl;
|
|
30
30
|
get popoverOffset() {
|
|
31
31
|
switch (this.placement) {
|
|
32
|
-
case 'top':
|
|
33
|
-
|
|
34
|
-
case '
|
|
35
|
-
|
|
32
|
+
case 'top':
|
|
33
|
+
return [0, -4];
|
|
34
|
+
case 'bottom':
|
|
35
|
+
return [0, 4];
|
|
36
|
+
case 'left':
|
|
37
|
+
return [4, 0];
|
|
38
|
+
case 'right':
|
|
39
|
+
return [4, 0];
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
handleClose = () => {
|
|
39
43
|
this.showPopover = false;
|
|
40
44
|
};
|
|
41
45
|
render() {
|
|
42
|
-
return (h(Fragment, { key: '
|
|
46
|
+
return (h(Fragment, { key: 'ab94ec74dc1c6d4982e6420c20c72d045cb91e10' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onSdClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-floating-portal", { key: '7cacc11be5463e66f0642ed080b8e27534724aad', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement, offset: this.popoverOffset }, h("div", { key: '192366a56cbbbd4ddf60378cb948afd742e738f9', class: {
|
|
43
47
|
'sd-floating-menu': true,
|
|
44
48
|
'sd-floating-menu--popover': true,
|
|
45
49
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
46
50
|
[this.menuClass]: !!this.menuClass,
|
|
47
51
|
}, style: {
|
|
48
52
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
49
|
-
} }, h("i", { key: '
|
|
53
|
+
} }, h("i", { key: '5a29695140891de8987d0c61c67b38b11cc84f8d', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '98a9c7333df57d4655c87d3a0949a0f445e96d47' })), h("div", { key: '6c822d0c1f441f31f58724c13b2fe2cd5f5346f3', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: 'effca66c7bfe59a3a25375d622b8f9bef124c01c', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '66b655bb2d0520f2f390e5ef8ffee7d4b8aa5e4e', class: "sd-floating-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '354a08c2c58eeb2347ef6c8e6acbd13639eb827d', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("sd-ghost-button", { key: '3ee62dc5c099d94ff998c91125f54e72bdd2dc18', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.handleClose() })))))));
|
|
50
54
|
}
|
|
51
55
|
static get is() { return "sd-popover"; }
|
|
52
56
|
static get originalStyleUrls() {
|
|
@@ -281,7 +285,7 @@ export class SdPopover {
|
|
|
281
285
|
"type": "unknown",
|
|
282
286
|
"mutable": false,
|
|
283
287
|
"complexType": {
|
|
284
|
-
"original": "{\n
|
|
288
|
+
"original": "{\n [key: string]: any;\n }[]",
|
|
285
289
|
"resolved": "{ [key: string]: any; }[]",
|
|
286
290
|
"references": {}
|
|
287
291
|
},
|
|
@@ -33,10 +33,10 @@ export class SdProgress {
|
|
|
33
33
|
return this.statusColor[this.progressStatus];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: 'ded78b5df0eb9233f7a920d20a2b3d270f2259eb', style: {
|
|
37
37
|
'--progress-color': this.progressColor,
|
|
38
38
|
'--progress-percentage': `${this.progressPercentage}%`,
|
|
39
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '
|
|
39
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '6249a64c5d0d3c2462fc3e6222698d9088a9fbfb', class: "sd-progress__label" }, this.label)));
|
|
40
40
|
}
|
|
41
41
|
renderBarProgress() {
|
|
42
42
|
return (h("div", { class: `sd-progress__bar sd-progress__bar--${this.progressStatus}` }, h("div", { class: ['sd-progress__bar__percent', this.progressPercentage < 100 ? 'proceed' : ''].join(' ') }), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.progressPercentage, "%"), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.progressPercentage, "%")));
|
|
@@ -184,35 +184,3 @@ export class SdProgress {
|
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
// <sd-progress id="sd-progress-1"></sd-progress>
|
|
188
|
-
// <sd-progress id="sd-progress-2" type="spinner"></sd-progress>
|
|
189
|
-
// <sd-progress id="sd-progress-3" type="spinner"></sd-progress>
|
|
190
|
-
{
|
|
191
|
-
/* <script>
|
|
192
|
-
document.addEventListener('DOMContentLoaded', event => {
|
|
193
|
-
progress = document.getElementById('sd-progress-1');
|
|
194
|
-
progress2 = document.getElementById('sd-progress-2');
|
|
195
|
-
progress3 = document.getElementById('sd-progress-3');
|
|
196
|
-
progress2.label = 'test label...';
|
|
197
|
-
progress3.percentage = 50;
|
|
198
|
-
let percentage = 0;
|
|
199
|
-
const interval = setInterval(() => {
|
|
200
|
-
if (percentage >= 100) {
|
|
201
|
-
clearInterval(interval);
|
|
202
|
-
progress.status = 'complete';
|
|
203
|
-
progress2.status = 'complete';
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
percentage += 10;
|
|
207
|
-
progress.status = 'progress';
|
|
208
|
-
progress.percentage = percentage;
|
|
209
|
-
progress2.status = 'progress';
|
|
210
|
-
progress2.percentage = percentage;
|
|
211
|
-
}, 500);
|
|
212
|
-
|
|
213
|
-
const interval2 = setTimeout(() => {
|
|
214
|
-
progress3.error = true;
|
|
215
|
-
}, 3000);
|
|
216
|
-
});
|
|
217
|
-
</script> */
|
|
218
|
-
}
|
|
@@ -144,10 +144,10 @@ export class SdSelectDropdown {
|
|
|
144
144
|
this.isScrolled = scrollTop > 0;
|
|
145
145
|
};
|
|
146
146
|
render() {
|
|
147
|
-
return (h("div", { key: '
|
|
147
|
+
return (h("div", { key: '7aae611f7e409ae7e1285922d0cf921a740df0c0', class: {
|
|
148
148
|
'sd-select-dropdown': true,
|
|
149
149
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
150
|
-
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '
|
|
150
|
+
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '25def5c05698732910a5c411a7f5d5165d421453', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("slot", { name: `option-${option.value}` }, h("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (h("slot", { name: "option-placeholder" }, h("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder)))));
|
|
151
151
|
}
|
|
152
152
|
static get is() { return "sd-select-dropdown"; }
|
|
153
153
|
static get originalStyleUrls() {
|
|
@@ -24,7 +24,7 @@ export class SdSelectOption {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
render() {
|
|
27
|
-
return (h("div", { key: '
|
|
27
|
+
return (h("div", { key: '7341b944b2ca7246e04a279ee9a0e6a823f43091', class: {
|
|
28
28
|
'sd-select__option': true,
|
|
29
29
|
'sd-select__option--selected': this.isSelected,
|
|
30
30
|
'sd-select__option--disabled': !!this.option.disabled,
|
package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js
CHANGED
|
@@ -16,17 +16,17 @@ export class SdSelectSearchInput {
|
|
|
16
16
|
input?.focus({ preventScroll: true });
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: 'a344e235d317bb36270da0442d574425282438ad', class: {
|
|
20
20
|
'sd-select-search-input': true,
|
|
21
21
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
22
|
-
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: '
|
|
22
|
+
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: 'ae43752f3ab36cd25e0231db74120fa46eaecc31', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
|
|
23
23
|
this.searchInput.emit(String(event?.detail));
|
|
24
24
|
}, onSdFocus: () => {
|
|
25
25
|
this.searchFocus.emit();
|
|
26
26
|
}, onKeyDown: event => {
|
|
27
27
|
if (event.code === 'Enter')
|
|
28
28
|
event.stopPropagation();
|
|
29
|
-
} }, h("sd-icon", { key: '
|
|
29
|
+
} }, h("sd-icon", { key: '18f8c09f864c23a43c35533fa0dac8f40c27829c', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "sd-select-search-input"; }
|
|
32
32
|
static get originalStyleUrls() {
|
|
@@ -270,7 +270,7 @@ export class SdSelectGroup extends BaseDropdownEvent {
|
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
render() {
|
|
273
|
-
return (h("sd-field", { key: '
|
|
273
|
+
return (h("sd-field", { key: '43023a143ed08a3f06bc1abd55d64302947f17f9', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, h("div", { key: 'bf9e7710b06dbca0d260df64f696559640d6cfcb', class: {
|
|
274
274
|
'sd-select-group': true,
|
|
275
275
|
'sd-select-group--open': this.isOpen,
|
|
276
276
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -150,7 +150,7 @@ export class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
150
150
|
this.handleOptionSelection(option);
|
|
151
151
|
};
|
|
152
152
|
render() {
|
|
153
|
-
return (h("sd-field", { key: '
|
|
153
|
+
return (h("sd-field", { key: '52a829d1c59c4083a809e028687c1f9693f6dcf5', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: '80c36ebc81388a0ffa1c2593386123335715c8a9', class: {
|
|
154
154
|
'sd-select-multiple': true,
|
|
155
155
|
'sd-select-multiple--open': this.isOpen,
|
|
156
156
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -39,7 +39,7 @@ export class SdSelectOptionGroup {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '25fd7924d08648733a4986534a60fe0383e1511b', class: {
|
|
43
43
|
'sd-select__option-group': true,
|
|
44
44
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
45
45
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -48,10 +48,10 @@ export class SdSelectOptionGroup {
|
|
|
48
48
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
49
49
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
50
50
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
51
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '
|
|
51
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '2e530e5e1a3f13ca50a86bcfa684fd3b90daf397', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: '9046261abe407a94dc7863ccdac28c776e04effd', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
52
52
|
e.preventDefault();
|
|
53
53
|
this.handleClick(this.option, this.isSelected, e);
|
|
54
|
-
} })), h("span", { key: '
|
|
54
|
+
} })), h("span", { key: '6bb7fba5a8fd4ba22f52d040b836b7796b641ce5', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: 'd44db76484c2e596eb9ee9378a7b238a042a8b6b', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "sd-select-option-group"; }
|
|
57
57
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js
CHANGED
|
@@ -64,7 +64,7 @@ export class SdSelectV2ListItem {
|
|
|
64
64
|
if (isDepth1Group) {
|
|
65
65
|
cssVars['--list-item-border-top'] = `${LIST_ITEM_COLORS.depth1.borderWidth}px solid ${LIST_ITEM_COLORS.depth1.border}`;
|
|
66
66
|
}
|
|
67
|
-
return (h("div", { key: '
|
|
67
|
+
return (h("div", { key: '5c11caeeb2a5d8e13f47098adb32af0d771a9b00', class: {
|
|
68
68
|
'sd-select-v2-list-item': true,
|
|
69
69
|
'sd-select-v2-list-item--group': isGroup,
|
|
70
70
|
'sd-select-v2-list-item--depth1-group': isDepth1Group,
|
|
@@ -74,7 +74,7 @@ export class SdSelectV2ListItem {
|
|
|
74
74
|
'sd-select-v2-list-item--focused': this.isFocused,
|
|
75
75
|
'sd-select-v2-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
76
76
|
'sd-select-v2-list-item--disabled': !!this.option.disabled,
|
|
77
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
77
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: 'fe911e3eb7b3ce57a1c6ff88007c9322070712b5', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, class: "sd-select-v2-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), h("span", { key: 'c2fcc803ca012f6a1f708b8a959e2dc5e724ae65', class: "sd-select-v2-list-item__label" }, this.option.label), this.countInfo && (h("span", { key: 'efd3d5c4328e0b0f3dfc8176e93f80c8d73cf3b4', class: "sd-select-v2-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "sd-select-v2-list-item"; }
|
|
80
80
|
static get originalStyleUrls() {
|
|
@@ -41,12 +41,12 @@ export class SdSelectV2ListItemSearch {
|
|
|
41
41
|
clearTimeout(this.debounceTimer);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '76aabf7d27484909131a5a019b091a9162cf579e', class: {
|
|
45
45
|
'sd-select-v2-list-item-search': true,
|
|
46
46
|
'sd-select-v2-list-item-search--scrolled': this.isScrolled,
|
|
47
|
-
} }, h("div", { key: '
|
|
47
|
+
} }, h("div", { key: 'add67bf72a66f391e59d5b36a0132c8ce3104a72', class: "sd-select-v2-list-item-search__inner" }, h("sd-icon", { key: '631a0335fac05e7188132a2c04adcab70b4f8e0f', name: "search", size: 16, color: "grey_70", class: "sd-select-v2-list-item-search__icon" }), h("input", { key: '206ea8ce226bf5a9a39da20643dec26682752f56', ref: el => {
|
|
48
48
|
this.inputEl = el;
|
|
49
|
-
}, type: "text", class: "sd-select-v2-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), this.searchText && (h("button", { key: '
|
|
49
|
+
}, type: "text", class: "sd-select-v2-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), this.searchText && (h("button", { key: '6d1aa5a22f358da1f702c1a4c44acf561bdc2d5f', type: "button", class: "sd-select-v2-list-item-search__clear", onClick: this.handleClear }, h("sd-icon", { key: 'a1ec717b949e539bf32701a604e098ffa4c9e783', name: "close", size: 12, color: "#888888" }))))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "sd-select-v2-list-item-search"; }
|
|
52
52
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js
CHANGED
|
@@ -283,7 +283,7 @@ export class SdSelectV2Listbox {
|
|
|
283
283
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
284
284
|
'--listbox-padding-bottom': `${LIST_BOX_LAYOUT.paddingBottom}px`,
|
|
285
285
|
};
|
|
286
|
-
return (h("div", { key: '
|
|
286
|
+
return (h("div", { key: '7728feee63a4e282220abfefcf79a0225255d3e0', class: "sd-select-v2-listbox", style: cssVars }, this.showSearch && (h("sd-select-v2-list-item-search", { key: '0c2cbd8ba7ec612307a94962bae3d07655ec6554', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: 'e0b594dbc86e9dee867fd9573fc84228f5cb48ec', class: "sd-select-v2-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
287
287
|
this.listEl = el;
|
|
288
288
|
} }, this.isEmpty ? (h("div", { class: "sd-select-v2-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-v2-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
289
289
|
}
|
package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js
CHANGED
|
@@ -28,11 +28,11 @@ export class SdSelectV2Trigger {
|
|
|
28
28
|
? SELECT_COLORS.icon.disabled
|
|
29
29
|
: SELECT_COLORS.icon.default,
|
|
30
30
|
};
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'c26c6817d3df7db251e3043e44504b70a6232dd1', class: {
|
|
32
32
|
'sd-select-v2-trigger': true,
|
|
33
33
|
'sd-select-v2-trigger--open': this.isOpen,
|
|
34
34
|
'sd-select-v2-trigger--disabled': this.disabled,
|
|
35
|
-
}, style: cssVars, onClick: this.handleClick }, h("div", { key: '
|
|
35
|
+
}, style: cssVars, onClick: this.handleClick }, h("div", { key: '2c99a628d315f1bfe999429f816a21ea62dab6ae', class: "sd-select-v2-trigger__content" }, h("span", { key: 'fd9ccefa586982ac1695a3f16cf83bc3d1e11719', class: "sd-select-v2-trigger__text" }, hasValue ? this.displayText : this.placeholder), h("sd-icon", { key: '1c7e82fb106945a537931726795d3440e71714c8', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
36
36
|
'sd-select-v2-trigger__icon': true,
|
|
37
37
|
'sd-select-v2-trigger__icon--open': this.isOpen,
|
|
38
38
|
} }))));
|