@sellmate/design-system 1.0.72 → 1.0.74
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-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker.cjs.entry.js +3 -4
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +3 -4
- package/dist/cjs/sd-file-picker.cjs.entry.js +2 -1
- package/dist/cjs/sd-form.cjs.entry.js +15 -18
- package/dist/cjs/sd-input_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-number-input.cjs.entry.js +3 -3
- package/dist/cjs/sd-pagination_2.cjs.entry.js +7 -8
- package/dist/cjs/sd-select-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-v2-list-item_4.cjs.entry.js +3 -3
- package/dist/cjs/sd-select.cjs.entry.js +1 -1
- package/dist/cjs/sd-textarea.cjs.entry.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +21 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +23 -24
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +23 -24
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +3 -2
- package/dist/collection/components/sd-form/sd-form.js +17 -20
- package/dist/collection/components/sd-input/sd-input.js +22 -2
- package/dist/collection/components/sd-number-input/sd-number-input.js +23 -3
- package/dist/collection/components/sd-select/sd-select.js +21 -1
- package/dist/collection/components/sd-select-group/sd-select-group.js +21 -1
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +9 -9
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +33 -34
- package/dist/collection/components/sd-textarea/sd-textarea.js +21 -1
- package/dist/components/{p-DdPLfQ4q.js → p-CHFGWh0m.js} +1 -1
- package/dist/components/p-CgL8_FSD.js +1 -0
- package/dist/components/{p-BH5mLw-t.js → p-D8fG9Yt7.js} +1 -1
- package/dist/components/{p-BC1rdUkh.js → p-DEBakAhm.js} +1 -1
- package/dist/components/{p-DuyLeqsh.js → p-DuMkBStM.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-file-picker.js +1 -1
- package/dist/components/sd-form.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-number-input.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-listbox.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/design-system/design-system.esm.js +1 -1
- package/dist/design-system/p-17cd3a33.entry.js +1 -0
- package/dist/design-system/{p-0883bb11.entry.js → p-1fa6c17f.entry.js} +1 -1
- package/dist/design-system/{p-4145b7cc.entry.js → p-2d154fe0.entry.js} +1 -1
- package/dist/design-system/{p-9349f176.entry.js → p-6a3f8588.entry.js} +1 -1
- package/dist/design-system/{p-0069c4f6.entry.js → p-6af9e663.entry.js} +1 -1
- package/dist/design-system/{p-f47fb87a.entry.js → p-6e90fb80.entry.js} +1 -1
- package/dist/design-system/p-850de8d4.entry.js +1 -0
- package/dist/design-system/{p-d788d842.entry.js → p-97ebf578.entry.js} +1 -1
- package/dist/design-system/p-b745cd95.entry.js +1 -0
- package/dist/design-system/{p-f637919e.entry.js → p-ce2210ad.entry.js} +1 -1
- package/dist/design-system/p-d6896893.entry.js +1 -0
- package/dist/design-system/{p-f503a1ef.entry.js → p-ef09409c.entry.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-date-picker.entry.js +3 -4
- package/dist/esm/sd-date-range-picker.entry.js +3 -4
- package/dist/esm/sd-file-picker.entry.js +2 -1
- package/dist/esm/sd-form.entry.js +15 -18
- package/dist/esm/sd-input_2.entry.js +2 -2
- package/dist/esm/sd-number-input.entry.js +3 -3
- package/dist/esm/sd-pagination_2.entry.js +7 -8
- package/dist/esm/sd-select-group.entry.js +1 -1
- package/dist/esm/sd-select-v2-list-item_4.entry.js +3 -3
- package/dist/esm/sd-select.entry.js +1 -1
- package/dist/esm/sd-textarea.entry.js +1 -1
- package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +1 -2
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +1 -2
- package/dist/types/components/sd-form/sd-form.d.ts +4 -1
- package/dist/types/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.d.ts +2 -2
- package/dist/types/components/sd-select-v2/sd-select-v2.config.d.ts +1 -1
- package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +3 -4
- package/dist/types/components.d.ts +101 -47
- package/hydrate/index.js +52 -52
- package/hydrate/index.mjs +52 -52
- package/package.json +1 -1
- package/dist/components/p-CiSap3Ks.js +0 -1
- package/dist/design-system/p-4aeec574.entry.js +0 -1
- package/dist/design-system/p-5ef82428.entry.js +0 -1
- package/dist/design-system/p-8f66586f.entry.js +0 -1
- package/dist/design-system/p-a0cf8a1d.entry.js +0 -1
|
@@ -148,12 +148,12 @@ const SdInput = class {
|
|
|
148
148
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
149
149
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
150
150
|
};
|
|
151
|
-
return (h("sd-field", { key: '
|
|
151
|
+
return (h("sd-field", { key: 'ff73dfa4d23c7bf1a29f853d50e0d31bddb094ea', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: '0a986cccfbd55984a51676cbf5393634819e766d', class: "sd-input__content" }, h("slot", { key: '068bfd70601f3b191a51bb45ac02679acf99a069', name: "prefix" }), h("input", { key: '54dbd7b7e4bffcfa25b9d68800fb334c0dfa0da0', 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: 'c0e03839176c6612eb8b0532bce3341de3db90c3', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (h("sd-ghost-button", { key: '0019f58900c721c52216f7686b8b198f855c76ec', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
152
152
|
if (this.disabled)
|
|
153
153
|
return;
|
|
154
154
|
this.internalValue = '';
|
|
155
155
|
await this.formField?.sdValidate();
|
|
156
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
156
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '63dbd526a1a9e67bd41483211bf9a005dc0dc93f', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
|
|
157
157
|
if (this.disabled)
|
|
158
158
|
return;
|
|
159
159
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -384,12 +384,12 @@ const SdNumberInput = class {
|
|
|
384
384
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
385
385
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
386
386
|
};
|
|
387
|
-
return (h("sd-field", { key: '
|
|
387
|
+
return (h("sd-field", { key: 'a62a0abbef4e817173d3e627d61c36523c2db81a', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'd395366da25ef5ab333e4b314093a89e41519786', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'eb97c4c29165e6237064bbce54ea2031c756fe12', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '7cd260e4356d320825a75350982174446b40e15c', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
388
388
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
389
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '
|
|
389
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: 'a25c707b127f63239dbb92be5e9d569e1be58005', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: '0dc0864a4434122a717041028c732aa5d370f65c', 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: {
|
|
390
390
|
textAlign: this.useButton ? 'center' : 'right',
|
|
391
391
|
...this.inputStyle,
|
|
392
|
-
} }), this.inputSuffix && (h("span", { key: '
|
|
392
|
+
} }), this.inputSuffix && (h("span", { key: 'd31337cdacceb84ee6347a2c38210ad491667d2c', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: '217fcbc2b75e76adb0ed969a719e632b5eb74b27', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '48ff6d0417aadcd975a6863a0003e63ca525cdfd', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
393
393
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
394
394
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
395
395
|
}
|
|
@@ -172,7 +172,7 @@ const SdSelectV2 = class {
|
|
|
172
172
|
static PORTAL_OFFSET_Y = 4;
|
|
173
173
|
static CLOSE_ANIMATION_DURATION = 150;
|
|
174
174
|
get el() { return getElement(this); }
|
|
175
|
-
|
|
175
|
+
type = 'default';
|
|
176
176
|
value = null;
|
|
177
177
|
options = [];
|
|
178
178
|
placeholder = '선택';
|
|
@@ -186,7 +186,6 @@ const SdSelectV2 = class {
|
|
|
186
186
|
error = false;
|
|
187
187
|
hint = '';
|
|
188
188
|
errorMessage = '';
|
|
189
|
-
fieldName = '';
|
|
190
189
|
rules = [];
|
|
191
190
|
icon = undefined;
|
|
192
191
|
labelTooltip = '';
|
|
@@ -221,14 +220,14 @@ const SdSelectV2 = class {
|
|
|
221
220
|
triggerRef;
|
|
222
221
|
triggerComponentRef;
|
|
223
222
|
closeAnimationTimer;
|
|
224
|
-
|
|
223
|
+
name = nanoid();
|
|
225
224
|
triggerHasFocus = false;
|
|
226
225
|
watchIsOpen(newValue) {
|
|
227
226
|
this.syncFocusedState(newValue);
|
|
228
227
|
this.dropDownShow.emit({ isOpen: newValue });
|
|
229
228
|
}
|
|
230
229
|
get isMulti() {
|
|
231
|
-
return this.
|
|
230
|
+
return this.type === 'multi' || this.type === 'multi_depth';
|
|
232
231
|
}
|
|
233
232
|
get displayText() {
|
|
234
233
|
if (this.isMulti) {
|
|
@@ -404,15 +403,15 @@ const SdSelectV2 = class {
|
|
|
404
403
|
this.closeDropdown();
|
|
405
404
|
},
|
|
406
405
|
};
|
|
407
|
-
return (h("sd-field", { key: '
|
|
406
|
+
return (h("sd-field", { key: '76b432c04fa0f9fca70e63e9c7d16ed768fc9dd1', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
408
407
|
this.hovered = true;
|
|
409
408
|
}, onMouseLeave: () => {
|
|
410
409
|
this.hovered = false;
|
|
411
|
-
} }, h("div", { key: '
|
|
410
|
+
} }, h("div", { key: 'dba3a313b7e0171a441540877aacdc7d5c2e7f04', class: "sd-select-v2", ref: el => {
|
|
412
411
|
this.triggerRef = el;
|
|
413
|
-
} }, h("sd-select-v2-trigger", { key: '
|
|
412
|
+
} }, h("sd-select-v2-trigger", { key: '7790357558f174eb70b15ed72574f738b062c479', ref: el => {
|
|
414
413
|
this.triggerComponentRef = el;
|
|
415
|
-
}, displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '
|
|
414
|
+
}, displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '672f3583b24e363b74d184d13866ee19a78b04d9', ...portalProps }, h("sd-select-v2-listbox", { key: 'f71d95ad06c74356e4d5ce94da7e720c002390b6', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
416
415
|
}
|
|
417
416
|
static get watchers() { return {
|
|
418
417
|
"isOpen": [{
|
|
@@ -275,7 +275,7 @@ const SdSelectGroup = class extends BaseDropdownEvent {
|
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
277
|
render() {
|
|
278
|
-
return (h("sd-field", { key: '
|
|
278
|
+
return (h("sd-field", { key: 'aa5470eaba6489d6eb380996eeb0c0c985e20fbf', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, addonAlign: this.addonAlign, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, h("div", { key: '90d4cc0bde3240be6a8406c9ea6c82c2fdad3482', class: {
|
|
279
279
|
'sd-select-group': true,
|
|
280
280
|
'sd-select-group--open': this.isOpen,
|
|
281
281
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -319,7 +319,7 @@ const SdSelectV2Listbox = class {
|
|
|
319
319
|
registerInstance(this, hostRef);
|
|
320
320
|
this.optionSelect = createEvent(this, "sdOptionSelect", 7);
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
type = 'default';
|
|
323
323
|
options = [];
|
|
324
324
|
value = null;
|
|
325
325
|
emitValue = false;
|
|
@@ -335,10 +335,10 @@ const SdSelectV2Listbox = class {
|
|
|
335
335
|
keydownAttached = false;
|
|
336
336
|
suppressHover = false;
|
|
337
337
|
get isDepth() {
|
|
338
|
-
return this.
|
|
338
|
+
return this.type === 'default_depth' || this.type === 'multi_depth';
|
|
339
339
|
}
|
|
340
340
|
get isMulti() {
|
|
341
|
-
return this.
|
|
341
|
+
return this.type === 'multi' || this.type === 'multi_depth';
|
|
342
342
|
}
|
|
343
343
|
get showSearch() {
|
|
344
344
|
const count = this.isDepth ? countLeaves(this.options) : this.options.length;
|
|
@@ -146,7 +146,7 @@ const SdSelect = class extends BaseDropdownEvent {
|
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
render() {
|
|
149
|
-
return (h("sd-field", { key: '
|
|
149
|
+
return (h("sd-field", { key: '28b4667a386236c2486af08f636ede3dc6c41f91', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, addonAlign: this.addonAlign, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: 'ccee78ca4a773c521634e4054ce3b3d8e9713362', class: {
|
|
150
150
|
'sd-select': true,
|
|
151
151
|
'sd-select--disabled': this.disabled,
|
|
152
152
|
'sd-select--error': !!this.error,
|
|
@@ -128,7 +128,7 @@ const SdTextarea = class {
|
|
|
128
128
|
'--sd-system-size-field-sm-height': 'auto',
|
|
129
129
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
130
130
|
};
|
|
131
|
-
return (h("sd-field", { key: '
|
|
131
|
+
return (h("sd-field", { key: '345a70f335ee103a4e45c75e17559359beec01c9', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'dc09d61d06f3cefb15dce980e293a266fdf3d79d', class: "sd-textarea__content" }, h("textarea", { key: '085de248d7376e0d19d3588bc836bd5ad17cb335', 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 }))));
|
|
132
132
|
}
|
|
133
133
|
static get watchers() { return {
|
|
134
134
|
"value": [{
|
|
@@ -18,7 +18,6 @@ export declare class SdDatePicker {
|
|
|
18
18
|
addonAlign: FieldAddonAlign;
|
|
19
19
|
hint: string;
|
|
20
20
|
errorMessage: string;
|
|
21
|
-
fieldName: string;
|
|
22
21
|
rules?: Rule[];
|
|
23
22
|
error: boolean;
|
|
24
23
|
icon?: IconProps;
|
|
@@ -36,7 +35,7 @@ export declare class SdDatePicker {
|
|
|
36
35
|
private triggerRef?;
|
|
37
36
|
private formField?;
|
|
38
37
|
private closeAnimationTimer?;
|
|
39
|
-
|
|
38
|
+
name: string;
|
|
40
39
|
watchIsOpen(newValue: boolean): void;
|
|
41
40
|
sdValidate(): Promise<boolean | undefined>;
|
|
42
41
|
sdReset(): Promise<void | undefined>;
|
|
@@ -20,7 +20,6 @@ export declare class SdDateRangePicker {
|
|
|
20
20
|
addonAlign: FieldAddonAlign;
|
|
21
21
|
hint: string;
|
|
22
22
|
errorMessage: string;
|
|
23
|
-
fieldName: string;
|
|
24
23
|
rules?: Rule[];
|
|
25
24
|
error: boolean;
|
|
26
25
|
icon?: IconProps;
|
|
@@ -38,7 +37,7 @@ export declare class SdDateRangePicker {
|
|
|
38
37
|
private triggerRef?;
|
|
39
38
|
private formField?;
|
|
40
39
|
private closeAnimationTimer?;
|
|
41
|
-
|
|
40
|
+
name: string;
|
|
42
41
|
watchIsOpen(newValue: boolean): void;
|
|
43
42
|
sdValidate(): Promise<boolean | undefined>;
|
|
44
43
|
sdReset(): Promise<void | undefined>;
|
|
@@ -13,10 +13,13 @@ export declare class SdForm {
|
|
|
13
13
|
formClass: string;
|
|
14
14
|
private fields;
|
|
15
15
|
sdSubmit: EventEmitter<void>;
|
|
16
|
-
sdValidationError: EventEmitter<
|
|
16
|
+
sdValidationError: EventEmitter<{
|
|
17
|
+
names: string[];
|
|
18
|
+
}>;
|
|
17
19
|
private sortFieldsByDomOrder;
|
|
18
20
|
sdRegisterField(field: ValidatableField): Promise<void>;
|
|
19
21
|
sdUnregisterField(fieldOrName: FieldIdentifier): Promise<void>;
|
|
22
|
+
private runValidation;
|
|
20
23
|
sdValidate(): Promise<boolean>;
|
|
21
24
|
sdReset(): Promise<void>;
|
|
22
25
|
sdResetValidation(): Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { type SelectV2Option, type
|
|
2
|
+
import { type SelectV2Option, type SelectV2Type, type SelectV2Value, type SelectV2OptionSelectDetail } from '../sd-select-v2.config';
|
|
3
3
|
export declare class SdSelectV2Listbox {
|
|
4
|
-
|
|
4
|
+
type: SelectV2Type;
|
|
5
5
|
options: SelectV2Option[];
|
|
6
6
|
value: SelectV2Value;
|
|
7
7
|
emitValue: boolean;
|
|
@@ -4,7 +4,7 @@ export interface SelectV2Option {
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
children?: SelectV2Option[];
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type SelectV2Type = 'default' | 'multi' | 'default_depth' | 'multi_depth';
|
|
8
8
|
export type SelectV2Value = string | number | null | SelectV2Option | SelectV2Option[] | (string | number)[];
|
|
9
9
|
export interface SelectV2UpdateDetail {
|
|
10
10
|
value: SelectV2Value;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import type { SelectV2Option,
|
|
2
|
+
import type { SelectV2Option, SelectV2Type, SelectV2Value } from './sd-select-v2.config';
|
|
3
3
|
import type { Rule } from '../../types/form';
|
|
4
4
|
import type { SdTooltipProps } from '../sd-tooltip/sd-tooltip.config';
|
|
5
5
|
import { type FieldAddonAlign } from '../sd-field/sd-field.config';
|
|
@@ -8,7 +8,7 @@ export declare class SdSelectV2 {
|
|
|
8
8
|
private static readonly PORTAL_OFFSET_Y;
|
|
9
9
|
private static readonly CLOSE_ANIMATION_DURATION;
|
|
10
10
|
el: HTMLElement;
|
|
11
|
-
|
|
11
|
+
type: SelectV2Type;
|
|
12
12
|
value: SelectV2Value;
|
|
13
13
|
options: SelectV2Option[];
|
|
14
14
|
placeholder: string;
|
|
@@ -22,7 +22,6 @@ export declare class SdSelectV2 {
|
|
|
22
22
|
error: boolean;
|
|
23
23
|
hint: string;
|
|
24
24
|
errorMessage: string;
|
|
25
|
-
fieldName: string;
|
|
26
25
|
rules?: Rule[];
|
|
27
26
|
icon?: IconProps;
|
|
28
27
|
labelTooltip: string;
|
|
@@ -45,7 +44,7 @@ export declare class SdSelectV2 {
|
|
|
45
44
|
private triggerRef?;
|
|
46
45
|
private triggerComponentRef?;
|
|
47
46
|
private closeAnimationTimer?;
|
|
48
|
-
|
|
47
|
+
name: string;
|
|
49
48
|
private triggerHasFocus;
|
|
50
49
|
watchIsOpen(newValue: boolean): void;
|
|
51
50
|
private get isMulti();
|