@uzum-tech/ui 1.5.2 → 1.5.4
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/README.md +0 -1
- package/dist/index.js +1147 -628
- package/dist/index.prod.js +3 -3
- package/es/_internal/checkbox/src/use-checkbox.js +3 -3
- package/es/_internal/radio/src/use-radio.js +3 -3
- package/es/_mixins/use-form-item.d.ts +4 -4
- package/es/_mixins/use-form-item.js +4 -4
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +3 -0
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/composable/composables.d.ts +11 -0
- package/es/_utils/composable/composables.js +40 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/uzum/index.d.ts +1 -0
- package/es/_utils/uzum/index.js +1 -0
- package/es/_utils/uzum/value.d.ts +1 -0
- package/es/_utils/uzum/value.js +9 -0
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/alert/styles/light.js +6 -6
- package/es/auto-complete/src/AutoComplete.js +10 -10
- package/es/avatar/src/Avatar.d.ts +6 -0
- package/es/avatar/src/Avatar.js +9 -3
- package/es/card-list/src/CardList.js +1 -1
- package/es/card-list/src/CardListItem.d.ts +13 -0
- package/es/card-list/src/CardListItem.js +11 -4
- package/es/card-list/src/interface.d.ts +1 -0
- package/es/card-list/src/styles/index.cssr.js +6 -6
- package/es/card-list/styles/light.js +2 -2
- package/es/cascader/src/Cascader.js +7 -7
- package/es/checkbox/src/CheckboxGroup.js +9 -9
- package/es/collapse/src/Collapse.d.ts +47 -14
- package/es/collapse/src/Collapse.js +6 -3
- package/es/collapse/src/CollapseItem.js +3 -2
- package/es/collapse/src/styles/index.cssr.js +27 -7
- package/es/collapse/styles/light.d.ts +4 -1
- package/es/collapse/styles/light.js +6 -3
- package/es/color-picker/src/ColorPicker.js +6 -6
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +7 -0
- package/es/data-table/src/DataTable.js +21 -10
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +8 -6
- package/es/data-table/src/TableParts/Cell.js +85 -23
- package/es/data-table/src/interface.d.ts +14 -6
- package/es/data-table/src/interface.js +1 -1
- package/es/data-table/src/styles/index.cssr.js +5 -3
- package/es/data-table/src/use-mask.d.ts +3 -6
- package/es/data-table/src/utils.d.ts +2 -1
- package/es/data-table/src/utils.js +13 -0
- package/es/date-picker/src/DatePicker.js +7 -7
- package/es/dialog/src/DialogProvider.d.ts +6 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/es/dynamic-tags/src/DynamicTags.js +3 -3
- package/es/dynamic-tags/styles/light.d.ts +1 -0
- package/es/input/src/Input.js +8 -8
- package/es/input-number/src/InputNumber.js +7 -7
- package/es/input-otp/index.d.ts +3 -0
- package/es/input-otp/index.js +1 -0
- package/es/input-otp/src/InputOtp.d.ts +871 -0
- package/es/input-otp/src/InputOtp.js +250 -0
- package/es/input-otp/src/public-types.d.ts +25 -0
- package/es/input-otp/src/public-types.js +1 -0
- package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/index.cssr.js +20 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.js +5 -0
- package/es/input-otp/styles/dark.d.ts +3 -0
- package/es/input-otp/styles/dark.js +12 -0
- package/es/input-otp/styles/index.d.ts +4 -0
- package/es/input-otp/styles/index.js +3 -0
- package/es/input-otp/styles/light.d.ts +83 -0
- package/es/input-otp/styles/light.js +22 -0
- package/es/input-otp/styles/rtl.d.ts +2 -0
- package/es/input-otp/styles/rtl.js +5 -0
- package/es/legacy-transfer/src/Transfer.js +3 -3
- package/es/list/src/ListItem.js +8 -4
- package/es/mention/src/Mention.js +7 -7
- package/es/radio/src/RadioGroup.js +5 -5
- package/es/rate/src/Rate.js +3 -3
- package/es/select/src/Select.js +7 -7
- package/es/slider/src/Slider.js +3 -3
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.js +7 -7
- package/es/tag/src/Tag.d.ts +27 -13
- package/es/tag/src/Tag.js +7 -2
- package/es/tag/src/styles/index.cssr.js +13 -3
- package/es/tag/styles/light.d.ts +1 -0
- package/es/tag/styles/light.js +7 -6
- package/es/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/time-picker/src/TimePicker.js +7 -7
- package/es/transfer/src/Transfer.js +3 -3
- package/es/tree-select/src/TreeSelect.js +5 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/checkbox/src/use-checkbox.js +3 -3
- package/lib/_internal/radio/src/use-radio.js +3 -3
- package/lib/_mixins/use-form-item.d.ts +4 -4
- package/lib/_mixins/use-form-item.js +4 -4
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +3 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/composable/composables.d.ts +11 -0
- package/lib/_utils/composable/composables.js +47 -0
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/uzum/index.d.ts +1 -0
- package/lib/_utils/uzum/index.js +3 -1
- package/lib/_utils/uzum/value.d.ts +1 -0
- package/lib/_utils/uzum/value.js +12 -0
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/alert/styles/light.js +6 -6
- package/lib/auto-complete/src/AutoComplete.js +10 -10
- package/lib/avatar/src/Avatar.d.ts +6 -0
- package/lib/avatar/src/Avatar.js +9 -3
- package/lib/card-list/src/CardList.js +1 -1
- package/lib/card-list/src/CardListItem.d.ts +13 -0
- package/lib/card-list/src/CardListItem.js +11 -4
- package/lib/card-list/src/interface.d.ts +1 -0
- package/lib/card-list/src/styles/index.cssr.js +5 -5
- package/lib/card-list/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.js +7 -7
- package/lib/checkbox/src/CheckboxGroup.js +9 -9
- package/lib/collapse/src/Collapse.d.ts +47 -14
- package/lib/collapse/src/Collapse.js +6 -3
- package/lib/collapse/src/CollapseItem.js +3 -2
- package/lib/collapse/src/styles/index.cssr.js +27 -7
- package/lib/collapse/styles/light.d.ts +4 -1
- package/lib/collapse/styles/light.js +6 -3
- package/lib/color-picker/src/ColorPicker.js +6 -6
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +7 -0
- package/lib/data-table/src/DataTable.js +21 -10
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +8 -6
- package/lib/data-table/src/TableParts/Cell.js +84 -22
- package/lib/data-table/src/interface.d.ts +14 -6
- package/lib/data-table/src/interface.js +1 -1
- package/lib/data-table/src/styles/index.cssr.js +5 -3
- package/lib/data-table/src/use-mask.d.ts +3 -6
- package/lib/data-table/src/utils.d.ts +2 -1
- package/lib/data-table/src/utils.js +14 -1
- package/lib/date-picker/src/DatePicker.js +7 -7
- package/lib/dialog/src/DialogProvider.d.ts +6 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/lib/dynamic-tags/src/DynamicTags.js +3 -3
- package/lib/dynamic-tags/styles/light.d.ts +1 -0
- package/lib/input/src/Input.js +8 -8
- package/lib/input-number/src/InputNumber.js +7 -7
- package/lib/input-otp/index.d.ts +3 -0
- package/lib/input-otp/index.js +9 -0
- package/lib/input-otp/src/InputOtp.d.ts +871 -0
- package/lib/input-otp/src/InputOtp.js +256 -0
- package/lib/input-otp/src/public-types.d.ts +25 -0
- package/lib/input-otp/src/public-types.js +2 -0
- package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/index.cssr.js +25 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
- package/lib/input-otp/styles/dark.d.ts +3 -0
- package/lib/input-otp/styles/dark.js +14 -0
- package/lib/input-otp/styles/index.d.ts +4 -0
- package/lib/input-otp/styles/index.js +12 -0
- package/lib/input-otp/styles/light.d.ts +83 -0
- package/lib/input-otp/styles/light.js +25 -0
- package/lib/input-otp/styles/rtl.d.ts +2 -0
- package/lib/input-otp/styles/rtl.js +11 -0
- package/lib/legacy-transfer/src/Transfer.js +3 -3
- package/lib/list/src/ListItem.js +8 -4
- package/lib/mention/src/Mention.js +7 -7
- package/lib/radio/src/RadioGroup.js +5 -5
- package/lib/rate/src/Rate.js +3 -3
- package/lib/select/src/Select.js +7 -7
- package/lib/slider/src/Slider.js +3 -3
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +106 -103
- package/lib/switch/src/Switch.js +7 -7
- package/lib/tag/src/Tag.d.ts +27 -13
- package/lib/tag/src/Tag.js +7 -2
- package/lib/tag/src/styles/index.cssr.js +13 -3
- package/lib/tag/styles/light.d.ts +1 -0
- package/lib/tag/styles/light.js +7 -6
- package/lib/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/time-picker/src/TimePicker.js +7 -7
- package/lib/transfer/src/Transfer.js +3 -3
- package/lib/tree-select/src/TreeSelect.js +5 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +131 -4
package/es/select/src/Select.js
CHANGED
|
@@ -223,7 +223,7 @@ export default defineComponent({
|
|
|
223
223
|
const { mergedDisabledRef, mergedStatusRef } = formItem;
|
|
224
224
|
function doUpdateValue(value, option) {
|
|
225
225
|
const { onChange, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
|
|
226
|
-
const {
|
|
226
|
+
const { triggerFormChange, triggerFormInput } = formItem;
|
|
227
227
|
if (onChange)
|
|
228
228
|
call(onChange, value, option);
|
|
229
229
|
if (onUpdateValue)
|
|
@@ -232,15 +232,15 @@ export default defineComponent({
|
|
|
232
232
|
call(_onUpdateValue, value, option);
|
|
233
233
|
}
|
|
234
234
|
uncontrolledValueRef.value = value;
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
triggerFormChange();
|
|
236
|
+
triggerFormInput();
|
|
237
237
|
}
|
|
238
238
|
function doBlur(e) {
|
|
239
239
|
const { onBlur } = props;
|
|
240
|
-
const {
|
|
240
|
+
const { triggerFormBlur } = formItem;
|
|
241
241
|
if (onBlur)
|
|
242
242
|
call(onBlur, e);
|
|
243
|
-
|
|
243
|
+
triggerFormBlur();
|
|
244
244
|
}
|
|
245
245
|
function doClear() {
|
|
246
246
|
const { onClear } = props;
|
|
@@ -249,10 +249,10 @@ export default defineComponent({
|
|
|
249
249
|
}
|
|
250
250
|
function doFocus(e) {
|
|
251
251
|
const { onFocus, showOnFocus } = props;
|
|
252
|
-
const {
|
|
252
|
+
const { triggerFormFocus } = formItem;
|
|
253
253
|
if (onFocus)
|
|
254
254
|
call(onFocus, e);
|
|
255
|
-
|
|
255
|
+
triggerFormFocus();
|
|
256
256
|
if (showOnFocus) {
|
|
257
257
|
openMenu();
|
|
258
258
|
}
|
package/es/slider/src/Slider.js
CHANGED
|
@@ -169,14 +169,14 @@ export default defineComponent({
|
|
|
169
169
|
}
|
|
170
170
|
function doUpdateValue(value) {
|
|
171
171
|
const { 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
|
|
172
|
-
const {
|
|
172
|
+
const { triggerFormInput, triggerFormChange } = formItem;
|
|
173
173
|
if (onUpdateValue)
|
|
174
174
|
call(onUpdateValue, value);
|
|
175
175
|
if (_onUpdateValue)
|
|
176
176
|
call(_onUpdateValue, value);
|
|
177
177
|
uncontrolledValueRef.value = value;
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
triggerFormInput();
|
|
179
|
+
triggerFormChange();
|
|
180
180
|
}
|
|
181
181
|
function dispatchValueUpdate(value) {
|
|
182
182
|
const { range } = props;
|
package/es/styles.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export { gradientTextDark } from './gradient-text/styles';
|
|
|
34
34
|
export { iconDark } from './icon/styles';
|
|
35
35
|
export { inputDark, inputRtl as unstableInputRtl } from './input/styles';
|
|
36
36
|
export { inputNumberDark, inputNumberRtl as unstableInputNumberRtl } from './input-number/styles';
|
|
37
|
+
export { inputOtpDark, inputOtpRtl as unstableInputOtpRtl } from './input-otp/styles';
|
|
37
38
|
export { layoutDark } from './layout/styles';
|
|
38
39
|
export { listDark, listRtl as unstableListRtl } from './list/styles';
|
|
39
40
|
export { loadingBarDark } from './loading-bar/styles';
|
package/es/styles.js
CHANGED
|
@@ -34,6 +34,7 @@ export { gradientTextDark } from './gradient-text/styles';
|
|
|
34
34
|
export { iconDark } from './icon/styles';
|
|
35
35
|
export { inputDark, inputRtl as unstableInputRtl } from './input/styles';
|
|
36
36
|
export { inputNumberDark, inputNumberRtl as unstableInputNumberRtl } from './input-number/styles';
|
|
37
|
+
export { inputOtpDark, inputOtpRtl as unstableInputOtpRtl } from './input-otp/styles';
|
|
37
38
|
export { layoutDark } from './layout/styles';
|
|
38
39
|
export { listDark, listRtl as unstableListRtl } from './list/styles';
|
|
39
40
|
export { loadingBarDark } from './loading-bar/styles';
|
package/es/switch/src/Switch.js
CHANGED
|
@@ -80,7 +80,7 @@ export default defineComponent({
|
|
|
80
80
|
});
|
|
81
81
|
function doUpdateValue(value) {
|
|
82
82
|
const { 'onUpdate:value': _onUpdateValue, onChange, onUpdateValue } = props;
|
|
83
|
-
const {
|
|
83
|
+
const { triggerFormInput, triggerFormChange } = formItem;
|
|
84
84
|
if (_onUpdateValue)
|
|
85
85
|
call(_onUpdateValue, value);
|
|
86
86
|
if (onUpdateValue)
|
|
@@ -88,16 +88,16 @@ export default defineComponent({
|
|
|
88
88
|
if (onChange)
|
|
89
89
|
call(onChange, value);
|
|
90
90
|
uncontrolledValueRef.value = value;
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
triggerFormInput();
|
|
92
|
+
triggerFormChange();
|
|
93
93
|
}
|
|
94
94
|
function doFocus() {
|
|
95
|
-
const {
|
|
96
|
-
|
|
95
|
+
const { triggerFormFocus } = formItem;
|
|
96
|
+
triggerFormFocus();
|
|
97
97
|
}
|
|
98
98
|
function doBlur() {
|
|
99
|
-
const {
|
|
100
|
-
|
|
99
|
+
const { triggerFormBlur } = formItem;
|
|
100
|
+
triggerFormBlur();
|
|
101
101
|
}
|
|
102
102
|
function handleClick() {
|
|
103
103
|
if (props.loading || mergedDisabledRef.value)
|
package/es/tag/src/Tag.d.ts
CHANGED
|
@@ -11,8 +11,13 @@ export declare const tagProps: {
|
|
|
11
11
|
type: PropType<boolean | undefined>;
|
|
12
12
|
default: undefined;
|
|
13
13
|
};
|
|
14
|
+
size: {
|
|
15
|
+
type: PropType<"small" | "medium" | "large">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
14
18
|
checked: BooleanConstructor;
|
|
15
19
|
checkable: BooleanConstructor;
|
|
20
|
+
outline: BooleanConstructor;
|
|
16
21
|
strong: BooleanConstructor;
|
|
17
22
|
triggerClickOnClose: BooleanConstructor;
|
|
18
23
|
onClose: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
@@ -35,10 +40,6 @@ export declare const tagProps: {
|
|
|
35
40
|
readonly default: "default";
|
|
36
41
|
};
|
|
37
42
|
round: BooleanConstructor;
|
|
38
|
-
size: {
|
|
39
|
-
readonly type: PropType<"tiny" | "small" | "medium" | "large">;
|
|
40
|
-
readonly default: "medium";
|
|
41
|
-
};
|
|
42
43
|
closable: {
|
|
43
44
|
readonly type: PropType<boolean | undefined>;
|
|
44
45
|
readonly default: undefined;
|
|
@@ -80,6 +81,7 @@ export declare const tagProps: {
|
|
|
80
81
|
textColorPressedCheckable: string;
|
|
81
82
|
textColorChecked: string;
|
|
82
83
|
colorCheckable: string;
|
|
84
|
+
colorCheckableOutline: string;
|
|
83
85
|
colorHoverCheckable: string;
|
|
84
86
|
colorPressedCheckable: string;
|
|
85
87
|
colorChecked: string;
|
|
@@ -183,6 +185,7 @@ export declare const tagProps: {
|
|
|
183
185
|
textColorPressedCheckable: string;
|
|
184
186
|
textColorChecked: string;
|
|
185
187
|
colorCheckable: string;
|
|
188
|
+
colorCheckableOutline: string;
|
|
186
189
|
colorHoverCheckable: string;
|
|
187
190
|
colorPressedCheckable: string;
|
|
188
191
|
colorChecked: string;
|
|
@@ -286,6 +289,7 @@ export declare const tagProps: {
|
|
|
286
289
|
textColorPressedCheckable: string;
|
|
287
290
|
textColorChecked: string;
|
|
288
291
|
colorCheckable: string;
|
|
292
|
+
colorCheckableOutline: string;
|
|
289
293
|
colorHoverCheckable: string;
|
|
290
294
|
colorPressedCheckable: string;
|
|
291
295
|
colorChecked: string;
|
|
@@ -367,8 +371,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
367
371
|
type: PropType<boolean | undefined>;
|
|
368
372
|
default: undefined;
|
|
369
373
|
};
|
|
374
|
+
size: {
|
|
375
|
+
type: PropType<"small" | "medium" | "large">;
|
|
376
|
+
default: string;
|
|
377
|
+
};
|
|
370
378
|
checked: BooleanConstructor;
|
|
371
379
|
checkable: BooleanConstructor;
|
|
380
|
+
outline: BooleanConstructor;
|
|
372
381
|
strong: BooleanConstructor;
|
|
373
382
|
triggerClickOnClose: BooleanConstructor;
|
|
374
383
|
onClose: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
@@ -391,10 +400,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
391
400
|
readonly default: "default";
|
|
392
401
|
};
|
|
393
402
|
round: BooleanConstructor;
|
|
394
|
-
size: {
|
|
395
|
-
readonly type: PropType<"tiny" | "small" | "medium" | "large">;
|
|
396
|
-
readonly default: "medium";
|
|
397
|
-
};
|
|
398
403
|
closable: {
|
|
399
404
|
readonly type: PropType<boolean | undefined>;
|
|
400
405
|
readonly default: undefined;
|
|
@@ -436,6 +441,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
436
441
|
textColorPressedCheckable: string;
|
|
437
442
|
textColorChecked: string;
|
|
438
443
|
colorCheckable: string;
|
|
444
|
+
colorCheckableOutline: string;
|
|
439
445
|
colorHoverCheckable: string;
|
|
440
446
|
colorPressedCheckable: string;
|
|
441
447
|
colorChecked: string;
|
|
@@ -539,6 +545,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
539
545
|
textColorPressedCheckable: string;
|
|
540
546
|
textColorChecked: string;
|
|
541
547
|
colorCheckable: string;
|
|
548
|
+
colorCheckableOutline: string;
|
|
542
549
|
colorHoverCheckable: string;
|
|
543
550
|
colorPressedCheckable: string;
|
|
544
551
|
colorChecked: string;
|
|
@@ -642,6 +649,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
642
649
|
textColorPressedCheckable: string;
|
|
643
650
|
textColorChecked: string;
|
|
644
651
|
colorCheckable: string;
|
|
652
|
+
colorCheckableOutline: string;
|
|
645
653
|
colorHoverCheckable: string;
|
|
646
654
|
colorPressedCheckable: string;
|
|
647
655
|
colorChecked: string;
|
|
@@ -739,6 +747,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
739
747
|
'--u-close-size': string;
|
|
740
748
|
'--u-color': string;
|
|
741
749
|
'--u-color-checkable': string;
|
|
750
|
+
'--u-color-checkable-outline': string;
|
|
742
751
|
'--u-color-checked': string;
|
|
743
752
|
'--u-color-checked-hover': string;
|
|
744
753
|
'--u-color-checked-pressed': string;
|
|
@@ -762,8 +771,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
762
771
|
type: PropType<boolean | undefined>;
|
|
763
772
|
default: undefined;
|
|
764
773
|
};
|
|
774
|
+
size: {
|
|
775
|
+
type: PropType<"small" | "medium" | "large">;
|
|
776
|
+
default: string;
|
|
777
|
+
};
|
|
765
778
|
checked: BooleanConstructor;
|
|
766
779
|
checkable: BooleanConstructor;
|
|
780
|
+
outline: BooleanConstructor;
|
|
767
781
|
strong: BooleanConstructor;
|
|
768
782
|
triggerClickOnClose: BooleanConstructor;
|
|
769
783
|
onClose: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
@@ -786,10 +800,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
786
800
|
readonly default: "default";
|
|
787
801
|
};
|
|
788
802
|
round: BooleanConstructor;
|
|
789
|
-
size: {
|
|
790
|
-
readonly type: PropType<"tiny" | "small" | "medium" | "large">;
|
|
791
|
-
readonly default: "medium";
|
|
792
|
-
};
|
|
793
803
|
closable: {
|
|
794
804
|
readonly type: PropType<boolean | undefined>;
|
|
795
805
|
readonly default: undefined;
|
|
@@ -831,6 +841,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
831
841
|
textColorPressedCheckable: string;
|
|
832
842
|
textColorChecked: string;
|
|
833
843
|
colorCheckable: string;
|
|
844
|
+
colorCheckableOutline: string;
|
|
834
845
|
colorHoverCheckable: string;
|
|
835
846
|
colorPressedCheckable: string;
|
|
836
847
|
colorChecked: string;
|
|
@@ -934,6 +945,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
934
945
|
textColorPressedCheckable: string;
|
|
935
946
|
textColorChecked: string;
|
|
936
947
|
colorCheckable: string;
|
|
948
|
+
colorCheckableOutline: string;
|
|
937
949
|
colorHoverCheckable: string;
|
|
938
950
|
colorPressedCheckable: string;
|
|
939
951
|
colorChecked: string;
|
|
@@ -1037,6 +1049,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1037
1049
|
textColorPressedCheckable: string;
|
|
1038
1050
|
textColorChecked: string;
|
|
1039
1051
|
colorCheckable: string;
|
|
1052
|
+
colorCheckableOutline: string;
|
|
1040
1053
|
colorHoverCheckable: string;
|
|
1041
1054
|
colorPressedCheckable: string;
|
|
1042
1055
|
colorChecked: string;
|
|
@@ -1111,11 +1124,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1111
1124
|
type: "default" | "tertiary" | "primary" | "info" | "success" | "warning" | "error";
|
|
1112
1125
|
disabled: boolean | undefined;
|
|
1113
1126
|
bordered: boolean | undefined;
|
|
1114
|
-
size: "small" | "
|
|
1127
|
+
size: "small" | "medium" | "large";
|
|
1115
1128
|
checked: boolean;
|
|
1116
1129
|
round: boolean;
|
|
1117
1130
|
closable: boolean | undefined;
|
|
1118
1131
|
strong: boolean;
|
|
1132
|
+
outline: boolean;
|
|
1119
1133
|
checkable: boolean;
|
|
1120
1134
|
triggerClickOnClose: boolean;
|
|
1121
1135
|
internalCloseFocusable: boolean;
|
package/es/tag/src/Tag.js
CHANGED
|
@@ -9,7 +9,10 @@ import style from './styles/index.cssr';
|
|
|
9
9
|
export const tagProps = Object.assign(Object.assign(Object.assign({}, useTheme.props), commonProps), { bordered: {
|
|
10
10
|
type: Boolean,
|
|
11
11
|
default: undefined
|
|
12
|
-
},
|
|
12
|
+
}, size: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: 'large'
|
|
15
|
+
}, checked: Boolean, checkable: Boolean, outline: Boolean, strong: Boolean, triggerClickOnClose: Boolean, onClose: [Array, Function], onMouseenter: Function, onMouseleave: Function, 'onUpdate:checked': Function, onUpdateChecked: Function,
|
|
13
16
|
// private
|
|
14
17
|
internalCloseFocusable: {
|
|
15
18
|
type: Boolean,
|
|
@@ -72,7 +75,7 @@ export default defineComponent({
|
|
|
72
75
|
const rtlEnabledRef = useRtl('Tag', mergedRtlRef, mergedClsPrefixRef);
|
|
73
76
|
const cssVarsRef = computed(() => {
|
|
74
77
|
const { type, size, color: { color, textColor } = {} } = props;
|
|
75
|
-
const { common: { cubicBezierEaseInOut }, self: { closeMargin, closeMarginRtl, borderRadius, opacityDisabled, textColorCheckable, textColorHoverCheckable, textColorPressedCheckable, textColorChecked, colorCheckable, colorHoverCheckable, colorPressedCheckable, colorChecked, colorCheckedHover, colorCheckedPressed, closeBorderRadius, fontWeightStrong, fontWeight, [createKey('padding', size)]: padding, [createKey('colorBordered', type)]: colorBordered, [createKey('closeSize', size)]: closeSize, [createKey('closeIconSize', size)]: closeIconSize, [createKey('fontSize', size)]: fontSize, [createKey('height', size)]: height, [createKey('color', type)]: typedColor, [createKey('textColor', type)]: typeTextColor, [createKey('border', type)]: border, [createKey('closeIconColor', type)]: closeIconColor, [createKey('closeIconColorHover', type)]: closeIconColorHover, [createKey('closeIconColorPressed', type)]: closeIconColorPressed, [createKey('closeColorHover', type)]: closeColorHover, [createKey('closeColorPressed', type)]: closeColorPressed } } = themeRef.value;
|
|
78
|
+
const { common: { cubicBezierEaseInOut }, self: { closeMargin, closeMarginRtl, borderRadius, opacityDisabled, textColorCheckable, textColorHoverCheckable, textColorPressedCheckable, textColorChecked, colorCheckable, colorCheckableOutline, colorHoverCheckable, colorPressedCheckable, colorChecked, colorCheckedHover, colorCheckedPressed, closeBorderRadius, fontWeightStrong, fontWeight, [createKey('padding', size)]: padding, [createKey('colorBordered', type)]: colorBordered, [createKey('closeSize', size)]: closeSize, [createKey('closeIconSize', size)]: closeIconSize, [createKey('fontSize', size)]: fontSize, [createKey('height', size)]: height, [createKey('color', type)]: typedColor, [createKey('textColor', type)]: typeTextColor, [createKey('border', type)]: border, [createKey('closeIconColor', type)]: closeIconColor, [createKey('closeIconColorHover', type)]: closeIconColorHover, [createKey('closeIconColorPressed', type)]: closeIconColorPressed, [createKey('closeColorHover', type)]: closeColorHover, [createKey('closeColorPressed', type)]: closeColorPressed } } = themeRef.value;
|
|
76
79
|
return {
|
|
77
80
|
'--u-font-weight-strong': fontWeightStrong,
|
|
78
81
|
'--u-font-weight': fontWeight,
|
|
@@ -93,6 +96,7 @@ export default defineComponent({
|
|
|
93
96
|
'--u-close-size': closeSize,
|
|
94
97
|
'--u-color': color || (mergedBorderedRef.value ? colorBordered : typedColor),
|
|
95
98
|
'--u-color-checkable': colorCheckable,
|
|
99
|
+
'--u-color-checkable-outline': colorCheckableOutline,
|
|
96
100
|
'--u-color-checked': colorChecked,
|
|
97
101
|
'--u-color-checked-hover': colorCheckedHover,
|
|
98
102
|
'--u-color-checked-pressed': colorCheckedPressed,
|
|
@@ -144,6 +148,7 @@ export default defineComponent({
|
|
|
144
148
|
[`${mergedClsPrefix}-tag--strong`]: this.strong,
|
|
145
149
|
[`${mergedClsPrefix}-tag--disabled`]: this.disabled,
|
|
146
150
|
[`${mergedClsPrefix}-tag--checkable`]: this.checkable,
|
|
151
|
+
[`${mergedClsPrefix}-tag--outline`]: this.checkable && this.outline,
|
|
147
152
|
[`${mergedClsPrefix}-tag--checked`]: this.checkable && this.checked,
|
|
148
153
|
[`${mergedClsPrefix}-tag--round`]: round,
|
|
149
154
|
[`${mergedClsPrefix}-tag--avatar`]: avatarNode,
|
|
@@ -50,7 +50,9 @@ export default cB('tag', `
|
|
|
50
50
|
font-weight: var(--u-font-weight);
|
|
51
51
|
`, [cM('strong', `
|
|
52
52
|
font-weight: var(--u-font-weight-strong);
|
|
53
|
-
`), cE('
|
|
53
|
+
`), cM('closable', [cE('content', `
|
|
54
|
+
padding-left: 4px;
|
|
55
|
+
`)]), cE('border', `
|
|
54
56
|
pointer-events: none;
|
|
55
57
|
position: absolute;
|
|
56
58
|
left: 0;
|
|
@@ -95,7 +97,11 @@ export default cB('tag', `
|
|
|
95
97
|
padding: 0px 8px;
|
|
96
98
|
background-color: var(--u-color-checkable);
|
|
97
99
|
transition: border-color .3s var(--u-bezier);
|
|
98
|
-
`, [
|
|
100
|
+
`, [cE('border', `
|
|
101
|
+
border: unset;
|
|
102
|
+
`), cE('content', `
|
|
103
|
+
padding-left: 0px;
|
|
104
|
+
`), cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-hover-checkable);', [cNotM('checked', 'color: var(--u-text-color-hover-checkable);')]), c('&:focus', `
|
|
99
105
|
background-color: var(--u-color-pressed-checkable);
|
|
100
106
|
transition: border-color .3s var(--u-bezier);`, [cNotM('checked', 'color: var(--u-text-color-pressed-checkable);')]), c('&:active', `
|
|
101
107
|
background-color: var(--u-color-pressed-checkable);
|
|
@@ -105,4 +111,8 @@ export default cB('tag', `
|
|
|
105
111
|
`, [cE('border', `
|
|
106
112
|
border-color: var(--u-color-checked);
|
|
107
113
|
transition: none;
|
|
108
|
-
`), cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-checked-hover);'), c('&:focus', 'background-color: var(--u-color-checked-hover);'), c('&:active', 'background-color: var(--u-color-checked-pressed);')])])])
|
|
114
|
+
`), cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-checked-hover);'), c('&:focus', 'background-color: var(--u-color-checked-hover);'), c('&:active', 'background-color: var(--u-color-checked-pressed);')])])]), cM('outline', `
|
|
115
|
+
background-color: var(--u-color-checkable-outline);
|
|
116
|
+
`, [cE('border', `
|
|
117
|
+
border: var(--u-border);
|
|
118
|
+
`)])]);
|
package/es/tag/styles/light.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
33
33
|
textColorPressedCheckable: string;
|
|
34
34
|
textColorChecked: string;
|
|
35
35
|
colorCheckable: string;
|
|
36
|
+
colorCheckableOutline: string;
|
|
36
37
|
colorHoverCheckable: string;
|
|
37
38
|
colorPressedCheckable: string;
|
|
38
39
|
colorChecked: string;
|
package/es/tag/styles/light.js
CHANGED
|
@@ -12,14 +12,14 @@ export const self = (vars) => {
|
|
|
12
12
|
closeSizeSmall: '14px',
|
|
13
13
|
closeSizeMedium: '16px',
|
|
14
14
|
closeSizeLarge: '18px',
|
|
15
|
-
paddingTiny: '2px 6px
|
|
16
|
-
paddingSmall: '2px 6px
|
|
17
|
-
paddingMedium: '2px 6px
|
|
18
|
-
paddingLarge: '
|
|
15
|
+
paddingTiny: '2px 6px',
|
|
16
|
+
paddingSmall: '2px 6px',
|
|
17
|
+
paddingMedium: '2px 6px',
|
|
18
|
+
paddingLarge: '6px 8px',
|
|
19
19
|
closeMargin: '0 0 0 4px',
|
|
20
20
|
closeMarginRtl: '0 4px 0 0',
|
|
21
21
|
closeBorderRadius: borderRadius,
|
|
22
|
-
heightTiny: '
|
|
22
|
+
heightTiny: '20px',
|
|
23
23
|
heightSmall: '20px',
|
|
24
24
|
heightMedium: '24px',
|
|
25
25
|
heightLarge: '32px',
|
|
@@ -36,7 +36,8 @@ export const self = (vars) => {
|
|
|
36
36
|
textColorHoverCheckable: textPrimary,
|
|
37
37
|
textColorPressedCheckable: textPrimary,
|
|
38
38
|
textColorChecked: textQuaternary,
|
|
39
|
-
colorCheckable:
|
|
39
|
+
colorCheckable: elementsQuaternary,
|
|
40
|
+
colorCheckableOutline: elementsSecondary,
|
|
40
41
|
colorHoverCheckable: elementsQuaternary,
|
|
41
42
|
colorPressedCheckable: elementsQuaternary,
|
|
42
43
|
colorChecked: elementsPrimary,
|
|
@@ -17,6 +17,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
17
17
|
scrollbarHeight: string;
|
|
18
18
|
scrollbarBorderRadius: string;
|
|
19
19
|
opacityDisabled: string;
|
|
20
|
+
brand150: string;
|
|
21
|
+
brand350: string;
|
|
22
|
+
brand550: string;
|
|
20
23
|
brandPrimary50: string;
|
|
21
24
|
brandPrimary100: string;
|
|
22
25
|
brandPrimary200: string;
|
package/es/themes/dark.js
CHANGED
|
@@ -86,6 +86,7 @@ import { toggleButtonDark } from '../toggle-button/styles';
|
|
|
86
86
|
import { accountOptionDark } from '../_internal/account-option/styles';
|
|
87
87
|
import { flexDark } from '../flex/styles';
|
|
88
88
|
import { actionCardDark } from '../action-card/styles';
|
|
89
|
+
import { inputOtpDark } from '../styles';
|
|
89
90
|
export const darkTheme = {
|
|
90
91
|
name: 'dark',
|
|
91
92
|
common: commonDark,
|
|
@@ -130,6 +131,7 @@ export const darkTheme = {
|
|
|
130
131
|
IconWrapper: iconWrapperDark,
|
|
131
132
|
Image: imageDark,
|
|
132
133
|
Input: inputDark,
|
|
134
|
+
InputOtp: inputOtpDark,
|
|
133
135
|
InputNumber: inputNumberDark,
|
|
134
136
|
LegacyTransfer: legacyTransferDark,
|
|
135
137
|
Layout: layoutDark,
|
package/es/themes/light.js
CHANGED
|
@@ -88,6 +88,7 @@ import { toggleButtonLight } from '../toggle-button/styles';
|
|
|
88
88
|
import { accountOptionLight } from '../_internal/account-option/styles';
|
|
89
89
|
import { flexLight } from '../flex/styles';
|
|
90
90
|
import { actionCardLight } from '../action-card/styles';
|
|
91
|
+
import { inputOtpLight } from '../input-otp/styles';
|
|
91
92
|
export const lightTheme = {
|
|
92
93
|
name: 'light',
|
|
93
94
|
common: commonLight,
|
|
@@ -132,6 +133,7 @@ export const lightTheme = {
|
|
|
132
133
|
IconWrapper: iconWrapperLight,
|
|
133
134
|
Image: imageLight,
|
|
134
135
|
Input: inputLight,
|
|
136
|
+
InputOtp: inputOtpLight,
|
|
135
137
|
InputNumber: inputNumberLight,
|
|
136
138
|
Layout: layoutLight,
|
|
137
139
|
LegacyTransfer: legacyTransferLight,
|
|
@@ -247,7 +247,7 @@ export default defineComponent({
|
|
|
247
247
|
}
|
|
248
248
|
function doUpdateValue(value) {
|
|
249
249
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onChange } = props;
|
|
250
|
-
const {
|
|
250
|
+
const { triggerFormChange, triggerFormInput } = formItem;
|
|
251
251
|
const formattedValue = createFormattedValue(value);
|
|
252
252
|
if (onUpdateValue) {
|
|
253
253
|
call(onUpdateValue, value, formattedValue);
|
|
@@ -259,22 +259,22 @@ export default defineComponent({
|
|
|
259
259
|
call(onChange, value, formattedValue);
|
|
260
260
|
doUpdateFormattedValue(formattedValue, value);
|
|
261
261
|
uncontrolledValueRef.value = value;
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
triggerFormChange();
|
|
263
|
+
triggerFormInput();
|
|
264
264
|
}
|
|
265
265
|
function doFocus(e) {
|
|
266
266
|
const { onFocus } = props;
|
|
267
|
-
const {
|
|
267
|
+
const { triggerFormFocus } = formItem;
|
|
268
268
|
if (onFocus)
|
|
269
269
|
call(onFocus, e);
|
|
270
|
-
|
|
270
|
+
triggerFormFocus();
|
|
271
271
|
}
|
|
272
272
|
function doBlur(e) {
|
|
273
273
|
const { onBlur } = props;
|
|
274
|
-
const {
|
|
274
|
+
const { triggerFormBlur } = formItem;
|
|
275
275
|
if (onBlur)
|
|
276
276
|
call(onBlur, e);
|
|
277
|
-
|
|
277
|
+
triggerFormBlur();
|
|
278
278
|
}
|
|
279
279
|
function doConfirm() {
|
|
280
280
|
const { onConfirm } = props;
|
|
@@ -63,7 +63,7 @@ export default defineComponent({
|
|
|
63
63
|
const { uncontrolledValueRef, mergedValueRef, targetValueSetRef, valueSetForCheckAllRef, valueSetForUncheckAllRef, valueSetForClearRef, filteredTgtOptionsRef, filteredSrcOptionsRef, targetOptionsRef, canNotSelectAnythingRef, canBeClearedRef, allCheckedRef, srcPatternRef, tgtPatternRef, mergedSrcFilterableRef, handleSrcFilterUpdateValue, handleTgtFilterUpdateValue } = useTransferData(props);
|
|
64
64
|
function doUpdateValue(value) {
|
|
65
65
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onChange } = props;
|
|
66
|
-
const {
|
|
66
|
+
const { triggerFormInput, triggerFormChange } = formItem;
|
|
67
67
|
if (onUpdateValue)
|
|
68
68
|
call(onUpdateValue, value);
|
|
69
69
|
if (_onUpdateValue)
|
|
@@ -71,8 +71,8 @@ export default defineComponent({
|
|
|
71
71
|
if (onChange)
|
|
72
72
|
call(onChange, value);
|
|
73
73
|
uncontrolledValueRef.value = value;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
triggerFormInput();
|
|
75
|
+
triggerFormChange();
|
|
76
76
|
}
|
|
77
77
|
function handleSourceCheckAll() {
|
|
78
78
|
doUpdateValue([...valueSetForCheckAllRef.value]);
|
|
@@ -70,7 +70,7 @@ export default defineComponent({
|
|
|
70
70
|
const menuElRef = ref(null);
|
|
71
71
|
const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = useConfig(props);
|
|
72
72
|
const { localeRef } = useLocale('Select');
|
|
73
|
-
const { mergedSizeRef, mergedDisabledRef, mergedStatusRef,
|
|
73
|
+
const { mergedSizeRef, mergedDisabledRef, mergedStatusRef, triggerFormBlur, triggerFormChange, triggerFormFocus, triggerFormInput } = useFormItem(props);
|
|
74
74
|
const uncontrolledValueRef = ref(props.defaultValue);
|
|
75
75
|
const controlledValueRef = toRef(props, 'value');
|
|
76
76
|
const mergedValueRef = useMergedState(controlledValueRef, uncontrolledValueRef);
|
|
@@ -207,8 +207,8 @@ export default defineComponent({
|
|
|
207
207
|
call(_onUpdateValue, value, option, meta);
|
|
208
208
|
}
|
|
209
209
|
uncontrolledValueRef.value = value;
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
triggerFormInput();
|
|
211
|
+
triggerFormChange();
|
|
212
212
|
}
|
|
213
213
|
function doUpdateIndeterminateKeys(value, option) {
|
|
214
214
|
const { onUpdateIndeterminateKeys, 'onUpdate:indeterminateKeys': _onUpdateIndeterminateKeys } = props;
|
|
@@ -233,14 +233,14 @@ export default defineComponent({
|
|
|
233
233
|
const { onFocus } = props;
|
|
234
234
|
if (onFocus)
|
|
235
235
|
onFocus(e);
|
|
236
|
-
|
|
236
|
+
triggerFormFocus();
|
|
237
237
|
}
|
|
238
238
|
function doBlur(e) {
|
|
239
239
|
closeMenu();
|
|
240
240
|
const { onBlur } = props;
|
|
241
241
|
if (onBlur)
|
|
242
242
|
onBlur(e);
|
|
243
|
-
|
|
243
|
+
triggerFormBlur();
|
|
244
244
|
}
|
|
245
245
|
function closeMenu() {
|
|
246
246
|
doUpdateShow(false);
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.5.
|
|
1
|
+
declare const _default: "1.5.4";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.5.
|
|
1
|
+
export default '1.5.4';
|
|
@@ -103,7 +103,7 @@ const useCheckbox = (props) => {
|
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
105
|
const { onChange, 'onUpdate:checked': _onUpdateCheck, onUpdateChecked } = props;
|
|
106
|
-
const {
|
|
106
|
+
const { triggerFormInput, triggerFormChange } = formItem;
|
|
107
107
|
const nextChecked = renderedCheckedRef.value
|
|
108
108
|
? props.uncheckedValue
|
|
109
109
|
: props.checkedValue;
|
|
@@ -115,8 +115,8 @@ const useCheckbox = (props) => {
|
|
|
115
115
|
}
|
|
116
116
|
if (onChange)
|
|
117
117
|
(0, _utils_1.call)(onChange, nextChecked, e); // deprecated
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
triggerFormInput();
|
|
119
|
+
triggerFormChange();
|
|
120
120
|
uncontrolledCheckedRef.value = nextChecked;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -88,15 +88,15 @@ function useRadio(props) {
|
|
|
88
88
|
}
|
|
89
89
|
else {
|
|
90
90
|
const { onUpdateChecked, 'onUpdate:checked': _onUpdateChecked, onChange } = props;
|
|
91
|
-
const {
|
|
91
|
+
const { triggerFormInput, triggerFormChange } = formItem;
|
|
92
92
|
if (onUpdateChecked)
|
|
93
93
|
(0, _utils_1.call)(onUpdateChecked, true);
|
|
94
94
|
if (_onUpdateChecked)
|
|
95
95
|
(0, _utils_1.call)(_onUpdateChecked, true);
|
|
96
96
|
if (onChange)
|
|
97
97
|
onChange(e);
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
triggerFormInput();
|
|
99
|
+
triggerFormChange();
|
|
100
100
|
uncontrolledCheckedRef.value = true;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -28,10 +28,10 @@ export interface UseFormItem<T> {
|
|
|
28
28
|
mergedSizeRef: ComputedRef<T>;
|
|
29
29
|
mergedDisabledRef: ComputedRef<boolean>;
|
|
30
30
|
mergedStatusRef: ComputedRef<FormValidationStatus | undefined>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
triggerFormBlur: () => void;
|
|
32
|
+
triggerFormChange: () => void;
|
|
33
|
+
triggerFormFocus: () => void;
|
|
34
|
+
triggerFormInput: () => void;
|
|
35
35
|
}
|
|
36
36
|
export default function useFormItem<T extends AllowedSize = FormItemSize>(props: UseFormItemProps<T>, { defaultSize, mergedSize, mergedDisabled }?: UseFormItemOptions<T>): UseFormItem<T>;
|
|
37
37
|
export {};
|
|
@@ -49,22 +49,22 @@ function useFormItem(props, { defaultSize = 'medium', mergedSize, mergedDisabled
|
|
|
49
49
|
mergedSizeRef,
|
|
50
50
|
mergedDisabledRef,
|
|
51
51
|
mergedStatusRef,
|
|
52
|
-
|
|
52
|
+
triggerFormBlur() {
|
|
53
53
|
if (UFormItem) {
|
|
54
54
|
UFormItem.handleContentBlur();
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
triggerFormChange() {
|
|
58
58
|
if (UFormItem) {
|
|
59
59
|
UFormItem.handleContentChange();
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
|
|
62
|
+
triggerFormFocus() {
|
|
63
63
|
if (UFormItem) {
|
|
64
64
|
UFormItem.handleContentFocus();
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
|
|
67
|
+
triggerFormInput() {
|
|
68
68
|
if (UFormItem) {
|
|
69
69
|
UFormItem.handleContentInput();
|
|
70
70
|
}
|
|
@@ -4,6 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const _common_1 = __importDefault(require("./_common"));
|
|
7
|
-
const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.default), { scrollbarColor: 'rgba(255, 255, 255, 0.25)', scrollbarColorHover: 'rgba(255, 255, 255, 0.4)', scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', opacityDisabled: '0.5', brandPrimary50: '#2B204E', brandPrimary100: '#412A89', brandPrimary200: '#6A40ED', brandPrimary300: '#BBA2FD', brandPrimary400: '#7748F1', brandPrimary500: '#8967F1', brandPrimary550: '#6607DF', brandPrimary600: '#5D46A6', brandSecondary500: '#FFFF54', brandSecondary300: '#FDF5A6', brandSecondary600: '#F9DE6D', brandTertiary500: '#C4ED70', brandTertiary300: '#DCF0AF', brandTertiary600: '#9DED70', brandQuaternary500: '#90DDFB', brandQuaternary300: '#C5ECFD', brandQuaternary600: '#54B8F9', brandQuinary500: '#EC616A', brandQuinary300: '#F19EDA', brandQuinary600: '#EA3E68', brandQuinary100: '#FAD6D9', surfacePrimary: '#101010', surfaceSecondary: '#1D1D1D', containerPrimary: '#1D1D1D', containerSecondary: '#313135', textPrimary: '#F3F4F6', textSecondary: '#808080', textTertiary: '#999999', textQuaternary: '#101010', textBrand: '#F3F4F6', elementsPrimary: '#F3F4F6', elementsSecondary: '#101010', elementsTertiary: '#222222', elementsQuaternary: '#424247', elementsQuinary: '#707479', elementsDarkQuinary: '#919396', elementsSenary: '#DFDFDF', elementsOnContainer: '#101010', transparencyPrimary: 'rgba(255, 255, 255, 0.1)', transparencySecondary: 'rgba(255, 255, 255, 0.07)', transparencyTertiary: 'rgba(255, 255, 255, 0.16)', transparencyQuinary: 'rgba(255, 255, 255, 0.32)', transparencyModal: 'rgba(0, 0, 0, 0.75)', staticBlack: '#101010', staticDarkGrey: '#2C2C2D', staticWhite: '#FFFFFF', staticRed: '#F24835', staticOrange: '#F48C2C', staticGreen: '#09B849', staticDeepBlue: '#2F53CD', staticErrorAccent: '#CB0000', shadowDepth2: '0 0 0 1px #424247', shadowDepth: '0px 8px 8px 0px rgba(255, 255, 255, 0.25)' // В дизайне тень вообще отсутствует, пока что пусть побудет визуально как border
|
|
7
|
+
const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.default), { scrollbarColor: 'rgba(255, 255, 255, 0.25)', scrollbarColorHover: 'rgba(255, 255, 255, 0.4)', scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', opacityDisabled: '0.5', brand150: '#FFF3D3', brand350: '#F1F9DF', brand550: '#FFF3F4', brandPrimary50: '#2B204E', brandPrimary100: '#412A89', brandPrimary200: '#6A40ED', brandPrimary300: '#BBA2FD', brandPrimary400: '#7748F1', brandPrimary500: '#8967F1', brandPrimary550: '#6607DF', brandPrimary600: '#5D46A6', brandSecondary500: '#FFFF54', brandSecondary300: '#FDF5A6', brandSecondary600: '#F9DE6D', brandTertiary500: '#C4ED70', brandTertiary300: '#DCF0AF', brandTertiary600: '#9DED70', brandQuaternary500: '#90DDFB', brandQuaternary300: '#C5ECFD', brandQuaternary600: '#54B8F9', brandQuinary500: '#EC616A', brandQuinary300: '#F19EDA', brandQuinary600: '#EA3E68', brandQuinary100: '#FAD6D9', surfacePrimary: '#101010', surfaceSecondary: '#1D1D1D', containerPrimary: '#1D1D1D', containerSecondary: '#313135', textPrimary: '#F3F4F6', textSecondary: '#808080', textTertiary: '#999999', textQuaternary: '#101010', textBrand: '#F3F4F6', elementsPrimary: '#F3F4F6', elementsSecondary: '#101010', elementsTertiary: '#222222', elementsQuaternary: '#424247', elementsQuinary: '#707479', elementsDarkQuinary: '#919396', elementsSenary: '#DFDFDF', elementsOnContainer: '#101010', transparencyPrimary: 'rgba(255, 255, 255, 0.1)', transparencySecondary: 'rgba(255, 255, 255, 0.07)', transparencyTertiary: 'rgba(255, 255, 255, 0.16)', transparencyQuinary: 'rgba(255, 255, 255, 0.32)', transparencyModal: 'rgba(0, 0, 0, 0.75)', staticBlack: '#101010', staticDarkGrey: '#2C2C2D', staticWhite: '#FFFFFF', staticRed: '#F24835', staticOrange: '#F48C2C', staticGreen: '#09B849', staticDeepBlue: '#2F53CD', staticErrorAccent: '#CB0000', shadowDepth2: '0 0 0 1px #424247', shadowDepth: '0px 8px 8px 0px rgba(255, 255, 255, 0.25)' // В дизайне тень вообще отсутствует, пока что пусть побудет визуально как border
|
|
8
8
|
});
|
|
9
9
|
exports.default = derived;
|