@uzum-tech/ui 1.5.1 → 1.5.3
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 +1333 -869
- 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/_internal/typography/src/styles/text.cssr.js +0 -1
- package/es/_internal/typography/styles/light.js +1 -1
- 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/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 +8 -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 +6 -5
- package/es/data-table/src/TableParts/Cell.js +85 -23
- package/es/data-table/src/interface.d.ts +13 -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.js +3 -3
- 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/List.d.ts +41 -55
- package/es/list/src/List.js +6 -10
- package/es/list/src/ListItem.d.ts +84 -25
- package/es/list/src/ListItem.js +120 -98
- package/es/list/src/interface.d.ts +1 -0
- package/es/list/src/props.d.ts +70 -31
- package/es/list/src/props.js +25 -5
- package/es/list/src/styles/index.cssr.js +32 -90
- package/es/list/styles/light.d.ts +5 -8
- package/es/list/styles/light.js +6 -9
- 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/styles/index.cssr.js +5 -1
- package/es/tag/styles/light.js +2 -2
- 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/upload/src/UploadFile.js +4 -3
- 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/_internal/typography/src/styles/text.cssr.js +0 -1
- package/lib/_internal/typography/styles/light.js +1 -1
- 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/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 +8 -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 +6 -5
- package/lib/data-table/src/TableParts/Cell.js +84 -22
- package/lib/data-table/src/interface.d.ts +13 -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.js +3 -3
- 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/List.d.ts +41 -55
- package/lib/list/src/List.js +6 -10
- package/lib/list/src/ListItem.d.ts +84 -25
- package/lib/list/src/ListItem.js +119 -97
- package/lib/list/src/interface.d.ts +1 -0
- package/lib/list/src/props.d.ts +70 -31
- package/lib/list/src/props.js +25 -5
- package/lib/list/src/styles/index.cssr.js +32 -90
- package/lib/list/styles/light.d.ts +5 -8
- package/lib/list/styles/light.js +6 -9
- 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/styles/index.cssr.js +5 -1
- package/lib/tag/styles/light.js +2 -2
- 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/upload/src/UploadFile.js +4 -3
- 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 +180 -38
|
@@ -61,7 +61,7 @@ export default defineComponent({
|
|
|
61
61
|
});
|
|
62
62
|
function doChange(value) {
|
|
63
63
|
const { onChange, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
|
|
64
|
-
const {
|
|
64
|
+
const { triggerFormInput, triggerFormChange } = formItem;
|
|
65
65
|
if (onChange)
|
|
66
66
|
call(onChange, value);
|
|
67
67
|
if (onUpdateValue)
|
|
@@ -69,8 +69,8 @@ export default defineComponent({
|
|
|
69
69
|
if (_onUpdateValue)
|
|
70
70
|
call(_onUpdateValue, value);
|
|
71
71
|
uncontrolledValueRef.value = value;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
triggerFormInput();
|
|
73
|
+
triggerFormChange();
|
|
74
74
|
}
|
|
75
75
|
function handleCloseClick(index) {
|
|
76
76
|
const tags = mergedValueRef.value.slice(0);
|
package/es/input/src/Input.js
CHANGED
|
@@ -244,7 +244,7 @@ export default defineComponent({
|
|
|
244
244
|
const vm = getCurrentInstance().proxy;
|
|
245
245
|
function doUpdateValue(value) {
|
|
246
246
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onInput } = props;
|
|
247
|
-
const {
|
|
247
|
+
const { triggerFormInput } = formItem;
|
|
248
248
|
if (onUpdateValue)
|
|
249
249
|
call(onUpdateValue, value);
|
|
250
250
|
if (_onUpdateValue)
|
|
@@ -252,30 +252,30 @@ export default defineComponent({
|
|
|
252
252
|
if (onInput)
|
|
253
253
|
call(onInput, value);
|
|
254
254
|
uncontrolledValueRef.value = value;
|
|
255
|
-
|
|
255
|
+
triggerFormInput();
|
|
256
256
|
emitDebouncedInput(value);
|
|
257
257
|
}
|
|
258
258
|
function doChange(value) {
|
|
259
259
|
const { onChange } = props;
|
|
260
|
-
const {
|
|
260
|
+
const { triggerFormChange } = formItem;
|
|
261
261
|
if (onChange)
|
|
262
262
|
call(onChange, value);
|
|
263
263
|
uncontrolledValueRef.value = value;
|
|
264
|
-
|
|
264
|
+
triggerFormChange();
|
|
265
265
|
}
|
|
266
266
|
function doBlur(e) {
|
|
267
267
|
const { onBlur } = props;
|
|
268
|
-
const {
|
|
268
|
+
const { triggerFormBlur } = formItem;
|
|
269
269
|
if (onBlur)
|
|
270
270
|
call(onBlur, e);
|
|
271
|
-
|
|
271
|
+
triggerFormBlur();
|
|
272
272
|
}
|
|
273
273
|
function doFocus(e) {
|
|
274
274
|
const { onFocus } = props;
|
|
275
|
-
const {
|
|
275
|
+
const { triggerFormFocus } = formItem;
|
|
276
276
|
if (onFocus)
|
|
277
277
|
call(onFocus, e);
|
|
278
|
-
|
|
278
|
+
triggerFormFocus();
|
|
279
279
|
}
|
|
280
280
|
function doClear(e) {
|
|
281
281
|
const { onClear } = props;
|
|
@@ -114,7 +114,7 @@ export default defineComponent({
|
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
116
|
const { 'onUpdate:value': _onUpdateValue, onUpdateValue, onChange } = props;
|
|
117
|
-
const {
|
|
117
|
+
const { triggerFormInput, triggerFormChange } = formItem;
|
|
118
118
|
if (onChange)
|
|
119
119
|
call(onChange, value);
|
|
120
120
|
if (onUpdateValue)
|
|
@@ -122,8 +122,8 @@ export default defineComponent({
|
|
|
122
122
|
if (_onUpdateValue)
|
|
123
123
|
call(_onUpdateValue, value);
|
|
124
124
|
uncontrolledValueRef.value = value;
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
triggerFormInput();
|
|
126
|
+
triggerFormChange();
|
|
127
127
|
};
|
|
128
128
|
const deriveValueFromDisplayedValue = ({ offset, doUpdateIfValid, fixPrecision, isInputing }) => {
|
|
129
129
|
const { value: displayedValue } = displayedValueRef;
|
|
@@ -234,10 +234,10 @@ export default defineComponent({
|
|
|
234
234
|
});
|
|
235
235
|
function doFocus(e) {
|
|
236
236
|
const { onFocus } = props;
|
|
237
|
-
const {
|
|
237
|
+
const { triggerFormFocus } = formItem;
|
|
238
238
|
if (onFocus)
|
|
239
239
|
call(onFocus, e);
|
|
240
|
-
|
|
240
|
+
triggerFormFocus();
|
|
241
241
|
}
|
|
242
242
|
function doBlur(e) {
|
|
243
243
|
var _a, _b;
|
|
@@ -272,10 +272,10 @@ export default defineComponent({
|
|
|
272
272
|
deriveDisplayedValueFromValue();
|
|
273
273
|
}
|
|
274
274
|
const { onBlur } = props;
|
|
275
|
-
const {
|
|
275
|
+
const { triggerFormBlur } = formItem;
|
|
276
276
|
if (onBlur)
|
|
277
277
|
call(onBlur, e);
|
|
278
|
-
|
|
278
|
+
triggerFormBlur();
|
|
279
279
|
// User may change value in blur callback, we make sure it will be
|
|
280
280
|
// displayed. Sometimes mergedValue won't be viewed as changed
|
|
281
281
|
void nextTick(() => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { inputOtpProps, default as UInputOtp } from './src/InputOtp';
|