@sellmate/design-system 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{sd-button_17.cjs.entry.js → sd-button_18.cjs.entry.js} +283 -15
- package/dist/cjs/sd-modal-card.cjs.entry.js +2 -8
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/components/sd-field/sd-field.js +4 -3
- package/dist/collection/components/sd-field/sd-field.js.map +1 -1
- package/dist/collection/components/sd-modal-card/sd-modal-card.js +5 -12
- package/dist/collection/components/sd-modal-card/sd-modal-card.js.map +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.css +4 -25
- package/dist/collection/components/sd-number-input/sd-number-input.js +186 -27
- package/dist/collection/components/sd-number-input/sd-number-input.js.map +1 -1
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-toggle-button/sd-toggle-button.js +1 -1
- package/dist/components/{p-Bgf0RnXW.js → p-B-8YfRUg.js} +5 -5
- package/dist/components/{p-Bgf0RnXW.js.map → p-B-8YfRUg.js.map} +1 -1
- package/dist/components/{p-SUihbngJ.js → p-C2pN-_wD.js} +6 -5
- package/dist/components/p-C2pN-_wD.js.map +1 -0
- package/dist/components/p-CCwNgVmC.js +16 -0
- package/dist/components/p-CCwNgVmC.js.map +1 -0
- package/dist/components/{p-CYr3YYfa.js → p-CFHNnfIq.js} +7 -7
- package/dist/components/{p-CYr3YYfa.js.map → p-CFHNnfIq.js.map} +1 -1
- package/dist/components/{p-CXyVUgP3.js → p-CkzAorp3.js} +8 -8
- package/dist/components/{p-CXyVUgP3.js.map → p-CkzAorp3.js.map} +1 -1
- package/dist/components/{p-CbEUJ3R6.js → p-D16-dM6f.js} +3 -3
- package/dist/components/{p-CbEUJ3R6.js.map → p-D16-dM6f.js.map} +1 -1
- package/dist/components/{p-wRu9w6Gl.js → p-DUh9r-hn.js} +4 -4
- package/dist/components/{p-wRu9w6Gl.js.map → p-DUh9r-hn.js.map} +1 -1
- package/dist/components/{p-B0HvHSm3.js → p-DjZ8vXCq.js} +9 -8
- package/dist/components/p-DjZ8vXCq.js.map +1 -0
- package/dist/components/{p-CYYaSMIB.js → p-Dv4dN3Y5.js} +3 -3
- package/dist/components/{p-CYYaSMIB.js.map → p-Dv4dN3Y5.js.map} +1 -1
- package/dist/components/{p-DQE5-tOR.js → p-xfqZA_70.js} +5 -16
- package/dist/components/p-xfqZA_70.js.map +1 -0
- package/dist/components/sd-date-picker.js +3 -3
- package/dist/components/sd-date-range-picker.js +3 -3
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-modal-card.js +2 -8
- package/dist/components/sd-modal-card.js.map +1 -1
- package/dist/components/sd-number-input.js +64 -23
- package/dist/components/sd-number-input.js.map +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +2 -2
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-progress.js +2 -2
- package/dist/components/sd-select-dropdown.js +1 -1
- package/dist/components/sd-select-multiple-group.js +5 -5
- package/dist/components/sd-select-multiple.js +7 -7
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select-search-input.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table.js +8 -8
- package/dist/components/sd-textarea.js +2 -2
- package/dist/components/sd-toggle-button.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/p-0a4afc3a.entry.js +2 -0
- package/dist/design-system/p-0a4afc3a.entry.js.map +1 -0
- package/dist/design-system/p-35a79a70.entry.js +2 -0
- package/dist/design-system/p-559728ad.entry.js +2 -0
- package/dist/design-system/p-559728ad.entry.js.map +1 -0
- package/dist/design-system/{p-cb3dd19f.entry.js → p-c77a42a2.entry.js} +2 -2
- package/dist/design-system/{p-1d6dabd7.entry.js → p-d7258320.entry.js} +2 -2
- package/dist/design-system/{p-44af67a6.entry.js → p-e5272c50.entry.js} +2 -2
- package/dist/design-system/{p-1616a1f6.entry.js → p-e6d39e65.entry.js} +2 -2
- package/dist/design-system/{p-cb502581.entry.js → p-ee96032f.entry.js} +2 -2
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{sd-button_17.entry.js → sd-button_18.entry.js} +283 -16
- package/dist/esm/sd-modal-card.entry.js +2 -8
- package/dist/esm/sd-modal-card.entry.js.map +1 -1
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-select-multiple.entry.js +1 -1
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/esm/sd-toggle-button.entry.js +1 -1
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-modal-card/sd-modal-card.d.ts +1 -1
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +12 -3
- package/dist/types/components.d.ts +45 -9
- package/hydrate/index.js +64 -53
- package/hydrate/index.mjs +64 -53
- package/package.json +1 -1
- package/dist/cjs/sd-number-input.cjs.entry.js +0 -262
- package/dist/components/p-B0HvHSm3.js.map +0 -1
- package/dist/components/p-DQE5-tOR.js.map +0 -1
- package/dist/components/p-SUihbngJ.js.map +0 -1
- package/dist/design-system/p-29b74787.entry.js +0 -2
- package/dist/design-system/p-29b74787.entry.js.map +0 -1
- package/dist/design-system/p-390feb8e.entry.js +0 -2
- package/dist/design-system/p-54376630.entry.js +0 -2
- package/dist/design-system/p-54376630.entry.js.map +0 -1
- package/dist/design-system/p-eb0b0cfe.entry.js +0 -2
- package/dist/design-system/p-eb0b0cfe.entry.js.map +0 -1
- package/dist/esm/sd-number-input.entry.js +0 -260
- package/dist/esm/sd-number-input.entry.js.map +0 -1
- /package/dist/design-system/{p-390feb8e.entry.js.map → p-35a79a70.entry.js.map} +0 -0
- /package/dist/design-system/{p-cb3dd19f.entry.js.map → p-c77a42a2.entry.js.map} +0 -0
- /package/dist/design-system/{p-1d6dabd7.entry.js.map → p-d7258320.entry.js.map} +0 -0
- /package/dist/design-system/{p-44af67a6.entry.js.map → p-e5272c50.entry.js.map} +0 -0
- /package/dist/design-system/{p-1616a1f6.entry.js.map → p-e6d39e65.entry.js.map} +0 -0
- /package/dist/design-system/{p-cb502581.entry.js.map → p-ee96032f.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -4438,6 +4438,7 @@ const FORM_PARENT_TAGS = [
|
|
|
4438
4438
|
'sd-select-multiple-group',
|
|
4439
4439
|
'sd-input',
|
|
4440
4440
|
'sd-textarea',
|
|
4441
|
+
'sd-number-input',
|
|
4441
4442
|
];
|
|
4442
4443
|
class SdField {
|
|
4443
4444
|
constructor(hostRef) {
|
|
@@ -4549,15 +4550,15 @@ class SdField {
|
|
|
4549
4550
|
}
|
|
4550
4551
|
}
|
|
4551
4552
|
render() {
|
|
4552
|
-
return (hAsync("div", { key: '
|
|
4553
|
+
return (hAsync("div", { key: '3c69abe493110b5665795706a9ae0e525f213aca', class: {
|
|
4553
4554
|
'sd-field': true,
|
|
4554
4555
|
'sd-field--has-label': !!this.label,
|
|
4555
4556
|
'sd-field--has-label-inside': !!this.label && this.insideLabel,
|
|
4556
4557
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
4557
|
-
} }, hAsync("div", { key: '
|
|
4558
|
+
} }, hAsync("div", { key: 'decc6821b7172f5ecc2343472014c08674725904', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: 'ca5e93f049db10ecaaaab091fdf394ac4b55e292', class: {
|
|
4558
4559
|
'sd-field__control': true,
|
|
4559
4560
|
'sd-field__control--label-inside ': !!this.label && this.insideLabel,
|
|
4560
|
-
} }, hAsync("slot", { key: '
|
|
4561
|
+
} }, hAsync("slot", { key: '7ee38983d32985f4b4a035830bcdca0e14b2cf71' }))), this.errorMsg && hAsync("div", { key: 'c2d6ef860ced48657b906806f2618594b094ea79', class: "sd-field__error-message" }, this.errorMsg)));
|
|
4561
4562
|
}
|
|
4562
4563
|
renderLabel(label) {
|
|
4563
4564
|
if (!label)
|
|
@@ -7292,13 +7293,7 @@ class SdModalCard {
|
|
|
7292
7293
|
useCloseButton = true;
|
|
7293
7294
|
modalTitle = 'normal';
|
|
7294
7295
|
buttonFlexDirection = 'row';
|
|
7295
|
-
buttonProps
|
|
7296
|
-
{
|
|
7297
|
-
label: '확인',
|
|
7298
|
-
color: 'grey_80',
|
|
7299
|
-
size: 'md',
|
|
7300
|
-
},
|
|
7301
|
-
];
|
|
7296
|
+
buttonProps;
|
|
7302
7297
|
message = [];
|
|
7303
7298
|
modalClass = '';
|
|
7304
7299
|
close;
|
|
@@ -7322,7 +7317,7 @@ class SdModalCard {
|
|
|
7322
7317
|
return modalClass;
|
|
7323
7318
|
}
|
|
7324
7319
|
render() {
|
|
7325
|
-
return (hAsync("div", { key: '
|
|
7320
|
+
return (hAsync("div", { key: '7374943ac733d43b7d6c027f074c2dfdfd859e51', class: this.getModalClass, style: { '--point-color': this.pointColor } }, this.useCloseButton && (hAsync("sd-icon", { key: '75fd15b1241d8b4829372377a8212556828ef2f9', class: "sd-modal-card__close-button", name: "close", size: "20", color: "grey_65", onClick: () => this.close.emit() })), this.type !== 'normal' && (hAsync("sd-icon", { key: '54619f342718bb9dd0589d5963ad390f1b792843', class: "sd-modal-card__icon", name: this.type === 'info' ? 'notificationOutline' : 'warningOutline', size: "32", color: this.type === 'info' ? 'brilliantblue_75' : 'red_75' })), hAsync("h2", { key: '4197761d82baa632c67ff238388aa3162592d9ed', class: "sd-modal-card__title" }, this.modalTitle), hAsync("slot", { key: '586ee3e295b2091d657d54f17945d4ac12541932' }, hAsync("div", { key: 'dad5890bd4d0dfcfca45811ae58fe3e67d29e226', class: `sd-modal-card__message-container` }, this.message.map(msg => (hAsync("p", { class: "sd-modal-card__message" }, msg))))), hAsync("div", { key: '3af309aaa37574e5a3e74cbb3c9047216c1b74a8', class: `sd-modal-card__button-container flex-${this.buttonFlexDirection}` }, this.buttonProps?.map(button => (hAsync("sd-button", { class: 'sd-modal-card__button', variant: button.variant ? button.variant : 'outline', label: button.label, color: button.color, size: button.size, onClick: () => !button.type || button.type === 'confirm' ? this.confirm.emit() : this.close.emit(), ...(button.class && { class: button.class }) }))))));
|
|
7326
7321
|
}
|
|
7327
7322
|
static get style() { return sdModalCardCss(); }
|
|
7328
7323
|
static get cmpMeta() { return {
|
|
@@ -7344,7 +7339,7 @@ class SdModalCard {
|
|
|
7344
7339
|
}; }
|
|
7345
7340
|
}
|
|
7346
7341
|
|
|
7347
|
-
const sdNumberInputCss = () => `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)}sd-number-input .sd-number-input
|
|
7342
|
+
const sdNumberInputCss = () => `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)}sd-number-input .sd-number-input{box-sizing:border-box;display:flex;width:var(--input-width, 100%);align-items:center;height:28px;padding:4px 8px;border-radius:4px;color:#333333;font-size:12px;line-height:20px;position:relative}sd-number-input .sd-number-input .sd-number-input__input{display:block;width:100%;height:20px;line-height:20px;border:none;outline:none;background:transparent;font-size:inherit;color:#333333;margin-left:4px;margin-right:4px;padding-block:0;padding-inline:0;text-align:right}sd-number-input .sd-number-input .sd-number-input__input[disabled]{cursor:not-allowed;color:#888888}sd-number-input .sd-number-input .sd-number-input__input::placeholder{font-size:12px;height:20px;line-height:20px;color:#aaaaaa}sd-number-input .sd-number-input .sd-number-input__clear-icon{cursor:pointer;margin-left:8px}sd-number-input .sd-number-input .sd-number-input__buttons{padding:4px;display:flex;justify-content:space-between;align-items:center;position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity 0.2s ease}sd-number-input .sd-number-input .sd-number-input__button{width:20px;height:20px;border:none;border-radius:2px;background-color:#eff6ff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;margin:0;transition:background-color 0.2s ease}sd-number-input .sd-number-input .sd-number-input__button:hover:not(:disabled){background-color:#e6f1ff}sd-number-input .sd-number-input .sd-number-input__button:disabled{background-color:#eeeeee;cursor:not-allowed}sd-number-input .sd-number-input .sd-number-input__button--decrement{border-bottom-left-radius:0;border-bottom-right-radius:0}sd-number-input .sd-number-input .sd-number-input__button--increment{border-top-left-radius:0;border-top-right-radius:0}sd-number-input .sd-number-input .sd-number-input__label{margin-bottom:8px;font-weight:500;color:#333333}sd-number-input:focus-within .sd-number-input__buttons{opacity:1;pointer-events:auto}sd-number-input:focus-within .sd-number-input{border-color:#0075ff;box-shadow:0 0 4px 0 rgba(0, 113, 255, 0.4)}`;
|
|
7348
7343
|
|
|
7349
7344
|
class SdNumberInput {
|
|
7350
7345
|
constructor(hostRef) {
|
|
@@ -7361,20 +7356,24 @@ class SdNumberInput {
|
|
|
7361
7356
|
useDecimal = false;
|
|
7362
7357
|
value = null;
|
|
7363
7358
|
label;
|
|
7359
|
+
insideLabel = false;
|
|
7364
7360
|
placeholder = '입력해 주세요.';
|
|
7365
7361
|
disabled = false;
|
|
7366
7362
|
width;
|
|
7367
|
-
rules;
|
|
7363
|
+
rules = [];
|
|
7368
7364
|
autoFocus = false;
|
|
7369
7365
|
status;
|
|
7370
7366
|
inputClass = '';
|
|
7371
7367
|
readonly = false;
|
|
7372
7368
|
inputStyle = {};
|
|
7369
|
+
error = false;
|
|
7370
|
+
focused = false;
|
|
7371
|
+
hovered = false;
|
|
7373
7372
|
internalValue = null;
|
|
7374
7373
|
displayValue = '';
|
|
7375
|
-
hovered = false;
|
|
7376
|
-
error = false;
|
|
7377
7374
|
nativeEl = undefined;
|
|
7375
|
+
formField;
|
|
7376
|
+
name = nanoid();
|
|
7378
7377
|
update;
|
|
7379
7378
|
focus;
|
|
7380
7379
|
blur;
|
|
@@ -7445,16 +7444,18 @@ class SdNumberInput {
|
|
|
7445
7444
|
this.value = newValue;
|
|
7446
7445
|
this.update?.emit(newValue);
|
|
7447
7446
|
}
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
this.
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7447
|
+
}
|
|
7448
|
+
async sdValidate() {
|
|
7449
|
+
this.formField?.sdValidate();
|
|
7450
|
+
}
|
|
7451
|
+
async sdReset() {
|
|
7452
|
+
this.formField?.sdReset();
|
|
7453
|
+
}
|
|
7454
|
+
async sdResetValidate() {
|
|
7455
|
+
this.formField?.sdResetValidation();
|
|
7456
|
+
}
|
|
7457
|
+
async sdFocus() {
|
|
7458
|
+
this.formField?.sdFocus();
|
|
7458
7459
|
}
|
|
7459
7460
|
componentWillLoad() {
|
|
7460
7461
|
if (this.value !== null && this.value !== undefined) {
|
|
@@ -7517,11 +7518,15 @@ class SdNumberInput {
|
|
|
7517
7518
|
handleFocus = (event) => {
|
|
7518
7519
|
this.focus?.emit(event);
|
|
7519
7520
|
};
|
|
7520
|
-
handleBlur = (event) => {
|
|
7521
|
+
handleBlur = async (event) => {
|
|
7521
7522
|
this.updateDisplay();
|
|
7522
7523
|
if (this.nativeEl) {
|
|
7523
7524
|
this.nativeEl.value = this.displayValue;
|
|
7524
7525
|
}
|
|
7526
|
+
if (this.rules && this.rules.length > 0) {
|
|
7527
|
+
await this.formField?.sdValidate();
|
|
7528
|
+
}
|
|
7529
|
+
this.focused = false;
|
|
7525
7530
|
this.blur?.emit(event);
|
|
7526
7531
|
};
|
|
7527
7532
|
handleKeyDown = (event) => {
|
|
@@ -7581,17 +7586,17 @@ class SdNumberInput {
|
|
|
7581
7586
|
const inputStyles = {
|
|
7582
7587
|
textAlign: this.useButton ? 'center' : 'right',
|
|
7583
7588
|
};
|
|
7584
|
-
return (hAsync("
|
|
7589
|
+
return (hAsync("sd-field", { key: 'ea231ae67c1e209d4c9adca87bd9760bcd28ec51', name: this.name, label: this.label, insideLabel: this.insideLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, ref: el => (this.formField = el), style: inputWidth }, hAsync("label", { key: '76bbc2fb1e36d25887ac0559ff7f34617a35883e', class: {
|
|
7585
7590
|
'sd-number-input': true,
|
|
7586
7591
|
[this.getInputStatus()]: true,
|
|
7587
7592
|
'sd-number-input--with-buttons': this.useButton,
|
|
7588
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("input", { key: '
|
|
7593
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("input", { key: '7978c4e8383017b9a8213e827f92c2d9ccc7b275', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__input ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, style: inputStyles, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.useButton && (hAsync("div", { key: 'aff328615ab939724ee0f77f4b7ac8b046eb16d1', class: "sd-number-input__buttons" }, hAsync("button", { key: 'a27a592cc4e74b3272e3473988dbd877e9d0afd3', type: "button", class: {
|
|
7589
7594
|
'sd-number-input__button': true,
|
|
7590
7595
|
'sd-number-input__button--decrement': true,
|
|
7591
|
-
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: '
|
|
7596
|
+
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: '79853e0a9ab38cfaafbd8027dae1a0732702d5bc', name: "minus", size: 12, color: this.isDecrementDisabled() ? 'grey_45' : 'brilliantblue_70' })), hAsync("button", { key: '0993c22719cdbdf3982dea138653ba1f2f6aa523', type: "button", class: {
|
|
7592
7597
|
'sd-number-input__button': true,
|
|
7593
7598
|
'sd-number-input__button--increment': true,
|
|
7594
|
-
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: '
|
|
7599
|
+
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: '6da02951a443a1a46fd44f6bd7c1a7ed41af0b01', name: "add", size: 12, color: this.isIncrementDisabled() ? 'grey_45' : 'brilliantblue_70' })))))));
|
|
7595
7600
|
}
|
|
7596
7601
|
static get watchers() { return {
|
|
7597
7602
|
"value": ["valueChanged"],
|
|
@@ -7609,6 +7614,7 @@ class SdNumberInput {
|
|
|
7609
7614
|
"useDecimal": [4, "use-decimal"],
|
|
7610
7615
|
"value": [1032],
|
|
7611
7616
|
"label": [1],
|
|
7617
|
+
"insideLabel": [4, "inside-label"],
|
|
7612
7618
|
"placeholder": [1],
|
|
7613
7619
|
"disabled": [4],
|
|
7614
7620
|
"width": [8],
|
|
@@ -7618,10 +7624,15 @@ class SdNumberInput {
|
|
|
7618
7624
|
"inputClass": [1, "input-class"],
|
|
7619
7625
|
"readonly": [4],
|
|
7620
7626
|
"inputStyle": [16],
|
|
7627
|
+
"error": [1028],
|
|
7628
|
+
"focused": [1028],
|
|
7629
|
+
"hovered": [1028],
|
|
7621
7630
|
"internalValue": [32],
|
|
7622
7631
|
"displayValue": [32],
|
|
7623
|
-
"
|
|
7624
|
-
"
|
|
7632
|
+
"sdValidate": [64],
|
|
7633
|
+
"sdReset": [64],
|
|
7634
|
+
"sdResetValidate": [64],
|
|
7635
|
+
"sdFocus": [64],
|
|
7625
7636
|
"sdGetNativeElement": [64]
|
|
7626
7637
|
},
|
|
7627
7638
|
"$listeners$": undefined,
|
|
@@ -7705,12 +7716,12 @@ class SdPagination {
|
|
|
7705
7716
|
}
|
|
7706
7717
|
}
|
|
7707
7718
|
render() {
|
|
7708
|
-
return (hAsync("div", { key: '
|
|
7719
|
+
return (hAsync("div", { key: 'feed08139c382f91539bc316a967ed1738529688', class: this.paginationClasses }, hAsync("div", { key: '42c908d7a685f2acab29a94d040e4f4c513fff38', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "pagination-info" }, hAsync("span", { class: "current-page" }, this.currentPage), hAsync("span", null, "/"), hAsync("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
7709
7720
|
'pagination-btn': true,
|
|
7710
7721
|
'pagination-btn--selected': this.currentPage === n,
|
|
7711
7722
|
}, disabled: this.currentPage === n, style: {
|
|
7712
7723
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
7713
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
7724
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '2be11ae773c0bce71ecaf53f99daff3f5b2d567d', class: "append-btns" }, this.renderNextButtons())));
|
|
7714
7725
|
}
|
|
7715
7726
|
static get style() { return sdPaginationCss(); }
|
|
7716
7727
|
static get cmpMeta() { return {
|
|
@@ -7764,11 +7775,11 @@ class SdPopover {
|
|
|
7764
7775
|
this.showPopover = false;
|
|
7765
7776
|
};
|
|
7766
7777
|
render() {
|
|
7767
|
-
return (hAsync(Fragment, { key: '
|
|
7778
|
+
return (hAsync(Fragment, { key: '883bea0d5ef88bb63b4a1a2d778aedf0bce6f000' }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (hAsync("sd-floating-portal", { key: '748b76d151dce05cffdd97d9803a96f14554ad3b', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, hAsync("div", { key: '36bd2a265c89589b13e67107d57e8045a87d6b40', class: {
|
|
7768
7779
|
'sd-floating-menu': true,
|
|
7769
7780
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
7770
7781
|
[this.menuClass]: !!this.menuClass,
|
|
7771
|
-
} }, hAsync("i", { key: '
|
|
7782
|
+
} }, hAsync("i", { key: 'cd9b298e666ce898c83576c869e60e1e5e0bb38f', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: '79012e2c547a71e2084958925445ac26a8bbf7fe' })), hAsync("div", { key: '0664419fe24318ced7cbca2da1b9e0741c48f333', class: "sd-floating-menu__content" }, this.menuTitle && hAsync("div", { key: 'a3f9238db85a7ca245cb5f794e1a9249742c3b42', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (hAsync("div", { key: '56696f99a5400276c099a8ca69f904b4a932802c', class: "sd-floating-menu__messages" }, this.messages.map(message => (hAsync("div", null, message))))), this.buttons.length > 0 && (hAsync("div", { key: 'cbdf8231857ccb20156d25758dbe2d1809e28656', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (hAsync("sd-button", { ...button })))))), this.useClose && (hAsync("button", { key: 'a2f249d05c6cd40d24005307d78aea95a841b0b8', title: "close", class: "sd-floating-menu__close-button", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: '13ba057c4acf7ae65cfe8d722fe8bdb69ce506ac', name: "close", size: "12", color: "gery_55" }))))))));
|
|
7772
7783
|
}
|
|
7773
7784
|
static get watchers() { return {
|
|
7774
7785
|
"show": ["watchShowHandler"]
|
|
@@ -7919,7 +7930,7 @@ class SdPortal {
|
|
|
7919
7930
|
this.close.emit();
|
|
7920
7931
|
}
|
|
7921
7932
|
render() {
|
|
7922
|
-
return hAsync("slot", { key: '
|
|
7933
|
+
return hAsync("slot", { key: 'ba2bf5df16f9bef0acef1ac8a08b090a23d02bc7' });
|
|
7923
7934
|
}
|
|
7924
7935
|
static get cmpMeta() { return {
|
|
7925
7936
|
"$flags$": 772,
|
|
@@ -7976,10 +7987,10 @@ class SdProgress {
|
|
|
7976
7987
|
return this.statusColor[this.progressStatus];
|
|
7977
7988
|
}
|
|
7978
7989
|
render() {
|
|
7979
|
-
return (hAsync("div", { key: '
|
|
7990
|
+
return (hAsync("div", { key: '43da9dac67e760bfe53b8db11c27eef7ef0d8b3b', style: {
|
|
7980
7991
|
'--progress-color': this.progressColor,
|
|
7981
7992
|
'--progress-percentage': `${this.progressPercentage}%`,
|
|
7982
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '
|
|
7993
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: 'af4b1c44f655546fede8ad548bddc6afb7810d2b', class: "sd-progress__label" }, this.label)));
|
|
7983
7994
|
}
|
|
7984
7995
|
renderBarProgress() {
|
|
7985
7996
|
return (hAsync("div", { class: `sd-progress__bar sd-progress__bar--${this.progressStatus}` }, hAsync("div", { class: ['sd-progress__bar__percent', this.progressPercentage < 100 ? 'proceed' : ''].join(' ') }), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.progressPercentage, "%"), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.progressPercentage, "%")));
|
|
@@ -8642,10 +8653,10 @@ class SdSelectDropdown {
|
|
|
8642
8653
|
this.isScrolled = scrollTop > 0;
|
|
8643
8654
|
};
|
|
8644
8655
|
render() {
|
|
8645
|
-
return (hAsync("div", { key: '
|
|
8656
|
+
return (hAsync("div", { key: 'ff55e2e133114accc2641a0025bdcf551eda3511', class: {
|
|
8646
8657
|
'sd-select-dropdown': true,
|
|
8647
8658
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
8648
|
-
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (hAsync("sd-select-search-input", { key: '
|
|
8659
|
+
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (hAsync("sd-select-search-input", { key: 'bfcee14aa06a9a259dd8e67013ed1074c1f9c318', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (hAsync("slot", { name: `option-${option.value}` }, hAsync("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (hAsync("slot", { name: "option-placeholder" }, hAsync("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder)))));
|
|
8649
8660
|
}
|
|
8650
8661
|
static get watchers() { return {
|
|
8651
8662
|
"filteredOptions": ["filteredOptionsChanged"],
|
|
@@ -8825,7 +8836,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
8825
8836
|
this.handleOptionSelection(option);
|
|
8826
8837
|
};
|
|
8827
8838
|
render() {
|
|
8828
|
-
return (hAsync("sd-field", { key: '
|
|
8839
|
+
return (hAsync("sd-field", { key: 'a70e7fefb98428e616d2f124923dfa7ee7a7c2e2', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, useLabelRequired: this.useLabelRequired, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, hAsync("div", { key: 'fda63e4e8dcc72aa0147b2981b49b7e28e377ee8', class: {
|
|
8829
8840
|
'sd-select-multiple': true,
|
|
8830
8841
|
'sd-select-multiple--open': this.isOpen,
|
|
8831
8842
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -9408,7 +9419,7 @@ class SdSelectOption {
|
|
|
9408
9419
|
}
|
|
9409
9420
|
};
|
|
9410
9421
|
render() {
|
|
9411
|
-
return (hAsync("div", { key: '
|
|
9422
|
+
return (hAsync("div", { key: 'a4fcca24b0bdde4f4665585c6cede84bd3b64d59', class: {
|
|
9412
9423
|
'sd-select__option': true,
|
|
9413
9424
|
'sd-select__option--selected': this.isSelected,
|
|
9414
9425
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -9494,7 +9505,7 @@ class SdSelectOptionGroup {
|
|
|
9494
9505
|
}
|
|
9495
9506
|
};
|
|
9496
9507
|
render() {
|
|
9497
|
-
return (hAsync("div", { key: '
|
|
9508
|
+
return (hAsync("div", { key: '8e88aacd2c3122a563fcf78bcbe9731b6a29d8c5', class: {
|
|
9498
9509
|
'sd-select__option-group': true,
|
|
9499
9510
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
9500
9511
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -9503,10 +9514,10 @@ class SdSelectOptionGroup {
|
|
|
9503
9514
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
9504
9515
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
9505
9516
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
9506
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: '
|
|
9517
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: 'be4bc7f2867ea5c86505bc9284ac3de46f7077f9', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (hAsync("sd-checkbox", { key: '00063ab3a6f1d4f44671ac82dd05524968bec668', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
9507
9518
|
e.preventDefault();
|
|
9508
9519
|
this.handleClick(this.option, this.isSelected, e);
|
|
9509
|
-
} })), hAsync("span", { key: '
|
|
9520
|
+
} })), hAsync("span", { key: '802c908d44bf1c0db5d64bf4c8d4bab4ebe2b87c', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (hAsync("span", { key: 'efd26a2d6e4e2662410de3755b70a2a2585ad0c4', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
9510
9521
|
}
|
|
9511
9522
|
static get style() { return sdSelectOptionGroupCss(); }
|
|
9512
9523
|
static get cmpMeta() { return {
|
|
@@ -9555,17 +9566,17 @@ class SdSelectSearchInput {
|
|
|
9555
9566
|
input?.focus({ preventScroll: true });
|
|
9556
9567
|
}
|
|
9557
9568
|
render() {
|
|
9558
|
-
return (hAsync("div", { key: '
|
|
9569
|
+
return (hAsync("div", { key: 'b19a029ef82d876c984c1f827d7a0f29bb823f5d', class: {
|
|
9559
9570
|
'sd-select-search-input': true,
|
|
9560
9571
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
9561
|
-
}, onClick: event => event.stopPropagation() }, hAsync("sd-input", { key: '
|
|
9572
|
+
}, onClick: event => event.stopPropagation() }, hAsync("sd-input", { key: '8e27f40e1b507f0c5cb2d4bde48750cd0089a9da', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
|
|
9562
9573
|
this.searchInput.emit(String(event?.detail));
|
|
9563
9574
|
}, onSdFocus: () => {
|
|
9564
9575
|
this.searchFocus.emit();
|
|
9565
9576
|
}, onKeyDown: event => {
|
|
9566
9577
|
if (event.code === 'Enter')
|
|
9567
9578
|
event.stopPropagation();
|
|
9568
|
-
} }, hAsync("sd-icon", { key: '
|
|
9579
|
+
} }, hAsync("sd-icon", { key: '2b38a07cbc0bb0d7dd020ece45f18bdff4c262e5', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
9569
9580
|
}
|
|
9570
9581
|
static get style() { return sdSelectSearchInputCss(); }
|
|
9571
9582
|
static get cmpMeta() { return {
|
|
@@ -10515,10 +10526,10 @@ class SdTextarea {
|
|
|
10515
10526
|
}
|
|
10516
10527
|
render() {
|
|
10517
10528
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
10518
|
-
return (hAsync("div", { key: '
|
|
10529
|
+
return (hAsync("div", { key: '888d11be57629e83e1215daddab63351a323672f', class: {
|
|
10519
10530
|
'sd-textarea': true,
|
|
10520
10531
|
[this.getTextareaStatus()]: true,
|
|
10521
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("div", { key: '
|
|
10532
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("div", { key: '1f91a1e435b2dba1817ce181f91bdf3829142682', class: "sd-textarea__content" }, hAsync("textarea", { key: 'd883f4cdfd56220cf4382893f94a469f7afd7ff2', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (hAsync("div", { key: 'e9350d8e49eb87b2caddfc24079ece0d59c79739', class: "sd-textarea__footer" }, this.helpText !== undefined && hAsync("span", { key: 'cda9e2b8b0c15fbc7356597d4363d438688c8e4e', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && hAsync("span", { key: '491e990142e07837169e84a3fcc3e80c00bc7153', class: "sd-textarea__counter" }, maxLengthCounter)))));
|
|
10522
10533
|
}
|
|
10523
10534
|
static get watchers() { return {
|
|
10524
10535
|
"value": ["valueChanged"],
|
|
@@ -10655,7 +10666,7 @@ class SdToggle {
|
|
|
10655
10666
|
this.change.emit(newValue);
|
|
10656
10667
|
};
|
|
10657
10668
|
render() {
|
|
10658
|
-
return (hAsync("label", { key: '
|
|
10669
|
+
return (hAsync("label", { key: 'c0fcd12c231fdb995b5edae756157c58b352fd0f', "aria-label": this.label || 'toggle', class: this.toggleClasses }, hAsync("input", { key: 'e50042ae04830f4c276d8140725ab62cc2d0490d', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), this.label && hAsync("span", { key: '99f9506a2dcea8cfd85aabf6b71243c116a2bf11', class: "sd-toggle__label" }, this.label), hAsync("div", { key: '424e1ae78d5684051bd7a2b3ba89f6760f773f1c', class: "sd-toggle__track" }, hAsync("div", { key: '29aab89e58022ce22f026fb694bb9b1e4531d8cf', class: "sd-toggle__thumb" }))));
|
|
10659
10670
|
}
|
|
10660
10671
|
static get style() { return sdToggleCss(); }
|
|
10661
10672
|
static get cmpMeta() { return {
|
|
@@ -10711,7 +10722,7 @@ class SdToggleButton {
|
|
|
10711
10722
|
this.change.emit(newValue);
|
|
10712
10723
|
};
|
|
10713
10724
|
render() {
|
|
10714
|
-
return (hAsync("label", { key: '
|
|
10725
|
+
return (hAsync("label", { key: '6f8d9e738490ef344ff26a4026b9de17af68041e', class: this.buttonClasses, "aria-label": this.label || 'toggle button' }, this.label, hAsync("input", { key: '6d9d45c451301c4635e610fd70280be1fe65b316', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
10715
10726
|
}
|
|
10716
10727
|
static get style() { return sdToggleButtonCss(); }
|
|
10717
10728
|
static get cmpMeta() { return {
|