@sellmate/design-system 1.6.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-calendar_2.cjs.entry.js +5 -5
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip.cjs.entry.js +4 -4
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +48 -20
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +5 -4
- package/dist/cjs/sd-ghost-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-modal-container.cjs.entry.js +3 -0
- package/dist/cjs/sd-popover.cjs.entry.js +8 -5
- package/dist/cjs/sd-portal.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +3 -3
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-button/sd-button.js +2 -2
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.js +4 -4
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-field/sd-field.js +5 -4
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +15 -1
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +44 -16
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +21 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +3 -0
- package/dist/collection/components/sd-popover/sd-popover.js +13 -23
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- 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/components/{p-BNUsawW7.js → p-2z2c2umH.js} +1 -1
- package/dist/components/{p-BDJJQALT.js → p-B45aOf4I.js} +1 -1
- package/dist/components/{p-CSbyXQa9.js → p-B6G64i5a.js} +1 -1
- package/dist/components/{p-CRq8zgt_.js → p-B6JOxZKP.js} +1 -1
- package/dist/components/{p-CAP-9lnL.js → p-B6L3bPm2.js} +1 -1
- package/dist/components/{p-z564gmGG.js → p-BWJtQGYo.js} +1 -1
- package/dist/components/{p-BqYASycS.js → p-Bhh7ig9Q.js} +1 -1
- package/dist/components/p-C8c6MuKQ.js +1 -0
- package/dist/components/{p-BYRvYsiC.js → p-CTuKWVTh.js} +1 -1
- package/dist/components/{p-CJRGLvgC.js → p-CkR5oiLy.js} +1 -1
- package/dist/components/{p-CK6jFkqR.js → p-CwRItc2J.js} +1 -1
- package/dist/components/{p-BYU3wOaN.js → p-D6cUtm8p.js} +1 -1
- package/dist/components/{p-2aQ4cVXp.js → p-DCFqtVBm.js} +1 -1
- package/dist/components/{p-D4mjSR0u.js → p-DISZkQqT.js} +1 -1
- package/dist/components/p-DMrXwfmf.js +1 -0
- package/dist/components/p-DhmsCQrB.js +1 -0
- package/dist/components/{p-DfKa36bs.js → p-DhtKHJ7-.js} +1 -1
- package/dist/components/p-DmDGMDzt.js +1 -0
- package/dist/components/{p-BZRMoE3E.js → p-I9SoAcVO.js} +1 -1
- package/dist/components/{p-DZ_3ZYMC.js → p-ZSGGRCNc.js} +1 -1
- package/dist/components/{p-sRzhIrJR.js → p-cX2DD74L.js} +1 -1
- package/dist/components/{p-BCeq6-MU.js → p-f10Mw7qM.js} +1 -1
- package/dist/components/p-p4bNikji.js +1 -0
- package/dist/components/{p-B_2U9h3P.js → p-wLoP3KMv.js} +1 -1
- package/dist/components/{p-BE-21GLH.js → p-y_6iWhDy.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-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-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select.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-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/p-0de5a53b.entry.js +1 -0
- package/dist/design-system/{p-ea17a361.entry.js → p-2d3d25bd.entry.js} +1 -1
- package/dist/design-system/p-3e2b5e01.entry.js +1 -0
- package/dist/design-system/{p-840f592d.entry.js → p-46faa7ed.entry.js} +1 -1
- package/dist/design-system/{p-b08ca29b.entry.js → p-4c3ead1b.entry.js} +1 -1
- package/dist/design-system/{p-a6c9baa5.entry.js → p-5c4fd9c1.entry.js} +1 -1
- package/dist/design-system/{p-eef5f8d7.entry.js → p-5d5d8220.entry.js} +1 -1
- package/dist/design-system/p-60b80bf3.entry.js +1 -0
- package/dist/design-system/{p-8d2815cf.entry.js → p-74b3e95b.entry.js} +1 -1
- package/dist/design-system/{p-0964c79a.entry.js → p-78b0b759.entry.js} +1 -1
- package/dist/design-system/p-78c2fd6d.entry.js +1 -0
- package/dist/design-system/p-8674d868.entry.js +1 -0
- package/dist/design-system/{p-17883b40.entry.js → p-9d34518e.entry.js} +1 -1
- package/dist/design-system/{p-696764b0.entry.js → p-9e75a5dc.entry.js} +1 -1
- package/dist/design-system/p-bd4e5141.entry.js +1 -0
- package/dist/design-system/{p-70f47e43.entry.js → p-c1bac61e.entry.js} +1 -1
- package/dist/design-system/{p-7444d475.entry.js → p-cffa6da7.entry.js} +1 -1
- package/dist/design-system/{p-1743651a.entry.js → p-e81cb8c9.entry.js} +1 -1
- package/dist/design-system/{p-e9079238.entry.js → p-ea586c5e.entry.js} +1 -1
- package/dist/design-system/{p-733aa107.entry.js → p-f14962bd.entry.js} +1 -1
- package/dist/design-system/{p-521e5d2e.entry.js → p-f3dff8b8.entry.js} +1 -1
- package/dist/design-system/{p-afdca5bb.entry.js → p-fc6da22d.entry.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-button_2.entry.js +2 -2
- package/dist/esm/sd-calendar_2.entry.js +5 -5
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-chip.entry.js +4 -4
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +4 -3
- package/dist/esm/sd-date-picker_7.entry.js +48 -20
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-field_3.entry.js +5 -4
- package/dist/esm/sd-ghost-button.entry.js +2 -2
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-modal-container.entry.js +3 -0
- package/dist/esm/sd-popover.entry.js +8 -5
- package/dist/esm/sd-portal.entry.js +1 -1
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-tag.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +3 -3
- package/dist/types/components/sd-chip/sd-chip.d.ts +1 -1
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +3 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +2 -1
- package/dist/types/components.d.ts +3 -8
- package/hydrate/index.js +102 -65
- package/hydrate/index.mjs +102 -65
- package/package.json +1 -1
- package/dist/components/p-BUW6I_d5.js +0 -1
- package/dist/components/p-DSIM5Mkt.js +0 -1
- package/dist/components/p-Dwko_Bx3.js +0 -1
- package/dist/components/p-pTx5xpqU.js +0 -1
- package/dist/design-system/p-20a2e0d2.entry.js +0 -1
- package/dist/design-system/p-3a848c36.entry.js +0 -1
- package/dist/design-system/p-4bd9f005.entry.js +0 -1
- package/dist/design-system/p-4cf1c8ae.entry.js +0 -1
- package/dist/design-system/p-c5c4a66b.entry.js +0 -1
- package/dist/design-system/p-f97b75d3.entry.js +0 -1
package/hydrate/index.mjs
CHANGED
|
@@ -5336,7 +5336,7 @@ class SdActionModal {
|
|
|
5336
5336
|
if (this.height != null && this.height !== '') {
|
|
5337
5337
|
sizeStyle.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
|
5338
5338
|
}
|
|
5339
|
-
return (hAsync("div", { key: '
|
|
5339
|
+
return (hAsync("div", { key: '91a94a7058a38f4433809705cf2fefdc3bbaefa9', class: "sd-action-modal", style: { ...cssVars, ...sizeStyle } }, hAsync("header", { key: 'e47efbc4183c9cff34d0ed66aab69521efb9e9e5', class: "sd-action-modal__header" }, hAsync("h2", { key: '7a54d5f4decb8d6d599808feafca68e548cf173e', class: "sd-action-modal__title" }, this.modalTitle), hAsync("div", { key: '621c4a86ef0ba69833b84515c74d4972f0a6cc42', class: "sd-action-modal__header-sub" }, hAsync("slot", { key: 'f7453ed96822804094c239cef05638934aed288e', name: "header-sub-title" })), hAsync("sd-ghost-button", { key: '29cee49b27b6f261d719e6856f8b38a9fa590bf4', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), hAsync("div", { key: '610840c291b3a26a82146549220ff1be470eafc2', class: "sd-action-modal__body" }, hAsync("slot", { key: '7d390550e2ba1ae27409fb64beccf4f33f744aad', name: "body" })), (this.buttonProps != null || this.buttonProps != undefined) && (hAsync("footer", { key: 'c835a2fb96066b393a8833d492d03adc2806cb07', class: "sd-action-modal__footer" }, hAsync("div", { key: 'b46ed9f18f9e760bd5159260e2cf4b3f27d8dd23', class: "sd-action-modal__footer-sub" }, hAsync("slot", { key: '4b9cce3c5b44b7921e82cb813a87ca5e76cd4928', name: "bottom-sub-content" })), hAsync("sd-button", { key: '6cf14c10ef064a1c5993a48ef9f921069d6d70f6', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() })))));
|
|
5340
5340
|
}
|
|
5341
5341
|
static get style() { return sdActionModalCss(); }
|
|
5342
5342
|
static get cmpMeta() { return {
|
|
@@ -5388,7 +5388,7 @@ class SdBadge {
|
|
|
5388
5388
|
color = 'blue';
|
|
5389
5389
|
render() {
|
|
5390
5390
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
5391
|
-
return (hAsync("div", { key: '
|
|
5391
|
+
return (hAsync("div", { key: '5fec3220f60c6567d1aa5de6aa3d1c7c9f9e605b', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, hAsync("div", { key: '892f2c5c1d004d172c06bc0871688d30e449e80f', class: "sd-badge__dot" })));
|
|
5392
5392
|
}
|
|
5393
5393
|
static get style() { return sdBadgeCss(); }
|
|
5394
5394
|
static get cmpMeta() { return {
|
|
@@ -5597,7 +5597,7 @@ class SdBarcodeInput {
|
|
|
5597
5597
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
5598
5598
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
5599
5599
|
};
|
|
5600
|
-
return (hAsync("sd-field", { key: '
|
|
5600
|
+
return (hAsync("sd-field", { key: 'c009f4c33b31e9498c230e9a0f4064925a1e5757', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("label", { key: 'a614817eab514a80f7132ebb92ebb0b8bb8009e4', class: "sd-barcode-input__content" }, hAsync("slot", { key: '16a0bf4c55eafec3fb827ba8fe54f61e546fbbca', name: "prefix" }), hAsync("input", { key: 'de9e2abcfe4b8f34084feb8691ef6c8183568932', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", 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 }), hAsync("slot", { key: 'dbfc3e2c03b20da68e80cc3855cace42aae268ec', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-ghost-button", { key: '05670236ffb93c7b894bdea9763d11adcab75e05', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
5601
5601
|
if (this.disabled)
|
|
5602
5602
|
return;
|
|
5603
5603
|
this.internalValue = '';
|
|
@@ -6469,13 +6469,13 @@ class SdButton {
|
|
|
6469
6469
|
const validRightIcon = isValidIcon(this.rightIcon) ? this.rightIcon : undefined;
|
|
6470
6470
|
const iconOnly = !hasLabel && Boolean(validIcon) !== Boolean(validRightIcon);
|
|
6471
6471
|
const accessibleName = iconOnly && this.ariaLabel.trim() !== '' ? this.ariaLabel : undefined;
|
|
6472
|
-
return (hAsync("button", { key: '
|
|
6472
|
+
return (hAsync("button", { key: 'a234c7f16473512ada9eb1e06bf64f77c399cbfc', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type ?? 'button', disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
6473
6473
|
'--sd-button-bg': config.color,
|
|
6474
6474
|
'--sd-button-bg-hover': PRESET_HOVER_BACKGROUNDS$1[preset],
|
|
6475
6475
|
'--sd-button-border': PRESET_BORDER_COLORS$1[preset],
|
|
6476
6476
|
'--sd-button-content': PRESET_CONTENT_COLORS$1[preset],
|
|
6477
6477
|
'--sd-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
6478
|
-
}, onClick: this.handleClick }, hAsync("span", { key: '
|
|
6478
|
+
}, onClick: this.handleClick }, hAsync("span", { key: 'f7b9352e23e52ff28380e06deb25e777a5432800', class: "sd-button__content" }, validIcon && (hAsync("sd-icon", { key: '07327cab83e95c69cf8739be2eb08cdd8272393d', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && hAsync("span", { key: '4274f4b275c3ac9f3f09d4a6c1bf75d2d5f650ee', class: "sd-button__label" }, this.label), validRightIcon && (hAsync("sd-icon", { key: 'ba796a53ba1cb389db209d91c224b04381445b25', class: "sd-button__icon sd-button__icon--right", name: validRightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })))));
|
|
6479
6479
|
}
|
|
6480
6480
|
static get style() { return sdButtonCss(); }
|
|
6481
6481
|
static get cmpMeta() { return {
|
|
@@ -6899,7 +6899,7 @@ class SdCalendar {
|
|
|
6899
6899
|
const eventMap = this.eventMap;
|
|
6900
6900
|
const legend = this.legendItems;
|
|
6901
6901
|
const hasEvents = (this.events?.length ?? 0) > 0;
|
|
6902
|
-
return (hAsync("div", { key: '
|
|
6902
|
+
return (hAsync("div", { key: 'd85abe861103677565ff172def182761255eee97', class: { 'sd-calendar': true, 'sd-calendar--elevated': this.elevated }, style: cssVars }, hAsync("div", { key: '2d087beb6f61c1545c61c040d7266eb809c59c56', class: "sd-calendar__header" }, hAsync("div", { key: '90b85428cd8f22aac7f0d8915a0fb0fc1ba0fd0f', class: "sd-calendar__nav-group" }, hAsync("sd-ghost-button", { key: '6a5b6c35489eeeae6d2fca4a96a77755b5d48c5a', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), hAsync("span", { key: 'b00bab4993fb6f57bf1c6e8fd02243b8cbab8007', class: "sd-calendar__label" }, this.currentYear), hAsync("sd-ghost-button", { key: '1ed1ea634a311b429c6e2053c22e1d043d34aa82', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), hAsync("span", { key: '1d471e12d7e5a48998b33ef6c3b7208c2fff1796', class: "sd-calendar__divider", "aria-hidden": "true" }), hAsync("div", { key: '07e70fb3696cfe6bcf2253c0ead87fead96ad04e', class: "sd-calendar__nav-group sd-calendar__nav-group-month" }, hAsync("sd-ghost-button", { key: 'c8401e8f8a1018eec46d9ee9857e8aa64235fff5', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), hAsync("span", { key: '3ceaa4a07a45eb16c43ed70e953f4540c2554ae9', class: "sd-calendar__label sd-calendar__label-month" }, this.currentMonth, "\uC6D4"), hAsync("sd-ghost-button", { key: '6dd7c2c29159e549e2294141726b39c0ad559634', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), hAsync("div", { key: '623928bc8970c2746f3d924a4ae36149ce7d21f7', class: "sd-calendar__week" }, WEEK_LABELS.map(label => (hAsync("span", { key: label, class: "sd-calendar__week-cell" }, label)))), hAsync("div", { key: '5ab1f7042906eb7542f4effa35c0c9992ded34dc', class: "sd-calendar__grid" }, this.cells.map(cell => {
|
|
6903
6903
|
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
6904
6904
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
6905
6905
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
@@ -6912,8 +6912,8 @@ class SdCalendar {
|
|
|
6912
6912
|
'sd-calendar__day--disabled': isDisabled,
|
|
6913
6913
|
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, hAsync("span", { class: "sd-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : ''), hasEvents && (hAsync("span", { class: "sd-calendar__dot-row", "aria-hidden": "true" }, dayEvents?.map((ev, i) => (hAsync("span", { key: `${ev.color}|${ev.label}|${i}`, class: "sd-calendar__dot", style: { backgroundColor: ev.color } })))))));
|
|
6914
6914
|
})), legend.length > 0 && [
|
|
6915
|
-
hAsync("span", { key: '
|
|
6916
|
-
hAsync("div", { key: '
|
|
6915
|
+
hAsync("span", { key: '9d3f938ca0ac1d48ec6189a6b9f7598c06dbaf13', class: "sd-calendar__divider-bottom", "aria-hidden": "true" }),
|
|
6916
|
+
hAsync("div", { key: '1b5a55959212257085707478d7d0a358dc355403', class: "sd-calendar__legend" }, legend.map(item => (hAsync("span", { key: `${item.color}|${item.label}`, class: "sd-calendar__legend-item" }, hAsync("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: item.color }, "aria-hidden": "true" }), hAsync("span", { class: "sd-calendar__legend-label" }, item.label))))),
|
|
6917
6917
|
]));
|
|
6918
6918
|
}
|
|
6919
6919
|
static get watchers() { return {
|
|
@@ -7142,7 +7142,7 @@ class SdCallout {
|
|
|
7142
7142
|
}
|
|
7143
7143
|
render() {
|
|
7144
7144
|
const showTitle = this.type === 'danger';
|
|
7145
|
-
return (hAsync("div", { key: '
|
|
7145
|
+
return (hAsync("div", { key: 'b11c9ade2fcd2a17704b4d8965e53cc80ddd4a15', class: "sd-callout", style: this.calloutStyle, role: "note" }, showTitle && this.renderTitle(), hAsync("div", { key: '0c5712690ab2141820f444092a63ac4c11d33c80', class: "sd-callout__body" }, this.renderBody())));
|
|
7146
7146
|
}
|
|
7147
7147
|
static get style() { return sdCalloutCss(); }
|
|
7148
7148
|
static get cmpMeta() { return {
|
|
@@ -7167,7 +7167,7 @@ class SdCard {
|
|
|
7167
7167
|
bordered = false;
|
|
7168
7168
|
sdClass = '';
|
|
7169
7169
|
render() {
|
|
7170
|
-
return (hAsync(Fragment, { key: '
|
|
7170
|
+
return (hAsync(Fragment, { key: '366604b2ca458d2b9b26f61c1cb282543b27a699' }, hAsync("div", { key: '889e8ec8d359eb26713762ebb9990ea07dfaf0ba', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, hAsync("slot", { key: 'd680bfe14dc135da77e35440587f089781ef383f' }))));
|
|
7171
7171
|
}
|
|
7172
7172
|
static get style() { return sdCardCss(); }
|
|
7173
7173
|
static get cmpMeta() { return {
|
|
@@ -7488,7 +7488,7 @@ class SdChip {
|
|
|
7488
7488
|
constructor(hostRef) {
|
|
7489
7489
|
registerInstance(this, hostRef);
|
|
7490
7490
|
this.update = createEvent(this, "sdUpdate", 7);
|
|
7491
|
-
this.
|
|
7491
|
+
this.delete = createEvent(this, "sdRemove", 7);
|
|
7492
7492
|
this.focus = createEvent(this, "sdFocus", 7);
|
|
7493
7493
|
this.blur = createEvent(this, "sdBlur", 7);
|
|
7494
7494
|
}
|
|
@@ -7502,7 +7502,7 @@ class SdChip {
|
|
|
7502
7502
|
internalValue = '';
|
|
7503
7503
|
isEditing = false;
|
|
7504
7504
|
update;
|
|
7505
|
-
|
|
7505
|
+
delete;
|
|
7506
7506
|
focus;
|
|
7507
7507
|
blur;
|
|
7508
7508
|
inputEl;
|
|
@@ -7636,7 +7636,7 @@ class SdChip {
|
|
|
7636
7636
|
event.stopPropagation();
|
|
7637
7637
|
if (this.disabled)
|
|
7638
7638
|
return;
|
|
7639
|
-
this.
|
|
7639
|
+
this.delete.emit();
|
|
7640
7640
|
};
|
|
7641
7641
|
syncInputValue(value) {
|
|
7642
7642
|
if (!this.inputEl)
|
|
@@ -7696,7 +7696,7 @@ class SdChip {
|
|
|
7696
7696
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
7697
7697
|
'--sd-chip-line-height': typography.lineHeight,
|
|
7698
7698
|
};
|
|
7699
|
-
return (hAsync("span", { key: '
|
|
7699
|
+
return (hAsync("span", { key: '6503611c9cb03be2de4fc09398e2ce1b34b8ab10', class: {
|
|
7700
7700
|
'sd-chip': true,
|
|
7701
7701
|
[`sd-chip--${state}`]: true,
|
|
7702
7702
|
'sd-chip--disabled': this.disabled,
|
|
@@ -7863,7 +7863,7 @@ class SdCircleProgress {
|
|
|
7863
7863
|
}
|
|
7864
7864
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
7865
7865
|
const showPercent = !this.indeterminate;
|
|
7866
|
-
return (hAsync(Host, { key: '
|
|
7866
|
+
return (hAsync(Host, { key: '9a4424e79b095c240b2dd53c8655b9a4cccaf581', style: hostStyle }, hAsync("svg", { key: '37ca87d4c4aa6ab6b84a4301225d775f1998c0c1', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '372f7031310dddba431323b0527c273311a498e3', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), hAsync("circle", { key: 'def6ff7573e4c4a08648f35f7cb545d6b8064f6d', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle })), showPercent && (hAsync("span", { key: '13d6345672fdafaf6a1e1eef9f5987179a99c3ae', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && hAsync("span", { key: 'c42e2fa2826284017e530e967975e45277ae9ee3', class: "sd-circle-progress__label" }, this.label)));
|
|
7867
7867
|
}
|
|
7868
7868
|
static get style() { return sdCircleProgressCss(); }
|
|
7869
7869
|
static get cmpMeta() { return {
|
|
@@ -7979,9 +7979,9 @@ class SdConfirmModal {
|
|
|
7979
7979
|
const type = this.resolvedType;
|
|
7980
7980
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
7981
7981
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
7982
|
-
return (hAsync("div", { key: '
|
|
7982
|
+
return (hAsync("div", { key: 'c41a58f13b95da7f1f0aea3620abf239dcb116b6', class: "sd-confirm-modal" }, hAsync("sd-ghost-button", { key: 'bdc1bc374934c2f9745f567b4e6ffd55ec3675ce', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (hAsync("sd-icon", { key: 'ff16ebde448157e657eb74e1b0c5f4a331cf396a', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), hAsync("h2", { key: 'd718b2ae6f6e92f8c77ec821b78924ffbe267d12', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), hAsync("div", { key: 'a3909abde84c4d6987c9036a705cba4aa7d01ea6', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (hAsync("div", { key: '29a4bf80ab75d973544c0a29c87133c9ef8a5aab', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) }))))), this.showContentBox && (hAsync("div", { key: '93eb2c75728cf26969a229a876f9217b4e00c63a', class: "sd-confirm-modal__content-box" }, this.tagContents ? (hAsync("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
7983
7983
|
this.customContentRef = el;
|
|
7984
|
-
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (hAsync("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: '
|
|
7984
|
+
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (hAsync("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: '730fd073ade9b8788de77d36fc4aeddd0b304c07', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) })))))), hAsync("div", { key: '059fd87fb39b8e2976fcb671c7dd78310324119f', class: "sd-confirm-modal__button" }, this.subButtonLabel && (hAsync("sd-button", { key: '6b320645505c099783a4a6704e96e9261054c7dc', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), hAsync("sd-button", { key: 'd6a4554a7db861ae7afc610a629591224946d990', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
7985
7985
|
}
|
|
7986
7986
|
static get style() { return sdConfirmModalCss(); }
|
|
7987
7987
|
static get cmpMeta() { return {
|
|
@@ -8207,9 +8207,9 @@ class SdDatePicker {
|
|
|
8207
8207
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
8208
8208
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
8209
8209
|
};
|
|
8210
|
-
return (hAsync("sd-field", { key: '
|
|
8210
|
+
return (hAsync("sd-field", { key: '12d77a181caa4a6a9125db8a5c823149386ee059', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: '2abc775817955caf06dd721d7b91c65d1bfd54de', class: "sd-date-picker", ref: el => {
|
|
8211
8211
|
this.triggerRef = el;
|
|
8212
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
8212
|
+
} }, hAsync("sd-date-picker-trigger", { key: 'c8c041a503785e35ac4a14d902eeef0a20fa2dd7', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '2c3bf831068ca090247fa4494fac6c2ce3b20e81', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-calendar", { key: '52df44d23b85540cbca17c352aba5568ff43685d', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
8213
8213
|
}
|
|
8214
8214
|
static get watchers() { return {
|
|
8215
8215
|
"isOpen": [{
|
|
@@ -8292,7 +8292,7 @@ class SdDatePickerTrigger {
|
|
|
8292
8292
|
? DATEPICKER_COLORS.icon.disabled
|
|
8293
8293
|
: DATEPICKER_COLORS.icon.default,
|
|
8294
8294
|
};
|
|
8295
|
-
return (hAsync("div", { key: '
|
|
8295
|
+
return (hAsync("div", { key: '8a41444172b2d9aa54fa6efe09c4440705d55e06', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
8296
8296
|
'sd-date-picker-trigger': true,
|
|
8297
8297
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
8298
8298
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -8300,7 +8300,7 @@ class SdDatePickerTrigger {
|
|
|
8300
8300
|
e.preventDefault();
|
|
8301
8301
|
this.handleClick();
|
|
8302
8302
|
}
|
|
8303
|
-
} }, hAsync("sd-icon", { key: '
|
|
8303
|
+
} }, hAsync("sd-icon", { key: '74613a1b65814a1f73d00c67d7c1f01019961511', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), hAsync("span", { key: '118733548ddee2bc20ccdc92785ada3bbc765303', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
8304
8304
|
}
|
|
8305
8305
|
static get style() { return sdDatePickerTriggerCss(); }
|
|
8306
8306
|
static get cmpMeta() { return {
|
|
@@ -8720,7 +8720,7 @@ class SdDateRangePickerCalendar {
|
|
|
8720
8720
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
8721
8721
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
8722
8722
|
};
|
|
8723
|
-
return (hAsync(Fragment, { key: '
|
|
8723
|
+
return (hAsync(Fragment, { key: 'a9e5bc8198cfda50227069661812341e7a19b21d' }, hAsync("div", { key: 'a2c5bf6ae806fc24f421cb6b52323f4e92bfc255', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), hAsync("div", { key: '2575175fa3537e010e1c7d573428d5c8ebfae488', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), hAsync("span", { key: 'bd43ac98b88665dbe85804c8b6345c19dca7d9fa', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
8724
8724
|
}
|
|
8725
8725
|
static get watchers() { return {
|
|
8726
8726
|
"value": [{
|
|
@@ -9424,20 +9424,21 @@ class SdField {
|
|
|
9424
9424
|
: {}),
|
|
9425
9425
|
}
|
|
9426
9426
|
: {};
|
|
9427
|
-
return (hAsync("div", { key: '
|
|
9427
|
+
return (hAsync("div", { key: 'c6d4bc9d09982d65c31596319569590df9b994b1', class: {
|
|
9428
9428
|
'sd-field': true,
|
|
9429
9429
|
'sd-field--has-label': this.label !== '',
|
|
9430
9430
|
'sd-field--has-addon': addon !== '',
|
|
9431
9431
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
9432
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '
|
|
9432
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '24f3e7702b3d3be42f8236988e1d64e26a31840e', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: '7c45edce014adee7e2eb91296779896d9fd9fcc3', class: "sd-field__main", style: this.width !== '' && this.width !== 0
|
|
9433
9433
|
? {
|
|
9434
9434
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
9435
9435
|
flex: 'none',
|
|
9436
9436
|
}
|
|
9437
|
-
: {} }, hAsync("div", { key: '
|
|
9437
|
+
: {} }, hAsync("div", { key: '13c99702bf11e4ff76332141a9eaff93185882d3', class: {
|
|
9438
9438
|
'sd-field__control': true,
|
|
9439
9439
|
'sd-field__control--has-addon': addon !== '',
|
|
9440
|
-
} }, addon && hAsync("div", { key: '
|
|
9440
|
+
} }, addon && (hAsync("div", { key: '461170360e26e24051fab4507a22e932f5a37244', class: "sd-field__addon" }, this.icon && (hAsync("sd-icon", { key: 'c8b63273a253da7911e5d8a6f57143a9cc909853', name: this.icon.name, size: this.icon.size ??
|
|
9441
|
+
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), hAsync("slot", { key: '3c4a72a6152c50d525df972a2a4c4d6840240116' })), this.errorMsg !== '' || this.errorMessage !== '' ? (hAsync("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && hAsync("div", { class: "sd-field__hint" }, this.hint))))));
|
|
9441
9442
|
}
|
|
9442
9443
|
renderLabel(label) {
|
|
9443
9444
|
if (label == null || label === '')
|
|
@@ -9524,7 +9525,7 @@ const FILE_PICKER_COLORS = {
|
|
|
9524
9525
|
},
|
|
9525
9526
|
};
|
|
9526
9527
|
|
|
9527
|
-
const sdFilePickerCss = () => `sd-file-picker{display:
|
|
9528
|
+
const sdFilePickerCss = () => `sd-file-picker{display:flex;flex-direction:column;width:100%}.sd-file-picker__wrapper{display:flex;flex-direction:column;width:100%}.sd-file-picker__chip-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}.sd-file-picker__content{width:100%;height:100%;display:flex;align-items:center;padding:0 var(--sd-file-picker-padding-x);gap:var(--sd-file-picker-gap);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;vertical-align:middle}.sd-file-picker__text{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:var(--sd-file-picker-font-weight);font-size:var(--sd-file-picker-font-size);line-height:var(--sd-file-picker-line-height);color:var(--sd-file-picker-placeholder-color)}.sd-file-picker__text--active{color:var(--sd-file-picker-text-color)}.sd-file-picker__text--placeholder{color:var(--sd-file-picker-placeholder-color)}.sd-file-picker__icon{flex-shrink:0}.sd-file-picker__clear-icon{flex-shrink:0;cursor:pointer;transition:opacity 0.2s ease}.sd-file-picker__clear-icon:hover{opacity:0.7}.sd-file-picker__input{display:none}.sd-file-picker__tooltip{position:absolute;top:calc(100% - 4px);left:50%;transform:translate(-50%);z-index:998;white-space:nowrap;padding:8px 12px;background:rgba(0, 0, 0, 0.8);color:white;font-size:12px;line-height:18px;border-radius:4px;pointer-events:none}.sd-field--disabled .sd-file-picker__content{cursor:not-allowed}.sd-field--disabled .sd-file-picker__text{color:var(--sd-file-picker-disabled-color)}.sd-file-picker--inline .sd-file-picker__content{border:none;background-color:transparent;padding:0;height:auto}.sd-file-picker--inline .sd-file-picker__text{color:var(--sd-file-picker-placeholder-color)}.sd-file-picker--inline:hover:not(.sd-file-picker--inline-disabled) .sd-file-picker__text{color:var(--sd-file-picker-text-color)}.sd-file-picker--inline .sd-file-picker__text--active{color:var(--sd-file-picker-text-color)}.sd-file-picker--inline.sd-file-picker--inline-disabled .sd-file-picker__content{cursor:not-allowed}.sd-file-picker--inline.sd-file-picker--inline-disabled .sd-file-picker__text{color:var(--sd-file-picker-disabled-color)}`;
|
|
9528
9529
|
|
|
9529
9530
|
class SdFilePicker {
|
|
9530
9531
|
constructor(hostRef) {
|
|
@@ -9595,11 +9596,11 @@ class SdFilePicker {
|
|
|
9595
9596
|
return undefined;
|
|
9596
9597
|
return typeof value === 'string' ? Number(value) : value;
|
|
9597
9598
|
}
|
|
9598
|
-
validateFiles(files) {
|
|
9599
|
+
validateFiles(files, existingCount = 0) {
|
|
9599
9600
|
const maxFileSize = this.toBytes(this.maxFileSize);
|
|
9600
9601
|
const maxTotalSize = this.toBytes(this.maxTotalSize);
|
|
9601
9602
|
const maxFiles = this.maxFiles != null ? Number(this.maxFiles) : undefined;
|
|
9602
|
-
if (maxFiles != null && files.length > maxFiles) {
|
|
9603
|
+
if (maxFiles != null && existingCount + files.length > maxFiles) {
|
|
9603
9604
|
return { accepted: [], rejected: files, reason: 'max-files' };
|
|
9604
9605
|
}
|
|
9605
9606
|
if (maxFileSize != null) {
|
|
@@ -9623,22 +9624,34 @@ class SdFilePicker {
|
|
|
9623
9624
|
return;
|
|
9624
9625
|
}
|
|
9625
9626
|
const fileArray = Array.from(files);
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9627
|
+
if (this.multiple) {
|
|
9628
|
+
const existing = Array.isArray(this.internalValue) ? this.internalValue : [];
|
|
9629
|
+
const { accepted, rejected, reason } = this.validateFiles(fileArray, existing.length);
|
|
9629
9630
|
if (this.fileInputRef) {
|
|
9630
9631
|
this.fileInputRef.value = '';
|
|
9631
9632
|
}
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9633
|
+
if (reason != null) {
|
|
9634
|
+
this.reject?.emit({ files: rejected, reason });
|
|
9635
|
+
return;
|
|
9636
|
+
}
|
|
9637
|
+
const merged = [...existing, ...accepted];
|
|
9638
|
+
this.internalValue = merged;
|
|
9639
|
+
this.value = merged;
|
|
9640
|
+
this.update?.emit(this.value);
|
|
9636
9641
|
}
|
|
9637
9642
|
else {
|
|
9643
|
+
const { accepted, rejected, reason } = this.validateFiles(fileArray);
|
|
9644
|
+
if (reason != null) {
|
|
9645
|
+
this.reject?.emit({ files: rejected, reason });
|
|
9646
|
+
if (this.fileInputRef) {
|
|
9647
|
+
this.fileInputRef.value = '';
|
|
9648
|
+
}
|
|
9649
|
+
return;
|
|
9650
|
+
}
|
|
9638
9651
|
this.internalValue = accepted[0];
|
|
9652
|
+
this.value = this.internalValue;
|
|
9653
|
+
this.update?.emit(this.value);
|
|
9639
9654
|
}
|
|
9640
|
-
this.value = this.internalValue;
|
|
9641
|
-
this.update?.emit(this.value);
|
|
9642
9655
|
};
|
|
9643
9656
|
handleClear = (event) => {
|
|
9644
9657
|
if (this.disabled)
|
|
@@ -9658,6 +9671,8 @@ class SdFilePicker {
|
|
|
9658
9671
|
this.fileInputRef?.click();
|
|
9659
9672
|
};
|
|
9660
9673
|
hasFiles() {
|
|
9674
|
+
if (this.multiple)
|
|
9675
|
+
return false;
|
|
9661
9676
|
if (!this.internalValue)
|
|
9662
9677
|
return false;
|
|
9663
9678
|
if (Array.isArray(this.internalValue)) {
|
|
@@ -9665,14 +9680,28 @@ class SdFilePicker {
|
|
|
9665
9680
|
}
|
|
9666
9681
|
return true;
|
|
9667
9682
|
}
|
|
9683
|
+
hasChips() {
|
|
9684
|
+
return Array.isArray(this.internalValue) && this.internalValue.length > 0;
|
|
9685
|
+
}
|
|
9668
9686
|
getDisplayText() {
|
|
9669
9687
|
if (!this.hasFiles())
|
|
9670
9688
|
return this.placeholder ?? 'Click to upload';
|
|
9671
|
-
if (Array.isArray(this.internalValue)) {
|
|
9672
|
-
return this.internalValue.map(f => f.name).join(', ');
|
|
9673
|
-
}
|
|
9674
9689
|
return this.internalValue?.name || (this.placeholder ?? 'Click to upload');
|
|
9675
9690
|
}
|
|
9691
|
+
handleChipRemove = (index) => {
|
|
9692
|
+
if (!Array.isArray(this.internalValue))
|
|
9693
|
+
return;
|
|
9694
|
+
const newFiles = [...this.internalValue];
|
|
9695
|
+
newFiles.splice(index, 1);
|
|
9696
|
+
this.internalValue = newFiles;
|
|
9697
|
+
this.value = newFiles;
|
|
9698
|
+
this.update?.emit(this.value);
|
|
9699
|
+
};
|
|
9700
|
+
renderChipList() {
|
|
9701
|
+
if (!this.hasChips())
|
|
9702
|
+
return null;
|
|
9703
|
+
return (hAsync("div", { class: "sd-file-picker__chip-list" }, this.internalValue.map((file, index) => (hAsync("sd-chip", { value: file.name, onSdRemove: () => this.handleChipRemove(index) })))));
|
|
9704
|
+
}
|
|
9676
9705
|
checkOverflow() {
|
|
9677
9706
|
if (!this.fileNamesRef)
|
|
9678
9707
|
return;
|
|
@@ -9712,9 +9741,9 @@ class SdFilePicker {
|
|
|
9712
9741
|
return (hAsync("div", { class: {
|
|
9713
9742
|
'sd-file-picker--inline': true,
|
|
9714
9743
|
'sd-file-picker--inline-disabled': this.disabled,
|
|
9715
|
-
}, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content));
|
|
9744
|
+
}, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content, this.renderChipList()));
|
|
9716
9745
|
}
|
|
9717
|
-
return (hAsync("sd-field", { name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false)
|
|
9746
|
+
return (hAsync("div", { class: "sd-file-picker__wrapper", style: cssVars }, hAsync("sd-field", { name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content), this.renderChipList()));
|
|
9718
9747
|
}
|
|
9719
9748
|
static get watchers() { return {
|
|
9720
9749
|
"value": [{
|
|
@@ -10198,7 +10227,7 @@ class SdGhostButton {
|
|
|
10198
10227
|
? GHOST_BUTTON_DISABLED_COLORS[intent]
|
|
10199
10228
|
: GHOST_BUTTON_CONTENT_COLORS[intent];
|
|
10200
10229
|
const accessibleName = (this.ariaLabel ?? '').trim() || undefined;
|
|
10201
|
-
return (hAsync("button", { key: '
|
|
10230
|
+
return (hAsync("button", { key: '7bf9f8b8d487be0b66a969668308fd451faeb442', class: {
|
|
10202
10231
|
'sd-ghost-button': true,
|
|
10203
10232
|
'sd-ghost-button--disabled': this.disabled,
|
|
10204
10233
|
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
@@ -10207,7 +10236,7 @@ class SdGhostButton {
|
|
|
10207
10236
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[intent],
|
|
10208
10237
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
10209
10238
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
10210
|
-
}, onClick: this.handleClick }, hAsync("sd-icon", { key: '
|
|
10239
|
+
}, onClick: this.handleClick }, hAsync("sd-icon", { key: '4b6b05d186f8c38d2f05415fa24960349dd6c453', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
10211
10240
|
}
|
|
10212
10241
|
static get style() { return sdGhostButtonCss(); }
|
|
10213
10242
|
static get cmpMeta() { return {
|
|
@@ -10410,10 +10439,10 @@ class SdGuide {
|
|
|
10410
10439
|
const buttonClasses = ['sd-guide__button', `sd-guide__button--type-${this.type ?? 'tip'}`];
|
|
10411
10440
|
if (isActive)
|
|
10412
10441
|
buttonClasses.push('sd-guide__button--active');
|
|
10413
|
-
return (hAsync("div", { key: 'ea4f220faf6165f7650360f74a19d9f781b81489', class: "sd-guide", style: this.guideStyle }, hAsync("sd-button", { key: 'c90eaa6cc42a9a2f20b8fc79db16697db0cf2ff2', ref: el => (this.guideRef = el), class: buttonClasses.join(' '), name: isActive ? 'primary_sm' : 'neutral_outline_sm', label: this.label || defaultLabel, icon: iconName, onSdClick: this.handleClickGuide }), this.popupShow && (hAsync("sd-portal", { key: '21f57a739141ffa36f3b799a2688ca5b3c1bd428', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, hAsync("div", { key: '
|
|
10442
|
+
return (hAsync("div", { key: 'ea4f220faf6165f7650360f74a19d9f781b81489', class: "sd-guide", style: this.guideStyle }, hAsync("sd-button", { key: 'c90eaa6cc42a9a2f20b8fc79db16697db0cf2ff2', ref: el => (this.guideRef = el), class: buttonClasses.join(' '), name: isActive ? 'primary_sm' : 'neutral_outline_sm', label: this.label || defaultLabel, icon: iconName, onSdClick: this.handleClickGuide }), this.popupShow && (hAsync("sd-portal", { key: '21f57a739141ffa36f3b799a2688ca5b3c1bd428', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, hAsync("div", { key: '94e12fa797748a02334b97e13c5012ab95bc2bce', class: "sd-guide__popup", style: {
|
|
10414
10443
|
...this.guideStyle,
|
|
10415
10444
|
width: this.popupWidth != null ? this.popupWidth + 'px' : '426px',
|
|
10416
|
-
} }, hAsync("sd-ghost-button", { key: '
|
|
10445
|
+
} }, hAsync("sd-ghost-button", { key: '6fc71032016e7a3be0581508ef0ecc6772981185', class: "sd-guide__popup__close", icon: "close", ariaLabel: "close", size: "sm", onSdClick: this.closeDropdown }), hAsync("div", { key: '385c0c18bc888be6a654525dc6f4359a56ad6de9', class: "sd-guide__popup__header" }, hAsync("sd-icon", { key: '34624d2ac3397ba15b2dc7ba23dc460a87cb878b', name: iconName, size: 24, color: popupIconColor }), hAsync("h3", { key: 'dd3527ec329698b0fd1ec82f2a7d0cf5865802c2', class: "sd-guide__popup__title" }, this.popupTitle || defaultLabel)), hAsync("ul", { key: '429357d0203acdf31177353ceb45d9ac41fadae7', class: "sd-guide__popup__list" }, this.renderListItem(this.message)))))));
|
|
10417
10446
|
}
|
|
10418
10447
|
// 현재 2depth까지만 스타일 적용
|
|
10419
10448
|
renderListItem(message, depth = 0) {
|
|
@@ -11428,6 +11457,7 @@ class SdLoadingModal {
|
|
|
11428
11457
|
buttonLabel = '';
|
|
11429
11458
|
width;
|
|
11430
11459
|
height;
|
|
11460
|
+
progress;
|
|
11431
11461
|
click;
|
|
11432
11462
|
get resolvedState() {
|
|
11433
11463
|
return this.state ?? 'loading';
|
|
@@ -11466,7 +11496,7 @@ class SdLoadingModal {
|
|
|
11466
11496
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
11467
11497
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
11468
11498
|
};
|
|
11469
|
-
return (hAsync(Host, { key: '
|
|
11499
|
+
return (hAsync(Host, { key: 'e1161a16a56cddedc8e4bb76370bdf456d90e15a', style: hostStyle }, hAsync("div", { key: 'e01979e4636465afa4b960ffdb9722f645386dca', class: "sd-loading-modal" }, hAsync("div", { key: '1c1ecc05d20f58084c0d6f8048b17cd84f446edb', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (hAsync("sd-circle-progress", { value: this.progress })) : (hAsync("sd-circle-progress", { indeterminate: true }))) : (hAsync("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), hAsync("div", { key: '6793b86562b67699c59fd83fb0d6ee7378f6d991', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (hAsync("p", { class: "sd-loading-modal__message" }, message)))) : (hAsync("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (hAsync("div", { key: '75036f7d88be636987de2fe999c00d338fa352d5', class: "sd-loading-modal__button" }, hAsync("sd-button", { key: '91f30470702df2be7256d451cc80d27e86510d2e', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
11470
11500
|
}
|
|
11471
11501
|
static get style() { return sdLoadingModalCss(); }
|
|
11472
11502
|
static get cmpMeta() { return {
|
|
@@ -11478,7 +11508,8 @@ class SdLoadingModal {
|
|
|
11478
11508
|
"useButton": [516, "use-button"],
|
|
11479
11509
|
"buttonLabel": [1, "button-label"],
|
|
11480
11510
|
"width": [8],
|
|
11481
|
-
"height": [8]
|
|
11511
|
+
"height": [8],
|
|
11512
|
+
"progress": [2]
|
|
11482
11513
|
},
|
|
11483
11514
|
"$listeners$": undefined,
|
|
11484
11515
|
"$lazyBundleId$": "-",
|
|
@@ -11784,6 +11815,9 @@ class SdModalContainer {
|
|
|
11784
11815
|
if (this.hasOwnProp(options, 'height')) {
|
|
11785
11816
|
this.setAttr(el, 'height', options.height != null ? String(options.height) : undefined);
|
|
11786
11817
|
}
|
|
11818
|
+
if (this.hasOwnProp(options, 'progress')) {
|
|
11819
|
+
el.progress = options.progress;
|
|
11820
|
+
}
|
|
11787
11821
|
}
|
|
11788
11822
|
applyProps(el, options) {
|
|
11789
11823
|
if (this.hasOwnProp(options, 'type'))
|
|
@@ -12529,10 +12563,10 @@ class SdPopover {
|
|
|
12529
12563
|
disabled = false;
|
|
12530
12564
|
type = 'button';
|
|
12531
12565
|
menuTitle;
|
|
12532
|
-
messages = [];
|
|
12533
12566
|
leftLink;
|
|
12534
12567
|
button;
|
|
12535
12568
|
menuClass = '';
|
|
12569
|
+
slotContentHTML = '';
|
|
12536
12570
|
showChange;
|
|
12537
12571
|
buttonEl;
|
|
12538
12572
|
setShow = (next) => {
|
|
@@ -12554,27 +12588,30 @@ class SdPopover {
|
|
|
12554
12588
|
}
|
|
12555
12589
|
}
|
|
12556
12590
|
handleClose = () => this.setShow(false);
|
|
12591
|
+
componentWillLoad() {
|
|
12592
|
+
this.slotContentHTML = this.el.innerHTML;
|
|
12593
|
+
this.el.innerHTML = '';
|
|
12594
|
+
}
|
|
12557
12595
|
render() {
|
|
12558
12596
|
const placement = this.placement ?? 'bottom';
|
|
12559
12597
|
const color = this.color ?? '#01BB4B';
|
|
12560
12598
|
const icon = this.icon ?? 'helpOutline';
|
|
12561
12599
|
const iconSize = this.iconSize ?? 12;
|
|
12562
12600
|
const menuClass = this.menuClass ?? '';
|
|
12563
|
-
const messages = Array.isArray(this.messages) ? this.messages : [];
|
|
12564
12601
|
const leftLink = this.leftLink;
|
|
12565
12602
|
const button = this.button;
|
|
12566
12603
|
const hasFooter = !!leftLink || !!button;
|
|
12567
|
-
return (hAsync(Fragment, { key: '
|
|
12604
|
+
return (hAsync(Fragment, { key: 'f0b7cc015ab688e21d6df2a797c3964808965934' }, this.label !== '' ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel || this.label || icon || 'Open popover', disabled: this.disabled, type: this.type ?? 'button', class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (hAsync("sd-floating-portal", { key: '3b8ad8010a7d74fb519f0ad9ff504c0c0fa32941', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, hAsync("div", { key: '8fba73c8cf2718258a176dac2033fb3b33a8a618', class: {
|
|
12568
12605
|
'sd-floating-menu': true,
|
|
12569
12606
|
'sd-floating-menu--popover': true,
|
|
12570
12607
|
[`sd-floating-menu--${placement}`]: true,
|
|
12571
12608
|
[menuClass]: menuClass !== '',
|
|
12572
12609
|
}, style: {
|
|
12573
12610
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
12574
|
-
} }, hAsync("i", { key: '
|
|
12611
|
+
} }, hAsync("i", { key: '1cef252c66b1c350ea43849e552faced5a53fec0', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, hAsync(TooltipArrow, { key: '755246fe5fbf9b203509f8d45d2bcbeead0c02c6' })), hAsync("div", { key: 'cbefa421598f83f692533d4abf8cfc584b4e02e1', class: "sd-floating-menu__content" }, this.menuTitle && hAsync("div", { key: '0f1dfbaf65236416ba00e5f87cb60e2e98971995', class: "sd-floating-menu__title" }, this.menuTitle), this.slotContentHTML && (hAsync("div", { key: '38ef67a38921e3fbd1e8bee95892655fc57d124c', class: "sd-floating-menu__messages", innerHTML: this.slotContentHTML })), hasFooter && (hAsync("div", { key: '6b3f297563e3b7aa17ace0e20c4423d09b528b32', class: {
|
|
12575
12612
|
'sd-floating-menu__buttons': true,
|
|
12576
12613
|
'sd-floating-menu__buttons--with-link': !!leftLink,
|
|
12577
|
-
} }, leftLink && (hAsync("sd-text-link", { key: '
|
|
12614
|
+
} }, leftLink && (hAsync("sd-text-link", { key: '6ff83b0aefa24ac3bbae7f1399fdaaa1028b4e75', class: "sd-floating-menu__left-link", label: leftLink.label, icon: leftLink.icon ?? '', iconColor: leftLink.iconColor ?? '', useArrow: !!leftLink.useArrow, underline: !!leftLink.underline, disabled: !!leftLink.disabled, onSdClick: leftLink.onClick })), button && (hAsync("sd-button", { key: 'b8b75cd68c55b16b5eb0e4635c16b784381ced78', name: button.name ?? 'secondary_xs', label: button.label, icon: button.icon, rightIcon: button.rightIcon, ariaLabel: button.ariaLabel || button.label || button.icon || 'Open popover', disabled: button.disabled, type: button.type, onSdClick: button.onClick }))))), hAsync("sd-ghost-button", { key: '246ab053d1109d7b999e63c3aa5a1048d6096583', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose }))))));
|
|
12578
12615
|
}
|
|
12579
12616
|
static get style() { return sdPopoverCss(); }
|
|
12580
12617
|
static get cmpMeta() { return {
|
|
@@ -12593,10 +12630,10 @@ class SdPopover {
|
|
|
12593
12630
|
"disabled": [4],
|
|
12594
12631
|
"type": [1],
|
|
12595
12632
|
"menuTitle": [1, "menu-title"],
|
|
12596
|
-
"messages": [16],
|
|
12597
12633
|
"leftLink": [16],
|
|
12598
12634
|
"button": [16],
|
|
12599
|
-
"menuClass": [1, "menu-class"]
|
|
12635
|
+
"menuClass": [1, "menu-class"],
|
|
12636
|
+
"slotContentHTML": [32]
|
|
12600
12637
|
},
|
|
12601
12638
|
"$listeners$": undefined,
|
|
12602
12639
|
"$lazyBundleId$": "-",
|
|
@@ -12949,7 +12986,7 @@ class SdPortal {
|
|
|
12949
12986
|
this.close.emit();
|
|
12950
12987
|
}
|
|
12951
12988
|
render() {
|
|
12952
|
-
return hAsync("slot", { key: '
|
|
12989
|
+
return hAsync("slot", { key: '87fb9bf3f15d09321c6c02a1f7b4ed9084516a04' });
|
|
12953
12990
|
}
|
|
12954
12991
|
static get watchers() { return {
|
|
12955
12992
|
"open": [{
|
|
@@ -13089,7 +13126,7 @@ class SdRadio {
|
|
|
13089
13126
|
'--sd-radio-disabled-dot': RADIO_COLORS.disabled.dot,
|
|
13090
13127
|
'--sd-radio-label-color': RADIO_COLORS.label,
|
|
13091
13128
|
};
|
|
13092
|
-
return (hAsync("label", { key: '
|
|
13129
|
+
return (hAsync("label", { key: '68f1b169f2a7b072a92a64286fa88eff99313faf', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, hAsync("input", { key: 'fa2474cc359ef4f5480a68d9b5d0b6f151e7eec8', type: "radio", name: String(this.val), value: String(this.val), checked: this.isSelected, disabled: this.disabled, "aria-label": this.label || String(this.val), onInput: this.handleRadioChange }), hAsync("span", { key: '345f286e2f87e5dd0687fb94a59f6886eac25f24', class: "sd-radio__circle" }), this.label && hAsync("span", { key: 'e8bd76682569820121c9469984f0054386d9b117', class: "sd-radio__label" }, this.label)));
|
|
13093
13130
|
}
|
|
13094
13131
|
static get watchers() { return {
|
|
13095
13132
|
"value": [{
|
|
@@ -13288,7 +13325,7 @@ class SdRadioButton {
|
|
|
13288
13325
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
13289
13326
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
13290
13327
|
};
|
|
13291
|
-
return (hAsync("div", { key: '
|
|
13328
|
+
return (hAsync("div", { key: 'b916d790862409f8b8e1da566f049daadfc4e5e2', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
13292
13329
|
const isSelected = this.isOptionSelected(option);
|
|
13293
13330
|
const isDisabled = this.isOptionDisabled(option);
|
|
13294
13331
|
return (hAsync("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, hAsync("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && hAsync("span", { class: "sd-radio-button__label" }, option.label)));
|
|
@@ -13340,7 +13377,7 @@ class SdRadioGroup {
|
|
|
13340
13377
|
return classes.join(' ');
|
|
13341
13378
|
}
|
|
13342
13379
|
render() {
|
|
13343
|
-
return (hAsync("div", { key: '
|
|
13380
|
+
return (hAsync("div", { key: 'd60a7fed2bbe1cd2d577827b10c99627aabbda66', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
|
|
13344
13381
|
return (hAsync("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
13345
13382
|
})));
|
|
13346
13383
|
}
|
|
@@ -16078,7 +16115,7 @@ class SdTag {
|
|
|
16078
16115
|
render() {
|
|
16079
16116
|
const config = this.resolvedConfig;
|
|
16080
16117
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
16081
|
-
return (hAsync("span", { key: '
|
|
16118
|
+
return (hAsync("span", { key: '945a8a13f4891b5174e48e262b2a108674da7198', class: "sd-tag", style: {
|
|
16082
16119
|
'--sd-tag-background': config.background,
|
|
16083
16120
|
'--sd-tag-content': config.content,
|
|
16084
16121
|
'--sd-tag-height': config.height,
|
|
@@ -16088,7 +16125,7 @@ class SdTag {
|
|
|
16088
16125
|
'--sd-tag-font-weight': config.fontWeight,
|
|
16089
16126
|
'--sd-tag-line-height': config.lineHeight,
|
|
16090
16127
|
'--sd-tag-radius': config.radius,
|
|
16091
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '
|
|
16128
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '441932c2eb85eea471838db541fb95302527df23', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
16092
16129
|
}
|
|
16093
16130
|
static get style() { return sdTagCss(); }
|
|
16094
16131
|
static get cmpMeta() { return {
|
|
@@ -16456,7 +16493,7 @@ class SdTextLink {
|
|
|
16456
16493
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
16457
16494
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
16458
16495
|
};
|
|
16459
|
-
return (hAsync("span", { key: '
|
|
16496
|
+
return (hAsync("span", { key: '23ddcce86220acc4e6c8a585e4240ecb7baee9f8', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
16460
16497
|
'sd-text-link': true,
|
|
16461
16498
|
'sd-text-link--disabled': this.disabled,
|
|
16462
16499
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -16464,13 +16501,13 @@ class SdTextLink {
|
|
|
16464
16501
|
e.preventDefault();
|
|
16465
16502
|
this.handleClick();
|
|
16466
16503
|
}
|
|
16467
|
-
} }, this.icon && (hAsync("sd-icon", { key: '
|
|
16504
|
+
} }, this.icon && (hAsync("sd-icon", { key: 'd265458a74db086efa270fd165fa5fa9855b708b', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), hAsync("span", { key: '9cb7e5909036aea5b70496fbe5ca69ce10ab3035', class: labelClassName }, this.label), this.useArrow && (hAsync("span", { key: '5ebe27c5929095d1799d81e930b2efa8d616f5bd', class: "sd-text-link__arrow", style: {
|
|
16468
16505
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
16469
16506
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
16470
16507
|
display: 'inline-flex',
|
|
16471
16508
|
alignItems: 'center',
|
|
16472
16509
|
justifyContent: 'center',
|
|
16473
|
-
} }, hAsync("sd-icon", { key: '
|
|
16510
|
+
} }, hAsync("sd-icon", { key: '5fc735391386ac733b77bfac6947cccc61fad198', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
16474
16511
|
}
|
|
16475
16512
|
static get style() { return sdTextLinkCss(); }
|
|
16476
16513
|
static get cmpMeta() { return {
|