@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
|
@@ -2,6 +2,7 @@ import { r as registerInstance, c as createEvent, g as getElement, h, F as Fragm
|
|
|
2
2
|
import { b as buttonTokens } from './component.button-KOzU1j2w.js';
|
|
3
3
|
import { r as resolveColor, u as useDatePicker, t as today } from './useDatePicker-Ch0LooGd.js';
|
|
4
4
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
5
|
+
import { i as inputTokens } from './component.textinput-CbjDAdZ_.js';
|
|
5
6
|
import { s as systemTokens } from './system-CS6ohqwt.js';
|
|
6
7
|
import { B as BaseDropdownEvent } from './base-dropdown-event-CRdYeSBK.js';
|
|
7
8
|
import { S as SelectKeyboardNavigation } from './select-keyboard-navigation-Cy6HMEsK.js';
|
|
@@ -467,16 +468,16 @@ const SdDateRangePicker = class {
|
|
|
467
468
|
this.setHoverDate(hoverDate);
|
|
468
469
|
}
|
|
469
470
|
render() {
|
|
470
|
-
return (h("div", { key: '
|
|
471
|
+
return (h("div", { key: '8870de35f713f9b5cd7756e87dcca0bff60acbcd', class: {
|
|
471
472
|
'sd-date-range-picker': true,
|
|
472
473
|
'sd-date-range-picker--disabled': this.disabled,
|
|
473
|
-
} }, h("sd-input", { key: '
|
|
474
|
+
} }, 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: () => {
|
|
474
475
|
this.setPrevYear(this.prevYear - 1);
|
|
475
476
|
this.viewChange.emit({ year: this.prevYear, month: this.prevMonth });
|
|
476
|
-
} }, h("sd-icon", { key: '
|
|
477
|
+
} }, 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: () => {
|
|
477
478
|
this.setPrevYear(this.prevYear + 1);
|
|
478
479
|
this.viewChange.emit({ year: this.prevYear, month: this.prevMonth });
|
|
479
|
-
} }, h("sd-icon", { key: '
|
|
480
|
+
} }, 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
|
|
480
481
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
481
482
|
: `${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)) }))))))))))))));
|
|
482
483
|
}
|
|
@@ -513,6 +514,7 @@ const FORM_PARENT_TAGS = [
|
|
|
513
514
|
'sd-select-multiple',
|
|
514
515
|
'sd-select-multiple-group',
|
|
515
516
|
'sd-input',
|
|
517
|
+
'sd-barcode-input',
|
|
516
518
|
'sd-textarea',
|
|
517
519
|
'sd-number-input',
|
|
518
520
|
'sd-select-v2',
|
|
@@ -642,15 +644,15 @@ const SdField = class {
|
|
|
642
644
|
? addonTokens.border.disabled
|
|
643
645
|
: addonTokens.border.default,
|
|
644
646
|
} : {};
|
|
645
|
-
return (h("div", { key: '
|
|
647
|
+
return (h("div", { key: '1badb3752c758c30995188f73505d912f4318ba3', class: {
|
|
646
648
|
'sd-field': true,
|
|
647
649
|
'sd-field--has-label': !!this.label,
|
|
648
650
|
'sd-field--has-addon': !!addon,
|
|
649
651
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
650
|
-
}, style: addonCssVars }, h("div", { key: '
|
|
652
|
+
}, style: addonCssVars }, h("div", { key: 'b8c08b4783eb7035cc28e6ffb1d541871cd25616', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '31efca0604479d2fa9bed06aaaeb9ca9930c62fb', class: {
|
|
651
653
|
'sd-field__control': true,
|
|
652
654
|
'sd-field__control--has-addon': !!addon,
|
|
653
|
-
}, style: this.width ? { width: typeof this.width === 'number' ? `${this.width}px` : this.width, flex: 'none' } : {} }, addon && (h("div", { key: '
|
|
655
|
+
}, 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)
|
|
654
656
|
? h("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)
|
|
655
657
|
: this.hint && h("div", { class: "sd-field__hint" }, this.hint)));
|
|
656
658
|
}
|
|
@@ -813,7 +815,7 @@ const SdFloatingPopover = class {
|
|
|
813
815
|
this.close.emit();
|
|
814
816
|
}
|
|
815
817
|
render() {
|
|
816
|
-
return h("slot", { key: '
|
|
818
|
+
return h("slot", { key: 'd3ee1daa4b0009285df341cc1d8b892fb2a2fed6' });
|
|
817
819
|
}
|
|
818
820
|
};
|
|
819
821
|
SdFloatingPopover.style = sdFloatingPortalCss();
|
|
@@ -2935,46 +2937,11 @@ const SdIcon = class {
|
|
|
2935
2937
|
}
|
|
2936
2938
|
render() {
|
|
2937
2939
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
2938
|
-
return (h("i", { key: '
|
|
2940
|
+
return (h("i", { key: '64d1789805536124f229d7dde816ef986d583276', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: '35ba2d95f6e3e9d7cb346b4872ba1a436a08e04d', color: this.resolvedColor })));
|
|
2939
2941
|
}
|
|
2940
2942
|
};
|
|
2941
2943
|
SdIcon.style = sdIconCss();
|
|
2942
2944
|
|
|
2943
|
-
const input = {
|
|
2944
|
-
sm: {
|
|
2945
|
-
height: "28",
|
|
2946
|
-
paddingX: "12",
|
|
2947
|
-
gap: "8",
|
|
2948
|
-
radius: "4",
|
|
2949
|
-
typography: {
|
|
2950
|
-
fontWeight: "400",
|
|
2951
|
-
fontSize: "12",
|
|
2952
|
-
lineHeight: "20"}
|
|
2953
|
-
},
|
|
2954
|
-
md: {
|
|
2955
|
-
height: "36",
|
|
2956
|
-
paddingX: "16",
|
|
2957
|
-
gap: "12",
|
|
2958
|
-
radius: "6",
|
|
2959
|
-
typography: {
|
|
2960
|
-
fontWeight: "400",
|
|
2961
|
-
fontSize: "16",
|
|
2962
|
-
lineHeight: "26"}
|
|
2963
|
-
},
|
|
2964
|
-
text: {
|
|
2965
|
-
"default": "#222222",
|
|
2966
|
-
placeholder: "#AAAAAA",
|
|
2967
|
-
disabled: "#888888"},
|
|
2968
|
-
size: {
|
|
2969
|
-
icon: "16"
|
|
2970
|
-
},
|
|
2971
|
-
icon: {
|
|
2972
|
-
"default": "#888888"
|
|
2973
|
-
}};
|
|
2974
|
-
var inputTokens = {
|
|
2975
|
-
input: input
|
|
2976
|
-
};
|
|
2977
|
-
|
|
2978
2945
|
const sm = inputTokens.input.sm;
|
|
2979
2946
|
const md = inputTokens.input.md;
|
|
2980
2947
|
const INPUT_SIZE_MAP = {
|
|
@@ -3117,10 +3084,10 @@ const SdInput = class {
|
|
|
3117
3084
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
3118
3085
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
3119
3086
|
};
|
|
3120
|
-
return (h("sd-field", { key: '
|
|
3087
|
+
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 () => {
|
|
3121
3088
|
this.internalValue = '';
|
|
3122
3089
|
await this.formField?.sdValidate();
|
|
3123
|
-
} })), this.type === 'password' && (h("sd-icon", { key: '
|
|
3090
|
+
} })), 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; } })))));
|
|
3124
3091
|
}
|
|
3125
3092
|
static get watchers() { return {
|
|
3126
3093
|
"value": [{
|
|
@@ -3144,7 +3111,7 @@ const SdLoadingSpinner = class {
|
|
|
3144
3111
|
return resolveColor(this.color);
|
|
3145
3112
|
}
|
|
3146
3113
|
render() {
|
|
3147
|
-
return (h(Fragment, { key: '
|
|
3114
|
+
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" }))));
|
|
3148
3115
|
}
|
|
3149
3116
|
};
|
|
3150
3117
|
SdLoadingSpinner.style = sdLoadingSpinnerCss();
|
|
@@ -3399,17 +3366,17 @@ const SdNumberInput = class {
|
|
|
3399
3366
|
const inputStyles = {
|
|
3400
3367
|
textAlign: this.useButton ? 'center' : 'right',
|
|
3401
3368
|
};
|
|
3402
|
-
return (h("sd-field", { key: '
|
|
3369
|
+
return (h("sd-field", { key: '7c278ee43828ff5619efe471b7f2a8c6ea09c300', name: this.name, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, ref: el => (this.formField = el), style: inputWidth }, h("label", { key: '10987e5255b183d774affb873866d2fab5721997', class: {
|
|
3403
3370
|
'sd-number-input': true,
|
|
3404
3371
|
[this.getInputStatus()]: true,
|
|
3405
3372
|
'sd-number-input--with-buttons': this.useButton,
|
|
3406
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: '
|
|
3373
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: 'ea09e409d3c4c0a9e59b57b8f0d9211ca271b0ed', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__input ${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, style: inputStyles, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.useButton && (h("div", { key: '3539fa8237cde3c5220934d18152bd6e3c20b979', class: "sd-number-input__buttons" }, h("button", { key: '4b48a586dbe4509a9c780c1d23b06252f3e5cf55', type: "button", class: {
|
|
3407
3374
|
'sd-number-input__button': true,
|
|
3408
3375
|
'sd-number-input__button--decrement': true,
|
|
3409
|
-
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '
|
|
3376
|
+
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '25076f714328a1bce556ecff6317573c98bd8214', name: "minus", size: 12, color: this.isDecrementDisabled() ? 'grey_45' : 'brilliantblue_70' })), h("button", { key: '99b5951b072d6bdbd1f36f217d441604aada3f4b', type: "button", class: {
|
|
3410
3377
|
'sd-number-input__button': true,
|
|
3411
3378
|
'sd-number-input__button--increment': true,
|
|
3412
|
-
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '
|
|
3379
|
+
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '13e8eda3bb5042bd65381057159dd60f04ecf69d', name: "add", size: 12, color: this.isIncrementDisabled() ? 'grey_45' : 'brilliantblue_70' })))))));
|
|
3413
3380
|
}
|
|
3414
3381
|
static get watchers() { return {
|
|
3415
3382
|
"value": [{
|
|
@@ -3497,12 +3464,12 @@ const SdPagination = class {
|
|
|
3497
3464
|
}
|
|
3498
3465
|
}
|
|
3499
3466
|
render() {
|
|
3500
|
-
return (h("div", { key: '
|
|
3467
|
+
return (h("div", { key: 'fe61b181ec08d65564d8e68787403a7a83a90631', class: this.paginationClasses }, h("div", { key: '79237017bd874cf9bfa9af51e66f06ec641cefcf', 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: {
|
|
3501
3468
|
'pagination-btn': true,
|
|
3502
3469
|
'pagination-btn--selected': this.currentPage === n,
|
|
3503
3470
|
}, disabled: this.currentPage === n, style: {
|
|
3504
3471
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
3505
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
3472
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '416e4c3b231a8a9987cce6bd4359edc759c134ee', class: "append-btns" }, this.renderNextButtons())));
|
|
3506
3473
|
}
|
|
3507
3474
|
};
|
|
3508
3475
|
SdPagination.style = sdPaginationCss();
|
|
@@ -3732,7 +3699,7 @@ const SdPortal = class {
|
|
|
3732
3699
|
this.close.emit();
|
|
3733
3700
|
}
|
|
3734
3701
|
render() {
|
|
3735
|
-
return h("slot", { key: '
|
|
3702
|
+
return h("slot", { key: '04581cb6d22882520a7da534d19dcbec7b540af7' });
|
|
3736
3703
|
}
|
|
3737
3704
|
static get watchers() { return {
|
|
3738
3705
|
"open": [{
|
|
@@ -4100,10 +4067,10 @@ const SdSelectDropdown = class {
|
|
|
4100
4067
|
this.isScrolled = scrollTop > 0;
|
|
4101
4068
|
};
|
|
4102
4069
|
render() {
|
|
4103
|
-
return (h("div", { key: '
|
|
4070
|
+
return (h("div", { key: '70bea150872ff4b70b70d358972b14bf0ad2bdf2', class: {
|
|
4104
4071
|
'sd-select-dropdown': true,
|
|
4105
4072
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
4106
|
-
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '
|
|
4073
|
+
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '79ebdc72ca4a905f700dc6293d8033a5ec22d679', 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)))));
|
|
4107
4074
|
}
|
|
4108
4075
|
static get watchers() { return {
|
|
4109
4076
|
"filteredOptions": [{
|
|
@@ -4150,7 +4117,7 @@ const SdSelectOption = class {
|
|
|
4150
4117
|
}
|
|
4151
4118
|
};
|
|
4152
4119
|
render() {
|
|
4153
|
-
return (h("div", { key: '
|
|
4120
|
+
return (h("div", { key: '2e04258ee26b376794a5ebe76503875e48dd3ff2', class: {
|
|
4154
4121
|
'sd-select__option': true,
|
|
4155
4122
|
'sd-select__option--selected': this.isSelected,
|
|
4156
4123
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -4196,17 +4163,17 @@ const SdSelectSearchInput = class {
|
|
|
4196
4163
|
input?.focus({ preventScroll: true });
|
|
4197
4164
|
}
|
|
4198
4165
|
render() {
|
|
4199
|
-
return (h("div", { key: '
|
|
4166
|
+
return (h("div", { key: '82fd2b838c46c47b51b93a23e5a837708fb944b1', class: {
|
|
4200
4167
|
'sd-select-search-input': true,
|
|
4201
4168
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
4202
|
-
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: '
|
|
4169
|
+
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: 'fc0821ce63f445bed3dfce51668ece1831914f86', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
|
|
4203
4170
|
this.searchInput.emit(String(event?.detail));
|
|
4204
4171
|
}, onSdFocus: () => {
|
|
4205
4172
|
this.searchFocus.emit();
|
|
4206
4173
|
}, onKeyDown: event => {
|
|
4207
4174
|
if (event.code === 'Enter')
|
|
4208
4175
|
event.stopPropagation();
|
|
4209
|
-
} }, h("sd-icon", { key: '
|
|
4176
|
+
} }, h("sd-icon", { key: '6a9b19f5910132be045e3a2cc33546307e3d5cb9', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
4210
4177
|
}
|
|
4211
4178
|
};
|
|
4212
4179
|
SdSelectSearchInput.style = sdSelectSearchInputCss();
|
|
@@ -5106,10 +5073,10 @@ const SdTextarea = class {
|
|
|
5106
5073
|
}
|
|
5107
5074
|
render() {
|
|
5108
5075
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
5109
|
-
return (h("div", { key: '
|
|
5076
|
+
return (h("div", { key: 'abc90981d61632afc86d158283575cd65031e10e', class: {
|
|
5110
5077
|
'sd-textarea': true,
|
|
5111
5078
|
[this.getTextareaStatus()]: true,
|
|
5112
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '
|
|
5079
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: 'e2c3599dc763d59df0ba1ed6d80d2b8e6b9846f9', class: "sd-textarea__content" }, h("textarea", { key: 'f6ac448db448ed16eeac15313b3ca8016b51b70f', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (h("div", { key: 'dfa41f4149b2f8b51c485e2f6306256982c7fdd1', class: "sd-textarea__footer" }, this.helpText !== undefined && h("span", { key: '909c7c59fde0bec3ac398899e9301b2f93fbb0f4', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && h("span", { key: 'a0907c3745f7b07ddc5458e5f822bf87873a5316', class: "sd-textarea__counter" }, maxLengthCounter)))));
|
|
5113
5080
|
}
|
|
5114
5081
|
static get watchers() { return {
|
|
5115
5082
|
"value": [{
|
|
@@ -5167,6 +5134,14 @@ const SdTooltip = class {
|
|
|
5167
5134
|
showTooltip = false;
|
|
5168
5135
|
slotContentHTML = '';
|
|
5169
5136
|
buttonEl;
|
|
5137
|
+
get tooltipOffset() {
|
|
5138
|
+
switch (this.placement) {
|
|
5139
|
+
case 'top': return [0, -4];
|
|
5140
|
+
case 'bottom': return [0, 4];
|
|
5141
|
+
case 'left': return [4, 0];
|
|
5142
|
+
case 'right': return [4, 0];
|
|
5143
|
+
}
|
|
5144
|
+
}
|
|
5170
5145
|
handleClose = () => {
|
|
5171
5146
|
this.showTooltip = false;
|
|
5172
5147
|
};
|
|
@@ -5193,14 +5168,14 @@ const SdTooltip = class {
|
|
|
5193
5168
|
: {
|
|
5194
5169
|
onSdClick: () => (this.showTooltip = !this.showTooltip),
|
|
5195
5170
|
};
|
|
5196
|
-
return (h(Fragment, { key: '
|
|
5171
|
+
return (h(Fragment, { key: '2890811dd681299b155d191d6d6023441db6debc' }, 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-tooltip", ...buttonTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (h("sd-floating-portal", { key: '666cf59e0548af92eff225cd91b485824b82249d', parentRef: this.buttonEl, onSdClose: this.handleClose.bind(this), placement: this.placement, offset: this.tooltipOffset }, h("div", { key: 'ad5285750f95fdb0829372dd3b45d96035a02315', class: {
|
|
5197
5172
|
'sd-floating-menu': true,
|
|
5198
5173
|
[`sd-floating-menu--${this.tooltipType}`]: true,
|
|
5199
5174
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
5200
5175
|
}, style: {
|
|
5201
5176
|
'--sd-floating-bg': typeConfig.bg,
|
|
5202
5177
|
'--sd-floating-content': typeConfig.content,
|
|
5203
|
-
} }, h("i", { key: '
|
|
5178
|
+
} }, h("i", { key: 'ee92f004dbd17de84a3410bd555da735c5fcb4ca', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '04ccadfa1de8bcf3b64218e6e048fcbf09ff3301' })), h("div", { key: '0534c8cec5c79c8b0df3950d554a1b62d1e3b32b', class: "sd-floating-menu__content", innerHTML: this.slotContentHTML }))))));
|
|
5204
5179
|
}
|
|
5205
5180
|
};
|
|
5206
5181
|
SdTooltip.style = sdTooltipCss();
|
|
@@ -9,7 +9,7 @@ const SdCard = class {
|
|
|
9
9
|
bordered = false;
|
|
10
10
|
sdClass = '';
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Fragment, { key: '
|
|
12
|
+
return (h(Fragment, { key: '155504b50cb1c21fc1f847af8a9e8b685f7881ef' }, h("div", { key: 'c461e3e40da44586da5e02ad508bf59942a9e82a', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: '0c0ee023155c08c565c3496c44699a900666b084' }))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
SdCard.style = sdCardCss();
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement, h } from './index-B8tGP77V.js';
|
|
2
|
+
|
|
3
|
+
const modal = {
|
|
4
|
+
confirm: {
|
|
5
|
+
title: {
|
|
6
|
+
icon: "32"},
|
|
7
|
+
positive: {
|
|
8
|
+
icon: "#0075FF"
|
|
9
|
+
},
|
|
10
|
+
negative: {
|
|
11
|
+
icon: "#E30000"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
close: {
|
|
15
|
+
size: "20",
|
|
16
|
+
color: "#888888"
|
|
17
|
+
}};
|
|
18
|
+
var modalTokens = {
|
|
19
|
+
modal: modal
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const CONFIRM_MODAL_DEFAULT_BUTTON = {
|
|
23
|
+
positive: 'primary_md',
|
|
24
|
+
negative: 'danger_md',
|
|
25
|
+
default: 'neutral_outline_md',
|
|
26
|
+
};
|
|
27
|
+
const CONFIRM_MODAL_ICON_MAP = {
|
|
28
|
+
positive: 'notificationOutline',
|
|
29
|
+
negative: 'warningOutline',
|
|
30
|
+
default: null,
|
|
31
|
+
};
|
|
32
|
+
const CONFIRM_MODAL_ICON_COLOR = {
|
|
33
|
+
positive: modalTokens.modal.confirm.positive.icon,
|
|
34
|
+
negative: modalTokens.modal.confirm.negative.icon,
|
|
35
|
+
default: '',
|
|
36
|
+
};
|
|
37
|
+
const TITLE_ICON_SIZE = Number(modalTokens.modal.confirm.title.icon);
|
|
38
|
+
const CLOSE_ICON_SIZE = Number(modalTokens.modal.close.size);
|
|
39
|
+
const CLOSE_ICON_COLOR = modalTokens.modal.close.color;
|
|
40
|
+
const SUB_BUTTON_PRESET = 'neutral_outline_md';
|
|
41
|
+
|
|
42
|
+
const sdConfirmModalCss = () => `sd-confirm-modal{display:block;width:fit-content;min-width:520px}sd-confirm-modal .sd-confirm-modal{position:relative;padding:var(--sd-modal-modal-confirm-padding-y) var(--sd-modal-modal-confirm-padding-x);border-radius:var(--sd-modal-modal-radius);box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.2);background:var(--sd-modal-modal-bg)}sd-confirm-modal .sd-confirm-modal__close-button{position:absolute;top:16px;right:16px;cursor:pointer}sd-confirm-modal .sd-confirm-modal__icon{display:block;width:var(--sd-modal-modal-confirm-title-icon);height:var(--sd-modal-modal-confirm-title-icon);margin:0 auto var(--sd-modal-modal-confirm-title-gap) auto}sd-confirm-modal .sd-confirm-modal__title{color:var(--sd-modal-modal-confirm-title-color);font-size:var(--sd-modal-modal-confirm-title-typography-font-size);font-weight:var(--sd-modal-modal-confirm-title-typography-font-weight);line-height:var(--sd-modal-modal-confirm-title-typography-line-height);text-align:center;margin:0 0 var(--sd-modal-modal-confirm-body-gap) 0}sd-confirm-modal .sd-confirm-modal__body{display:flex;flex-direction:column;gap:var(--sd-modal-modal-confirm-body-gap)}sd-confirm-modal .sd-confirm-modal__message-text{color:var(--sd-modal-modal-confirm-message-color);font-size:12px;font-weight:400;line-height:22px;text-align:center;margin:0}sd-confirm-modal .sd-confirm-modal__content-box{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;border:1px solid #e1e1e1;border-radius:8px;background:white}sd-confirm-modal .sd-confirm-modal__slot-label{font-size:14px;font-weight:700;line-height:22px;color:var(--sd-modal-modal-confirm-message-color)}sd-confirm-modal .sd-confirm-modal__button{display:flex;justify-content:center;gap:var(--sd-modal-modal-confirm-button-gap);margin-top:32px}`;
|
|
43
|
+
|
|
44
|
+
const SdConfirmModal = class {
|
|
45
|
+
constructor(hostRef) {
|
|
46
|
+
registerInstance(this, hostRef);
|
|
47
|
+
this.close = createEvent(this, "sdClose");
|
|
48
|
+
this.ok = createEvent(this, "sdOk");
|
|
49
|
+
}
|
|
50
|
+
get el() { return getElement(this); }
|
|
51
|
+
hasSlottedContent = false;
|
|
52
|
+
customContentRef;
|
|
53
|
+
slotObserver;
|
|
54
|
+
type = 'positive';
|
|
55
|
+
modalTitle = '';
|
|
56
|
+
titleClass = '';
|
|
57
|
+
topMessage = [];
|
|
58
|
+
bottomMessage = [];
|
|
59
|
+
mainButtonName;
|
|
60
|
+
mainButtonLabel = '확인';
|
|
61
|
+
subButtonLabel = '';
|
|
62
|
+
tagPreset = 'square_sm_grey';
|
|
63
|
+
tagLabel = '';
|
|
64
|
+
slotLabel = '';
|
|
65
|
+
tagContents;
|
|
66
|
+
close;
|
|
67
|
+
ok;
|
|
68
|
+
componentWillLoad() {
|
|
69
|
+
this.syncHasSlottedContent();
|
|
70
|
+
}
|
|
71
|
+
componentDidLoad() {
|
|
72
|
+
if (typeof MutationObserver === 'undefined')
|
|
73
|
+
return;
|
|
74
|
+
this.slotObserver = new MutationObserver(() => this.syncHasSlottedContent());
|
|
75
|
+
this.slotObserver.observe(this.el, {
|
|
76
|
+
childList: true,
|
|
77
|
+
characterData: true,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
componentDidRender() {
|
|
81
|
+
if (this.customContentRef && this.tagContents instanceof HTMLElement) {
|
|
82
|
+
if (typeof this.customContentRef.replaceChildren === 'function') {
|
|
83
|
+
this.customContentRef.replaceChildren(this.tagContents);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
this.customContentRef.innerHTML = '';
|
|
87
|
+
this.customContentRef.appendChild(this.tagContents);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
disconnectedCallback() {
|
|
92
|
+
this.slotObserver?.disconnect();
|
|
93
|
+
}
|
|
94
|
+
get resolvedMainButton() {
|
|
95
|
+
return this.mainButtonName ?? CONFIRM_MODAL_DEFAULT_BUTTON[this.type];
|
|
96
|
+
}
|
|
97
|
+
get hasTagContent() {
|
|
98
|
+
return !!(this.tagLabel || this.slotLabel);
|
|
99
|
+
}
|
|
100
|
+
get showContentBox() {
|
|
101
|
+
return !!this.tagContents || this.hasTagContent || this.hasSlottedContent;
|
|
102
|
+
}
|
|
103
|
+
syncHasSlottedContent() {
|
|
104
|
+
const hasSlottedContent = Array.from(this.el.childNodes).some(node => !(node.nodeType === Node.ELEMENT_NODE &&
|
|
105
|
+
node.classList.contains('sd-confirm-modal')) &&
|
|
106
|
+
(node.nodeType === Node.ELEMENT_NODE ||
|
|
107
|
+
(node.nodeType === Node.TEXT_NODE && node.textContent?.trim())));
|
|
108
|
+
if (hasSlottedContent !== this.hasSlottedContent) {
|
|
109
|
+
this.hasSlottedContent = hasSlottedContent;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
render() {
|
|
113
|
+
const iconName = CONFIRM_MODAL_ICON_MAP[this.type];
|
|
114
|
+
const iconColor = CONFIRM_MODAL_ICON_COLOR[this.type];
|
|
115
|
+
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 => {
|
|
116
|
+
this.customContentRef = el;
|
|
117
|
+
} })) : (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() }))));
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
SdConfirmModal.style = sdConfirmModalCss();
|
|
121
|
+
|
|
122
|
+
export { SdConfirmModal as sd_confirm_modal };
|
|
@@ -35,7 +35,7 @@ const SdDatePicker = class {
|
|
|
35
35
|
this.viewChange.emit(e.detail);
|
|
36
36
|
};
|
|
37
37
|
render() {
|
|
38
|
-
return (h("div", { key: '
|
|
38
|
+
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 }))))));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
SdDatePicker.style = sdDatePickerCss();
|
|
@@ -244,7 +244,7 @@ const SdDropdownButton = class extends BaseDropdownEvent {
|
|
|
244
244
|
}
|
|
245
245
|
render() {
|
|
246
246
|
const { config, preset } = this.resolvedConfig;
|
|
247
|
-
return (h("div", { key: '
|
|
247
|
+
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: {
|
|
248
248
|
'--sd-dropdown-button-min-width': `${DROPDOWN_BUTTON_MIN_WIDTHS[config.size]}px`,
|
|
249
249
|
'--sd-dropdown-button-bg': config.color,
|
|
250
250
|
'--sd-dropdown-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
@@ -255,10 +255,10 @@ const SdDropdownButton = class extends BaseDropdownEvent {
|
|
|
255
255
|
'--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
|
|
256
256
|
'--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_CONTENT,
|
|
257
257
|
'--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
|
|
258
|
-
} }, h("span", { key: '
|
|
258
|
+
} }, 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: {
|
|
259
259
|
'sd-dropdown-button__trigger-icon': true,
|
|
260
260
|
'sd-dropdown-button__trigger-icon--open': this.isOpen,
|
|
261
|
-
}, "aria-hidden": "true" }, h("sd-icon", { key: '
|
|
261
|
+
}, "aria-hidden": "true" }, h("sd-icon", { key: 'd7dfe4aef651f4f55ed661f1d84850009a61bb2e', name: "arrowDown", size: 12, color: "var(--sd-dropdown-button-current-content)" }))), this.renderDropdown(preset)));
|
|
262
262
|
}
|
|
263
263
|
static get watchers() { return {
|
|
264
264
|
"isOpen": [{
|
|
@@ -98,15 +98,15 @@ const SdFilePicker = class {
|
|
|
98
98
|
render() {
|
|
99
99
|
const hasFiles = this.hasFiles();
|
|
100
100
|
const displayText = this.getDisplayText();
|
|
101
|
-
return (h("div", { key: '
|
|
101
|
+
return (h("div", { key: '3133b2f12d79b36a0f21bbb1d93ae738f35611ce', class: {
|
|
102
102
|
'sd-file-picker': true,
|
|
103
103
|
[this.getStatusClass()]: true,
|
|
104
104
|
'sd-file-picker--inline': this.inline,
|
|
105
|
-
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("input", { key: '
|
|
105
|
+
}, 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: {
|
|
106
106
|
'sd-file-picker__text': true,
|
|
107
107
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
108
108
|
'sd-file-picker__text--active': hasFiles,
|
|
109
|
-
} }, displayText), !this.disabled && hasFiles && (h("sd-icon", { key: '
|
|
109
|
+
} }, 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))));
|
|
110
110
|
}
|
|
111
111
|
static get watchers() { return {
|
|
112
112
|
"value": [{
|
|
@@ -53,9 +53,9 @@ const SdGuide = class {
|
|
|
53
53
|
};
|
|
54
54
|
render() {
|
|
55
55
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
56
|
-
return (h("div", { key: '
|
|
56
|
+
return (h("div", { key: 'd6736d62ad87e750ed147e48d36d05e4304dae2b', class: "sd-guide", style: {
|
|
57
57
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
58
|
-
} }, h("sd-button", { key: '
|
|
58
|
+
} }, 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))))))));
|
|
59
59
|
}
|
|
60
60
|
// 현재 2depth까지만 스타일 적용
|
|
61
61
|
renderListItem(message, depth = 0) {
|