@sellmate/design-system 1.0.40 → 1.0.42
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.textinput-43trvZ5m.js +41 -0
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +0 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +162 -0
- package/dist/cjs/sd-button-v2_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-button_20.cjs.entry.js +44 -69
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal.cjs.entry.js +124 -0
- package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-file-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-modal-container.cjs.entry.js +17 -73
- package/dist/cjs/sd-popover.cjs.entry.js +10 -2
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- 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 +7 -16
- package/dist/cjs/sd-select-v2-listbox_2.cjs.entry.js +181 -14
- package/dist/cjs/sd-select-v2.cjs.entry.js +13 -21
- package/dist/cjs/{sd-select-v2.config-DZrPJ6OS.js → sd-select-v2.config-BJXi4hMP.js} +12 -7
- package/dist/cjs/sd-text-link.cjs.entry.js +3 -3
- 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-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.config.js +34 -0
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.css +72 -0
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +750 -0
- package/dist/collection/components/sd-button-v2/sd-button-v2.js +2 -2
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.config.js +4 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.css +17 -17
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +7 -7
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +4 -4
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
- package/dist/collection/components/sd-field/sd-field.js +4 -3
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +3 -3
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +19 -118
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +10 -2
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- 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.css +6 -6
- 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 -12
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css +1 -0
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +185 -16
- 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.config.js +12 -7
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +13 -21
- 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.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-toggle-button/sd-toggle-button.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +10 -2
- package/dist/collection/utils/modal.js +0 -9
- package/dist/components/index.js +1 -1
- package/dist/components/{p-8oyZJ0FK.js → p-6FZWkn3V.js} +1 -1
- package/dist/components/p-AfdVu7_V.js +1 -0
- package/dist/components/{p-PcxVERcm.js → p-B2IPxQNl.js} +1 -1
- package/dist/components/{p-DBCQtIY4.js → p-BBKrHUCP.js} +1 -1
- package/dist/components/{p-A5atk1St.js → p-BKtAiyh0.js} +1 -1
- package/dist/components/{p-5UN9Ry8A.js → p-BXuZFSsU.js} +1 -1
- package/dist/components/{p-CZN_I4v-.js → p-BZJDhQ6h.js} +1 -1
- package/dist/components/{p-CKi7RueC.js → p-BfqA9RSe.js} +1 -1
- package/dist/components/{p-2JXqy61T.js → p-Bo7U7jA2.js} +1 -1
- package/dist/components/{p-VztCEgcN.js → p-C7dgr7sG.js} +1 -1
- package/dist/components/p-CArAuWdh.js +1 -0
- package/dist/components/{p-vznqVg6E.js → p-CPr3lzac.js} +1 -1
- package/dist/components/{p-DEBuE-pW.js → p-CV1qJByG.js} +1 -1
- package/dist/components/p-CXjMXCNh.js +1 -0
- package/dist/components/p-CbjDAdZ_.js +1 -0
- package/dist/components/p-CnZPI5RL.js +1 -0
- package/dist/components/{p-du_AmhYu.js → p-CrJXDjO0.js} +1 -1
- package/dist/components/{p-DtCG-y6d.js → p-Cx2K_zB2.js} +1 -1
- package/dist/components/{p-CJZIwyH-.js → p-D3H3ILJG.js} +1 -1
- package/dist/components/{p-BNNjhCQc.js → p-DgDoP1wQ.js} +1 -1
- package/dist/components/{p-DPjPJkXv.js → p-DvQzT5XM.js} +1 -1
- package/dist/components/{p-CjZTu6hh.js → p-UaMNiu8y.js} +1 -1
- package/dist/components/p-gHb970iC.js +1 -0
- package/dist/components/p-jaHdAlr9.js +1 -0
- package/dist/components/{p-Ese2dRYD.js → p-jk3tAdJg.js} +1 -1
- package/dist/components/p-qbtTff3q.js +1 -0
- package/dist/components/{sd-notice-modal.d.ts → sd-barcode-input.d.ts} +4 -4
- package/dist/components/sd-barcode-input.js +1 -0
- 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-card.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-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-portal.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-toggle-button.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.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-0174f3c5.entry.js +1 -0
- package/dist/design-system/{p-8e0cc9be.entry.js → p-0dee408f.entry.js} +1 -1
- package/dist/design-system/{p-fb71301e.entry.js → p-4301b50d.entry.js} +1 -1
- package/dist/design-system/p-4921c569.entry.js +1 -0
- package/dist/design-system/{p-2408d1ab.entry.js → p-50b1196b.entry.js} +1 -1
- package/dist/design-system/p-535b0778.entry.js +1 -0
- package/dist/design-system/{p-7ce76a05.entry.js → p-57b1e335.entry.js} +1 -1
- package/dist/design-system/{p-6a34e6b8.entry.js → p-5ce3142c.entry.js} +1 -1
- package/dist/design-system/{p-d8b04e91.entry.js → p-634797a4.entry.js} +1 -1
- package/dist/design-system/{p-b71d0858.entry.js → p-63a43fc9.entry.js} +1 -1
- package/dist/design-system/{p-72b09ede.entry.js → p-6a371d98.entry.js} +1 -1
- package/dist/design-system/p-6db4e8c7.entry.js +1 -0
- package/dist/design-system/{p-36ba5f33.entry.js → p-7368eb09.entry.js} +1 -1
- package/dist/design-system/p-868ce552.entry.js +1 -0
- package/dist/design-system/p-9eea4660.entry.js +1 -0
- package/dist/design-system/p-CbjDAdZ_.js +1 -0
- package/dist/design-system/{p-9933475e.entry.js → p-aaf91535.entry.js} +1 -1
- package/dist/design-system/{p-e96c881f.entry.js → p-c1963b5e.entry.js} +1 -1
- package/dist/design-system/{p-63f997d7.entry.js → p-dc6246be.entry.js} +1 -1
- package/dist/design-system/p-e39687d0.entry.js +1 -0
- package/dist/design-system/p-f91f4fcc.entry.js +1 -0
- package/dist/design-system/{p-f9075737.entry.js → p-f9cf0d6f.entry.js} +1 -1
- package/dist/design-system/{p-b79756cc.entry.js → p-fdde3de0.entry.js} +1 -1
- package/dist/design-system/p-feb80c2f.entry.js +1 -0
- package/dist/design-system/{p-BOmBg3kj.js → p-o9Ugc4Ua.js} +1 -1
- package/dist/esm/component.textinput-CbjDAdZ_.js +39 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/index.js +0 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +160 -0
- package/dist/esm/sd-button-v2_2.entry.js +4 -4
- package/dist/esm/sd-button_20.entry.js +39 -64
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-confirm-modal.entry.js +122 -0
- package/dist/esm/sd-date-picker.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +3 -3
- package/dist/esm/sd-file-picker.entry.js +3 -3
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-modal-container.entry.js +17 -73
- package/dist/esm/sd-popover.entry.js +10 -2
- package/dist/esm/sd-progress.entry.js +2 -2
- 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 +7 -16
- package/dist/esm/sd-select-v2-listbox_2.entry.js +181 -14
- package/dist/esm/{sd-select-v2.config-BOmBg3kj.js → sd-select-v2.config-o9Ugc4Ua.js} +12 -7
- package/dist/esm/sd-select-v2.entry.js +13 -21
- package/dist/esm/sd-text-link.entry.js +3 -3
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle-button.entry.js +1 -1
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-barcode-input/sd-barcode-input.config.d.ts +38 -0
- package/dist/types/components/sd-barcode-input/sd-barcode-input.d.ts +50 -0
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.config.d.ts +4 -3
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +1 -1
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +3 -13
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +2 -5
- package/dist/types/components/sd-popover/sd-popover.d.ts +1 -0
- package/dist/types/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.d.ts +0 -1
- package/dist/types/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.d.ts +44 -2
- package/dist/types/components/sd-select-v2/sd-select-v2.config.d.ts +4 -0
- package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +0 -1
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +1 -0
- package/dist/types/components.d.ts +249 -130
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/modal.d.ts +3 -4
- package/hydrate/index.js +584 -368
- package/hydrate/index.mjs +584 -368
- package/package.json +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +0 -199
- package/dist/collection/components/sd-notice-modal/sd-notice-modal.config.js +0 -3
- package/dist/collection/components/sd-notice-modal/sd-notice-modal.css +0 -61
- package/dist/collection/components/sd-notice-modal/sd-notice-modal.js +0 -324
- package/dist/components/p-BDUKWznE.js +0 -1
- package/dist/components/p-BzfvfP0u.js +0 -1
- package/dist/components/p-C-AFCWLs.js +0 -1
- package/dist/components/p-CN-WKnUJ.js +0 -1
- package/dist/components/p-C_L-UaCP.js +0 -1
- package/dist/components/p-CrYrMUpQ.js +0 -1
- package/dist/components/p-D0PYeSW9.js +0 -1
- package/dist/components/p-DLe_Tu-I.js +0 -1
- package/dist/components/p-H9Vl4enQ.js +0 -1
- package/dist/components/sd-notice-modal.js +0 -1
- package/dist/design-system/p-10945e57.entry.js +0 -1
- package/dist/design-system/p-342f48ab.entry.js +0 -1
- package/dist/design-system/p-3ded14dc.entry.js +0 -1
- package/dist/design-system/p-951e5615.entry.js +0 -1
- package/dist/design-system/p-9c6fea35.entry.js +0 -1
- package/dist/design-system/p-9d431ea6.entry.js +0 -1
- package/dist/design-system/p-ba393cc8.entry.js +0 -1
- package/dist/design-system/p-df1f9832.entry.js +0 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +0 -196
- package/dist/types/components/sd-notice-modal/sd-notice-modal.config.d.ts +0 -5
- package/dist/types/components/sd-notice-modal/sd-notice-modal.d.ts +0 -28
|
@@ -61,13 +61,13 @@ export class SdButtonV2 {
|
|
|
61
61
|
const hasLabel = Boolean(this.label);
|
|
62
62
|
const iconOnly = !this.label && Boolean(this.icon);
|
|
63
63
|
const accessibleName = iconOnly && this.ariaLabel.trim() ? this.ariaLabel : undefined;
|
|
64
|
-
return (h("button", { key: '
|
|
64
|
+
return (h("button", { key: 'bf5687b1ddd3219232c88462b4067203ae2c3d14', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type, disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
65
65
|
'--sd-button-v2-bg': config.variant === 'primary' ? config.color : '#FFFFFF',
|
|
66
66
|
'--sd-button-v2-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
67
67
|
'--sd-button-v2-border': PRESET_BORDER_COLORS[preset],
|
|
68
68
|
'--sd-button-v2-content': PRESET_CONTENT_COLORS[preset],
|
|
69
69
|
'--sd-button-v2-accent': BUTTON_FOCUS_RING_COLOR,
|
|
70
|
-
}, onClick: this.handleClick }, h("span", { key: '
|
|
70
|
+
}, onClick: this.handleClick }, h("span", { key: '3294cdbae8d44d06ea800f701af23e5a228cca51', class: "sd-button-v2__content" }, this.icon && (h("sd-icon", { key: '707c6716a97ac1c710d546eff6d4a2fb3c3b6206', class: "sd-button-v2__icon", name: this.icon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-v2-current-content)" })), this.label && h("span", { key: 'f63f7c887ca2ee066dfb4c65fdd2e3586109a5dd', class: "sd-button-v2__label" }, this.label))));
|
|
71
71
|
}
|
|
72
72
|
static get is() { return "sd-button-v2"; }
|
|
73
73
|
static get originalStyleUrls() {
|
|
@@ -3,7 +3,7 @@ export class SdCard {
|
|
|
3
3
|
bordered = false;
|
|
4
4
|
sdClass = '';
|
|
5
5
|
render() {
|
|
6
|
-
return (h(Fragment, { key: '
|
|
6
|
+
return (h(Fragment, { key: '155504b50cb1c21fc1f847af8a9e8b685f7881ef' }, h("div", { key: 'c461e3e40da44586da5e02ad508bf59942a9e82a', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: '0c0ee023155c08c565c3496c44699a900666b084' }))));
|
|
7
7
|
}
|
|
8
8
|
static get is() { return "sd-card"; }
|
|
9
9
|
static get originalStyleUrls() {
|
|
@@ -2,16 +2,19 @@ import modalTokens from "../../tokens/generated/component.modal.json";
|
|
|
2
2
|
export const CONFIRM_MODAL_DEFAULT_BUTTON = {
|
|
3
3
|
positive: 'primary_md',
|
|
4
4
|
negative: 'danger_md',
|
|
5
|
+
default: 'neutral_outline_md',
|
|
5
6
|
};
|
|
6
7
|
export const CONFIRM_MODAL_ICON_MAP = {
|
|
7
8
|
positive: 'notificationOutline',
|
|
8
9
|
negative: 'warningOutline',
|
|
10
|
+
default: null,
|
|
9
11
|
};
|
|
10
12
|
export const CONFIRM_MODAL_ICON_COLOR = {
|
|
11
13
|
positive: modalTokens.modal.confirm.positive.icon,
|
|
12
14
|
negative: modalTokens.modal.confirm.negative.icon,
|
|
15
|
+
default: '',
|
|
13
16
|
};
|
|
14
|
-
export const TITLE_ICON_SIZE = Number(modalTokens.modal.title.icon);
|
|
17
|
+
export const TITLE_ICON_SIZE = Number(modalTokens.modal.confirm.title.icon);
|
|
15
18
|
export const CLOSE_ICON_SIZE = Number(modalTokens.modal.close.size);
|
|
16
19
|
export const CLOSE_ICON_COLOR = modalTokens.modal.close.color;
|
|
17
20
|
export const SUB_BUTTON_PRESET = 'neutral_outline_md';
|
|
@@ -5,7 +5,7 @@ sd-confirm-modal {
|
|
|
5
5
|
}
|
|
6
6
|
sd-confirm-modal .sd-confirm-modal {
|
|
7
7
|
position: relative;
|
|
8
|
-
padding: var(--sd-modal-modal-padding-y) var(--sd-modal-modal-padding-x);
|
|
8
|
+
padding: var(--sd-modal-modal-confirm-padding-y) var(--sd-modal-modal-confirm-padding-x);
|
|
9
9
|
border-radius: var(--sd-modal-modal-radius);
|
|
10
10
|
box-shadow: 4px 4px 24px 4px rgba(0, 0, 0, 0.2);
|
|
11
11
|
background: var(--sd-modal-modal-bg);
|
|
@@ -18,28 +18,28 @@ sd-confirm-modal .sd-confirm-modal__close-button {
|
|
|
18
18
|
}
|
|
19
19
|
sd-confirm-modal .sd-confirm-modal__icon {
|
|
20
20
|
display: block;
|
|
21
|
-
width: var(--sd-modal-modal-title-icon);
|
|
22
|
-
height: var(--sd-modal-modal-title-icon);
|
|
23
|
-
margin: 0 auto var(--sd-modal-modal-title-gap) auto;
|
|
21
|
+
width: var(--sd-modal-modal-confirm-title-icon);
|
|
22
|
+
height: var(--sd-modal-modal-confirm-title-icon);
|
|
23
|
+
margin: 0 auto var(--sd-modal-modal-confirm-title-gap) auto;
|
|
24
24
|
}
|
|
25
25
|
sd-confirm-modal .sd-confirm-modal__title {
|
|
26
|
-
color: var(--sd-modal-modal-title-color);
|
|
27
|
-
font-size: var(--sd-modal-modal-title-typography-font-size);
|
|
28
|
-
font-weight: var(--sd-modal-modal-title-typography-font-weight);
|
|
29
|
-
line-height: var(--sd-modal-modal-title-typography-line-height);
|
|
26
|
+
color: var(--sd-modal-modal-confirm-title-color);
|
|
27
|
+
font-size: var(--sd-modal-modal-confirm-title-typography-font-size);
|
|
28
|
+
font-weight: var(--sd-modal-modal-confirm-title-typography-font-weight);
|
|
29
|
+
line-height: var(--sd-modal-modal-confirm-title-typography-line-height);
|
|
30
30
|
text-align: center;
|
|
31
|
-
margin: 0 0 var(--sd-modal-modal-body-gap) 0;
|
|
31
|
+
margin: 0 0 var(--sd-modal-modal-confirm-body-gap) 0;
|
|
32
32
|
}
|
|
33
33
|
sd-confirm-modal .sd-confirm-modal__body {
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
|
-
gap: var(--sd-modal-modal-body-gap);
|
|
36
|
+
gap: var(--sd-modal-modal-confirm-body-gap);
|
|
37
37
|
}
|
|
38
38
|
sd-confirm-modal .sd-confirm-modal__message-text {
|
|
39
|
-
color: var(--sd-modal-modal-message-color);
|
|
40
|
-
font-size:
|
|
41
|
-
font-weight:
|
|
42
|
-
line-height:
|
|
39
|
+
color: var(--sd-modal-modal-confirm-message-color);
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
line-height: 22px;
|
|
43
43
|
text-align: center;
|
|
44
44
|
margin: 0;
|
|
45
45
|
}
|
|
@@ -56,12 +56,12 @@ sd-confirm-modal .sd-confirm-modal__content-box {
|
|
|
56
56
|
sd-confirm-modal .sd-confirm-modal__slot-label {
|
|
57
57
|
font-size: 14px;
|
|
58
58
|
font-weight: 700;
|
|
59
|
-
line-height:
|
|
60
|
-
color: var(--sd-modal-modal-message-color);
|
|
59
|
+
line-height: 22px;
|
|
60
|
+
color: var(--sd-modal-modal-confirm-message-color);
|
|
61
61
|
}
|
|
62
62
|
sd-confirm-modal .sd-confirm-modal__button {
|
|
63
63
|
display: flex;
|
|
64
64
|
justify-content: center;
|
|
65
|
-
gap: var(--sd-modal-modal-button-gap);
|
|
65
|
+
gap: var(--sd-modal-modal-confirm-button-gap);
|
|
66
66
|
margin-top: 32px;
|
|
67
67
|
}
|
|
@@ -18,7 +18,7 @@ export class SdConfirmModal {
|
|
|
18
18
|
slotLabel = '';
|
|
19
19
|
tagContents;
|
|
20
20
|
close;
|
|
21
|
-
|
|
21
|
+
ok;
|
|
22
22
|
componentWillLoad() {
|
|
23
23
|
this.syncHasSlottedContent();
|
|
24
24
|
}
|
|
@@ -66,9 +66,9 @@ export class SdConfirmModal {
|
|
|
66
66
|
render() {
|
|
67
67
|
const iconName = CONFIRM_MODAL_ICON_MAP[this.type];
|
|
68
68
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[this.type];
|
|
69
|
-
return (h("div", { key: '
|
|
69
|
+
return (h("div", { key: '9dd835c1020a29e99257690b5d4d6038b13fe5e4', class: "sd-confirm-modal" }, h("sd-icon", { key: '17fea9642aabb047a8017c37beffe3e0b64707c2', class: "sd-confirm-modal__close-button", name: "close", size: CLOSE_ICON_SIZE, color: CLOSE_ICON_COLOR, onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: '5198d65dbac64b483f63f8a65f7cad987a14e24b', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: '045887b2224ed46f4d6158a2d3ffc25261a0156d', class: `sd-confirm-modal__title ${this.titleClass}` }, this.modalTitle), h("div", { key: '7f9ce8c5bef7a8f9ee580671ccdb79c093066ee3', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: 'ac533ca4a1dc011d0bbb0c5c72c14228f680741a', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg }))))), this.showContentBox && (h("div", { key: '2fde04429ca9efb0b9ae30116e9a0fd7f57b904e', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
70
70
|
this.customContentRef = el;
|
|
71
|
-
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '
|
|
71
|
+
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '5f97a8bf91a60b553b21d80f4b133d2c79e97ba6', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg })))))), h("div", { key: '4cde2779f11b274d71b90dd75584f8ccd9d3044d', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button-v2", { key: '9e64571f556c6cfdb9c69dc70e54a2f4bdec7bb6', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.close.emit() })), h("sd-button-v2", { key: 'dd86f7cce973862d94e26910341995f743e1944b', name: this.resolvedMainButton, label: this.mainButtonLabel, onSdClick: () => this.ok.emit() }))));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "sd-confirm-modal"; }
|
|
74
74
|
static get originalStyleUrls() {
|
|
@@ -88,7 +88,7 @@ export class SdConfirmModal {
|
|
|
88
88
|
"mutable": false,
|
|
89
89
|
"complexType": {
|
|
90
90
|
"original": "ConfirmModalType",
|
|
91
|
-
"resolved": "\"negative\" | \"positive\"",
|
|
91
|
+
"resolved": "\"default\" | \"negative\" | \"positive\"",
|
|
92
92
|
"references": {
|
|
93
93
|
"ConfirmModalType": {
|
|
94
94
|
"location": "import",
|
|
@@ -191,7 +191,7 @@ export class SdConfirmModal {
|
|
|
191
191
|
"mutable": false,
|
|
192
192
|
"complexType": {
|
|
193
193
|
"original": "ConfirmModalMainButton",
|
|
194
|
-
"resolved": "\"danger_md\" | \"danger_outline_md\" | \"primary_md\" | \"primary_outline_md\" | undefined",
|
|
194
|
+
"resolved": "\"danger_md\" | \"danger_outline_md\" | \"neutral_outline_md\" | \"primary_md\" | \"primary_outline_md\" | undefined",
|
|
195
195
|
"references": {
|
|
196
196
|
"ConfirmModalMainButton": {
|
|
197
197
|
"location": "import",
|
|
@@ -365,8 +365,8 @@ export class SdConfirmModal {
|
|
|
365
365
|
"references": {}
|
|
366
366
|
}
|
|
367
367
|
}, {
|
|
368
|
-
"method": "
|
|
369
|
-
"name": "
|
|
368
|
+
"method": "ok",
|
|
369
|
+
"name": "sdOk",
|
|
370
370
|
"bubbles": true,
|
|
371
371
|
"cancelable": true,
|
|
372
372
|
"composed": true,
|
|
@@ -27,7 +27,7 @@ export class SdDatePicker {
|
|
|
27
27
|
this.viewChange.emit(e.detail);
|
|
28
28
|
};
|
|
29
29
|
render() {
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '308b6e499027b7316199713cddb8253308cee41d', class: { 'sd-date-picker': true, 'sd-date-picker--disabled': this.disabled } }, h("sd-input", { key: '37afc5dd38a77e9e1a3c80df8c589cd1ee6f6185', ref: el => (this.inputEl = el), value: this.value, addonLabel: this.label, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: '91ca438a2ca3795d10a7671a6fc807eca11c4943', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: '85bb2503ec3e9d928e572835a5a750a12972af70', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: '9b8ccf203b013189df1ad9ecad9f5956a5dd7cef', class: "sd-date-picker__menu" }, h("sd-calendar", { key: 'b314b4c809cd4675d97892a5873fed8fdfb2b046', value: this.value, selectable: this.selectable, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange }))))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "sd-date-picker"; }
|
|
33
33
|
static get encapsulation() { return "scoped"; }
|
|
@@ -158,16 +158,16 @@ export class SdDateRangePicker {
|
|
|
158
158
|
this.setHoverDate(hoverDate);
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return (h("div", { key: '
|
|
161
|
+
return (h("div", { key: '8870de35f713f9b5cd7756e87dcca0bff60acbcd', class: {
|
|
162
162
|
'sd-date-range-picker': true,
|
|
163
163
|
'sd-date-range-picker--disabled': this.disabled,
|
|
164
|
-
} }, h("sd-input", { key: '
|
|
164
|
+
} }, h("sd-input", { key: '602f5be4d5cf9cbd378ca1236ee28969b5e9ba12', ref: el => (this.inputEl = el), value: !!this.dateRange[0] ? `${this.dateRange[0]} ~ ${this.dateRange[1]}` : '', addonLabel: this.label, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-range-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: '06a5bf3feaea7606bddad3fa2e655d0cfbaaf89b', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: '2e27d6573a72ba2639dc873e7e295b432908a954', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.closeMenu }, h("div", { key: 'b682a2ae8fdc168a56d77b32b05b239f2eb5a6cc', class: "sd-date-range-picker__menu" }, h("div", { key: '34b4d36dca8a51c7adae9584e62cd0aaf26021d8', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, h("button", { key: '47448fcf5ebc6cf8fd242119c7f318c72f69cd90', type: "button", name: "prev", title: "Previous", onClick: () => {
|
|
165
165
|
this.setPrevYear(this.prevYear - 1);
|
|
166
166
|
this.viewChange.emit({ year: this.prevYear, month: this.prevMonth });
|
|
167
|
-
} }, h("sd-icon", { key: '
|
|
167
|
+
} }, h("sd-icon", { key: '5f05f690e1493854c5c91b1b7e6c7f92b2285fe0', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("div", { key: 'b8c1d2c567eda67a4c8f7a7e2aac740fe8c8a306', class: "header-label" }, this.prevYear), h("button", { key: '447fd54a95756777f665e628ccf747cf5c9f8bfa', type: "button", name: "next", title: "Next", onClick: () => {
|
|
168
168
|
this.setPrevYear(this.prevYear + 1);
|
|
169
169
|
this.viewChange.emit({ year: this.prevYear, month: this.prevMonth });
|
|
170
|
-
} }, h("sd-icon", { key: '
|
|
170
|
+
} }, h("sd-icon", { key: '0aeca212fd4ba80c91cdfeb092bcfc7b426ce3cb', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '1858318f65bde16201f9792499b246432f5c80f4', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (h(Fragment, null, index === 1 && h("div", { class: "separator" }), h("div", { key: index, class: "calendar-container" }, h("div", { class: "calendar-header" }, h("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, h("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
|
|
171
171
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
172
172
|
: `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), h("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), h("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (h("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date === this.formatDate(index, Number(day))), type: this.getDateBoxType(this.formatDate(index, Number(day))), isToday: today === this.formatDate(index, Number(day)), disabled: !day ? true : this.isDisabledDate(this.formatDate(index, Number(day))), inRange: this.isDateInRange(this.formatDate(index, Number(day))), isStartDate: this.dateRange[0] === this.formatDate(index, Number(day)), isEndDate: this.dateRange[1] === this.formatDate(index, Number(day)), onSdClick: () => this.handleDateClick(index, Number(day)), onSdMouseOver: () => this.handleDateHover(index, Number(day)) }))))))))))))));
|
|
173
173
|
}
|
|
@@ -186,7 +186,7 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
186
186
|
}
|
|
187
187
|
render() {
|
|
188
188
|
const { config, preset } = this.resolvedConfig;
|
|
189
|
-
return (h("div", { key: '
|
|
189
|
+
return (h("div", { key: 'bdaf7f90ca47cc650fb60ed95b7e6ddeb688feaf', class: "sd-dropdown-button" }, h("button", { key: 'eb31263b21ddcd07e6a59c17ddb88af6906136b4', type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: {
|
|
190
190
|
'--sd-dropdown-button-min-width': `${DROPDOWN_BUTTON_MIN_WIDTHS[config.size]}px`,
|
|
191
191
|
'--sd-dropdown-button-bg': config.color,
|
|
192
192
|
'--sd-dropdown-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
@@ -197,10 +197,10 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
197
197
|
'--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
|
|
198
198
|
'--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_CONTENT,
|
|
199
199
|
'--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
|
|
200
|
-
} }, h("span", { key: '
|
|
200
|
+
} }, h("span", { key: 'b9501cbab79d5472e9680528282191d97fb9c579', class: "sd-dropdown-button__trigger-label" }, this.label), h("span", { key: '83c6b1e937bb7f7d676561d607e8223d05897715', class: "sd-dropdown-button__trigger-divider", "aria-hidden": "true" }), h("span", { key: '58b1ed6195672372ecd180c9567bc74aeefb1db9', class: {
|
|
201
201
|
'sd-dropdown-button__trigger-icon': true,
|
|
202
202
|
'sd-dropdown-button__trigger-icon--open': this.isOpen,
|
|
203
|
-
}, "aria-hidden": "true" }, h("sd-icon", { key: '
|
|
203
|
+
}, "aria-hidden": "true" }, h("sd-icon", { key: 'd7dfe4aef651f4f55ed661f1d84850009a61bb2e', name: "arrowDown", size: 12, color: "var(--sd-dropdown-button-current-content)" }))), this.renderDropdown(preset)));
|
|
204
204
|
}
|
|
205
205
|
static get is() { return "sd-dropdown-button"; }
|
|
206
206
|
static get originalStyleUrls() {
|
|
@@ -5,6 +5,7 @@ const FORM_PARENT_TAGS = [
|
|
|
5
5
|
'sd-select-multiple',
|
|
6
6
|
'sd-select-multiple-group',
|
|
7
7
|
'sd-input',
|
|
8
|
+
'sd-barcode-input',
|
|
8
9
|
'sd-textarea',
|
|
9
10
|
'sd-number-input',
|
|
10
11
|
'sd-select-v2',
|
|
@@ -131,15 +132,15 @@ export class SdField {
|
|
|
131
132
|
? addonTokens.border.disabled
|
|
132
133
|
: addonTokens.border.default,
|
|
133
134
|
} : {};
|
|
134
|
-
return (h("div", { key: '
|
|
135
|
+
return (h("div", { key: '1badb3752c758c30995188f73505d912f4318ba3', class: {
|
|
135
136
|
'sd-field': true,
|
|
136
137
|
'sd-field--has-label': !!this.label,
|
|
137
138
|
'sd-field--has-addon': !!addon,
|
|
138
139
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
139
|
-
}, style: addonCssVars }, h("div", { key: '
|
|
140
|
+
}, style: addonCssVars }, h("div", { key: 'b8c08b4783eb7035cc28e6ffb1d541871cd25616', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '31efca0604479d2fa9bed06aaaeb9ca9930c62fb', class: {
|
|
140
141
|
'sd-field__control': true,
|
|
141
142
|
'sd-field__control--has-addon': !!addon,
|
|
142
|
-
}, style: this.width ? { width: typeof this.width === 'number' ? `${this.width}px` : this.width, flex: 'none' } : {} }, addon && (h("div", { key: '
|
|
143
|
+
}, style: this.width ? { width: typeof this.width === 'number' ? `${this.width}px` : this.width, flex: 'none' } : {} }, addon && (h("div", { key: '159191a432603cbfa4b1755fc7f4c784868b3749', class: "sd-field__addon" }, addon)), h("slot", { key: '58918e5af7dc2564af8d86b24cb5972cb9d0d67f' }))), (this.errorMsg || this.errorMessage)
|
|
143
144
|
? h("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)
|
|
144
145
|
: this.hint && h("div", { class: "sd-field__hint" }, this.hint)));
|
|
145
146
|
}
|
|
@@ -91,15 +91,15 @@ export class SdFilePicker {
|
|
|
91
91
|
render() {
|
|
92
92
|
const hasFiles = this.hasFiles();
|
|
93
93
|
const displayText = this.getDisplayText();
|
|
94
|
-
return (h("div", { key: '
|
|
94
|
+
return (h("div", { key: '3133b2f12d79b36a0f21bbb1d93ae738f35611ce', class: {
|
|
95
95
|
'sd-file-picker': true,
|
|
96
96
|
[this.getStatusClass()]: true,
|
|
97
97
|
'sd-file-picker--inline': this.inline,
|
|
98
|
-
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("input", { key: '
|
|
98
|
+
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("input", { key: '56bad5fd0fbd58effe130828312a2b199a132e3b', 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 }), h("sd-icon", { key: 'b1bba7f527e177a51939c98eefe0ca7b84dada7e', name: "attachFile", size: 16, color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { key: '3a8717611a8716c64a028e5f2c8ac1784797e68c', ref: el => (this.fileNamesRef = el), class: {
|
|
99
99
|
'sd-file-picker__text': true,
|
|
100
100
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
101
101
|
'sd-file-picker__text--active': hasFiles,
|
|
102
|
-
} }, displayText), !this.disabled && hasFiles && (h("sd-icon", { key: '
|
|
102
|
+
} }, displayText), !this.disabled && hasFiles && (h("sd-icon", { key: 'd05a21388823cc596d8c2f9e31f3fc39a2b84d09', name: "close", size: 12, color: "#888888", class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { key: '24c65a0b7743fa66d44d24cc12bfff46172d620e', class: "sd-file-picker__tooltip" }, displayText))));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "sd-file-picker"; }
|
|
105
105
|
static get originalStyleUrls() {
|
|
@@ -144,7 +144,7 @@ export class SdFloatingPopover {
|
|
|
144
144
|
this.close.emit();
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return h("slot", { key: '
|
|
147
|
+
return h("slot", { key: 'd3ee1daa4b0009285df341cc1d8b892fb2a2fed6' });
|
|
148
148
|
}
|
|
149
149
|
static get is() { return "sd-floating-portal"; }
|
|
150
150
|
static get originalStyleUrls() {
|
|
@@ -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: 'd6736d62ad87e750ed147e48d36d05e4304dae2b', class: "sd-guide", style: {
|
|
51
51
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
52
|
-
} }, h("sd-button", { key: '
|
|
52
|
+
} }, h("sd-button", { key: '430e29a73b5bc5380f33773a13c53bc7d6f86590', 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: '2b68fd8e9b67c831d212a90c0863551e022de7da', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: '735de560510986e014611a2388b4eda55412282f', style: { position: 'absolute', width: '0px', height: '0px' } }, h("div", { key: '33f612c4c2241f539a84eee6ab8d5ae8d7f933bd', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, h("sd-button", { key: '6770783357a95ade4f1037f55397394b64624e2b', class: "sd-guide__popup__close", icon: "close", color: "grey_65", size: "md", variant: "ghost", noHover: true, onSdClick: this.closeDropdown }), h("div", { key: '1f5d49db7e830f14937db99348f0e1f2332db377', class: "sd-guide__popup__header" }, h("sd-icon", { key: '69faeb8e2de8e4d4895e0cd0938a027bcff2277b', name: "helpOutline", size: 24, color: "green_65" }), h("h3", { key: 'c87c814502da7534382cf72b2bc2ab30003d7803', class: "sd-guide__popup__title" }, this.popupTitle || GUIDE_LABEL[this.type])), h("ul", { key: '73a66a5a39d0b7c5eb9f4076eafdc0a8bf067deb', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
|
|
53
53
|
}
|
|
54
54
|
// 현재 2depth까지만 스타일 적용
|
|
55
55
|
renderListItem(message, depth = 0) {
|
|
@@ -25,7 +25,7 @@ export class SdIcon {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
28
|
-
return (h("i", { key: '
|
|
28
|
+
return (h("i", { key: '64d1789805536124f229d7dde816ef986d583276', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: '35ba2d95f6e3e9d7cb346b4872ba1a436a08e04d', color: this.resolvedColor })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "sd-icon"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -104,10 +104,10 @@ 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: '82adfc401e74a6d823aa4f95442aa74b663e3ee4', 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: '6c7a76e6d863cddf4e7ca83d1231255fe5e7edea', class: "sd-input__content" }, h("slot", { key: '14ab01247317f114f92127b6c1c43c42251fa90c', name: "prefix" }), h("input", { key: 'ee546204bc6cfa28f8e42dce6deebdf251dc04da', 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: '4f52aa176c00462996d8794da1d8fd86c468e132', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: '40ab163ef22e68a261e639ec5d8fb3bc1d6cd42a', name: "close", color: INPUT_COLORS.icon.default, size: INPUT_ICON.iconSize, class: "sd-input__clear-icon", onClick: async () => {
|
|
108
108
|
this.internalValue = '';
|
|
109
109
|
await this.formField?.sdValidate();
|
|
110
|
-
} })), this.type === 'password' && (h("sd-icon", { key: '
|
|
110
|
+
} })), this.type === 'password' && (h("sd-icon", { key: 'd841ed3ca46d065048107b8733c41e63155b0990', name: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', color: INPUT_COLORS.icon.default, size: INPUT_ICON.frameSize, class: "sd-input__password-icon", onClick: () => { this.passwordVisible = !this.passwordVisible; } })))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "sd-input"; }
|
|
113
113
|
static get originalStyleUrls() {
|
|
@@ -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: 'debc93482bd2c47f317457fd97ee2bf40b6f3e59' }, h("svg", { key: '915a8e743e9286e32c81b1bf49714da01ba9a1c3', class: "sd-loading-spinner", width: "72px", height: "72px", viewBox: "25 25 50 50", style: { color: this.resolvedColor } }, h("circle", { key: '04abf57521d77d5492a0e5553a7f64017fe0d1a3', 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() {
|
|
@@ -17,7 +17,7 @@ export class SdModalContainer {
|
|
|
17
17
|
this.shakeModal(top.modalEl);
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
this.requestDismiss(top.id, '
|
|
20
|
+
this.requestDismiss(top.id, 'close');
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
async open(options, chain) {
|
|
@@ -27,33 +27,7 @@ export class SdModalContainer {
|
|
|
27
27
|
clearTimeout(this.containerDismissTimerId);
|
|
28
28
|
this.containerDismissTimerId = undefined;
|
|
29
29
|
}
|
|
30
|
-
this.entries = [...(this.entries ?? []), { id, modalEl, chain, persistent: !!options.persistent, closing: false }];
|
|
31
|
-
this.isVisible = true;
|
|
32
|
-
// Append after the container renders, then wait until the modal can paint before starting transitions.
|
|
33
|
-
requestAnimationFrame(() => {
|
|
34
|
-
if (this.contentRef) {
|
|
35
|
-
this.contentRef.appendChild(modalEl);
|
|
36
|
-
this.waitForModalReady(modalEl).then(() => {
|
|
37
|
-
requestAnimationFrame(() => {
|
|
38
|
-
const currentEntry = (this.entries ?? []).find(item => item.id === id);
|
|
39
|
-
if (!currentEntry || currentEntry.closing || !modalEl.isConnected)
|
|
40
|
-
return;
|
|
41
|
-
this.isBackdropVisible = true;
|
|
42
|
-
modalEl.classList.add('sd-modal-container__modal--visible');
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
return id;
|
|
48
|
-
}
|
|
49
|
-
async openNotice(options, chain) {
|
|
50
|
-
const id = `modal-${++modalIdCounter}`;
|
|
51
|
-
const modalEl = this.createNoticeModal(id, options);
|
|
52
|
-
if (this.containerDismissTimerId) {
|
|
53
|
-
clearTimeout(this.containerDismissTimerId);
|
|
54
|
-
this.containerDismissTimerId = undefined;
|
|
55
|
-
}
|
|
56
|
-
this.entries = [...(this.entries ?? []), { id, modalEl, chain, persistent: !!options.persistent, closing: false }];
|
|
30
|
+
this.entries = [...(this.entries ?? []), { id, modalEl, chain, persistent: !!options.persistent, closeAction: options.closeAction ?? 'none', closing: false }];
|
|
57
31
|
this.isVisible = true;
|
|
58
32
|
requestAnimationFrame(() => {
|
|
59
33
|
if (this.contentRef) {
|
|
@@ -82,11 +56,11 @@ export class SdModalContainer {
|
|
|
82
56
|
el.setAttribute('data-modal-id', id);
|
|
83
57
|
el.classList.add('sd-modal-container__modal');
|
|
84
58
|
this.applyProps(el, options);
|
|
85
|
-
el.addEventListener('
|
|
59
|
+
el.addEventListener('sdOk', () => {
|
|
86
60
|
this.requestDismiss(id, 'confirm');
|
|
87
61
|
});
|
|
88
62
|
el.addEventListener('sdClose', () => {
|
|
89
|
-
this.requestDismiss(id, '
|
|
63
|
+
this.requestDismiss(id, 'close');
|
|
90
64
|
});
|
|
91
65
|
return el;
|
|
92
66
|
}
|
|
@@ -119,43 +93,6 @@ export class SdModalContainer {
|
|
|
119
93
|
if (this.hasOwnProp(options, 'tagContents'))
|
|
120
94
|
el.tagContents = options.tagContents;
|
|
121
95
|
}
|
|
122
|
-
createNoticeModal(id, options) {
|
|
123
|
-
const el = document.createElement('sd-notice-modal');
|
|
124
|
-
el.setAttribute('data-modal-id', id);
|
|
125
|
-
el.classList.add('sd-modal-container__modal');
|
|
126
|
-
this.applyNoticeProps(el, options);
|
|
127
|
-
el.addEventListener('sdConfirm', () => {
|
|
128
|
-
this.requestDismiss(id, 'confirm');
|
|
129
|
-
});
|
|
130
|
-
el.addEventListener('sdClose', () => {
|
|
131
|
-
this.requestDismiss(id, 'cancel');
|
|
132
|
-
});
|
|
133
|
-
return el;
|
|
134
|
-
}
|
|
135
|
-
applyNoticeProps(el, options) {
|
|
136
|
-
if (this.hasOwnProp(options, 'title'))
|
|
137
|
-
this.setAttr(el, 'modal-title', options.title);
|
|
138
|
-
if (this.hasOwnProp(options, 'titleClass'))
|
|
139
|
-
this.setAttr(el, 'title-class', options.titleClass);
|
|
140
|
-
if (this.hasOwnProp(options, 'mainButtonLabel')) {
|
|
141
|
-
this.setAttr(el, 'main-button-label', options.mainButtonLabel);
|
|
142
|
-
}
|
|
143
|
-
if (this.hasOwnProp(options, 'subButtonLabel')) {
|
|
144
|
-
this.setAttr(el, 'sub-button-label', options.subButtonLabel);
|
|
145
|
-
}
|
|
146
|
-
if (this.hasOwnProp(options, 'tagPreset'))
|
|
147
|
-
this.setAttr(el, 'tag-preset', options.tagPreset);
|
|
148
|
-
if (this.hasOwnProp(options, 'tagLabel'))
|
|
149
|
-
this.setAttr(el, 'tag-label', options.tagLabel);
|
|
150
|
-
if (this.hasOwnProp(options, 'slotLabel'))
|
|
151
|
-
this.setAttr(el, 'slot-label', options.slotLabel);
|
|
152
|
-
if (this.hasOwnProp(options, 'topMessage'))
|
|
153
|
-
el.topMessage = options.topMessage ?? [];
|
|
154
|
-
if (this.hasOwnProp(options, 'bottomMessage'))
|
|
155
|
-
el.bottomMessage = options.bottomMessage ?? [];
|
|
156
|
-
if (this.hasOwnProp(options, 'tagContents'))
|
|
157
|
-
el.tagContents = options.tagContents;
|
|
158
|
-
}
|
|
159
96
|
handleBackdropClick = () => {
|
|
160
97
|
const top = this.getTopEntry();
|
|
161
98
|
if (!top)
|
|
@@ -164,7 +101,7 @@ export class SdModalContainer {
|
|
|
164
101
|
this.shakeModal(top.modalEl);
|
|
165
102
|
return;
|
|
166
103
|
}
|
|
167
|
-
this.requestDismiss(top.id, '
|
|
104
|
+
this.requestDismiss(top.id, 'close');
|
|
168
105
|
};
|
|
169
106
|
shakeModal(modalEl) {
|
|
170
107
|
const cls = 'sd-modal-container__modal--shake';
|
|
@@ -190,7 +127,6 @@ export class SdModalContainer {
|
|
|
190
127
|
if (!entry || entry.closing)
|
|
191
128
|
return;
|
|
192
129
|
entry.modalEl.classList.remove('sd-modal-container__modal--visible');
|
|
193
|
-
// fade out backdrop simultaneously if this is the last active modal
|
|
194
130
|
const remainingActive = (this.entries ?? []).filter(item => item.id !== id && !item.closing);
|
|
195
131
|
if (remainingActive.length === 0) {
|
|
196
132
|
this.isBackdropVisible = false;
|
|
@@ -199,10 +135,18 @@ export class SdModalContainer {
|
|
|
199
135
|
this.finalizeDismiss(id);
|
|
200
136
|
}, ANIMATION_DURATION);
|
|
201
137
|
this.entries = (this.entries ?? []).map(item => item.id === id ? { ...item, closing: true, dismissTimerId } : item);
|
|
202
|
-
if (reason === '
|
|
203
|
-
entry.
|
|
204
|
-
|
|
205
|
-
entry.
|
|
138
|
+
if (reason === 'close') {
|
|
139
|
+
if (entry.closeAction === 'ok')
|
|
140
|
+
entry.chain._triggerOk();
|
|
141
|
+
else if (entry.closeAction === 'cancel')
|
|
142
|
+
entry.chain._triggerCancel();
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
if (reason === 'confirm')
|
|
146
|
+
entry.chain._triggerOk();
|
|
147
|
+
if (reason === 'cancel')
|
|
148
|
+
entry.chain._triggerCancel();
|
|
149
|
+
}
|
|
206
150
|
}
|
|
207
151
|
finalizeDismiss(id) {
|
|
208
152
|
const entry = (this.entries ?? []).find(item => item.id === id);
|
|
@@ -306,53 +250,16 @@ export class SdModalContainer {
|
|
|
306
250
|
"tags": []
|
|
307
251
|
}
|
|
308
252
|
},
|
|
309
|
-
"openNotice": {
|
|
310
|
-
"complexType": {
|
|
311
|
-
"signature": "(options: NoticeModalOptions, chain: ModalDialogChainLike) => Promise<string>",
|
|
312
|
-
"parameters": [{
|
|
313
|
-
"name": "options",
|
|
314
|
-
"type": "NoticeModalOptions",
|
|
315
|
-
"docs": ""
|
|
316
|
-
}, {
|
|
317
|
-
"name": "chain",
|
|
318
|
-
"type": "ModalDialogChainLike",
|
|
319
|
-
"docs": ""
|
|
320
|
-
}],
|
|
321
|
-
"references": {
|
|
322
|
-
"Promise": {
|
|
323
|
-
"location": "global",
|
|
324
|
-
"id": "global::Promise"
|
|
325
|
-
},
|
|
326
|
-
"NoticeModalOptions": {
|
|
327
|
-
"location": "import",
|
|
328
|
-
"path": "./sd-modal-container.config",
|
|
329
|
-
"id": "src/components/sd-modal-container/sd-modal-container.config.ts::NoticeModalOptions",
|
|
330
|
-
"referenceLocation": "NoticeModalOptions"
|
|
331
|
-
},
|
|
332
|
-
"ModalDialogChainLike": {
|
|
333
|
-
"location": "import",
|
|
334
|
-
"path": "./sd-modal-container.config",
|
|
335
|
-
"id": "src/components/sd-modal-container/sd-modal-container.config.ts::ModalDialogChainLike",
|
|
336
|
-
"referenceLocation": "ModalDialogChainLike"
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
"return": "Promise<string>"
|
|
340
|
-
},
|
|
341
|
-
"docs": {
|
|
342
|
-
"text": "",
|
|
343
|
-
"tags": []
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
253
|
"update": {
|
|
347
254
|
"complexType": {
|
|
348
|
-
"signature": "(id: string, props: Partial<ConfirmModalOptions
|
|
255
|
+
"signature": "(id: string, props: Partial<ConfirmModalOptions>) => Promise<void>",
|
|
349
256
|
"parameters": [{
|
|
350
257
|
"name": "id",
|
|
351
258
|
"type": "string",
|
|
352
259
|
"docs": ""
|
|
353
260
|
}, {
|
|
354
261
|
"name": "props",
|
|
355
|
-
"type": "{ type?: ConfirmModalType | undefined; title?: string | undefined; titleClass?: string | undefined; topMessage?: string[] | undefined; bottomMessage?: string[] | undefined; mainButtonName?: ConfirmModalMainButton | undefined; mainButtonLabel?: string | undefined; subButtonLabel?: string | undefined; tagPreset?: \"
|
|
262
|
+
"type": "{ type?: ConfirmModalType | undefined; title?: string | undefined; titleClass?: string | undefined; topMessage?: string[] | undefined; bottomMessage?: string[] | undefined; mainButtonName?: ConfirmModalMainButton | undefined; mainButtonLabel?: string | undefined; subButtonLabel?: string | undefined; tagPreset?: \"square_sm_red\" | \"square_sm_orange\" | \"square_sm_yellow\" | \"square_sm_green\" | \"square_sm_blue\" | \"square_sm_darkblue\" | \"square_sm_indigo\" | \"square_sm_grey\" | \"square_md_red\" | \"square_md_orange\" | \"square_md_yellow\" | \"square_md_green\" | \"square_md_blue\" | \"square_md_darkblue\" | \"square_md_indigo\" | \"square_md_grey\" | \"square_xs_red\" | \"square_xs_orange\" | \"square_xs_yellow\" | \"square_xs_green\" | \"square_xs_blue\" | \"square_xs_darkblue\" | \"square_xs_indigo\" | \"square_xs_grey\" | \"pill_sm_red\" | \"pill_sm_orange\" | \"pill_sm_yellow\" | \"pill_sm_green\" | \"pill_sm_blue\" | \"pill_sm_darkblue\" | \"pill_sm_indigo\" | \"pill_sm_grey\" | \"pill_md_red\" | \"pill_md_orange\" | \"pill_md_yellow\" | \"pill_md_green\" | \"pill_md_blue\" | \"pill_md_darkblue\" | \"pill_md_indigo\" | \"pill_md_grey\" | \"pill_xs_red\" | \"pill_xs_orange\" | \"pill_xs_yellow\" | \"pill_xs_green\" | \"pill_xs_blue\" | \"pill_xs_darkblue\" | \"pill_xs_indigo\" | \"pill_xs_grey\" | undefined; tagLabel?: string | undefined; slotLabel?: string | undefined; tagContents?: HTMLElement | undefined; persistent?: boolean | undefined; closeAction?: CloseAction | undefined; }",
|
|
356
263
|
"docs": ""
|
|
357
264
|
}],
|
|
358
265
|
"references": {
|
|
@@ -369,12 +276,6 @@ export class SdModalContainer {
|
|
|
369
276
|
"path": "./sd-modal-container.config",
|
|
370
277
|
"id": "src/components/sd-modal-container/sd-modal-container.config.ts::ConfirmModalOptions",
|
|
371
278
|
"referenceLocation": "ConfirmModalOptions"
|
|
372
|
-
},
|
|
373
|
-
"NoticeModalOptions": {
|
|
374
|
-
"location": "import",
|
|
375
|
-
"path": "./sd-modal-container.config",
|
|
376
|
-
"id": "src/components/sd-modal-container/sd-modal-container.config.ts::NoticeModalOptions",
|
|
377
|
-
"referenceLocation": "NoticeModalOptions"
|
|
378
279
|
}
|
|
379
280
|
},
|
|
380
281
|
"return": "Promise<void>"
|