@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
|
@@ -4,7 +4,7 @@ export class SdFloatingPopover {
|
|
|
4
4
|
to = 'body';
|
|
5
5
|
parentRef = null;
|
|
6
6
|
offset = [0, 0];
|
|
7
|
-
zIndex =
|
|
7
|
+
zIndex = 10000;
|
|
8
8
|
placement = 'bottom';
|
|
9
9
|
open = false;
|
|
10
10
|
close;
|
|
@@ -62,7 +62,7 @@ export class SdFloatingPopover {
|
|
|
62
62
|
this.wrapper = document.createElement('div');
|
|
63
63
|
Object.assign(this.wrapper.style, {
|
|
64
64
|
position: 'absolute',
|
|
65
|
-
zIndex: (this.zIndex ??
|
|
65
|
+
zIndex: (this.zIndex ?? 10000).toString(),
|
|
66
66
|
transition: 'opacity 0.4s',
|
|
67
67
|
top: '-9999px',
|
|
68
68
|
left: '-9999px',
|
|
@@ -144,7 +144,7 @@ export class SdFloatingPopover {
|
|
|
144
144
|
this.close.emit();
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return h("slot", { key: '
|
|
147
|
+
return h("slot", { key: '4dafb853b2a82e541f59056d2fedf08a6fa040ba' });
|
|
148
148
|
}
|
|
149
149
|
static get is() { return "sd-floating-portal"; }
|
|
150
150
|
static get originalStyleUrls() {
|
|
@@ -243,7 +243,7 @@ export class SdFloatingPopover {
|
|
|
243
243
|
"setter": false,
|
|
244
244
|
"reflect": false,
|
|
245
245
|
"attribute": "z-index",
|
|
246
|
-
"defaultValue": "
|
|
246
|
+
"defaultValue": "10000"
|
|
247
247
|
},
|
|
248
248
|
"placement": {
|
|
249
249
|
"type": "string",
|
|
@@ -29,6 +29,7 @@ export class SdInput {
|
|
|
29
29
|
hovered = false;
|
|
30
30
|
// props - label
|
|
31
31
|
label = '';
|
|
32
|
+
labelWidth = '';
|
|
32
33
|
icon = undefined;
|
|
33
34
|
labelTooltip = '';
|
|
34
35
|
labelTooltipProps = null;
|
|
@@ -110,12 +111,12 @@ export class SdInput {
|
|
|
110
111
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
111
112
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
112
113
|
};
|
|
113
|
-
return (h("sd-field", { key: '
|
|
114
|
+
return (h("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 }, h("label", { key: 'e5cbdbc2b233bda57488ead19401d277891301ae', class: "sd-input__content" }, h("slot", { key: 'a327005770df94ef61f2e08071e77407a24b7b5c', name: "prefix" }), h("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 }), h("slot", { key: '532e201860db0709572502aa4275fc9251e1aeb1', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (h("sd-ghost-button", { key: 'cc6132852c65f0597cbe25751c7246b1cdad3096', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
114
115
|
if (this.disabled)
|
|
115
116
|
return;
|
|
116
117
|
this.internalValue = '';
|
|
117
118
|
await this.formField?.sdValidate();
|
|
118
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
119
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: 'fd3d567346cf5771ec28c73f15cdf0db15835766', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
|
|
119
120
|
if (this.disabled)
|
|
120
121
|
return;
|
|
121
122
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -641,6 +642,26 @@ export class SdInput {
|
|
|
641
642
|
"attribute": "label",
|
|
642
643
|
"defaultValue": "''"
|
|
643
644
|
},
|
|
645
|
+
"labelWidth": {
|
|
646
|
+
"type": "any",
|
|
647
|
+
"mutable": false,
|
|
648
|
+
"complexType": {
|
|
649
|
+
"original": "string | number",
|
|
650
|
+
"resolved": "number | string",
|
|
651
|
+
"references": {}
|
|
652
|
+
},
|
|
653
|
+
"required": false,
|
|
654
|
+
"optional": false,
|
|
655
|
+
"docs": {
|
|
656
|
+
"tags": [],
|
|
657
|
+
"text": ""
|
|
658
|
+
},
|
|
659
|
+
"getter": false,
|
|
660
|
+
"setter": false,
|
|
661
|
+
"reflect": false,
|
|
662
|
+
"attribute": "label-width",
|
|
663
|
+
"defaultValue": "''"
|
|
664
|
+
},
|
|
644
665
|
"icon": {
|
|
645
666
|
"type": "unknown",
|
|
646
667
|
"mutable": false,
|
|
@@ -11,6 +11,7 @@ export class SdNumberInput {
|
|
|
11
11
|
useDecimal = false;
|
|
12
12
|
value = null;
|
|
13
13
|
label;
|
|
14
|
+
labelWidth = '';
|
|
14
15
|
addonLabel = '';
|
|
15
16
|
placeholder = '입력해 주세요.';
|
|
16
17
|
disabled = false;
|
|
@@ -270,12 +271,12 @@ export class SdNumberInput {
|
|
|
270
271
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
271
272
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
272
273
|
};
|
|
273
|
-
return (h("sd-field", { key: '
|
|
274
|
+
return (h("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 }, h("div", { key: '0f9b5a0b966c7d51d5913c61a585ff789fa4973f', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'b037ee3062253bf229f9639dd04c7475657fabb6', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '39a9f73a15008a481e758e663e027cd4f6454146', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
274
275
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
275
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '
|
|
276
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '050334ce25bb767e7f11dca886d4aeecaa1ed3dc', class: "sd-number-input__prefix" }, this.inputPrefix)), h("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: {
|
|
276
277
|
textAlign: this.useButton ? 'center' : 'right',
|
|
277
278
|
...this.inputStyle,
|
|
278
|
-
} }), this.inputSuffix && (h("span", { key: '
|
|
279
|
+
} }), this.inputSuffix && (h("span", { key: '845202622b3377add18782d96d0af0c49caf95ec', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: '208c976c1b755bec0cd7efb5ceacb3e07dce3a7d', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'fe9848c8f044d01378dc183a80d3f81eb56a67f9', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
279
280
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
280
281
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
281
282
|
}
|
|
@@ -458,6 +459,26 @@ export class SdNumberInput {
|
|
|
458
459
|
"reflect": false,
|
|
459
460
|
"attribute": "label"
|
|
460
461
|
},
|
|
462
|
+
"labelWidth": {
|
|
463
|
+
"type": "any",
|
|
464
|
+
"mutable": false,
|
|
465
|
+
"complexType": {
|
|
466
|
+
"original": "string | number",
|
|
467
|
+
"resolved": "number | string",
|
|
468
|
+
"references": {}
|
|
469
|
+
},
|
|
470
|
+
"required": false,
|
|
471
|
+
"optional": false,
|
|
472
|
+
"docs": {
|
|
473
|
+
"tags": [],
|
|
474
|
+
"text": ""
|
|
475
|
+
},
|
|
476
|
+
"getter": false,
|
|
477
|
+
"setter": false,
|
|
478
|
+
"reflect": false,
|
|
479
|
+
"attribute": "label-width",
|
|
480
|
+
"defaultValue": "''"
|
|
481
|
+
},
|
|
461
482
|
"addonLabel": {
|
|
462
483
|
"type": "string",
|
|
463
484
|
"mutable": false,
|
|
@@ -5,7 +5,7 @@ export class SdPortal {
|
|
|
5
5
|
parentRef = null;
|
|
6
6
|
offset = [0, 4];
|
|
7
7
|
viewportPadding = 0;
|
|
8
|
-
zIndex =
|
|
8
|
+
zIndex = 10000;
|
|
9
9
|
open = false;
|
|
10
10
|
close;
|
|
11
11
|
container;
|
|
@@ -51,7 +51,7 @@ export class SdPortal {
|
|
|
51
51
|
position: 'absolute',
|
|
52
52
|
top: '0',
|
|
53
53
|
left: '0',
|
|
54
|
-
zIndex: (this.zIndex ??
|
|
54
|
+
zIndex: (this.zIndex ?? 10000).toString(),
|
|
55
55
|
opacity: '0',
|
|
56
56
|
transition: 'opacity 0.15s ease-out',
|
|
57
57
|
boxSizing: 'border-box',
|
|
@@ -220,7 +220,7 @@ export class SdPortal {
|
|
|
220
220
|
this.close.emit();
|
|
221
221
|
}
|
|
222
222
|
render() {
|
|
223
|
-
return h("slot", { key: '
|
|
223
|
+
return h("slot", { key: '7213237baa73430dbf3d01aeb6f7a3e5fe173ecb' });
|
|
224
224
|
}
|
|
225
225
|
static get is() { return "sd-portal"; }
|
|
226
226
|
static get properties() {
|
|
@@ -329,7 +329,7 @@ export class SdPortal {
|
|
|
329
329
|
"setter": false,
|
|
330
330
|
"reflect": false,
|
|
331
331
|
"attribute": "z-index",
|
|
332
|
-
"defaultValue": "
|
|
332
|
+
"defaultValue": "10000"
|
|
333
333
|
},
|
|
334
334
|
"open": {
|
|
335
335
|
"type": "boolean",
|
|
@@ -23,6 +23,7 @@ export class SdSelect extends BaseDropdownEvent {
|
|
|
23
23
|
searchable = false;
|
|
24
24
|
// props - label
|
|
25
25
|
label = '';
|
|
26
|
+
labelWidth = '';
|
|
26
27
|
addonLabel = '';
|
|
27
28
|
icon = undefined;
|
|
28
29
|
labelTooltip = '';
|
|
@@ -141,7 +142,7 @@ export class SdSelect extends BaseDropdownEvent {
|
|
|
141
142
|
}
|
|
142
143
|
};
|
|
143
144
|
render() {
|
|
144
|
-
return (h("sd-field", { key: '
|
|
145
|
+
return (h("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) }, h("div", { key: '0113ffb76ea79cbe3b77dff85d8186a5b994e7b6', class: {
|
|
145
146
|
'sd-select': true,
|
|
146
147
|
'sd-select--disabled': this.disabled,
|
|
147
148
|
'sd-select--error': !!this.error,
|
|
@@ -400,6 +401,26 @@ export class SdSelect extends BaseDropdownEvent {
|
|
|
400
401
|
"attribute": "label",
|
|
401
402
|
"defaultValue": "''"
|
|
402
403
|
},
|
|
404
|
+
"labelWidth": {
|
|
405
|
+
"type": "any",
|
|
406
|
+
"mutable": false,
|
|
407
|
+
"complexType": {
|
|
408
|
+
"original": "string | number",
|
|
409
|
+
"resolved": "number | string",
|
|
410
|
+
"references": {}
|
|
411
|
+
},
|
|
412
|
+
"required": false,
|
|
413
|
+
"optional": false,
|
|
414
|
+
"docs": {
|
|
415
|
+
"tags": [],
|
|
416
|
+
"text": ""
|
|
417
|
+
},
|
|
418
|
+
"getter": false,
|
|
419
|
+
"setter": false,
|
|
420
|
+
"reflect": false,
|
|
421
|
+
"attribute": "label-width",
|
|
422
|
+
"defaultValue": "''"
|
|
423
|
+
},
|
|
403
424
|
"addonLabel": {
|
|
404
425
|
"type": "string",
|
|
405
426
|
"mutable": false,
|
|
@@ -23,6 +23,7 @@ export class SdSelectGroup extends BaseDropdownEvent {
|
|
|
23
23
|
searchable = false;
|
|
24
24
|
// props - label
|
|
25
25
|
label = '';
|
|
26
|
+
labelWidth = '';
|
|
26
27
|
addonLabel = '';
|
|
27
28
|
icon = undefined;
|
|
28
29
|
labelTooltip = '';
|
|
@@ -270,7 +271,7 @@ export class SdSelectGroup extends BaseDropdownEvent {
|
|
|
270
271
|
});
|
|
271
272
|
}
|
|
272
273
|
render() {
|
|
273
|
-
return (h("sd-field", { key: '
|
|
274
|
+
return (h("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' } }, h("div", { key: '62dcd2f37c2eda0e51f2e77de36ece6ab592c4ce', class: {
|
|
274
275
|
'sd-select-group': true,
|
|
275
276
|
'sd-select-group--open': this.isOpen,
|
|
276
277
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -543,6 +544,26 @@ export class SdSelectGroup extends BaseDropdownEvent {
|
|
|
543
544
|
"attribute": "label",
|
|
544
545
|
"defaultValue": "''"
|
|
545
546
|
},
|
|
547
|
+
"labelWidth": {
|
|
548
|
+
"type": "any",
|
|
549
|
+
"mutable": false,
|
|
550
|
+
"complexType": {
|
|
551
|
+
"original": "string | number",
|
|
552
|
+
"resolved": "number | string",
|
|
553
|
+
"references": {}
|
|
554
|
+
},
|
|
555
|
+
"required": false,
|
|
556
|
+
"optional": false,
|
|
557
|
+
"docs": {
|
|
558
|
+
"tags": [],
|
|
559
|
+
"text": ""
|
|
560
|
+
},
|
|
561
|
+
"getter": false,
|
|
562
|
+
"setter": false,
|
|
563
|
+
"reflect": false,
|
|
564
|
+
"attribute": "label-width",
|
|
565
|
+
"defaultValue": "''"
|
|
566
|
+
},
|
|
546
567
|
"addonLabel": {
|
|
547
568
|
"type": "string",
|
|
548
569
|
"mutable": false,
|
|
@@ -26,6 +26,7 @@ export class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
26
26
|
useCheckbox = false;
|
|
27
27
|
// props - label
|
|
28
28
|
label = '';
|
|
29
|
+
labelWidth = '';
|
|
29
30
|
icon = undefined;
|
|
30
31
|
labelTooltip = '';
|
|
31
32
|
labelTooltipProps = null;
|
|
@@ -150,7 +151,7 @@ export class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
150
151
|
this.handleOptionSelection(option);
|
|
151
152
|
};
|
|
152
153
|
render() {
|
|
153
|
-
return (h("sd-field", { key: '
|
|
154
|
+
return (h("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) }, h("div", { key: '81541d9adabfea7c3af1c22ed419036f56e1a353', class: {
|
|
154
155
|
'sd-select-multiple': true,
|
|
155
156
|
'sd-select-multiple--open': this.isOpen,
|
|
156
157
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -457,6 +458,26 @@ export class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
457
458
|
"attribute": "label",
|
|
458
459
|
"defaultValue": "''"
|
|
459
460
|
},
|
|
461
|
+
"labelWidth": {
|
|
462
|
+
"type": "any",
|
|
463
|
+
"mutable": false,
|
|
464
|
+
"complexType": {
|
|
465
|
+
"original": "string | number",
|
|
466
|
+
"resolved": "number | string",
|
|
467
|
+
"references": {}
|
|
468
|
+
},
|
|
469
|
+
"required": false,
|
|
470
|
+
"optional": false,
|
|
471
|
+
"docs": {
|
|
472
|
+
"tags": [],
|
|
473
|
+
"text": ""
|
|
474
|
+
},
|
|
475
|
+
"getter": false,
|
|
476
|
+
"setter": false,
|
|
477
|
+
"reflect": false,
|
|
478
|
+
"attribute": "label-width",
|
|
479
|
+
"defaultValue": "''"
|
|
480
|
+
},
|
|
460
481
|
"icon": {
|
|
461
482
|
"type": "unknown",
|
|
462
483
|
"mutable": false,
|
|
@@ -26,6 +26,7 @@ export class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
26
26
|
allCheckOptionLabel = '전체';
|
|
27
27
|
// props - label
|
|
28
28
|
label = '';
|
|
29
|
+
labelWidth = '';
|
|
29
30
|
icon = undefined;
|
|
30
31
|
labelTooltip = '';
|
|
31
32
|
labelTooltipProps = null;
|
|
@@ -392,7 +393,7 @@ export class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
392
393
|
});
|
|
393
394
|
}
|
|
394
395
|
render() {
|
|
395
|
-
return (h("sd-field", { key: '
|
|
396
|
+
return (h("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' } }, h("div", { key: '8c7288d853fed5bb829f1ef90af5e96a512c11b3', class: {
|
|
396
397
|
'sd-select-multiple-group': true,
|
|
397
398
|
'sd-select-multiple-group--open': this.isOpen,
|
|
398
399
|
'sd-select-multiple-group--disabled': this.disabled,
|
|
@@ -730,6 +731,26 @@ export class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
730
731
|
"attribute": "label",
|
|
731
732
|
"defaultValue": "''"
|
|
732
733
|
},
|
|
734
|
+
"labelWidth": {
|
|
735
|
+
"type": "any",
|
|
736
|
+
"mutable": false,
|
|
737
|
+
"complexType": {
|
|
738
|
+
"original": "string | number",
|
|
739
|
+
"resolved": "number | string",
|
|
740
|
+
"references": {}
|
|
741
|
+
},
|
|
742
|
+
"required": false,
|
|
743
|
+
"optional": false,
|
|
744
|
+
"docs": {
|
|
745
|
+
"tags": [],
|
|
746
|
+
"text": ""
|
|
747
|
+
},
|
|
748
|
+
"getter": false,
|
|
749
|
+
"setter": false,
|
|
750
|
+
"reflect": false,
|
|
751
|
+
"attribute": "label-width",
|
|
752
|
+
"defaultValue": "''"
|
|
753
|
+
},
|
|
733
754
|
"icon": {
|
|
734
755
|
"type": "unknown",
|
|
735
756
|
"mutable": false,
|
|
@@ -13,6 +13,7 @@ export class SdSelectV2 {
|
|
|
13
13
|
dropdownHeight = '260px';
|
|
14
14
|
disabled = false;
|
|
15
15
|
label = '';
|
|
16
|
+
labelWidth = '';
|
|
16
17
|
addonLabel = '';
|
|
17
18
|
error = false;
|
|
18
19
|
hint = '';
|
|
@@ -206,13 +207,13 @@ export class SdSelectV2 {
|
|
|
206
207
|
this.closeDropdown();
|
|
207
208
|
},
|
|
208
209
|
};
|
|
209
|
-
return (h("sd-field", { key: '
|
|
210
|
+
return (h("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: () => {
|
|
210
211
|
this.hovered = true;
|
|
211
212
|
}, onMouseLeave: () => {
|
|
212
213
|
this.hovered = false;
|
|
213
|
-
} }, h("div", { key: '
|
|
214
|
+
} }, h("div", { key: '302103a425963e5d577b01ad179d5af82e6f30b1', class: "sd-select-v2", ref: el => {
|
|
214
215
|
this.triggerRef = el;
|
|
215
|
-
} }, h("sd-select-v2-trigger", { key: '
|
|
216
|
+
} }, h("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) && (h("sd-portal", { key: '0df4ad35bb284298708a0c1e11ce0e3c28d16ed8', ...portalProps }, h("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) })))));
|
|
216
217
|
}
|
|
217
218
|
static get is() { return "sd-select-v2"; }
|
|
218
219
|
static get originalStyleUrls() {
|
|
@@ -406,6 +407,26 @@ export class SdSelectV2 {
|
|
|
406
407
|
"attribute": "label",
|
|
407
408
|
"defaultValue": "''"
|
|
408
409
|
},
|
|
410
|
+
"labelWidth": {
|
|
411
|
+
"type": "any",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "string | number",
|
|
415
|
+
"resolved": "number | string",
|
|
416
|
+
"references": {}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": false,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": ""
|
|
423
|
+
},
|
|
424
|
+
"getter": false,
|
|
425
|
+
"setter": false,
|
|
426
|
+
"reflect": false,
|
|
427
|
+
"attribute": "label-width",
|
|
428
|
+
"defaultValue": "''"
|
|
429
|
+
},
|
|
409
430
|
"addonLabel": {
|
|
410
431
|
"type": "string",
|
|
411
432
|
"mutable": false,
|
|
@@ -16,6 +16,7 @@ export class SdTextarea {
|
|
|
16
16
|
width = '';
|
|
17
17
|
// props - sd-field
|
|
18
18
|
label = '';
|
|
19
|
+
labelWidth = '';
|
|
19
20
|
addonLabel = '';
|
|
20
21
|
hint = '';
|
|
21
22
|
errorMessage = '';
|
|
@@ -103,7 +104,7 @@ export class SdTextarea {
|
|
|
103
104
|
'--sd-system-size-field-sm-height': 'auto',
|
|
104
105
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
105
106
|
};
|
|
106
|
-
return (h("sd-field", { key: '
|
|
107
|
+
return (h("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 }, h("div", { key: 'f43279ee861d3502c9130f1de0c47cba61ad0866', class: "sd-textarea__content" }, h("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 }))));
|
|
107
108
|
}
|
|
108
109
|
static get is() { return "sd-textarea"; }
|
|
109
110
|
static get originalStyleUrls() {
|
|
@@ -354,6 +355,26 @@ export class SdTextarea {
|
|
|
354
355
|
"attribute": "label",
|
|
355
356
|
"defaultValue": "''"
|
|
356
357
|
},
|
|
358
|
+
"labelWidth": {
|
|
359
|
+
"type": "any",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "string | number",
|
|
363
|
+
"resolved": "number | string",
|
|
364
|
+
"references": {}
|
|
365
|
+
},
|
|
366
|
+
"required": false,
|
|
367
|
+
"optional": false,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [],
|
|
370
|
+
"text": ""
|
|
371
|
+
},
|
|
372
|
+
"getter": false,
|
|
373
|
+
"setter": false,
|
|
374
|
+
"reflect": false,
|
|
375
|
+
"attribute": "label-width",
|
|
376
|
+
"defaultValue": "''"
|
|
377
|
+
},
|
|
357
378
|
"addonLabel": {
|
|
358
379
|
"type": "string",
|
|
359
380
|
"mutable": false,
|
|
@@ -140,9 +140,9 @@ export function _createSdModalRef() {
|
|
|
140
140
|
return new ModalDialogRefImpl('', container);
|
|
141
141
|
}
|
|
142
142
|
export function _attachSdModalWithRef(modalRef, input) {
|
|
143
|
-
const { component,
|
|
143
|
+
const { component, persistent } = input;
|
|
144
144
|
const container = getContainer();
|
|
145
|
-
const options = { persistent
|
|
145
|
+
const options = { persistent };
|
|
146
146
|
whenReady(container).then(async () => {
|
|
147
147
|
const id = await container.createCustom(component, options, modalRef);
|
|
148
148
|
modalRef._setId(id);
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-DuYi4aqj.js";let n=null;function t(n,t){t&&(t.position&&n.setAttribute("position",t.position),null!=t.maxVisible&&n.setAttribute("max-visible",t.maxVisible+""),null!=t.defaultDuration&&n.setAttribute("default-duration",t.defaultDuration+""),null!=t.zIndex&&n.setAttribute("z-index",t.zIndex+""))}function e(e){return n&&document.body.contains(n)?(t(n,e),n):(n=document.createElement("sd-toast-container"),t(n,e),document.body.appendChild(n),n)}function o(n){return"function"==typeof n.create?Promise.resolve():new Promise((t=>{const e=()=>{"function"==typeof n.create?t():requestAnimationFrame(e)};requestAnimationFrame(e)}))}const i={async create(n,t,s){const{globalOptions:i,...r}=s??{},c=e(i);return await o(c),c.create({message:n,type:t,...r})},async dismiss(t){if(n)return await o(n),n.dismiss(t)},async dismissAll(){if(n)return await o(n),n.dismissAll()},configure(n){e(n)}},c="sd-modal-container",u={ok:"confirm",cancel:"cancel",close:"close"};class d{modalId;okFn;cancelFn;closeFn;clickFn;dismissedFn;containerRef;pendingActions=[];dismissRequested=!1;constructor(n,t){this.modalId=n,this.containerRef=t}onOk(n){return this.okFn=n,this}onCancel(n){return this.cancelFn=n,this}onClose(n){return this.closeFn=n,this}onClick(n){return this.clickFn=n,this}onDismissed(n){return this.dismissedFn=n,this}update(n){return this.runOrQueue((()=>{this.containerRef.update?.(this.modalId,n)})),this}ok(){return this.dismiss("ok")}cancel(){return this.dismiss("cancel")}close(){return this.dismiss("close")}dismiss(n="close"){if(this.dismissRequested)return this;this.dismissRequested=!0;const t=u[n];return this.runOrQueue((()=>{this.containerRef.dismissById?.(this.modalId,t)})),this}_triggerOk(){this.okFn?.()}_triggerCancel(){this.cancelFn?.()}_triggerClose(){this.closeFn?.()}_triggerClick(){this.clickFn?.()}_triggerDismissed(){this.dismissedFn?.()}_setId(n){this.modalId=n;const t=[...this.pendingActions];this.pendingActions=[],t.forEach((n=>n()))}runOrQueue(n){this.modalId?n():this.pendingActions.push(n)}}let l=null;function m(n,t){t&&null!=t.zIndex&&n.style.setProperty("--sd-modal-container-z-index",t.zIndex+"")}function f(n){return function(){if("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof customElements)throw Error("[sdModal] Browser APIs are unavailable. Use `sdModal` only on the client.")}(),function(){if(!customElements.get(c))throw Error("[sdModal] `sd-modal-container` is not registered. Call `defineCustomElements(window)` before using `sdModal`.")}(),l&&document.body.contains(l)?(m(l,n),l):(l=document.createElement(c),m(l,n),document.body.appendChild(l),l)}async function h(n){if(await customElements.whenDefined(c),"function"==typeof n.open)return Promise.resolve();throw Error("[sdModal] `sd-modal-container` is registered but not ready to open dialogs.")}function w(){const n=f();return new d("",n)}function p(n,t){const{component:e,
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-DuYi4aqj.js";let n=null;function t(n,t){t&&(t.position&&n.setAttribute("position",t.position),null!=t.maxVisible&&n.setAttribute("max-visible",t.maxVisible+""),null!=t.defaultDuration&&n.setAttribute("default-duration",t.defaultDuration+""),null!=t.zIndex&&n.setAttribute("z-index",t.zIndex+""))}function e(e){return n&&document.body.contains(n)?(t(n,e),n):(n=document.createElement("sd-toast-container"),t(n,e),document.body.appendChild(n),n)}function o(n){return"function"==typeof n.create?Promise.resolve():new Promise((t=>{const e=()=>{"function"==typeof n.create?t():requestAnimationFrame(e)};requestAnimationFrame(e)}))}const i={async create(n,t,s){const{globalOptions:i,...r}=s??{},c=e(i);return await o(c),c.create({message:n,type:t,...r})},async dismiss(t){if(n)return await o(n),n.dismiss(t)},async dismissAll(){if(n)return await o(n),n.dismissAll()},configure(n){e(n)}},c="sd-modal-container",u={ok:"confirm",cancel:"cancel",close:"close"};class d{modalId;okFn;cancelFn;closeFn;clickFn;dismissedFn;containerRef;pendingActions=[];dismissRequested=!1;constructor(n,t){this.modalId=n,this.containerRef=t}onOk(n){return this.okFn=n,this}onCancel(n){return this.cancelFn=n,this}onClose(n){return this.closeFn=n,this}onClick(n){return this.clickFn=n,this}onDismissed(n){return this.dismissedFn=n,this}update(n){return this.runOrQueue((()=>{this.containerRef.update?.(this.modalId,n)})),this}ok(){return this.dismiss("ok")}cancel(){return this.dismiss("cancel")}close(){return this.dismiss("close")}dismiss(n="close"){if(this.dismissRequested)return this;this.dismissRequested=!0;const t=u[n];return this.runOrQueue((()=>{this.containerRef.dismissById?.(this.modalId,t)})),this}_triggerOk(){this.okFn?.()}_triggerCancel(){this.cancelFn?.()}_triggerClose(){this.closeFn?.()}_triggerClick(){this.clickFn?.()}_triggerDismissed(){this.dismissedFn?.()}_setId(n){this.modalId=n;const t=[...this.pendingActions];this.pendingActions=[],t.forEach((n=>n()))}runOrQueue(n){this.modalId?n():this.pendingActions.push(n)}}let l=null;function m(n,t){t&&null!=t.zIndex&&n.style.setProperty("--sd-modal-container-z-index",t.zIndex+"")}function f(n){return function(){if("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof customElements)throw Error("[sdModal] Browser APIs are unavailable. Use `sdModal` only on the client.")}(),function(){if(!customElements.get(c))throw Error("[sdModal] `sd-modal-container` is not registered. Call `defineCustomElements(window)` before using `sdModal`.")}(),l&&document.body.contains(l)?(m(l,n),l):(l=document.createElement(c),m(l,n),document.body.appendChild(l),l)}async function h(n){if(await customElements.whenDefined(c),"function"==typeof n.open)return Promise.resolve();throw Error("[sdModal] `sd-modal-container` is registered but not ready to open dialogs.")}function w(){const n=f();return new d("",n)}function p(n,t){const{component:e,persistent:s}=t,o=f(),i={persistent:s};h(o).then((async()=>{const t=await o.createCustom(e,i,n);n._setId(t)}))}const y={confirm(n){const t=f(),e=new d("",t);return h(t).then((async()=>{const s=await t.open(n,e);e._setId(s)})),e},loading(n={}){const t=f(),e=new d("",t);return h(t).then((async()=>{const s=await t.openLoading(n,e);e._setId(s)})),e},create(n){const t=w();return p(t,n),t},configure(n){f(n)}},E="sd-loading-container";let C=null;async function k(n){const t=(function(){if("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof customElements)throw Error("[sdLoading] Browser APIs are unavailable. Use `sdLoading` only on the client.")}(),function(){if(!customElements.get(E))throw Error("[sdLoading] `sd-loading-container` is not registered. Call `defineCustomElements(window)` before using `sdLoading`.")}(),C&&document.body.contains(C)||(C=document.createElement(E),document.body.appendChild(C)),C);await customElements.whenDefined(E),n(t)}const A={show(n={}){k((t=>{t.show?.(n)}))},hide(){C&&k((n=>{n.hide?.()}))}};export{p as _attachSdModalWithRef,w as _createSdModalRef,A as sdLoading,y as sdModal,i as sdToast}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as o,t as i}from"./p-DuYi4aqj.js";import{d}from"./p-BLC3AWW8.js";import{d as n}from"./p-TMuoVuhE.js";import{d as r}from"./p-
|
|
1
|
+
import{p as t,H as e,c as s,h as o,t as i}from"./p-DuYi4aqj.js";import{d}from"./p-BLC3AWW8.js";import{d as n}from"./p-TMuoVuhE.js";import{d as r}from"./p-HsTw_qYU.js";import{d as a}from"./p-DXtyg5eK.js";import{d as c}from"./p-B1S4ybd6.js";import{d as h}from"./p-CGssy8eb.js";import{d as l}from"./p-Cpg2hVm3.js";import{d as p}from"./p-Bh548Ckv.js";import{d as m}from"./p-CAeSM6Ov.js";import{d as u}from"./p-Cc7ZBscb.js";const f=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.optionClick=s(this,"sdOptionClick",7),this.optionFiltered=s(this,"sdOptionFiltered",7),this.scroll=s(this,"sdScroll",7)}itemIndex;value=null;options;width;dropdownHeight;searchable;optionPlaceholder;useCheckbox=!1;useAll=!1;filteredOptions=[];searchText=null;isScrolled=!1;isDropdownReady=!1;optionClick;optionFiltered;scroll;filteredOptionsChanged(t){this.optionFiltered.emit(t)}searchTextChanged(){this.filterOptions()}async itemIndexChanged(t,e){if(this.searchable){const t=await this.getNativeInputElement();if(-1===this.itemIndex)return void t?.focus({preventScroll:!0});t?.matches(":focus")&&t?.blur()}const s=this.dropdownRef?.querySelectorAll(".sd-select-dropdown sd-select-option")||[],o=s?.[this.itemIndex];o&&(this.optionRef=o,await this.optionRef.sdIsDisabled()?t>e?this.itemIndex++:this.itemIndex--:this.scrollToOption(o))}componentWillLoad(){this.filteredOptions=this.options,requestAnimationFrame((()=>{requestAnimationFrame((async()=>{const t=this.getSelectedOption();if(t){const e=Array.isArray(t)?this.options.indexOf(t[0]):this.options.indexOf(t),s=Array.from(this.dropdownRef?.querySelectorAll("sd-select-option")||[]),o=Math.min((this.useAll?e+1:e)+4,s.length-1),i=s?.[o];i&&this.scrollToOption(i,"instant")}if(this.isDropdownReady=!0,this.searchable){const t=await this.getNativeInputElement();t&&requestAnimationFrame((()=>{t.focus({preventScroll:!0})}))}}))}))}dropdownRef;searchRef;optionRef;get dropdownSize(){return{"--select-dropdown-width":this.width||"200px","--select-dropdown-height":this.dropdownHeight||"260px"}}filterOptions(){this.filteredOptions=this.searchText&&""!==this.searchText.trim()?this.options.filter((t=>t.label.toLowerCase().includes(this.searchText.toLowerCase()))):this.options}getSelectedOption(){return"object"!=typeof this.value?this.options.find((t=>t.value===this.value)):this.options.filter((t=>this.value?.includes(t)))}isOptionSelected(t){return Array.isArray(this.value)?this.value.some((e=>e.value===t)):t===this.value}async getNativeInputElement(){return this.searchRef?this.searchRef.sdGetNativeElement():null}scrollToOption(t,e="smooth"){if(!this.dropdownRef||!t)return;const s=this.dropdownRef,o=t.offsetTop,i=t.offsetHeight,d=s.scrollTop,n=s.clientHeight,r=s.querySelector(".sd-select-search-input"),a=r?r.offsetHeight:0,c=d+n;o<d+a?s.scrollTo({top:o-a,behavior:e}):o+i>c&&s.scrollTo({top:o+i-n+a,behavior:e})}handleDropdownScroll=t=>{this.isScrolled=t.target.scrollTop>0};render(){return o("div",{key:"fdfad8ab2f1f6a26da8ad0ca0dcd17bfed7dcf9d",class:{"sd-select-dropdown":!0,"sd-select-dropdown--ready":this.isDropdownReady},style:this.dropdownSize,onScroll:this.handleDropdownScroll,ref:t=>this.dropdownRef=t},this.searchable&&o("sd-select-search-input",{key:"74cfba89d85a980c6c8074150bdba91387b9c115",ref:t=>this.searchRef=t,isScrolled:this.isScrolled,searchText:this.searchText,onSdSearchInput:t=>this.searchText=t.detail||"",onSdSearchFocus:()=>this.itemIndex=-1}),this.filteredOptions.length>0?this.filteredOptions.map(((t,e)=>o("slot",{name:`option-${t.value}`},o("sd-select-option",{option:t,index:e,isSelected:this.isOptionSelected(t.value),isFocused:e===this.itemIndex,onOptionClick:({detail:t})=>this.optionClick.emit(t),useCheckbox:this.useCheckbox})))):o("slot",{name:"option-placeholder"},o("div",{class:"sd-select-option-placeholder"},this.optionPlaceholder)))}static get watchers(){return{filteredOptions:[{filteredOptionsChanged:0}],searchText:[{searchTextChanged:0}],itemIndex:[{itemIndexChanged:0}]}}static get style(){return".sd-select-dropdown .sd-select-option-placeholder{height:48px;display:flex;align-items:center;padding:8px 16px;font-size:12px;line-height:0;text-align:left;color:#888888}.sd-select-dropdown{overflow:auto;min-width:fit-content;width:var(--select-dropdown-width, 200px);max-height:var(--select-dropdown-height, 260px);padding-bottom:2px;background-color:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);border-radius:4px;overflow-y:auto;color:#333333;display:flex;flex-direction:column;opacity:0.5;transition:opacity 0.15s ease-in}.sd-select-dropdown--ready{opacity:1}"}},[772,"sd-select-dropdown",{itemIndex:[1026,"item-index"],value:[8],options:[16],width:[1],dropdownHeight:[1,"dropdown-height"],searchable:[4],optionPlaceholder:[1,"option-placeholder"],useCheckbox:[4,"use-checkbox"],useAll:[4,"use-all"],filteredOptions:[32],searchText:[32],isScrolled:[32],isDropdownReady:[32]},void 0,{filteredOptions:[{filteredOptionsChanged:0}],searchText:[{searchTextChanged:0}],itemIndex:[{itemIndexChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["sd-select-dropdown","sd-button","sd-checkbox","sd-field","sd-floating-portal","sd-ghost-button","sd-icon","sd-input","sd-select-option","sd-select-search-input","sd-tooltip"].forEach((t=>{switch(t){case"sd-select-dropdown":customElements.get(i(t))||customElements.define(i(t),f);break;case"sd-button":customElements.get(i(t))||d();break;case"sd-checkbox":customElements.get(i(t))||n();break;case"sd-field":customElements.get(i(t))||r();break;case"sd-floating-portal":customElements.get(i(t))||a();break;case"sd-ghost-button":customElements.get(i(t))||c();break;case"sd-icon":customElements.get(i(t))||h();break;case"sd-input":customElements.get(i(t))||l();break;case"sd-select-option":customElements.get(i(t))||p();break;case"sd-select-search-input":customElements.get(i(t))||m();break;case"sd-tooltip":customElements.get(i(t))||u()}}))}export{f as S,x as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as s,H as e,c as t,h as c,t as a}from"./p-DuYi4aqj.js";import{d as o}from"./p-BLC3AWW8.js";import{d as i}from"./p-
|
|
1
|
+
import{p as s,H as e,c as t,h as c,t as a}from"./p-DuYi4aqj.js";import{d as o}from"./p-BLC3AWW8.js";import{d as i}from"./p-HsTw_qYU.js";import{d as r}from"./p-DXtyg5eK.js";import{d}from"./p-B1S4ybd6.js";import{d as n}from"./p-CGssy8eb.js";import{d as l}from"./p-Cpg2hVm3.js";import{d as p}from"./p-Cc7ZBscb.js";const u=s(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.searchInput=t(this,"sdSearchInput",7),this.searchFocus=t(this,"sdSearchFocus",7)}isScrolled=!1;searchText="";searchInput;searchFocus;searchRef;async sdGetNativeElement(){return this.searchRef?this.searchRef.sdGetNativeElement():null}async sdSearchInputFocus(){const s=await this.sdGetNativeElement();s?.focus({preventScroll:!0})}render(){return c("div",{key:"36003b7e0e7d8a3df224b18257d4d6b1712d47da",class:{"sd-select-search-input":!0,"sd-select-search-input--scrolled":!!this.isScrolled},onClick:s=>s.stopPropagation()},c("sd-input",{key:"3b6f80d033a7903cb8e3692a2eebe0ab991e8d68",ref:s=>this.searchRef=s,value:this.searchText,placeholder:"검색",clearable:!0,inputStyle:{"padding-left":"8px"},autofocus:!0,onSdUpdate:s=>{this.searchInput.emit(String(s?.detail))},onSdFocus:()=>{this.searchFocus.emit()},onKeyDown:s=>{"Enter"===s.code&&s.stopPropagation()}},c("sd-icon",{key:"7c453e87ba6b384c5be7bb142697ba43c0d1a20b",name:"search",size:16,color:"#737373",style:{marginRight:"4px"},slot:"prefix"})))}static get style(){return"sd-select-search-input{position:sticky;top:0;display:flex;width:100%;background-color:white;align-items:center}sd-select-search-input .sd-select-search-input{position:sticky;top:0;display:flex;width:100%;background-color:white;align-items:center;padding:4px 8px}sd-select-search-input .sd-select-search-input sd-input{width:100%}sd-select-search-input .sd-select-search-input--scrolled{box-shadow:2px 2px 8px 2px rgba(0, 0, 0, 0.2)}"}},[512,"sd-select-search-input",{isScrolled:[4,"is-scrolled"],searchText:[1,"search-text"],sdGetNativeElement:[64],sdSearchInputFocus:[64]}]);function h(){"undefined"!=typeof customElements&&["sd-select-search-input","sd-button","sd-field","sd-floating-portal","sd-ghost-button","sd-icon","sd-input","sd-tooltip"].forEach((s=>{switch(s){case"sd-select-search-input":customElements.get(a(s))||customElements.define(a(s),u);break;case"sd-button":customElements.get(a(s))||o();break;case"sd-field":customElements.get(a(s))||i();break;case"sd-floating-portal":customElements.get(a(s))||r();break;case"sd-ghost-button":customElements.get(a(s))||d();break;case"sd-icon":customElements.get(a(s))||n();break;case"sd-input":customElements.get(a(s))||l();break;case"sd-tooltip":customElements.get(a(s))||p()}}))}export{u as S,h as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,F as i,t as o}from"./p-DuYi4aqj.js";import{T as n}from"./p-Cpu_hXwN.js";import{d as a}from"./p-BLC3AWW8.js";import{d as l}from"./p-
|
|
1
|
+
import{p as t,H as e,h as s,F as i,t as o}from"./p-DuYi4aqj.js";import{T as n}from"./p-Cpu_hXwN.js";import{d as a}from"./p-BLC3AWW8.js";import{d as l}from"./p-DXtyg5eK.js";import{d as c}from"./p-CGssy8eb.js";var r={bg:"#07284A",content:"#FFFFFF"},d={bg:"#FCEFEF",content:"#FB4444"},h={bg:"#FEF1EA",content:"#FF6B00"},p={bg:"#E6F1FF",content:"#0075FF"};const u={default:{bg:r.bg,content:r.content},danger:{bg:d.bg,content:d.content},warning:{bg:h.bg,content:h.content},accent:{bg:p.bg,content:p.content}},m=t(class t extends e{constructor(t){super(),!1!==t&&this.__registerHost()}get el(){return this}trigger="hover";placement="top";color="#01BB4B";tooltipType="default";icon="helpOutline";iconSize=12;label="";buttonSize="sm";buttonVariant="primary";noHover=!0;sdClass="";showTooltip=!1;slotContentHTML="";buttonEl;menuEl;hideTimeout;closeTimeout;static CLOSE_ANIM_MS=150;show=()=>{this.cancelHideTimer(),this.showTooltip=!0,this.menuEl&&this.menuEl.classList.remove("sd-floating-menu--closing")};hide=()=>{this.menuEl&&this.menuEl.classList.add("sd-floating-menu--closing"),this.closeTimeout=setTimeout((()=>{this.showTooltip=!1}),t.CLOSE_ANIM_MS)};startHideTimer=()=>{this.hideTimeout=setTimeout((()=>this.hide()),100)};cancelHideTimer=()=>{this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=void 0),this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=void 0)};get tooltipOffset(){switch(this.placement??"top"){case"top":return[0,-4];case"bottom":return[0,4];case"left":case"right":return[4,0]}}handleClose=()=>this.hide();componentWillLoad(){this.slotContentHTML=this.el.innerHTML,this.el.replaceChildren(),this.el.classList.toggle("visible",!0)}render(){const t=this.trigger??"hover",e=this.placement??"top",o=this.tooltipType??"default",a=this.icon??"helpOutline",l=this.color??"#01BB4B",c=u[o]??u.default,r=()=>this.showTooltip=!this.showTooltip;return s(i,{key:"097722e57d6a808193e8fc0d48cebc80ee13848a"},s("div",{key:"92c6fd83098faec1cfa405ace12530d0cb408395",class:`sd-tooltip-trigger ${this.sdClass||""}`,..."hover"===t?{onMouseEnter:()=>this.show(),onMouseLeave:()=>this.startHideTimer()}:this.label?{}:{onClick:r}},this.label?s("sd-button",{ref:t=>this.buttonEl=t,label:this.label,icon:a,size:this.buttonSize??"sm",color:l,variant:this.buttonVariant??"primary",class:"sd-tooltip",..."click"===t&&this.label?{onSdClick:r}:{}}):s("sd-icon",{ref:t=>this.buttonEl=t,name:a,size:this.iconSize??12,color:l,class:"sd-tooltip"})),this.showTooltip&&s("sd-floating-portal",{key:"d05d011181a8c183690607c974208e708ccba184",parentRef:this.buttonEl,onSdClose:this.handleClose.bind(this),placement:e,offset:this.tooltipOffset},s("div",{key:"281c3994d52fcd1d6194edd12bd64ac9a42f5e71",ref:t=>this.menuEl=t,class:{"sd-floating-menu":!0,[`sd-floating-menu--${o}`]:!0,[`sd-floating-menu--${e}`]:!0},style:{"--sd-floating-bg":c.bg,"--sd-floating-content":c.content},onMouseEnter:()=>this.show(),onMouseLeave:()=>this.startHideTimer()},s("i",{key:"87374c0a423bc037decdc820e118c65ea7b3f75f",class:`sd-floating-menu__arrow sd-floating-menu__arrow--${e}`},s(n,{key:"9cdd8215849973011a2339ed80bfb2863b1e374e"})),s("div",{key:"4f764958e07a8b2ed0ea093609f5a42d86fa3f3c",class:"sd-floating-menu__content",innerHTML:this.slotContentHTML}))))}static get style(){return"sd-tooltip{visibility:hidden !important;display:inline-flex}sd-tooltip.visible{visibility:visible !important}sd-tooltip .sd-tooltip-trigger{display:inline-flex;position:relative;cursor:pointer;align-items:center;justify-content:center}"}},[512,"sd-tooltip",{trigger:[1],placement:[1],color:[1],tooltipType:[1,"tooltip-type"],icon:[1],iconSize:[2,"icon-size"],label:[1],buttonSize:[1,"button-size"],buttonVariant:[1,"button-variant"],noHover:[4,"no-hover"],sdClass:[1,"sd-class"],showTooltip:[32],slotContentHTML:[32]}]);function f(){"undefined"!=typeof customElements&&["sd-tooltip","sd-button","sd-floating-portal","sd-icon"].forEach((t=>{switch(t){case"sd-tooltip":customElements.get(o(t))||customElements.define(o(t),m);break;case"sd-button":customElements.get(o(t))||a();break;case"sd-floating-portal":customElements.get(o(t))||l();break;case"sd-icon":customElements.get(o(t))||c()}}))}export{m as S,f as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as s,c as i,h as e,t as n}from"./p-DuYi4aqj.js";import{n as o}from"./p-CCwNgVmC.js";import{i as a}from"./p-CJwbBrt5.js";import{d as l}from"./p-BLC3AWW8.js";import{d}from"./p-HsTw_qYU.js";import{d as r}from"./p-DXtyg5eK.js";import{d as u}from"./p-B1S4ybd6.js";import{d as h}from"./p-CGssy8eb.js";import{d as p}from"./p-Cc7ZBscb.js";const c=a.textinput.sm,f=a.textinput.md,b={sm:{height:c.height,paddingX:c.paddingX,gap:c.gap,radius:c.radius,fontSize:c.typography.fontSize,lineHeight:c.typography.lineHeight,fontWeight:c.typography.fontWeight},md:{height:f.height,paddingX:f.paddingX,gap:f.gap,radius:f.radius,fontSize:f.typography.fontSize,lineHeight:f.typography.lineHeight,fontWeight:f.typography.fontWeight}},m={text:a.textinput.text,icon:a.textinput.icon},g=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.input=i(this,"sdUpdate",7),this.focus=i(this,"sdFocus",7),this.blur=i(this,"sdBlur",7)}get host(){return this}value=null;type="text";size="sm";addonLabel="";placeholder="입력해 주세요.";disabled=!1;clearable=!1;width="";rules=[];autoFocus=!1;autocomplete="";maxlength;minlength;inputmode;enterkeyhint;spellcheck=!1;status;hint="";errorMessage="";inputClass="";readonly=!1;error=!1;focused=!1;hovered=!1;label="";labelWidth="";icon=void 0;labelTooltip="";labelTooltipProps=null;inputStyle={};internalValue=null;passwordVisible=!1;nativeEl=void 0;formField;name=o();input;focus;blur;valueChanged(t){this.internalValue=t}internalValueChanged(t){t!==this.value&&(this.value=t,this.input?.emit(this.value))}async sdGetNativeElement(){return this.nativeEl||null}async sdValidate(){this.formField?.sdValidate()}async sdReset(){this.formField?.sdReset()}async sdResetValidate(){this.formField?.sdResetValidation()}async sdFocus(){this.formField?.sdFocus()}componentWillLoad(){this.value&&(this.internalValue=this.value)}componentDidLoad(){this.autoFocus&&this.nativeEl?.focus()}handleInput=t=>{this.internalValue=t.target.value};handleFocus=async(t,s)=>{this.focused="focus"===t,"blur"===t?(this.rules&&this.rules.length>0&&await(this.formField?.sdValidate()),this.blur?.emit(s)):this.focus?.emit(s)};render(){const t=b[this.size]??b.sm;return e("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:t=>this.formField=t,onMouseEnter:()=>this.hovered=!0,onMouseLeave:()=>this.hovered=!1,style:{"--sd-input-font-size":`${t.fontSize}px`,"--sd-input-line-height":`${t.lineHeight}px`,"--sd-input-font-weight":t.fontWeight,"--sd-input-padding-x":`${t.paddingX}px`,"--sd-input-gap":`${t.gap}px`,"--sd-input-text-color":m.text.default,"--sd-input-placeholder-color":m.text.placeholder,"--sd-input-disabled-color":m.text.disabled,"--sd-input-icon-color":m.icon.default,"--sd-system-size-field-sm-height":`${t.height}px`,"--sd-system-radius-field-sm":`${t.radius}px`}},e("label",{key:"e5cbdbc2b233bda57488ead19401d277891301ae",class:"sd-input__content"},e("slot",{key:"a327005770df94ef61f2e08071e77407a24b7b5c",name:"prefix"}),e("input",{key:"36301cd586151b8c607e14715b26fca467f68c13",name:this.name,ref:t=>this.nativeEl=t,class:`sd-input__native ${this.inputClass}`,type:"password"===this.type&&this.passwordVisible?"text":this.type,value:this.internalValue||"",placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,autofocus:this.autoFocus,autocomplete:this.autocomplete||void 0,maxlength:this.maxlength,minlength:this.minlength,inputmode:this.inputmode,enterkeyhint:this.enterkeyhint,spellcheck:this.spellcheck,onInput:this.handleInput,onFocus:t=>this.handleFocus("focus",t),onBlur:t=>this.handleFocus("blur",t),style:this.inputStyle}),e("slot",{key:"532e201860db0709572502aa4275fc9251e1aeb1",name:"suffix"}),this.clearable&&this.internalValue&&!this.disabled&&e("sd-ghost-button",{key:"cc6132852c65f0597cbe25751c7246b1cdad3096",icon:"close",ariaLabel:"close",size:"xxs",disabled:this.disabled,class:"sd-input__clear-icon",onClick:async()=>{this.disabled||(this.internalValue="",await(this.formField?.sdValidate()))}}),"password"===this.type&&e("sd-ghost-button",{key:"fd3d567346cf5771ec28c73f15cdf0db15835766",icon:this.passwordVisible?"visibilityOn":"visibilityOff",ariaLabel:"visibility",size:"xxs",disabled:this.disabled,class:"sd-input__password-icon",onClick:()=>{this.disabled||(this.passwordVisible=!this.passwordVisible)}})))}static get watchers(){return{value:[{valueChanged:0}],internalValue:[{internalValueChanged:0}]}}static get style(){return"sd-icon{display:inline-block;line-height:0}sd-icon .sd-icon--rotate-90{transform:rotate(90deg)}sd-icon .sd-icon--rotate-180{transform:rotate(180deg)}sd-icon .sd-icon--rotate-270{transform:rotate(270deg)}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-text-fill-color:#000;-webkit-box-shadow:0 0 0px 1000px #fff inset;box-shadow:0 0 0px 1000px #fff inset;transition:background-color 5000s ease-in-out 0s}input:autofill,input:autofill:hover,input:autofill:focus,input:autofill:active{-webkit-text-fill-color:#000;-webkit-box-shadow:0 0 0px 1000px #fff inset;box-shadow:0 0 0px 1000px #fff inset;transition:background-color 5000s ease-in-out 0s}sd-input{display:inline-flex}sd-input .sd-input__content{width:100%;height:100%;display:flex;flex-flow:row nowrap;align-items:center;color:var(--sd-input-text-color);font-size:var(--sd-input-font-size);line-height:var(--sd-input-line-height);font-weight:var(--sd-input-font-weight);padding:0 var(--sd-input-padding-x);gap:var(--sd-input-gap)}sd-input .sd-input__content .sd-input__native{width:100%;height:100%;border:none;outline:none;background:transparent;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}sd-input .sd-input__content .sd-input__native[disabled]{cursor:not-allowed;color:var(--sd-input-disabled-color)}sd-input .sd-input__content .sd-input__native[readonly]{color:var(--sd-input-disabled-color)}sd-input .sd-input__content .sd-input__native::placeholder{color:var(--sd-input-placeholder-color)}sd-input .sd-input__content .sd-input__clear-icon,sd-input .sd-input__content .sd-input__password-icon{flex-shrink:0}sd-input .sd-input__content .sd-input__native[disabled]~.sd-input__clear-icon,sd-input .sd-input__content .sd-input__native[disabled]~.sd-input__password-icon{cursor:not-allowed;pointer-events:none}"}},[772,"sd-input",{value:[1032],type:[1],size:[1],addonLabel:[1,"addon-label"],placeholder:[1],disabled:[4],clearable:[4],width:[8],rules:[16],autoFocus:[4,"auto-focus"],autocomplete:[1],maxlength:[2],minlength:[2],inputmode:[1],enterkeyhint:[1],spellcheck:[4],status:[1],hint:[1],errorMessage:[1,"error-message"],inputClass:[1,"input-class"],readonly:[4],error:[1028],focused:[1028],hovered:[1028],label:[1],labelWidth:[8,"label-width"],icon:[16],labelTooltip:[1,"label-tooltip"],labelTooltipProps:[16],inputStyle:[16],internalValue:[32],passwordVisible:[32],sdGetNativeElement:[64],sdValidate:[64],sdReset:[64],sdResetValidate:[64],sdFocus:[64]},void 0,{value:[{valueChanged:0}],internalValue:[{internalValueChanged:0}]}]);function _(){"undefined"!=typeof customElements&&["sd-input","sd-button","sd-field","sd-floating-portal","sd-ghost-button","sd-icon","sd-tooltip"].forEach((t=>{switch(t){case"sd-input":customElements.get(n(t))||customElements.define(n(t),g);break;case"sd-button":customElements.get(n(t))||l();break;case"sd-field":customElements.get(n(t))||d();break;case"sd-floating-portal":customElements.get(n(t))||r();break;case"sd-ghost-button":customElements.get(n(t))||u();break;case"sd-icon":customElements.get(n(t))||h();break;case"sd-tooltip":customElements.get(n(t))||p()}}))}export{g as S,_ as d}
|