@sellmate/design-system 1.0.63 → 1.0.65
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/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-action-modal.cjs.entry.js +12 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -1
- package/dist/cjs/sd-button_4.cjs.entry.js +14 -8
- package/dist/cjs/sd-date-picker.cjs.entry.js +3 -2
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +3 -2
- package/dist/cjs/sd-file-picker.cjs.entry.js +2 -1
- package/dist/cjs/sd-input_2.cjs.entry.js +3 -2
- package/dist/cjs/sd-number-input.cjs.entry.js +4 -3
- package/dist/cjs/sd-pagination_2.cjs.entry.js +4 -3
- package/dist/cjs/sd-portal.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-group.cjs.entry.js +2 -1
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +2 -1
- package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -1
- package/dist/cjs/sd-select.cjs.entry.js +2 -1
- package/dist/cjs/sd-textarea.cjs.entry.js +2 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.css +4 -2
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +49 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +22 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +23 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +23 -2
- package/dist/collection/components/sd-field/sd-field.css +7 -0
- package/dist/collection/components/sd-field/sd-field.js +30 -4
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +22 -1
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +4 -4
- package/dist/collection/components/sd-input/sd-input.js +23 -2
- package/dist/collection/components/sd-number-input/sd-number-input.js +24 -3
- package/dist/collection/components/sd-portal/sd-portal.js +4 -4
- package/dist/collection/components/sd-select/sd-select.js +22 -1
- package/dist/collection/components/sd-select-group/sd-select-group.js +22 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +22 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +22 -1
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +24 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +22 -1
- package/dist/collection/utils/modal.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DUqX35W_.js → p-BH3z_vB9.js} +1 -1
- package/dist/components/{p-DgYBr7xb.js → p-CAeSM6Ov.js} +1 -1
- package/dist/components/{p-BZ7V5xV5.js → p-Cc7ZBscb.js} +1 -1
- package/dist/components/p-Cpg2hVm3.js +1 -0
- package/dist/components/p-DXtyg5eK.js +1 -0
- package/dist/components/p-HsTw_qYU.js +1 -0
- package/dist/components/p-fcZvjHk_.js +1 -0
- package/dist/components/p-h6zSUtA2.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-barcode-input.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-input.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-portal.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-search-input.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-textarea.js +1 -1
- package/dist/components/sd-thead.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/index.esm.js +1 -1
- package/dist/design-system/p-010e4f47.entry.js +1 -0
- package/dist/design-system/p-05ce3449.entry.js +1 -0
- package/dist/design-system/p-2ae97b1c.entry.js +1 -0
- package/dist/design-system/p-6644c4a0.entry.js +1 -0
- package/dist/design-system/p-96b14db1.entry.js +1 -0
- package/dist/design-system/p-a983560d.entry.js +1 -0
- package/dist/design-system/p-b291a2f5.entry.js +1 -0
- package/dist/design-system/p-b3279f07.entry.js +1 -0
- package/dist/design-system/p-b81e0493.entry.js +1 -0
- package/dist/design-system/p-cf1156cb.entry.js +1 -0
- package/dist/design-system/p-d040ec6f.entry.js +1 -0
- package/dist/design-system/p-d8eb17a8.entry.js +1 -0
- package/dist/design-system/p-e5f71ec0.entry.js +1 -0
- package/dist/design-system/p-ed61fe19.entry.js +1 -0
- package/dist/design-system/p-f3d082c8.entry.js +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-action-modal.entry.js +12 -2
- package/dist/esm/sd-barcode-input.entry.js +2 -1
- package/dist/esm/sd-button_4.entry.js +14 -8
- package/dist/esm/sd-date-picker.entry.js +3 -2
- package/dist/esm/sd-date-range-picker.entry.js +3 -2
- package/dist/esm/sd-file-picker.entry.js +2 -1
- package/dist/esm/sd-input_2.entry.js +3 -2
- package/dist/esm/sd-number-input.entry.js +4 -3
- package/dist/esm/sd-pagination_2.entry.js +4 -3
- package/dist/esm/sd-portal.entry.js +3 -3
- package/dist/esm/sd-select-group.entry.js +2 -1
- package/dist/esm/sd-select-multiple-group.entry.js +2 -1
- package/dist/esm/sd-select-multiple.entry.js +2 -1
- package/dist/esm/sd-select.entry.js +2 -1
- package/dist/esm/sd-textarea.entry.js +2 -1
- package/dist/types/components/sd-action-modal/sd-action-modal.d.ts +2 -0
- package/dist/types/components/sd-barcode-input/sd-barcode-input.d.ts +1 -0
- package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +1 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +1 -0
- package/dist/types/components/sd-field/sd-field.d.ts +1 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +1 -0
- package/dist/types/components/sd-input/sd-input.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -1
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +1 -0
- package/dist/types/components/sd-select/sd-select.d.ts +1 -0
- package/dist/types/components/sd-select-group/sd-select-group.d.ts +1 -0
- package/dist/types/components/sd-select-multiple/sd-select-multiple.d.ts +1 -0
- package/dist/types/components/sd-select-multiple-group/sd-select-multiple-group.d.ts +1 -0
- package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +1 -0
- package/dist/types/components/sd-textarea/sd-textarea.d.ts +1 -0
- package/dist/types/components.d.ts +127 -4
- package/hydrate/index.js +76 -33
- package/hydrate/index.mjs +76 -33
- package/package.json +1 -1
- package/dist/components/p-BgRPWxrz.js +0 -1
- package/dist/components/p-DxzgCf_d.js +0 -1
- package/dist/components/p-aC4HJHug.js +0 -1
- package/dist/components/p-e35Du7-7.js +0 -1
- package/dist/components/p-e8HA30H_.js +0 -1
- package/dist/design-system/p-0ca594a4.entry.js +0 -1
- package/dist/design-system/p-1b9e427e.entry.js +0 -1
- package/dist/design-system/p-1cbe4b22.entry.js +0 -1
- package/dist/design-system/p-1d310832.entry.js +0 -1
- package/dist/design-system/p-656acb07.entry.js +0 -1
- package/dist/design-system/p-748ece8e.entry.js +0 -1
- package/dist/design-system/p-9af7e19a.entry.js +0 -1
- package/dist/design-system/p-a24c3431.entry.js +0 -1
- package/dist/design-system/p-a9a91e69.entry.js +0 -1
- package/dist/design-system/p-c2f3470f.entry.js +0 -1
- package/dist/design-system/p-c98ed6ae.entry.js +0 -1
- package/dist/design-system/p-ca80379a.entry.js +0 -1
- package/dist/design-system/p-e9f24d23.entry.js +0 -1
- package/dist/design-system/p-ec79fefd.entry.js +0 -1
- package/dist/design-system/p-f3a60f61.entry.js +0 -1
package/hydrate/index.js
CHANGED
|
@@ -5402,7 +5402,7 @@ const ACTION_MODAL_TITLE = {
|
|
|
5402
5402
|
lineHeight: Number(action.title.typography.lineHeight),
|
|
5403
5403
|
};
|
|
5404
5404
|
|
|
5405
|
-
const sdActionModalCss = () => `sd-action-modal{display:block
|
|
5405
|
+
const sdActionModalCss = () => `sd-action-modal{display:block}sd-action-modal .sd-action-modal{position:relative;display:flex;flex-direction:column;width:fit-content;min-width:520px;border-radius:var(--sd-action-modal-radius);background:var(--sd-action-modal-bg);box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.2);overflow:hidden}sd-action-modal .sd-action-modal__header{display:flex;align-items:center;flex-shrink:0;gap:var(--sd-action-modal-header-gap);padding:var(--sd-action-modal-header-padding-y) calc(var(--sd-action-modal-header-padding-x) + 20px) var(--sd-action-modal-header-padding-y) var(--sd-action-modal-header-padding-x)}sd-action-modal .sd-action-modal__title{margin:0;color:var(--sd-action-modal-title-color);font-family:var(--sd-action-modal-title-font-family);font-weight:var(--sd-action-modal-title-font-weight);font-size:var(--sd-action-modal-title-font-size);line-height:var(--sd-action-modal-title-line-height);white-space:nowrap}sd-action-modal .sd-action-modal__header-sub{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px}sd-action-modal .sd-action-modal__header-sub:empty{display:none}sd-action-modal .sd-action-modal__close{position:absolute;top:16px;right:16px;cursor:pointer}sd-action-modal .sd-action-modal__body{flex:1 1 auto;min-height:0;padding:0 var(--sd-action-modal-body-padding-x) var(--sd-action-modal-body-padding-bottom);overflow:auto}sd-action-modal .sd-action-modal__footer{display:flex;align-items:center;flex-shrink:0;gap:var(--sd-action-modal-footer-gap);padding:var(--sd-action-modal-footer-padding-y) var(--sd-action-modal-footer-padding-x);background:var(--sd-action-modal-footer-bg);border-top:1px solid var(--sd-action-modal-footer-border)}sd-action-modal .sd-action-modal__footer>sd-button-v2{margin-left:auto}sd-action-modal .sd-action-modal__footer-sub{display:flex;align-items:center;gap:8px;min-width:0}sd-action-modal .sd-action-modal__footer-sub:empty{display:none}`;
|
|
5406
5406
|
|
|
5407
5407
|
const DEFAULT_BUTTON_PROPS = {
|
|
5408
5408
|
name: 'primary_md',
|
|
@@ -5416,6 +5416,8 @@ class SdActionModal {
|
|
|
5416
5416
|
}
|
|
5417
5417
|
modalTitle = '';
|
|
5418
5418
|
buttonProps = {};
|
|
5419
|
+
width;
|
|
5420
|
+
height;
|
|
5419
5421
|
close;
|
|
5420
5422
|
ok;
|
|
5421
5423
|
render() {
|
|
@@ -5438,7 +5440,15 @@ class SdActionModal {
|
|
|
5438
5440
|
'--sd-action-modal-title-font-size': `${ACTION_MODAL_TITLE.fontSize}px`,
|
|
5439
5441
|
'--sd-action-modal-title-line-height': `${ACTION_MODAL_TITLE.lineHeight}px`,
|
|
5440
5442
|
};
|
|
5441
|
-
|
|
5443
|
+
const sizeStyle = {};
|
|
5444
|
+
if (this.width != null && this.width !== '') {
|
|
5445
|
+
sizeStyle.width = typeof this.width === 'number' ? `${this.width}px` : this.width;
|
|
5446
|
+
sizeStyle.minWidth = '0';
|
|
5447
|
+
}
|
|
5448
|
+
if (this.height != null && this.height !== '') {
|
|
5449
|
+
sizeStyle.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
|
5450
|
+
}
|
|
5451
|
+
return (hAsync("div", { key: '566cba5061dbc13229ab2b51375cc4008f472343', class: "sd-action-modal", style: { ...cssVars, ...sizeStyle } }, hAsync("header", { key: 'fe396d5a90282deb3a9b42be4f451ee89648d20a', class: "sd-action-modal__header" }, hAsync("h2", { key: '7086fd3acf6be20d244f1c493d0f2669fb65dd01', class: "sd-action-modal__title" }, this.modalTitle), hAsync("div", { key: '90a7ae7d6a0a5c22921912e705ebfdee721e7e4a', class: "sd-action-modal__header-sub" }, hAsync("slot", { key: '74daa609d40f22dc825ea2a4a68e6d51d0db1f75', name: "header-sub-title" })), hAsync("sd-ghost-button", { key: '1d38b1374172f7a060ef3781079d301ae1fea84a', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), hAsync("div", { key: '657659d94d24581c6f33b8ab6d5dd74260cf22ad', class: "sd-action-modal__body" }, hAsync("slot", { key: '6f05c054e98537c43a78b72e14351092266933b2', name: "body" })), hAsync("footer", { key: 'dbd38be86c98e556039baa97ef2d84c48839e687', class: "sd-action-modal__footer" }, hAsync("div", { key: '268dfd29463453b9db4976145469f5045f2be16d', class: "sd-action-modal__footer-sub" }, hAsync("slot", { key: '38c76ecba8652c32807be076a898db75f87ea8f9', name: "bottom-sub-content" })), hAsync("sd-button-v2", { key: '5b4a651bbd35412b9b02bed7709d0bc27792811e', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() }))));
|
|
5442
5452
|
}
|
|
5443
5453
|
static get style() { return sdActionModalCss(); }
|
|
5444
5454
|
static get cmpMeta() { return {
|
|
@@ -5446,7 +5456,9 @@ class SdActionModal {
|
|
|
5446
5456
|
"$tagName$": "sd-action-modal",
|
|
5447
5457
|
"$members$": {
|
|
5448
5458
|
"modalTitle": [1, "modal-title"],
|
|
5449
|
-
"buttonProps": [16]
|
|
5459
|
+
"buttonProps": [16],
|
|
5460
|
+
"width": [8],
|
|
5461
|
+
"height": [8]
|
|
5450
5462
|
},
|
|
5451
5463
|
"$listeners$": undefined,
|
|
5452
5464
|
"$lazyBundleId$": "-",
|
|
@@ -5618,6 +5630,7 @@ class SdBarcodeInput {
|
|
|
5618
5630
|
hovered = false;
|
|
5619
5631
|
// props - label
|
|
5620
5632
|
label = '';
|
|
5633
|
+
labelWidth = '';
|
|
5621
5634
|
icon = undefined;
|
|
5622
5635
|
labelTooltip = '';
|
|
5623
5636
|
labelTooltipProps = null;
|
|
@@ -5696,7 +5709,7 @@ class SdBarcodeInput {
|
|
|
5696
5709
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
5697
5710
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
5698
5711
|
};
|
|
5699
|
-
return (hAsync("sd-field", { key: '
|
|
5712
|
+
return (hAsync("sd-field", { key: 'bba439856e0cbaedc7b54411dac904f9c845b50c', name: this.name, label: this.label, labelWidth: this.labelWidth, 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, 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: '8553cfb4b5ef9535608abc1f2987ce08970c318a', class: "sd-barcode-input__content" }, hAsync("slot", { key: '93db2b38e8d674230f48e3b9496a7221d8477da6', name: "prefix" }), hAsync("input", { key: '30997bea593052322a2d29fc1e517b00cf19b1fb', 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: '690daa6c1daa6058713ee09b0efe976557cde3ab', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-ghost-button", { key: '8ab4e45a23d1b06dc415d969e25ed5ea59540643', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
5700
5713
|
if (this.disabled)
|
|
5701
5714
|
return;
|
|
5702
5715
|
this.internalValue = '';
|
|
@@ -5734,6 +5747,7 @@ class SdBarcodeInput {
|
|
|
5734
5747
|
"focused": [1028],
|
|
5735
5748
|
"hovered": [1028],
|
|
5736
5749
|
"label": [1],
|
|
5750
|
+
"labelWidth": [8, "label-width"],
|
|
5737
5751
|
"icon": [16],
|
|
5738
5752
|
"labelTooltip": [1, "label-tooltip"],
|
|
5739
5753
|
"labelTooltipProps": [16],
|
|
@@ -7346,6 +7360,7 @@ class SdDatePicker {
|
|
|
7346
7360
|
width = '';
|
|
7347
7361
|
// sd-field 공통 props
|
|
7348
7362
|
label = '';
|
|
7363
|
+
labelWidth = '';
|
|
7349
7364
|
addonLabel = '';
|
|
7350
7365
|
hint = '';
|
|
7351
7366
|
errorMessage = '';
|
|
@@ -7425,9 +7440,9 @@ class SdDatePicker {
|
|
|
7425
7440
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
7426
7441
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
7427
7442
|
};
|
|
7428
|
-
return (hAsync("sd-field", { key: '
|
|
7443
|
+
return (hAsync("sd-field", { key: '693c0c75e6b0a9ee8323f4be7ec101592e586372', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, 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, 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: 'ea7f506f0163119fac0c660ef1bef5781780a118', class: "sd-date-picker", ref: el => {
|
|
7429
7444
|
this.triggerRef = el;
|
|
7430
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
7445
|
+
} }, hAsync("sd-date-picker-trigger", { key: '0109eb0326655018bc02cc373e766ffdada85ff0', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '65a628af43ae036a752f3511341fd8c9c82303a1', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-date-picker-calendar", { key: '21f574fc9551f9aaccfcb5d49a81952dbba72d7a', value: this.value, selectable: this.selectable, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
7431
7446
|
}
|
|
7432
7447
|
static get watchers() { return {
|
|
7433
7448
|
"isOpen": [{
|
|
@@ -7446,6 +7461,7 @@ class SdDatePicker {
|
|
|
7446
7461
|
"disabled": [516],
|
|
7447
7462
|
"width": [8],
|
|
7448
7463
|
"label": [1],
|
|
7464
|
+
"labelWidth": [8, "label-width"],
|
|
7449
7465
|
"addonLabel": [1, "addon-label"],
|
|
7450
7466
|
"hint": [1],
|
|
7451
7467
|
"errorMessage": [1, "error-message"],
|
|
@@ -7725,6 +7741,7 @@ class SdDateRangePicker {
|
|
|
7725
7741
|
width = '';
|
|
7726
7742
|
// sd-field 공통 props
|
|
7727
7743
|
label = '';
|
|
7744
|
+
labelWidth = '';
|
|
7728
7745
|
addonLabel = '';
|
|
7729
7746
|
hint = '';
|
|
7730
7747
|
errorMessage = '';
|
|
@@ -7809,9 +7826,9 @@ class SdDateRangePicker {
|
|
|
7809
7826
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
7810
7827
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
7811
7828
|
};
|
|
7812
|
-
return (hAsync("sd-field", { key: '
|
|
7829
|
+
return (hAsync("sd-field", { key: '95ec666c91635d6b6b749d660b4495b7ebe48e6a', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, 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, 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: '3051fda66e94d51208347ae2053173570d5f1ca9', class: "sd-date-range-picker", ref: el => {
|
|
7813
7830
|
this.triggerRef = el;
|
|
7814
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
7831
|
+
} }, hAsync("sd-date-picker-trigger", { key: '71693b5a4cec562169d9427a4e19aed4d8b19a45', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '75b9f1c1ebdabcd1c1a33cad51189ba132274bb1', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-date-range-picker-calendar", { key: 'f158eead4f44bc452bf102b3324721df84fc3b0c', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
7815
7832
|
}
|
|
7816
7833
|
static get watchers() { return {
|
|
7817
7834
|
"isOpen": [{
|
|
@@ -7831,6 +7848,7 @@ class SdDateRangePicker {
|
|
|
7831
7848
|
"disabled": [516],
|
|
7832
7849
|
"width": [8],
|
|
7833
7850
|
"label": [1],
|
|
7851
|
+
"labelWidth": [8, "label-width"],
|
|
7834
7852
|
"addonLabel": [1, "addon-label"],
|
|
7835
7853
|
"hint": [1],
|
|
7836
7854
|
"errorMessage": [1, "error-message"],
|
|
@@ -8569,7 +8587,7 @@ const FIELD_LABEL_SIZE_MAP = {
|
|
|
8569
8587
|
},
|
|
8570
8588
|
};
|
|
8571
8589
|
|
|
8572
|
-
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;height:var(--sd-field-label-height);margin-right:var(--sd-field-label-margin-right)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:var(--sd-field-label-gap)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:var(--sd-field-label-font-size);line-height:var(--sd-field-label-line-height);font-weight:var(--sd-field-label-font-weight);color:var(--sd-system-color-field-text-default);white-space:nowrap}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:var(--sd-field-label-gap)}sd-field .sd-field--has-addon .sd-field__control .sd-field__addon{display:flex;gap:var(--sd-field-addon-gap);align-items:center;white-space:nowrap;padding:0 var(--sd-field-addon-padding-x);font-size:var(--sd-field-addon-font-size);line-height:var(--sd-field-addon-line-height);font-weight:var(--sd-field-addon-font-weight);background:var(--sd-field-addon-bg);border-right:var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);border-radius:calc(var(--sd-field-control-radius) - 1px) 0 0 calc(var(--sd-field-control-radius) - 1px)}sd-field .sd-field__wrapper{width:100%;display:flex;align-items:flex-start;flex-flow:row nowrap;position:relative;color:var(--sd-system-color-field-text-default);-webkit-user-select:none;user-select:none}sd-field .sd-field__wrapper .sd-field__main{flex:1;min-width:0;display:flex;flex-direction:column}sd-field .sd-field__wrapper .sd-field__control{position:relative;height:var(--sd-field-wrapper-height);display:flex;min-width:0;border:1px solid var(--sd-system-color-field-border-default);border-radius:var(--sd-field-control-radius);background:var(--sd-system-color-field-bg-default)}sd-field .sd-field--error .sd-field__wrapper .sd-field__control:not(:hover){border:1px solid var(--sd-system-color-field-border-danger) !important}sd-field .sd-field.sd-field--pass .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-success) !important}sd-field .sd-field:not(.sd-field--disabled) .sd-field__wrapper .sd-field__control:hover{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--focus .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field .sd-field__error-message{color:var(--sd-textinput-textinput-text-error-message);font-size:var(--sd-textinput-textinput-error-message-typography-font-size);line-height:var(--sd-textinput-textinput-error-message-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}sd-field .sd-field .sd-field__hint{color:var(--sd-textinput-textinput-text-hint);font-size:var(--sd-textinput-textinput-hint-typography-font-size);line-height:var(--sd-textinput-textinput-hint-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}`;
|
|
8590
|
+
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;flex-shrink:0;width:var(--sd-field-label-width, auto);height:var(--sd-field-label-height);margin-right:var(--sd-field-label-margin-right)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:var(--sd-field-label-font-size);line-height:var(--sd-field-label-line-height);font-weight:var(--sd-field-label-font-weight);color:var(--sd-system-color-field-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-addon .sd-field__control .sd-field__addon{display:flex;gap:var(--sd-field-addon-gap);align-items:center;white-space:nowrap;padding:0 var(--sd-field-addon-padding-x);font-size:var(--sd-field-addon-font-size);line-height:var(--sd-field-addon-line-height);font-weight:var(--sd-field-addon-font-weight);background:var(--sd-field-addon-bg);border-right:var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);border-radius:calc(var(--sd-field-control-radius) - 1px) 0 0 calc(var(--sd-field-control-radius) - 1px)}sd-field .sd-field__wrapper{width:100%;display:flex;align-items:flex-start;flex-flow:row nowrap;position:relative;color:var(--sd-system-color-field-text-default);-webkit-user-select:none;user-select:none}sd-field .sd-field__wrapper .sd-field__main{flex:1;min-width:0;display:flex;flex-direction:column}sd-field .sd-field__wrapper .sd-field__control{position:relative;height:var(--sd-field-wrapper-height);display:flex;min-width:0;border:1px solid var(--sd-system-color-field-border-default);border-radius:var(--sd-field-control-radius);background:var(--sd-system-color-field-bg-default)}sd-field .sd-field--error .sd-field__wrapper .sd-field__control:not(:hover){border:1px solid var(--sd-system-color-field-border-danger) !important}sd-field .sd-field.sd-field--pass .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-success) !important}sd-field .sd-field:not(.sd-field--disabled) .sd-field__wrapper .sd-field__control:hover{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--focus .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field .sd-field__error-message{color:var(--sd-textinput-textinput-text-error-message);font-size:var(--sd-textinput-textinput-error-message-typography-font-size);line-height:var(--sd-textinput-textinput-error-message-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}sd-field .sd-field .sd-field__hint{color:var(--sd-textinput-textinput-text-hint);font-size:var(--sd-textinput-textinput-hint-typography-font-size);line-height:var(--sd-textinput-textinput-hint-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}`;
|
|
8573
8591
|
|
|
8574
8592
|
const FORM_PARENT_TAGS = [
|
|
8575
8593
|
'sd-select',
|
|
@@ -8602,6 +8620,7 @@ class SdField {
|
|
|
8602
8620
|
size = 'sm';
|
|
8603
8621
|
// props - label
|
|
8604
8622
|
label = '';
|
|
8623
|
+
labelWidth = '';
|
|
8605
8624
|
addonLabel = '';
|
|
8606
8625
|
icon = undefined;
|
|
8607
8626
|
labelTooltip = '';
|
|
@@ -8714,6 +8733,11 @@ class SdField {
|
|
|
8714
8733
|
'--sd-field-label-font-size': `${labelTokens.fontSize}px`,
|
|
8715
8734
|
'--sd-field-label-line-height': `${labelTokens.lineHeight}px`,
|
|
8716
8735
|
'--sd-field-label-font-weight': labelTokens.fontWeight,
|
|
8736
|
+
...(this.labelWidth
|
|
8737
|
+
? {
|
|
8738
|
+
'--sd-field-label-width': typeof this.labelWidth === 'number' ? `${this.labelWidth}px` : this.labelWidth,
|
|
8739
|
+
}
|
|
8740
|
+
: {}),
|
|
8717
8741
|
}
|
|
8718
8742
|
: {};
|
|
8719
8743
|
const addonCssVars = addon
|
|
@@ -8730,20 +8754,20 @@ class SdField {
|
|
|
8730
8754
|
'--sd-field-addon-border-width': `${addonTokens.border.width}px`,
|
|
8731
8755
|
}
|
|
8732
8756
|
: {};
|
|
8733
|
-
return (hAsync("div", { key: '
|
|
8757
|
+
return (hAsync("div", { key: 'f12b2e13ac8152d1e688f903a60a8fa670e99065', class: {
|
|
8734
8758
|
'sd-field': true,
|
|
8735
8759
|
'sd-field--has-label': !!this.label,
|
|
8736
8760
|
'sd-field--has-addon': !!addon,
|
|
8737
8761
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
8738
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '
|
|
8762
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '79f7a40b5e1ee95bb9075b0855e22261cd8adc6a', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: '54b5bbfbe18df48c40cc30ec3d6761ccd8e446cc', class: "sd-field__main", style: this.width
|
|
8739
8763
|
? {
|
|
8740
8764
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
8741
8765
|
flex: 'none',
|
|
8742
8766
|
}
|
|
8743
|
-
: {} }, hAsync("div", { key: '
|
|
8767
|
+
: {} }, hAsync("div", { key: '39542908287175ade4d6e0f1acd2cb1f03c9e2a1', class: {
|
|
8744
8768
|
'sd-field__control': true,
|
|
8745
8769
|
'sd-field__control--has-addon': !!addon,
|
|
8746
|
-
} }, addon && hAsync("div", { key: '
|
|
8770
|
+
} }, addon && hAsync("div", { key: '236650de53d1d1951f26586aa0d22f0f267fc411', class: "sd-field__addon" }, addon), hAsync("slot", { key: '41df3dca21aa68d3324617891f2555f1c488a61b' })), this.errorMsg || this.errorMessage ? (hAsync("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)) : (this.hint && hAsync("div", { class: "sd-field__hint" }, this.hint))))));
|
|
8747
8771
|
}
|
|
8748
8772
|
renderLabel(label) {
|
|
8749
8773
|
if (!label)
|
|
@@ -8767,6 +8791,7 @@ class SdField {
|
|
|
8767
8791
|
"width": [8],
|
|
8768
8792
|
"size": [513],
|
|
8769
8793
|
"label": [1],
|
|
8794
|
+
"labelWidth": [8, "label-width"],
|
|
8770
8795
|
"addonLabel": [1, "addon-label"],
|
|
8771
8796
|
"icon": [16],
|
|
8772
8797
|
"labelTooltip": [1, "label-tooltip"],
|
|
@@ -8847,6 +8872,7 @@ class SdFilePicker {
|
|
|
8847
8872
|
// sd-field 패스스루 props
|
|
8848
8873
|
name = '';
|
|
8849
8874
|
label = '';
|
|
8875
|
+
labelWidth = '';
|
|
8850
8876
|
addonLabel = '';
|
|
8851
8877
|
hint = '';
|
|
8852
8878
|
errorMessage = '';
|
|
@@ -9009,7 +9035,7 @@ class SdFilePicker {
|
|
|
9009
9035
|
'sd-file-picker--inline-disabled': this.disabled,
|
|
9010
9036
|
}, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content));
|
|
9011
9037
|
}
|
|
9012
|
-
return (hAsync("sd-field", { 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 }, content));
|
|
9038
|
+
return (hAsync("sd-field", { name: this.name, label: this.label, labelWidth: this.labelWidth, 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 }, content));
|
|
9013
9039
|
}
|
|
9014
9040
|
static get watchers() { return {
|
|
9015
9041
|
"value": [{
|
|
@@ -9032,6 +9058,7 @@ class SdFilePicker {
|
|
|
9032
9058
|
"maxFiles": [8, "max-files"],
|
|
9033
9059
|
"name": [1],
|
|
9034
9060
|
"label": [1],
|
|
9061
|
+
"labelWidth": [8, "label-width"],
|
|
9035
9062
|
"addonLabel": [1, "addon-label"],
|
|
9036
9063
|
"hint": [1],
|
|
9037
9064
|
"errorMessage": [1, "error-message"],
|
|
@@ -9067,7 +9094,7 @@ class SdFloatingPopover {
|
|
|
9067
9094
|
to = 'body';
|
|
9068
9095
|
parentRef = null;
|
|
9069
9096
|
offset = [0, 0];
|
|
9070
|
-
zIndex =
|
|
9097
|
+
zIndex = 10000;
|
|
9071
9098
|
placement = 'bottom';
|
|
9072
9099
|
open = false;
|
|
9073
9100
|
close;
|
|
@@ -9125,7 +9152,7 @@ class SdFloatingPopover {
|
|
|
9125
9152
|
this.wrapper = document.createElement('div');
|
|
9126
9153
|
Object.assign(this.wrapper.style, {
|
|
9127
9154
|
position: 'absolute',
|
|
9128
|
-
zIndex: (this.zIndex ??
|
|
9155
|
+
zIndex: (this.zIndex ?? 10000).toString(),
|
|
9129
9156
|
transition: 'opacity 0.4s',
|
|
9130
9157
|
top: '-9999px',
|
|
9131
9158
|
left: '-9999px',
|
|
@@ -9207,7 +9234,7 @@ class SdFloatingPopover {
|
|
|
9207
9234
|
this.close.emit();
|
|
9208
9235
|
}
|
|
9209
9236
|
render() {
|
|
9210
|
-
return hAsync("slot", { key: '
|
|
9237
|
+
return hAsync("slot", { key: '4dafb853b2a82e541f59056d2fedf08a6fa040ba' });
|
|
9211
9238
|
}
|
|
9212
9239
|
static get style() { return sdFloatingPortalCss(); }
|
|
9213
9240
|
static get cmpMeta() { return {
|
|
@@ -10169,6 +10196,7 @@ class SdInput {
|
|
|
10169
10196
|
hovered = false;
|
|
10170
10197
|
// props - label
|
|
10171
10198
|
label = '';
|
|
10199
|
+
labelWidth = '';
|
|
10172
10200
|
icon = undefined;
|
|
10173
10201
|
labelTooltip = '';
|
|
10174
10202
|
labelTooltipProps = null;
|
|
@@ -10250,12 +10278,12 @@ class SdInput {
|
|
|
10250
10278
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
10251
10279
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
10252
10280
|
};
|
|
10253
|
-
return (hAsync("sd-field", { key: '
|
|
10281
|
+
return (hAsync("sd-field", { key: 'a72ce8674fb761de7cd188e99cc19d5f3731a899', name: this.name, label: this.label, labelWidth: this.labelWidth, 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, 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: 'e5cbdbc2b233bda57488ead19401d277891301ae', class: "sd-input__content" }, hAsync("slot", { key: 'a327005770df94ef61f2e08071e77407a24b7b5c', name: "prefix" }), hAsync("input", { key: '36301cd586151b8c607e14715b26fca467f68c13', 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, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), hAsync("slot", { key: '532e201860db0709572502aa4275fc9251e1aeb1', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (hAsync("sd-ghost-button", { key: 'cc6132852c65f0597cbe25751c7246b1cdad3096', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
10254
10282
|
if (this.disabled)
|
|
10255
10283
|
return;
|
|
10256
10284
|
this.internalValue = '';
|
|
10257
10285
|
await this.formField?.sdValidate();
|
|
10258
|
-
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '
|
|
10286
|
+
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: 'fd3d567346cf5771ec28c73f15cdf0db15835766', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
|
|
10259
10287
|
if (this.disabled)
|
|
10260
10288
|
return;
|
|
10261
10289
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -10299,6 +10327,7 @@ class SdInput {
|
|
|
10299
10327
|
"focused": [1028],
|
|
10300
10328
|
"hovered": [1028],
|
|
10301
10329
|
"label": [1],
|
|
10330
|
+
"labelWidth": [8, "label-width"],
|
|
10302
10331
|
"icon": [16],
|
|
10303
10332
|
"labelTooltip": [1, "label-tooltip"],
|
|
10304
10333
|
"labelTooltipProps": [16],
|
|
@@ -10875,6 +10904,7 @@ class SdNumberInput {
|
|
|
10875
10904
|
useDecimal = false;
|
|
10876
10905
|
value = null;
|
|
10877
10906
|
label;
|
|
10907
|
+
labelWidth = '';
|
|
10878
10908
|
addonLabel = '';
|
|
10879
10909
|
placeholder = '입력해 주세요.';
|
|
10880
10910
|
disabled = false;
|
|
@@ -11134,12 +11164,12 @@ class SdNumberInput {
|
|
|
11134
11164
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
11135
11165
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
11136
11166
|
};
|
|
11137
|
-
return (hAsync("sd-field", { key: '
|
|
11167
|
+
return (hAsync("sd-field", { key: 'f81b01b27960130cbf6b37a29fc0ddc11750768e', name: this.name, label: this.label, labelWidth: this.labelWidth, 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, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: '0f9b5a0b966c7d51d5913c61a585ff789fa4973f', class: "sd-number-input__content" }, this.useButton && (hAsync("button", { key: 'b037ee3062253bf229f9639dd04c7475657fabb6', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: '39a9f73a15008a481e758e663e027cd4f6454146', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
11138
11168
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
11139
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (hAsync("span", { key: '
|
|
11169
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (hAsync("span", { key: '050334ce25bb767e7f11dca886d4aeecaa1ed3dc', class: "sd-number-input__prefix" }, this.inputPrefix)), hAsync("input", { key: 'a72697d136eeee52ef23fee6ee2017b6dd37e54c', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
11140
11170
|
textAlign: this.useButton ? 'center' : 'right',
|
|
11141
11171
|
...this.inputStyle,
|
|
11142
|
-
} }), this.inputSuffix && (hAsync("span", { key: '
|
|
11172
|
+
} }), this.inputSuffix && (hAsync("span", { key: '845202622b3377add18782d96d0af0c49caf95ec', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (hAsync("button", { key: '208c976c1b755bec0cd7efb5ceacb3e07dce3a7d', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: 'fe9848c8f044d01378dc183a80d3f81eb56a67f9', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
11143
11173
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
11144
11174
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
11145
11175
|
}
|
|
@@ -11164,6 +11194,7 @@ class SdNumberInput {
|
|
|
11164
11194
|
"useDecimal": [4, "use-decimal"],
|
|
11165
11195
|
"value": [1032],
|
|
11166
11196
|
"label": [1],
|
|
11197
|
+
"labelWidth": [8, "label-width"],
|
|
11167
11198
|
"addonLabel": [1, "addon-label"],
|
|
11168
11199
|
"placeholder": [1],
|
|
11169
11200
|
"disabled": [4],
|
|
@@ -11399,7 +11430,7 @@ class SdPortal {
|
|
|
11399
11430
|
parentRef = null;
|
|
11400
11431
|
offset = [0, 4];
|
|
11401
11432
|
viewportPadding = 0;
|
|
11402
|
-
zIndex =
|
|
11433
|
+
zIndex = 10000;
|
|
11403
11434
|
open = false;
|
|
11404
11435
|
close;
|
|
11405
11436
|
container;
|
|
@@ -11445,7 +11476,7 @@ class SdPortal {
|
|
|
11445
11476
|
position: 'absolute',
|
|
11446
11477
|
top: '0',
|
|
11447
11478
|
left: '0',
|
|
11448
|
-
zIndex: (this.zIndex ??
|
|
11479
|
+
zIndex: (this.zIndex ?? 10000).toString(),
|
|
11449
11480
|
opacity: '0',
|
|
11450
11481
|
transition: 'opacity 0.15s ease-out',
|
|
11451
11482
|
boxSizing: 'border-box',
|
|
@@ -11614,7 +11645,7 @@ class SdPortal {
|
|
|
11614
11645
|
this.close.emit();
|
|
11615
11646
|
}
|
|
11616
11647
|
render() {
|
|
11617
|
-
return hAsync("slot", { key: '
|
|
11648
|
+
return hAsync("slot", { key: '7213237baa73430dbf3d01aeb6f7a3e5fe173ecb' });
|
|
11618
11649
|
}
|
|
11619
11650
|
static get watchers() { return {
|
|
11620
11651
|
"open": [{
|
|
@@ -12155,6 +12186,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
12155
12186
|
searchable = false;
|
|
12156
12187
|
// props - label
|
|
12157
12188
|
label = '';
|
|
12189
|
+
labelWidth = '';
|
|
12158
12190
|
addonLabel = '';
|
|
12159
12191
|
icon = undefined;
|
|
12160
12192
|
labelTooltip = '';
|
|
@@ -12273,7 +12305,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
12273
12305
|
}
|
|
12274
12306
|
};
|
|
12275
12307
|
render() {
|
|
12276
|
-
return (hAsync("sd-field", { key: '
|
|
12308
|
+
return (hAsync("sd-field", { key: 'd96961fe4c425c3f0fcb1c2f438c8b70c510b632', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, hAsync("div", { key: '0113ffb76ea79cbe3b77dff85d8186a5b994e7b6', class: {
|
|
12277
12309
|
'sd-select': true,
|
|
12278
12310
|
'sd-select--disabled': this.disabled,
|
|
12279
12311
|
'sd-select--error': !!this.error,
|
|
@@ -12316,6 +12348,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
12316
12348
|
"clearable": [4],
|
|
12317
12349
|
"searchable": [4],
|
|
12318
12350
|
"label": [1],
|
|
12351
|
+
"labelWidth": [8, "label-width"],
|
|
12319
12352
|
"addonLabel": [1, "addon-label"],
|
|
12320
12353
|
"icon": [16],
|
|
12321
12354
|
"labelTooltip": [1, "label-tooltip"],
|
|
@@ -12558,6 +12591,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
12558
12591
|
searchable = false;
|
|
12559
12592
|
// props - label
|
|
12560
12593
|
label = '';
|
|
12594
|
+
labelWidth = '';
|
|
12561
12595
|
addonLabel = '';
|
|
12562
12596
|
icon = undefined;
|
|
12563
12597
|
labelTooltip = '';
|
|
@@ -12805,7 +12839,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
12805
12839
|
});
|
|
12806
12840
|
}
|
|
12807
12841
|
render() {
|
|
12808
|
-
return (hAsync("sd-field", { key: '
|
|
12842
|
+
return (hAsync("sd-field", { key: '1e6a0f9947f5d137bb65844fe666c07b4eefb2f7', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: '62dcd2f37c2eda0e51f2e77de36ece6ab592c4ce', class: {
|
|
12809
12843
|
'sd-select-group': true,
|
|
12810
12844
|
'sd-select-group--open': this.isOpen,
|
|
12811
12845
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -12870,6 +12904,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
12870
12904
|
"clearable": [4],
|
|
12871
12905
|
"searchable": [4],
|
|
12872
12906
|
"label": [1],
|
|
12907
|
+
"labelWidth": [8, "label-width"],
|
|
12873
12908
|
"addonLabel": [1, "addon-label"],
|
|
12874
12909
|
"icon": [16],
|
|
12875
12910
|
"labelTooltip": [1, "label-tooltip"],
|
|
@@ -12929,6 +12964,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
12929
12964
|
useCheckbox = false;
|
|
12930
12965
|
// props - label
|
|
12931
12966
|
label = '';
|
|
12967
|
+
labelWidth = '';
|
|
12932
12968
|
icon = undefined;
|
|
12933
12969
|
labelTooltip = '';
|
|
12934
12970
|
labelTooltipProps = null;
|
|
@@ -13053,7 +13089,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
13053
13089
|
this.handleOptionSelection(option);
|
|
13054
13090
|
};
|
|
13055
13091
|
render() {
|
|
13056
|
-
return (hAsync("sd-field", { key: '
|
|
13092
|
+
return (hAsync("sd-field", { key: 'f5dda40563661955aa194d841ca89628afd496cb', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, hAsync("div", { key: '81541d9adabfea7c3af1c22ed419036f56e1a353', class: {
|
|
13057
13093
|
'sd-select-multiple': true,
|
|
13058
13094
|
'sd-select-multiple--open': this.isOpen,
|
|
13059
13095
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -13100,6 +13136,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
13100
13136
|
"useAll": [4, "use-all"],
|
|
13101
13137
|
"useCheckbox": [4, "use-checkbox"],
|
|
13102
13138
|
"label": [1],
|
|
13139
|
+
"labelWidth": [8, "label-width"],
|
|
13103
13140
|
"icon": [16],
|
|
13104
13141
|
"labelTooltip": [1, "label-tooltip"],
|
|
13105
13142
|
"labelTooltipProps": [16],
|
|
@@ -13150,6 +13187,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
13150
13187
|
allCheckOptionLabel = '전체';
|
|
13151
13188
|
// props - label
|
|
13152
13189
|
label = '';
|
|
13190
|
+
labelWidth = '';
|
|
13153
13191
|
icon = undefined;
|
|
13154
13192
|
labelTooltip = '';
|
|
13155
13193
|
labelTooltipProps = null;
|
|
@@ -13516,7 +13554,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
13516
13554
|
});
|
|
13517
13555
|
}
|
|
13518
13556
|
render() {
|
|
13519
|
-
return (hAsync("sd-field", { key: '
|
|
13557
|
+
return (hAsync("sd-field", { key: 'e7d00571a19a83e8d243d0c4f7433d931d4a2304', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: '8c7288d853fed5bb829f1ef90af5e96a512c11b3', class: {
|
|
13520
13558
|
'sd-select-multiple-group': true,
|
|
13521
13559
|
'sd-select-multiple-group--open': this.isOpen,
|
|
13522
13560
|
'sd-select-multiple-group--disabled': this.disabled,
|
|
@@ -13589,6 +13627,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
13589
13627
|
"allCheckedLabel": [1, "all-checked-label"],
|
|
13590
13628
|
"allCheckOptionLabel": [1, "all-check-option-label"],
|
|
13591
13629
|
"label": [1],
|
|
13630
|
+
"labelWidth": [8, "label-width"],
|
|
13592
13631
|
"icon": [16],
|
|
13593
13632
|
"labelTooltip": [1, "label-tooltip"],
|
|
13594
13633
|
"labelTooltipProps": [16],
|
|
@@ -13844,6 +13883,7 @@ class SdSelectV2 {
|
|
|
13844
13883
|
dropdownHeight = '260px';
|
|
13845
13884
|
disabled = false;
|
|
13846
13885
|
label = '';
|
|
13886
|
+
labelWidth = '';
|
|
13847
13887
|
addonLabel = '';
|
|
13848
13888
|
error = false;
|
|
13849
13889
|
hint = '';
|
|
@@ -14037,13 +14077,13 @@ class SdSelectV2 {
|
|
|
14037
14077
|
this.closeDropdown();
|
|
14038
14078
|
},
|
|
14039
14079
|
};
|
|
14040
|
-
return (hAsync("sd-field", { key: '
|
|
14080
|
+
return (hAsync("sd-field", { key: 'c9f08598c8f9852ab4000f056621dfef238e16de', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
14041
14081
|
this.hovered = true;
|
|
14042
14082
|
}, onMouseLeave: () => {
|
|
14043
14083
|
this.hovered = false;
|
|
14044
|
-
} }, hAsync("div", { key: '
|
|
14084
|
+
} }, hAsync("div", { key: '302103a425963e5d577b01ad179d5af82e6f30b1', class: "sd-select-v2", ref: el => {
|
|
14045
14085
|
this.triggerRef = el;
|
|
14046
|
-
} }, hAsync("sd-select-v2-trigger", { key: '
|
|
14086
|
+
} }, hAsync("sd-select-v2-trigger", { key: 'a22bca400e5d10ee29e569da04d36b9291a1dade', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '0df4ad35bb284298708a0c1e11ce0e3c28d16ed8', ...portalProps }, hAsync("sd-select-v2-listbox", { key: '90c18612d553342be091a30e05194bab91407c76', name: this.name, options: this.options, value: this.value, emitValue: this.emitValue, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
14047
14087
|
}
|
|
14048
14088
|
static get watchers() { return {
|
|
14049
14089
|
"isOpen": [{
|
|
@@ -14063,6 +14103,7 @@ class SdSelectV2 {
|
|
|
14063
14103
|
"dropdownHeight": [1, "dropdown-height"],
|
|
14064
14104
|
"disabled": [4],
|
|
14065
14105
|
"label": [1],
|
|
14106
|
+
"labelWidth": [8, "label-width"],
|
|
14066
14107
|
"addonLabel": [1, "addon-label"],
|
|
14067
14108
|
"error": [1028],
|
|
14068
14109
|
"hint": [1],
|
|
@@ -16103,6 +16144,7 @@ class SdTextarea {
|
|
|
16103
16144
|
width = '';
|
|
16104
16145
|
// props - sd-field
|
|
16105
16146
|
label = '';
|
|
16147
|
+
labelWidth = '';
|
|
16106
16148
|
addonLabel = '';
|
|
16107
16149
|
hint = '';
|
|
16108
16150
|
errorMessage = '';
|
|
@@ -16190,7 +16232,7 @@ class SdTextarea {
|
|
|
16190
16232
|
'--sd-system-size-field-sm-height': 'auto',
|
|
16191
16233
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
16192
16234
|
};
|
|
16193
|
-
return (hAsync("sd-field", { key: '
|
|
16235
|
+
return (hAsync("sd-field", { key: '6b2360f01a356db14659e1ebc53d8c4d8c4f671f', name: this.name, label: this.label, labelWidth: this.labelWidth, 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 }, hAsync("div", { key: 'f43279ee861d3502c9130f1de0c47cba61ad0866', class: "sd-textarea__content" }, hAsync("textarea", { key: '0600b577417019ae36a0daba637168ebc5685220', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
16194
16236
|
}
|
|
16195
16237
|
static get watchers() { return {
|
|
16196
16238
|
"value": [{
|
|
@@ -16217,6 +16259,7 @@ class SdTextarea {
|
|
|
16217
16259
|
"spellcheck": [4],
|
|
16218
16260
|
"width": [8],
|
|
16219
16261
|
"label": [1],
|
|
16262
|
+
"labelWidth": [8, "label-width"],
|
|
16220
16263
|
"addonLabel": [1, "addon-label"],
|
|
16221
16264
|
"hint": [1],
|
|
16222
16265
|
"errorMessage": [1, "error-message"],
|