@sellmate/design-system 1.0.15 → 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-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-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-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-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-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-number-input/sd-number-input.d.ts +12 -3
- package/dist/types/components.d.ts +44 -2
- package/hydrate/index.js +62 -45
- package/hydrate/index.mjs +62 -45
- 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/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
|
@@ -149,7 +149,7 @@ const SdSelectMultiple = class extends BaseDropdownEvent {
|
|
|
149
149
|
this.handleOptionSelection(option);
|
|
150
150
|
};
|
|
151
151
|
render() {
|
|
152
|
-
return (h("sd-field", { key: '
|
|
152
|
+
return (h("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) }, h("div", { key: 'fda63e4e8dcc72aa0147b2981b49b7e28e377ee8', class: {
|
|
153
153
|
'sd-select-multiple': true,
|
|
154
154
|
'sd-select-multiple--open': this.isOpen,
|
|
155
155
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -46,7 +46,7 @@ const SdSelectOptionGroup = class {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
render() {
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '8e88aacd2c3122a563fcf78bcbe9731b6a29d8c5', class: {
|
|
50
50
|
'sd-select__option-group': true,
|
|
51
51
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
52
52
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -55,10 +55,10 @@ const SdSelectOptionGroup = class {
|
|
|
55
55
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
56
56
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
57
57
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
58
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '
|
|
58
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: 'be4bc7f2867ea5c86505bc9284ac3de46f7077f9', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: '00063ab3a6f1d4f44671ac82dd05524968bec668', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
59
59
|
e.preventDefault();
|
|
60
60
|
this.handleClick(this.option, this.isSelected, e);
|
|
61
|
-
} })), h("span", { key: '
|
|
61
|
+
} })), h("span", { key: '802c908d44bf1c0db5d64bf4c8d4bab4ebe2b87c', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: 'efd26a2d6e4e2662410de3755b70a2a2585ad0c4', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
SdSelectOptionGroup.style = sdSelectOptionGroupCss();
|
|
@@ -39,7 +39,7 @@ const SdToggleButton = class {
|
|
|
39
39
|
this.change.emit(newValue);
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
|
-
return (h("label", { key: '
|
|
42
|
+
return (h("label", { key: '6f8d9e738490ef344ff26a4026b9de17af68041e', class: this.buttonClasses, "aria-label": this.label || 'toggle button' }, this.label, h("input", { key: '6d9d45c451301c4635e610fd70280be1fe65b316', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
SdToggleButton.style = sdToggleButtonCss();
|
|
@@ -35,7 +35,7 @@ const SdToggle = class {
|
|
|
35
35
|
this.change.emit(newValue);
|
|
36
36
|
};
|
|
37
37
|
render() {
|
|
38
|
-
return (h("label", { key: '
|
|
38
|
+
return (h("label", { key: 'c0fcd12c231fdb995b5edae756157c58b352fd0f', "aria-label": this.label || 'toggle', class: this.toggleClasses }, h("input", { key: 'e50042ae04830f4c276d8140725ab62cc2d0490d', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), this.label && h("span", { key: '99f9506a2dcea8cfd85aabf6b71243c116a2bf11', class: "sd-toggle__label" }, this.label), h("div", { key: '424e1ae78d5684051bd7a2b3ba89f6760f773f1c', class: "sd-toggle__track" }, h("div", { key: '29aab89e58022ce22f026fb694bb9b1e4531d8cf', class: "sd-toggle__thumb" }))));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
SdToggle.style = sdToggleCss();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Rule } from '../../types/form';
|
|
2
3
|
export declare class SdNumberInput {
|
|
3
4
|
el: HTMLElement;
|
|
4
5
|
min: number;
|
|
@@ -8,10 +9,11 @@ export declare class SdNumberInput {
|
|
|
8
9
|
useDecimal: boolean;
|
|
9
10
|
value?: string | number | null;
|
|
10
11
|
label?: string;
|
|
12
|
+
insideLabel: boolean;
|
|
11
13
|
placeholder: string;
|
|
12
14
|
disabled: boolean;
|
|
13
15
|
width?: number | string;
|
|
14
|
-
rules?:
|
|
16
|
+
rules?: Rule[];
|
|
15
17
|
autoFocus: boolean;
|
|
16
18
|
status?: 'default' | 'pass' | 'error';
|
|
17
19
|
inputClass: string;
|
|
@@ -19,11 +21,14 @@ export declare class SdNumberInput {
|
|
|
19
21
|
inputStyle: {
|
|
20
22
|
[key: string]: string;
|
|
21
23
|
};
|
|
24
|
+
error: boolean;
|
|
25
|
+
focused: boolean;
|
|
26
|
+
hovered: boolean;
|
|
22
27
|
private internalValue;
|
|
23
28
|
private displayValue;
|
|
24
|
-
private hovered;
|
|
25
|
-
private error;
|
|
26
29
|
private nativeEl;
|
|
30
|
+
private formField?;
|
|
31
|
+
name: string;
|
|
27
32
|
update?: EventEmitter<number | null>;
|
|
28
33
|
focus?: EventEmitter<Event>;
|
|
29
34
|
blur?: EventEmitter<Event>;
|
|
@@ -35,6 +40,10 @@ export declare class SdNumberInput {
|
|
|
35
40
|
private isDecrementDisabled;
|
|
36
41
|
valueChanged(newValue: string | number | null): void;
|
|
37
42
|
internalValueChanged(newValue: number | null): void;
|
|
43
|
+
sdValidate(): Promise<void>;
|
|
44
|
+
sdReset(): Promise<void>;
|
|
45
|
+
sdResetValidate(): Promise<void>;
|
|
46
|
+
sdFocus(): Promise<void>;
|
|
38
47
|
componentWillLoad(): void;
|
|
39
48
|
private handleInput;
|
|
40
49
|
private handleFocus;
|
|
@@ -491,6 +491,18 @@ export namespace Components {
|
|
|
491
491
|
* @default false
|
|
492
492
|
*/
|
|
493
493
|
"disabled": boolean;
|
|
494
|
+
/**
|
|
495
|
+
* @default false
|
|
496
|
+
*/
|
|
497
|
+
"error": boolean;
|
|
498
|
+
/**
|
|
499
|
+
* @default false
|
|
500
|
+
*/
|
|
501
|
+
"focused": boolean;
|
|
502
|
+
/**
|
|
503
|
+
* @default false
|
|
504
|
+
*/
|
|
505
|
+
"hovered": boolean;
|
|
494
506
|
/**
|
|
495
507
|
* @default ''
|
|
496
508
|
*/
|
|
@@ -499,6 +511,10 @@ export namespace Components {
|
|
|
499
511
|
* @default {}
|
|
500
512
|
*/
|
|
501
513
|
"inputStyle": { [key: string]: string };
|
|
514
|
+
/**
|
|
515
|
+
* @default false
|
|
516
|
+
*/
|
|
517
|
+
"insideLabel": boolean;
|
|
502
518
|
"label"?: string;
|
|
503
519
|
/**
|
|
504
520
|
* @default Number.POSITIVE_INFINITY
|
|
@@ -516,8 +532,15 @@ export namespace Components {
|
|
|
516
532
|
* @default false
|
|
517
533
|
*/
|
|
518
534
|
"readonly": boolean;
|
|
519
|
-
|
|
535
|
+
/**
|
|
536
|
+
* @default []
|
|
537
|
+
*/
|
|
538
|
+
"rules"?: Rule[];
|
|
539
|
+
"sdFocus": () => Promise<void>;
|
|
520
540
|
"sdGetNativeElement": () => Promise<HTMLInputElement | null>;
|
|
541
|
+
"sdReset": () => Promise<void>;
|
|
542
|
+
"sdResetValidate": () => Promise<void>;
|
|
543
|
+
"sdValidate": () => Promise<void>;
|
|
521
544
|
"status"?: 'default' | 'pass' | 'error';
|
|
522
545
|
/**
|
|
523
546
|
* @default 1
|
|
@@ -2441,6 +2464,18 @@ declare namespace LocalJSX {
|
|
|
2441
2464
|
* @default false
|
|
2442
2465
|
*/
|
|
2443
2466
|
"disabled"?: boolean;
|
|
2467
|
+
/**
|
|
2468
|
+
* @default false
|
|
2469
|
+
*/
|
|
2470
|
+
"error"?: boolean;
|
|
2471
|
+
/**
|
|
2472
|
+
* @default false
|
|
2473
|
+
*/
|
|
2474
|
+
"focused"?: boolean;
|
|
2475
|
+
/**
|
|
2476
|
+
* @default false
|
|
2477
|
+
*/
|
|
2478
|
+
"hovered"?: boolean;
|
|
2444
2479
|
/**
|
|
2445
2480
|
* @default ''
|
|
2446
2481
|
*/
|
|
@@ -2449,6 +2484,10 @@ declare namespace LocalJSX {
|
|
|
2449
2484
|
* @default {}
|
|
2450
2485
|
*/
|
|
2451
2486
|
"inputStyle"?: { [key: string]: string };
|
|
2487
|
+
/**
|
|
2488
|
+
* @default false
|
|
2489
|
+
*/
|
|
2490
|
+
"insideLabel"?: boolean;
|
|
2452
2491
|
"label"?: string;
|
|
2453
2492
|
/**
|
|
2454
2493
|
* @default Number.POSITIVE_INFINITY
|
|
@@ -2469,7 +2508,10 @@ declare namespace LocalJSX {
|
|
|
2469
2508
|
* @default false
|
|
2470
2509
|
*/
|
|
2471
2510
|
"readonly"?: boolean;
|
|
2472
|
-
|
|
2511
|
+
/**
|
|
2512
|
+
* @default []
|
|
2513
|
+
*/
|
|
2514
|
+
"rules"?: Rule[];
|
|
2473
2515
|
"status"?: 'default' | 'pass' | 'error';
|
|
2474
2516
|
/**
|
|
2475
2517
|
* @default 1
|
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)
|
|
@@ -7338,7 +7339,7 @@ class SdModalCard {
|
|
|
7338
7339
|
}; }
|
|
7339
7340
|
}
|
|
7340
7341
|
|
|
7341
|
-
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)}`;
|
|
7342
7343
|
|
|
7343
7344
|
class SdNumberInput {
|
|
7344
7345
|
constructor(hostRef) {
|
|
@@ -7355,20 +7356,24 @@ class SdNumberInput {
|
|
|
7355
7356
|
useDecimal = false;
|
|
7356
7357
|
value = null;
|
|
7357
7358
|
label;
|
|
7359
|
+
insideLabel = false;
|
|
7358
7360
|
placeholder = '입력해 주세요.';
|
|
7359
7361
|
disabled = false;
|
|
7360
7362
|
width;
|
|
7361
|
-
rules;
|
|
7363
|
+
rules = [];
|
|
7362
7364
|
autoFocus = false;
|
|
7363
7365
|
status;
|
|
7364
7366
|
inputClass = '';
|
|
7365
7367
|
readonly = false;
|
|
7366
7368
|
inputStyle = {};
|
|
7369
|
+
error = false;
|
|
7370
|
+
focused = false;
|
|
7371
|
+
hovered = false;
|
|
7367
7372
|
internalValue = null;
|
|
7368
7373
|
displayValue = '';
|
|
7369
|
-
hovered = false;
|
|
7370
|
-
error = false;
|
|
7371
7374
|
nativeEl = undefined;
|
|
7375
|
+
formField;
|
|
7376
|
+
name = nanoid();
|
|
7372
7377
|
update;
|
|
7373
7378
|
focus;
|
|
7374
7379
|
blur;
|
|
@@ -7439,16 +7444,18 @@ class SdNumberInput {
|
|
|
7439
7444
|
this.value = newValue;
|
|
7440
7445
|
this.update?.emit(newValue);
|
|
7441
7446
|
}
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
this.
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
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();
|
|
7452
7459
|
}
|
|
7453
7460
|
componentWillLoad() {
|
|
7454
7461
|
if (this.value !== null && this.value !== undefined) {
|
|
@@ -7511,11 +7518,15 @@ class SdNumberInput {
|
|
|
7511
7518
|
handleFocus = (event) => {
|
|
7512
7519
|
this.focus?.emit(event);
|
|
7513
7520
|
};
|
|
7514
|
-
handleBlur = (event) => {
|
|
7521
|
+
handleBlur = async (event) => {
|
|
7515
7522
|
this.updateDisplay();
|
|
7516
7523
|
if (this.nativeEl) {
|
|
7517
7524
|
this.nativeEl.value = this.displayValue;
|
|
7518
7525
|
}
|
|
7526
|
+
if (this.rules && this.rules.length > 0) {
|
|
7527
|
+
await this.formField?.sdValidate();
|
|
7528
|
+
}
|
|
7529
|
+
this.focused = false;
|
|
7519
7530
|
this.blur?.emit(event);
|
|
7520
7531
|
};
|
|
7521
7532
|
handleKeyDown = (event) => {
|
|
@@ -7575,17 +7586,17 @@ class SdNumberInput {
|
|
|
7575
7586
|
const inputStyles = {
|
|
7576
7587
|
textAlign: this.useButton ? 'center' : 'right',
|
|
7577
7588
|
};
|
|
7578
|
-
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: {
|
|
7579
7590
|
'sd-number-input': true,
|
|
7580
7591
|
[this.getInputStatus()]: true,
|
|
7581
7592
|
'sd-number-input--with-buttons': this.useButton,
|
|
7582
|
-
}, 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: {
|
|
7583
7594
|
'sd-number-input__button': true,
|
|
7584
7595
|
'sd-number-input__button--decrement': true,
|
|
7585
|
-
}, 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: {
|
|
7586
7597
|
'sd-number-input__button': true,
|
|
7587
7598
|
'sd-number-input__button--increment': true,
|
|
7588
|
-
}, 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' })))))));
|
|
7589
7600
|
}
|
|
7590
7601
|
static get watchers() { return {
|
|
7591
7602
|
"value": ["valueChanged"],
|
|
@@ -7603,6 +7614,7 @@ class SdNumberInput {
|
|
|
7603
7614
|
"useDecimal": [4, "use-decimal"],
|
|
7604
7615
|
"value": [1032],
|
|
7605
7616
|
"label": [1],
|
|
7617
|
+
"insideLabel": [4, "inside-label"],
|
|
7606
7618
|
"placeholder": [1],
|
|
7607
7619
|
"disabled": [4],
|
|
7608
7620
|
"width": [8],
|
|
@@ -7612,10 +7624,15 @@ class SdNumberInput {
|
|
|
7612
7624
|
"inputClass": [1, "input-class"],
|
|
7613
7625
|
"readonly": [4],
|
|
7614
7626
|
"inputStyle": [16],
|
|
7627
|
+
"error": [1028],
|
|
7628
|
+
"focused": [1028],
|
|
7629
|
+
"hovered": [1028],
|
|
7615
7630
|
"internalValue": [32],
|
|
7616
7631
|
"displayValue": [32],
|
|
7617
|
-
"
|
|
7618
|
-
"
|
|
7632
|
+
"sdValidate": [64],
|
|
7633
|
+
"sdReset": [64],
|
|
7634
|
+
"sdResetValidate": [64],
|
|
7635
|
+
"sdFocus": [64],
|
|
7619
7636
|
"sdGetNativeElement": [64]
|
|
7620
7637
|
},
|
|
7621
7638
|
"$listeners$": undefined,
|
|
@@ -7699,12 +7716,12 @@ class SdPagination {
|
|
|
7699
7716
|
}
|
|
7700
7717
|
}
|
|
7701
7718
|
render() {
|
|
7702
|
-
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: {
|
|
7703
7720
|
'pagination-btn': true,
|
|
7704
7721
|
'pagination-btn--selected': this.currentPage === n,
|
|
7705
7722
|
}, disabled: this.currentPage === n, style: {
|
|
7706
7723
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
7707
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
7724
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '2be11ae773c0bce71ecaf53f99daff3f5b2d567d', class: "append-btns" }, this.renderNextButtons())));
|
|
7708
7725
|
}
|
|
7709
7726
|
static get style() { return sdPaginationCss(); }
|
|
7710
7727
|
static get cmpMeta() { return {
|
|
@@ -7758,11 +7775,11 @@ class SdPopover {
|
|
|
7758
7775
|
this.showPopover = false;
|
|
7759
7776
|
};
|
|
7760
7777
|
render() {
|
|
7761
|
-
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: {
|
|
7762
7779
|
'sd-floating-menu': true,
|
|
7763
7780
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
7764
7781
|
[this.menuClass]: !!this.menuClass,
|
|
7765
|
-
} }, 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" }))))))));
|
|
7766
7783
|
}
|
|
7767
7784
|
static get watchers() { return {
|
|
7768
7785
|
"show": ["watchShowHandler"]
|
|
@@ -7913,7 +7930,7 @@ class SdPortal {
|
|
|
7913
7930
|
this.close.emit();
|
|
7914
7931
|
}
|
|
7915
7932
|
render() {
|
|
7916
|
-
return hAsync("slot", { key: '
|
|
7933
|
+
return hAsync("slot", { key: 'ba2bf5df16f9bef0acef1ac8a08b090a23d02bc7' });
|
|
7917
7934
|
}
|
|
7918
7935
|
static get cmpMeta() { return {
|
|
7919
7936
|
"$flags$": 772,
|
|
@@ -7970,10 +7987,10 @@ class SdProgress {
|
|
|
7970
7987
|
return this.statusColor[this.progressStatus];
|
|
7971
7988
|
}
|
|
7972
7989
|
render() {
|
|
7973
|
-
return (hAsync("div", { key: '
|
|
7990
|
+
return (hAsync("div", { key: '43da9dac67e760bfe53b8db11c27eef7ef0d8b3b', style: {
|
|
7974
7991
|
'--progress-color': this.progressColor,
|
|
7975
7992
|
'--progress-percentage': `${this.progressPercentage}%`,
|
|
7976
|
-
} }, 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)));
|
|
7977
7994
|
}
|
|
7978
7995
|
renderBarProgress() {
|
|
7979
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, "%")));
|
|
@@ -8636,10 +8653,10 @@ class SdSelectDropdown {
|
|
|
8636
8653
|
this.isScrolled = scrollTop > 0;
|
|
8637
8654
|
};
|
|
8638
8655
|
render() {
|
|
8639
|
-
return (hAsync("div", { key: '
|
|
8656
|
+
return (hAsync("div", { key: 'ff55e2e133114accc2641a0025bdcf551eda3511', class: {
|
|
8640
8657
|
'sd-select-dropdown': true,
|
|
8641
8658
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
8642
|
-
}, 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)))));
|
|
8643
8660
|
}
|
|
8644
8661
|
static get watchers() { return {
|
|
8645
8662
|
"filteredOptions": ["filteredOptionsChanged"],
|
|
@@ -8819,7 +8836,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
8819
8836
|
this.handleOptionSelection(option);
|
|
8820
8837
|
};
|
|
8821
8838
|
render() {
|
|
8822
|
-
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: {
|
|
8823
8840
|
'sd-select-multiple': true,
|
|
8824
8841
|
'sd-select-multiple--open': this.isOpen,
|
|
8825
8842
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -9402,7 +9419,7 @@ class SdSelectOption {
|
|
|
9402
9419
|
}
|
|
9403
9420
|
};
|
|
9404
9421
|
render() {
|
|
9405
|
-
return (hAsync("div", { key: '
|
|
9422
|
+
return (hAsync("div", { key: 'a4fcca24b0bdde4f4665585c6cede84bd3b64d59', class: {
|
|
9406
9423
|
'sd-select__option': true,
|
|
9407
9424
|
'sd-select__option--selected': this.isSelected,
|
|
9408
9425
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -9488,7 +9505,7 @@ class SdSelectOptionGroup {
|
|
|
9488
9505
|
}
|
|
9489
9506
|
};
|
|
9490
9507
|
render() {
|
|
9491
|
-
return (hAsync("div", { key: '
|
|
9508
|
+
return (hAsync("div", { key: '8e88aacd2c3122a563fcf78bcbe9731b6a29d8c5', class: {
|
|
9492
9509
|
'sd-select__option-group': true,
|
|
9493
9510
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
9494
9511
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -9497,10 +9514,10 @@ class SdSelectOptionGroup {
|
|
|
9497
9514
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
9498
9515
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
9499
9516
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
9500
|
-
}, 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 => {
|
|
9501
9518
|
e.preventDefault();
|
|
9502
9519
|
this.handleClick(this.option, this.isSelected, e);
|
|
9503
|
-
} })), 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})`)))));
|
|
9504
9521
|
}
|
|
9505
9522
|
static get style() { return sdSelectOptionGroupCss(); }
|
|
9506
9523
|
static get cmpMeta() { return {
|
|
@@ -9549,17 +9566,17 @@ class SdSelectSearchInput {
|
|
|
9549
9566
|
input?.focus({ preventScroll: true });
|
|
9550
9567
|
}
|
|
9551
9568
|
render() {
|
|
9552
|
-
return (hAsync("div", { key: '
|
|
9569
|
+
return (hAsync("div", { key: 'b19a029ef82d876c984c1f827d7a0f29bb823f5d', class: {
|
|
9553
9570
|
'sd-select-search-input': true,
|
|
9554
9571
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
9555
|
-
}, 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 => {
|
|
9556
9573
|
this.searchInput.emit(String(event?.detail));
|
|
9557
9574
|
}, onSdFocus: () => {
|
|
9558
9575
|
this.searchFocus.emit();
|
|
9559
9576
|
}, onKeyDown: event => {
|
|
9560
9577
|
if (event.code === 'Enter')
|
|
9561
9578
|
event.stopPropagation();
|
|
9562
|
-
} }, hAsync("sd-icon", { key: '
|
|
9579
|
+
} }, hAsync("sd-icon", { key: '2b38a07cbc0bb0d7dd020ece45f18bdff4c262e5', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
9563
9580
|
}
|
|
9564
9581
|
static get style() { return sdSelectSearchInputCss(); }
|
|
9565
9582
|
static get cmpMeta() { return {
|
|
@@ -10509,10 +10526,10 @@ class SdTextarea {
|
|
|
10509
10526
|
}
|
|
10510
10527
|
render() {
|
|
10511
10528
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
10512
|
-
return (hAsync("div", { key: '
|
|
10529
|
+
return (hAsync("div", { key: '888d11be57629e83e1215daddab63351a323672f', class: {
|
|
10513
10530
|
'sd-textarea': true,
|
|
10514
10531
|
[this.getTextareaStatus()]: true,
|
|
10515
|
-
}, 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)))));
|
|
10516
10533
|
}
|
|
10517
10534
|
static get watchers() { return {
|
|
10518
10535
|
"value": ["valueChanged"],
|
|
@@ -10649,7 +10666,7 @@ class SdToggle {
|
|
|
10649
10666
|
this.change.emit(newValue);
|
|
10650
10667
|
};
|
|
10651
10668
|
render() {
|
|
10652
|
-
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" }))));
|
|
10653
10670
|
}
|
|
10654
10671
|
static get style() { return sdToggleCss(); }
|
|
10655
10672
|
static get cmpMeta() { return {
|
|
@@ -10705,7 +10722,7 @@ class SdToggleButton {
|
|
|
10705
10722
|
this.change.emit(newValue);
|
|
10706
10723
|
};
|
|
10707
10724
|
render() {
|
|
10708
|
-
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 })));
|
|
10709
10726
|
}
|
|
10710
10727
|
static get style() { return sdToggleButtonCss(); }
|
|
10711
10728
|
static get cmpMeta() { return {
|