zartui 3.1.7 → 3.1.9
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 +23 -0
- package/es/action-sheet/ActionSheet.d.ts +2 -2
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +2 -2
- package/es/avatar/index.css +1 -1
- package/es/badge/index.css +1 -1
- package/es/button/Button.d.ts +3 -3
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +3 -3
- package/es/calendar/Calendar.d.ts +2 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +2 -2
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +2 -2
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/CellGroup.mjs +2 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +26 -12
- package/es/checkbox/Checkbox.mjs +13 -2
- package/es/checkbox/Checker.d.ts +9 -0
- package/es/checkbox/Checker.mjs +10 -10
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +9 -0
- package/es/collapse-item/index.css +1 -1
- package/es/composables/use-global-z-index.d.ts +4 -0
- package/es/composables/use-global-z-index.mjs +9 -0
- package/es/composables/use-scope-id.d.ts +3 -0
- package/es/composables/use-scope-id.mjs +9 -0
- package/es/composables/use-sync-prop-ref.d.ts +2 -0
- package/es/composables/use-sync-prop-ref.mjs +18 -0
- package/es/config-provider/ConfigProvider.d.ts +30 -6
- package/es/config-provider/ConfigProvider.mjs +48 -9
- package/es/config-provider/index.d.ts +17 -2
- package/es/date-time-picker/DateTimePicker.d.ts +2 -2
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
- package/es/date-time-picker/index.d.ts +2 -2
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/function-call.d.ts +3 -3
- package/es/dialog/function-call.mjs +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +1 -1
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.mjs +2 -2
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/empty/index.css +1 -1
- package/es/field/Field.d.ts +3 -3
- package/es/field/Field.mjs +2 -0
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +3 -3
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/hierarchy-select/HierarchySelect.d.ts +16 -1
- package/es/hierarchy-select/HierarchySelect.mjs +8 -5
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.d.ts +11 -1
- package/es/icon/config.mjs +34 -11
- package/es/icon/index.css +1 -1
- package/es/image/Image.d.ts +1 -1
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +17 -1
- package/es/image-preview/ImagePreview.mjs +17 -4
- package/es/image-preview/ImagePreviewItem.d.ts +6 -0
- package/es/image-preview/ImagePreviewItem.mjs +9 -3
- package/es/image-preview/function-call.mjs +1 -0
- package/es/image-preview/index.d.ts +12 -1
- package/es/image-preview/types.d.ts +1 -0
- package/es/index-bar/IndexBar.d.ts +16 -1
- package/es/index-bar/IndexBar.mjs +6 -3
- package/es/index-bar/index.d.ts +12 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/list/List.d.ts +7 -3
- package/es/list/List.mjs +5 -3
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +2 -0
- package/es/loading/index.css +1 -1
- package/es/media-picker/index.css +1 -1
- package/es/multiple-picker/index.css +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +3 -3
- package/es/number-keyboard/NumberKeyboard.mjs +5 -20
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +3 -3
- package/es/number-keyboard/style/index.mjs +0 -1
- package/es/picker/index.css +1 -1
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/Popover.mjs +16 -12
- package/es/popover/index.d.ts +1 -1
- package/es/popup/Popup.d.ts +2 -2
- package/es/popup/Popup.mjs +9 -10
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +2 -2
- package/es/radio/index.css +1 -1
- package/es/radio-picker/index.css +1 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +2 -2
- package/es/skeleton/index.d.ts +2 -2
- package/es/step/index.css +1 -1
- package/es/stepper/Stepper.d.ts +2 -2
- package/es/stepper/index.d.ts +2 -2
- package/es/steps/Steps.d.ts +1 -1
- package/es/steps/index.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/swipe/Swipe.mjs +1 -1
- package/es/swipe/index.css +1 -1
- package/es/swipe-cell/SwipeCell.mjs +10 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/table/index.css +1 -1
- package/es/tabs/Tabs.d.ts +4 -4
- package/es/tabs/index.d.ts +4 -4
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.d.ts +1 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +17 -4
- package/es/text-ellipsis/TextEllipsis.mjs +52 -30
- package/es/text-ellipsis/index.css +1 -1
- package/es/text-ellipsis/index.d.ts +12 -3
- package/es/time-picker/index.css +1 -1
- package/es/timeline/index.css +1 -1
- package/es/toast/Toast.d.ts +5 -2
- package/es/toast/Toast.mjs +2 -1
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +4 -2
- package/es/toast/types.d.ts +2 -0
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/utils/interceptor.d.ts +2 -1
- package/es/utils/interceptor.mjs +3 -2
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/action-sheet/ActionSheet.d.ts +2 -2
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +2 -2
- package/lib/avatar/index.css +1 -1
- package/lib/badge/index.css +1 -1
- package/lib/button/Button.d.ts +3 -3
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +3 -3
- package/lib/calendar/Calendar.d.ts +2 -2
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +2 -2
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +2 -2
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/CellGroup.js +2 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +26 -12
- package/lib/checkbox/Checkbox.js +13 -2
- package/lib/checkbox/Checker.d.ts +9 -0
- package/lib/checkbox/Checker.js +10 -10
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +9 -0
- package/lib/collapse-item/index.css +1 -1
- package/lib/composables/use-global-z-index.d.ts +4 -0
- package/lib/composables/use-global-z-index.js +28 -0
- package/lib/composables/use-scope-id.d.ts +3 -0
- package/lib/composables/use-scope-id.js +28 -0
- package/lib/composables/use-sync-prop-ref.d.ts +2 -0
- package/lib/composables/use-sync-prop-ref.js +37 -0
- package/lib/config-provider/ConfigProvider.d.ts +30 -6
- package/lib/config-provider/ConfigProvider.js +46 -7
- package/lib/config-provider/index.d.ts +17 -2
- package/lib/date-time-picker/DateTimePicker.d.ts +2 -2
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
- package/lib/date-time-picker/index.d.ts +2 -2
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/function-call.d.ts +3 -3
- package/lib/dialog/function-call.js +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.js +2 -2
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/empty/index.css +1 -1
- package/lib/field/Field.d.ts +3 -3
- package/lib/field/Field.js +2 -0
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +3 -3
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/hierarchy-select/HierarchySelect.d.ts +16 -1
- package/lib/hierarchy-select/HierarchySelect.js +7 -4
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.d.ts +11 -1
- package/lib/icon/config.js +34 -11
- package/lib/icon/index.css +1 -1
- package/lib/image/Image.d.ts +1 -1
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +17 -1
- package/lib/image-preview/ImagePreview.js +17 -4
- package/lib/image-preview/ImagePreviewItem.d.ts +6 -0
- package/lib/image-preview/ImagePreviewItem.js +9 -3
- package/lib/image-preview/function-call.js +1 -0
- package/lib/image-preview/index.d.ts +12 -1
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/index-bar/IndexBar.d.ts +16 -1
- package/lib/index-bar/IndexBar.js +5 -2
- package/lib/index-bar/index.d.ts +12 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/list/List.d.ts +7 -3
- package/lib/list/List.js +4 -2
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +2 -0
- package/lib/loading/index.css +1 -1
- package/lib/media-picker/index.css +1 -1
- package/lib/multiple-picker/index.css +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +3 -3
- package/lib/number-keyboard/NumberKeyboard.js +4 -19
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +3 -3
- package/lib/number-keyboard/style/index.js +0 -1
- package/lib/picker/index.css +1 -1
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/Popover.js +16 -12
- package/lib/popover/index.d.ts +1 -1
- package/lib/popup/Popup.d.ts +2 -2
- package/lib/popup/Popup.js +8 -9
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +2 -2
- package/lib/radio/index.css +1 -1
- package/lib/radio-picker/index.css +1 -1
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +2 -2
- package/lib/skeleton/index.d.ts +2 -2
- package/lib/step/index.css +1 -1
- package/lib/stepper/Stepper.d.ts +2 -2
- package/lib/stepper/index.d.ts +2 -2
- package/lib/steps/Steps.d.ts +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/swipe/Swipe.js +1 -1
- package/lib/swipe/index.css +1 -1
- package/lib/swipe-cell/SwipeCell.js +10 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/table/index.css +1 -1
- package/lib/tabs/Tabs.d.ts +4 -4
- package/lib/tabs/index.d.ts +4 -4
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/text-ellipsis/TextEllipsis.d.ts +17 -4
- package/lib/text-ellipsis/TextEllipsis.js +51 -29
- package/lib/text-ellipsis/index.css +1 -1
- package/lib/text-ellipsis/index.d.ts +12 -3
- package/lib/time-picker/index.css +1 -1
- package/lib/timeline/index.css +1 -1
- package/lib/toast/Toast.d.ts +5 -2
- package/lib/toast/Toast.js +2 -1
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +4 -2
- package/lib/toast/types.d.ts +2 -0
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/utils/interceptor.d.ts +2 -1
- package/lib/utils/interceptor.js +3 -2
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +230 -112
- package/lib/zartui.es.js +231 -113
- package/lib/zartui.js +230 -112
- package/lib/zartui.min.js +1 -1
- package/package.json +21 -11
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -170,7 +170,7 @@ __reExport(stdin_exports, require("./time-picker"), module.exports);
|
|
|
170
170
|
__reExport(stdin_exports, require("./timeline"), module.exports);
|
|
171
171
|
__reExport(stdin_exports, require("./toast"), module.exports);
|
|
172
172
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
|
173
|
-
const version = "3.1.
|
|
173
|
+
const version = "3.1.9";
|
|
174
174
|
function install(app) {
|
|
175
175
|
const components = [
|
|
176
176
|
import_action_sheet.ActionSheet,
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import type { App } from 'vue';
|
|
2
|
-
|
|
3
|
-
declare type ListenEvent =
|
|
4
|
-
| 'scroll'
|
|
5
|
-
| 'wheel'
|
|
6
|
-
| 'mousewheel'
|
|
7
|
-
| 'resize'
|
|
8
|
-
| 'animationend'
|
|
9
|
-
| 'transitionend'
|
|
10
|
-
| 'touchmove';
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line
|
|
13
|
-
declare type Callback = (listener: any, options: LazyloadOptions) => void;
|
|
14
|
-
|
|
15
|
-
declare type Filter = {
|
|
16
|
-
webp?: Callback;
|
|
17
|
-
progressive?: Callback;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
declare type Adapter = {
|
|
21
|
-
error?: Callback;
|
|
22
|
-
loaded?: Callback;
|
|
23
|
-
loading?: Callback;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export declare type LazyloadOptions = {
|
|
27
|
-
error?: string;
|
|
28
|
-
filter?: Filter;
|
|
29
|
-
silent?: boolean;
|
|
30
|
-
adapter?: Adapter;
|
|
31
|
-
loading?: string;
|
|
32
|
-
attempt?: number;
|
|
33
|
-
preLoad?: number;
|
|
34
|
-
observer?: boolean;
|
|
35
|
-
lazyImage?: boolean;
|
|
36
|
-
throttleWait?: number;
|
|
37
|
-
listenEvents?: ListenEvent[];
|
|
38
|
-
dispatchEvent?: boolean;
|
|
39
|
-
lazyComponent?: boolean;
|
|
40
|
-
observerOptions?: IntersectionObserverInit;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export declare const Lazyload: {
|
|
44
|
-
install(app: App, options?: LazyloadOptions): void;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
declare module '@vue/runtime-core' {
|
|
48
|
-
interface ComponentCustomProperties {
|
|
49
|
-
$Lazyload: {
|
|
50
|
-
$on: (event: string, handler: Callback) => void;
|
|
51
|
-
$off: (event: string, handler?: Callback) => void;
|
|
52
|
-
$once: (event: string, handler: Callback) => void;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare type ListenEvent =
|
|
4
|
+
| 'scroll'
|
|
5
|
+
| 'wheel'
|
|
6
|
+
| 'mousewheel'
|
|
7
|
+
| 'resize'
|
|
8
|
+
| 'animationend'
|
|
9
|
+
| 'transitionend'
|
|
10
|
+
| 'touchmove';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line
|
|
13
|
+
declare type Callback = (listener: any, options: LazyloadOptions) => void;
|
|
14
|
+
|
|
15
|
+
declare type Filter = {
|
|
16
|
+
webp?: Callback;
|
|
17
|
+
progressive?: Callback;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
declare type Adapter = {
|
|
21
|
+
error?: Callback;
|
|
22
|
+
loaded?: Callback;
|
|
23
|
+
loading?: Callback;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export declare type LazyloadOptions = {
|
|
27
|
+
error?: string;
|
|
28
|
+
filter?: Filter;
|
|
29
|
+
silent?: boolean;
|
|
30
|
+
adapter?: Adapter;
|
|
31
|
+
loading?: string;
|
|
32
|
+
attempt?: number;
|
|
33
|
+
preLoad?: number;
|
|
34
|
+
observer?: boolean;
|
|
35
|
+
lazyImage?: boolean;
|
|
36
|
+
throttleWait?: number;
|
|
37
|
+
listenEvents?: ListenEvent[];
|
|
38
|
+
dispatchEvent?: boolean;
|
|
39
|
+
lazyComponent?: boolean;
|
|
40
|
+
observerOptions?: IntersectionObserverInit;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export declare const Lazyload: {
|
|
44
|
+
install(app: App, options?: LazyloadOptions): void;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
declare module '@vue/runtime-core' {
|
|
48
|
+
interface ComponentCustomProperties {
|
|
49
|
+
$Lazyload: {
|
|
50
|
+
$on: (event: string, handler: Callback) => void;
|
|
51
|
+
$off: (event: string, handler?: Callback) => void;
|
|
52
|
+
$once: (event: string, handler: Callback) => void;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
package/lib/list/List.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
2
3
|
import type { ListDirection } from './types';
|
|
3
4
|
declare const listProps: {
|
|
4
5
|
error: BooleanConstructor;
|
|
@@ -8,9 +9,10 @@ declare const listProps: {
|
|
|
8
9
|
};
|
|
9
10
|
loading: BooleanConstructor;
|
|
10
11
|
finished: BooleanConstructor;
|
|
12
|
+
scroller: PropType<Element>;
|
|
11
13
|
errorText: StringConstructor;
|
|
12
14
|
direction: {
|
|
13
|
-
type:
|
|
15
|
+
type: PropType<ListDirection>;
|
|
14
16
|
default: ListDirection;
|
|
15
17
|
};
|
|
16
18
|
loadingText: StringConstructor;
|
|
@@ -29,9 +31,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
31
|
};
|
|
30
32
|
loading: BooleanConstructor;
|
|
31
33
|
finished: BooleanConstructor;
|
|
34
|
+
scroller: PropType<Element>;
|
|
32
35
|
errorText: StringConstructor;
|
|
33
36
|
direction: {
|
|
34
|
-
type:
|
|
37
|
+
type: PropType<ListDirection>;
|
|
35
38
|
default: ListDirection;
|
|
36
39
|
};
|
|
37
40
|
loadingText: StringConstructor;
|
|
@@ -48,9 +51,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
51
|
};
|
|
49
52
|
loading: BooleanConstructor;
|
|
50
53
|
finished: BooleanConstructor;
|
|
54
|
+
scroller: PropType<Element>;
|
|
51
55
|
errorText: StringConstructor;
|
|
52
56
|
direction: {
|
|
53
|
-
type:
|
|
57
|
+
type: PropType<ListDirection>;
|
|
54
58
|
default: ListDirection;
|
|
55
59
|
};
|
|
56
60
|
loadingText: StringConstructor;
|
package/lib/list/List.js
CHANGED
|
@@ -34,6 +34,7 @@ const listProps = {
|
|
|
34
34
|
offset: (0, import_utils.makeNumericProp)(300),
|
|
35
35
|
loading: Boolean,
|
|
36
36
|
finished: Boolean,
|
|
37
|
+
scroller: Object,
|
|
37
38
|
errorText: String,
|
|
38
39
|
direction: (0, import_utils.makeStringProp)("down"),
|
|
39
40
|
loadingText: String,
|
|
@@ -53,6 +54,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
53
54
|
const placeholder = (0, import_vue2.ref)();
|
|
54
55
|
const tabStatus = (0, import_use_tab_status.useTabStatus)();
|
|
55
56
|
const scrollParent = (0, import_use.useScrollParent)(root);
|
|
57
|
+
const scroller = (0, import_vue2.computed)(() => props.scroller || scrollParent.value);
|
|
56
58
|
const check = () => {
|
|
57
59
|
(0, import_vue2.nextTick)(() => {
|
|
58
60
|
if (loading.value || props.finished || props.error || // skip check when inside an inactive tab
|
|
@@ -63,7 +65,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
63
65
|
direction
|
|
64
66
|
} = props;
|
|
65
67
|
const offset = +props.offset;
|
|
66
|
-
const scrollParentRect = (0, import_use.useRect)(
|
|
68
|
+
const scrollParentRect = (0, import_use.useRect)(scroller);
|
|
67
69
|
if (!scrollParentRect.height || (0, import_utils.isHidden)(root)) {
|
|
68
70
|
return;
|
|
69
71
|
}
|
|
@@ -144,7 +146,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
144
146
|
check
|
|
145
147
|
});
|
|
146
148
|
(0, import_use.useEventListener)("scroll", check, {
|
|
147
|
-
target:
|
|
149
|
+
target: scroller,
|
|
148
150
|
passive: true
|
|
149
151
|
});
|
|
150
152
|
return () => {
|
package/lib/list/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-list-text-color: var(--zt-
|
|
1
|
+
:root{--zt-list-text-color: var(--zt-gray-a6);--zt-list-text-font-size: var(--zt-font-size-md);--zt-list-text-line-height: 44px;--zt-list-loading-icon-size: 16px}.zt-list__loading,.zt-list__finished-text,.zt-list__error-text{color:var(--zt-list-text-color);font-size:var(--zt-list-text-font-size);line-height:var(--zt-list-text-line-height);text-align:center}.zt-list__placeholder{height:0;pointer-events:none}.zt-list__loading-icon .zt-loading__spinner{width:var(--zt-list-loading-icon-size);height:var(--zt-list-loading-icon-size)}
|
package/lib/list/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
7
7
|
};
|
|
8
8
|
loading: BooleanConstructor;
|
|
9
9
|
finished: BooleanConstructor;
|
|
10
|
+
scroller: import("vue").PropType<Element>;
|
|
10
11
|
errorText: StringConstructor;
|
|
11
12
|
direction: {
|
|
12
13
|
type: import("vue").PropType<import("./types").ListDirection>;
|
|
@@ -26,6 +27,7 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
26
27
|
};
|
|
27
28
|
loading: BooleanConstructor;
|
|
28
29
|
finished: BooleanConstructor;
|
|
30
|
+
scroller: import("vue").PropType<Element>;
|
|
29
31
|
errorText: StringConstructor;
|
|
30
32
|
direction: {
|
|
31
33
|
type: import("vue").PropType<import("./types").ListDirection>;
|
package/lib/loading/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-loading-text-color: var(--zt-
|
|
1
|
+
:root{--zt-loading-text-color: var(--zt-gray-a6);--zt-loading-text-font-size: var(--zt-font-size-md);--zt-loading-spinner-color: var(--zt-gray-a4);--zt-loading-spinner-size: 36px;--zt-loading-spinner-duration: .8s;--zt-loading-text-line-height: 20px}.zt-loading{position:relative;color:var(--zt-loading-spinner-color);font-size:0;vertical-align:middle}.zt-loading__spinner{position:relative;display:inline-block;width:var(--zt-loading-spinner-size);max-width:100%;height:var(--zt-loading-spinner-size);max-height:100%;vertical-align:middle;animation:zt-rotate var(--zt-loading-spinner-duration) linear infinite}.zt-loading__spinner--spinner{animation-timing-function:steps(12)}.zt-loading__spinner--circular{animation-duration:2s}.zt-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.zt-loading__line:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.zt-loading__circular{display:block;width:100%;height:100%}.zt-loading__circular circle{animation:zt-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.zt-loading__snake{display:block;width:100%;height:100%}.zt-loading__text{display:inline-block;margin-left:var(--zt-padding-base);color:var(--zt-loading-text-color);font-size:var(--zt-loading-text-font-size);line-height:var(--zt-loading-text-line-height);vertical-align:middle}.zt-loading--vertical{display:flex;flex-direction:column;align-items:center}.zt-loading--vertical .zt-loading__text{margin:var(--zt-padding-base) 0 0}.zt-loading--horizontal-with-text .zt-loading__spinner--snake{width:20px;height:20px}@keyframes zt-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.zt-loading__spinner--spinner i:nth-of-type(1){transform:rotate(30deg);opacity:1}.zt-loading__spinner--spinner i:nth-of-type(2){transform:rotate(60deg);opacity:.9375}.zt-loading__spinner--spinner i:nth-of-type(3){transform:rotate(90deg);opacity:.875}.zt-loading__spinner--spinner i:nth-of-type(4){transform:rotate(120deg);opacity:.8125}.zt-loading__spinner--spinner i:nth-of-type(5){transform:rotate(150deg);opacity:.75}.zt-loading__spinner--spinner i:nth-of-type(6){transform:rotate(180deg);opacity:.6875}.zt-loading__spinner--spinner i:nth-of-type(7){transform:rotate(210deg);opacity:.625}.zt-loading__spinner--spinner i:nth-of-type(8){transform:rotate(240deg);opacity:.5625}.zt-loading__spinner--spinner i:nth-of-type(9){transform:rotate(270deg);opacity:.5}.zt-loading__spinner--spinner i:nth-of-type(10){transform:rotate(300deg);opacity:.4375}.zt-loading__spinner--spinner i:nth-of-type(11){transform:rotate(330deg);opacity:.375}.zt-loading__spinner--spinner i:nth-of-type(12){transform:rotate(360deg);opacity:.3125}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-media-picker-image-color:
|
|
1
|
+
:root{--zt-media-picker-image-color: var(--zt-text-color);--zt-media-picker-button-background: linear-gradient(135deg, #e6ebf0 0%, #fff 100%, #fff 100%);--zt-media-picker-button-box-shadow: -4px -4px 8px 0 var(--zt-white), 4px 4px 8px 0 var(--zt-gray-a1);--zt-media-picker-button-border: 0;--zt-media-picker-button-active-border: 1px solid rgba(255, 255, 255, .75);--zt-media-picker-button-active-box-shadow: inset 4px 4px 8px 0 var(--zt-gray-a2)}.zt-media-picker__hidden{display:none}.zt-media-picker__title{position:relative;height:44px;line-height:44px;font-weight:700;font-size:16px;color:var(--zt-text-color);padding:0 16px}.zt-media-picker__title:before{position:absolute;width:4px;height:16px;background:var(--zt-blue);left:0;top:14px;content:" "}.zt-media-picker__title:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-media-picker__line{width:100%;height:92px;display:flex;align-items:center;overflow-x:auto}.zt-media-picker__line::-webkit-scrollbar{width:0;height:0}.zt-media-picker__line:after{content:" ";min-width:16px;height:10px}.zt-media-picker__box{width:48px;display:flex;flex-direction:column;align-items:center}.zt-media-picker__box:first-child{margin-left:16px}.zt-media-picker__box:not(:last-child){margin-right:24px}.zt-media-picker__button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:var(--zt-media-picker-button-background);box-shadow:var(--zt-media-picker-button-box-shadow);border:var(--zt-media-picker-button-border);border-radius:8px;box-sizing:border-box}.zt-media-picker__button:active{background:rgba(45,75,115,.04);border:var(--zt-media-picker-button-active-border);box-shadow:var(--zt-media-picker-button-active-box-shadow)}.zt-media-picker__icon{width:32px;height:32px;color:var(--zt-media-picker-image-color)}.zt-media-picker__label{margin-top:8px;font-size:12px;color:var(--zt-gray-a8);letter-spacing:0;text-align:center;line-height:16px;-webkit-user-select:none;user-select:none}.zt-media-picker__grid{padding:0 16px 8px!important}.zt-media-picker__delete{box-sizing:content-box;width:20px;height:20px;position:absolute;padding:4px;top:0;right:0}.zt-media-picker .zt-image{width:100%;height:100%}.zt-media-picker .zt-grid-item__content{padding:0}.zt-media-picker__thumbnail{width:100%;height:100%}.zt-media-picker__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--zt-white);background-color:var(--zt-uploader-mask-background);border-radius:4px}.zt-media-picker__mask-icon{font-size:var(--zt-uploader-mask-icon-size)}.zt-media-picker__mask-message{margin-top:6px;padding:0 var(--zt-padding-base);font-size:var(--zt-uploader-mask-message-font-size);line-height:var(--zt-uploader-mask-message-line-height)}.zt-media-picker__loading{width:var(--zt-uploader-loading-icon-size);height:var(--zt-uploader-loading-icon-size);color:var(--zt-uploader-icon-color)}.zt-theme-dark{--zt-media-picker-button-background: linear-gradient(135deg, #111c29 0%, #1d2c3e 100%, #1c2a3c 100%);--zt-media-picker-button-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .08), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-media-picker-button-border: 1px solid var(--zt-gray-a1);--zt-media-picker-button-active-border: 1px solid var(--zt-gray-a1);--zt-media-picker-button-active-box-shadow: inset 6px 6px 6px 0 #000d1b}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-multiple-picker-warpper-padding: 12px 16px 4px 16px;--zt-multiple-picker-option-text-color: var(--zt-gray-
|
|
1
|
+
:root{--zt-multiple-picker-warpper-padding: 12px 16px 4px 16px;--zt-multiple-picker-option-text-color: var(--zt-gray-a6);--zt-multiple-picker-background-color: var(--zt-background-2);--zt-multiple-picker-toolbar-height: 44px;--zt-multiple-picker-action-padding: 0 var(--zt-padding-md);--zt-multiple-picker-title-text-color: var(--zt-gray-a4);--zt-multiple-picker-title-font-size: var(--zt-font-size-md);--zt-multiple-picker-title-padding: 12px 0;--zt-multiple-picker-title-line-height: var(--zt-line-height-md);--zt-multiple-picker-item-padding: 0 4px 8px 0;--zt-multiple-picker-action-font-size: var(--zt-font-size-md);--zt-multiple-picker-option-font-size: var(--zt-font-size-md);--zt-multiple-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-multiple-picker-option-active-opacity: var(--zt-active-opacity);--zt-multiple-picker-max-height: 84vh;--zt-multiple-picker-loading-icon-color: var(--zt-blue);--zt-multiple-picker-loading-index: 3;--zt-multiple-picker-loading-mask-color: var(--zt-picker-loading-mask-color);--zt-multiple-picker-toolbar-padding: 8px 16px;--zt-multiple-picker-ellipsis-border-radius: 18px;--zt-multiple-picker-ellipsis-border: 1px solid var(--zt-gray-a2);--zt-multiple-picker-ellipsis-line-height: 20px;--zt-multiple-picker-title-background: var(--zt-background-2)}.zt-multiple-picker{display:flex;flex-direction:column;justify-content:space-between;position:relative;background-color:var(--zt-multiple-picker-background-color);-webkit-user-select:none;user-select:none;max-height:var(--zt-multiple-picker-max-height)}.zt-multiple-picker__toolbar{display:flex;align-items:center;justify-content:space-between;box-sizing:content-box;flex-shrink:0;background:var(--zt-multiple-picker-title-background);height:var(--zt-multiple-picker-toolbar-height);padding:var(--zt-multiple-picker-toolbar-padding)}.zt-multiple-picker__title{flex-shrink:0;font-weight:var(--zt-multiple-picker-cancel-action-font-weight);font-size:var(--zt-multiple-picker-title-font-size);line-height:var(--zt-multiple-picker-title-line-height);text-align:center;background:var(--zt-multiple-picker-title-background);color:var(--zt-multiple-picker-title-text-color);padding:var(--zt-multiple-picker-title-padding)}.zt-multiple-picker__options{position:relative;display:flex;cursor:-webkit-grab;cursor:grab;overflow-y:scroll}.zt-multiple-picker__options:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-multiple-picker__options:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:0;border-top:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-multiple-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--zt-multiple-picker-loading-icon-color);background-color:var(--zt-multiple-picker-loading-mask-color)}.zt-multiple-picker-options{flex:1;overflow-y:scroll;font-size:var(--zt-multiple-picker-option-font-size);margin:0;outline:0 none;padding:0}.zt-multiple-picker-options__wrapper{display:flex;flex-wrap:wrap;background-color:var(--zt-multiple-picker-background-color);padding:var(--zt-multiple-picker-warpper-padding)}.zt-multiple-picker-options__item{color:var(--zt-multiple-picker-option-text-color);padding:var(--zt-multiple-picker-item-padding);box-sizing:border-box;text-align:center;font-size:var(--zt-font-size-md)}.zt-multiple-picker-options__item .zt-ellipsis{line-height:var(--zt-multiple-picker-ellipsis-line-height);border-radius:var(--zt-multiple-picker-ellipsis-border-radius);border:var(--zt-multiple-picker-ellipsis-border);padding:var(--zt-multiple-picker-toolbar-padding)}.zt-multiple-picker-options__item:active{opacity:var(--zt-active-opacity)}.zt-multiple-picker-options__item--disabled{cursor:not-allowed;opacity:var(--zt-multiple-picker-option-disabled-opacity)}.zt-multiple-picker-options__item--last{padding-right:0}.zt-multiple-picker-options__item--selected{color:var(--zt-primary-color)}.zt-multiple-picker-options__item--selected .zt-ellipsis{background:var(--zt-primary-color-a1)}
|
package/lib/nav-bar/NavBar.d.ts
CHANGED
|
@@ -61,8 +61,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
onClickRight?: ((...args: any[]) => any) | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
fixed: boolean;
|
|
64
|
-
leftIcon: boolean;
|
|
65
64
|
border: boolean;
|
|
65
|
+
leftIcon: boolean;
|
|
66
66
|
rightIcon: boolean;
|
|
67
67
|
placeholder: boolean;
|
|
68
68
|
safeAreaInsetTop: boolean;
|
package/lib/nav-bar/index.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
|
|
|
39
39
|
onClickRight?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
fixed: boolean;
|
|
42
|
-
leftIcon: boolean;
|
|
43
42
|
border: boolean;
|
|
43
|
+
leftIcon: boolean;
|
|
44
44
|
rightIcon: boolean;
|
|
45
45
|
placeholder: boolean;
|
|
46
46
|
safeAreaInsetTop: boolean;
|
package/lib/notify/Notify.d.ts
CHANGED
|
@@ -124,8 +124,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
124
|
}, {
|
|
125
125
|
type: NotifyType;
|
|
126
126
|
position: NotifyPosition;
|
|
127
|
-
show: boolean;
|
|
128
127
|
overlay: boolean;
|
|
128
|
+
show: boolean;
|
|
129
129
|
lockScroll: boolean;
|
|
130
130
|
lazyRender: boolean;
|
|
131
131
|
transitionAppear: boolean;
|
package/lib/notify/index.d.ts
CHANGED
|
@@ -81,8 +81,8 @@ export declare const Notify: import("../utils").WithInstall<import("vue").Define
|
|
|
81
81
|
}, {
|
|
82
82
|
type: import("./types").NotifyType;
|
|
83
83
|
position: import("./types").NotifyPosition;
|
|
84
|
-
show: boolean;
|
|
85
84
|
overlay: boolean;
|
|
85
|
+
show: boolean;
|
|
86
86
|
lockScroll: boolean;
|
|
87
87
|
lazyRender: boolean;
|
|
88
88
|
transitionAppear: boolean;
|
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
92
|
type: PropType<string | string[]>;
|
|
93
93
|
default: string;
|
|
94
94
|
};
|
|
95
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "
|
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "hide" | "show" | "blur" | "update:modelValue" | "close" | "delete")[], "input" | "hide" | "show" | "blur" | "update:modelValue" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
96
96
|
show: BooleanConstructor;
|
|
97
97
|
title: StringConstructor;
|
|
98
98
|
theme: {
|
|
@@ -143,13 +143,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
143
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
144
144
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
145
145
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
146
|
-
onShow?: ((...args: any[]) => any) | undefined;
|
|
147
146
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
148
148
|
}, {
|
|
149
149
|
theme: NumberKeyboardTheme;
|
|
150
|
+
show: boolean;
|
|
150
151
|
maxlength: string | number;
|
|
151
152
|
modelValue: string;
|
|
152
|
-
show: boolean;
|
|
153
153
|
transition: boolean;
|
|
154
154
|
safeAreaInsetBottom: boolean;
|
|
155
155
|
blurOnClose: boolean;
|
|
@@ -35,7 +35,6 @@ var import_vue2 = require("vue");
|
|
|
35
35
|
var import_utils = require("../utils");
|
|
36
36
|
var import_use = require("@zartui/use");
|
|
37
37
|
var import_NumberKeyboardKey = __toESM(require("./NumberKeyboardKey"));
|
|
38
|
-
var import_Button = __toESM(require("../button/Button"));
|
|
39
38
|
var import_toast = require("../toast");
|
|
40
39
|
const [name, bem] = (0, import_utils.createNamespace)("number-keyboard");
|
|
41
40
|
const numberKeyboardProps = {
|
|
@@ -158,13 +157,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
158
157
|
};
|
|
159
158
|
const renderTitle = () => {
|
|
160
159
|
const {
|
|
161
|
-
title
|
|
162
|
-
theme,
|
|
163
|
-
closeButtonText
|
|
160
|
+
title
|
|
164
161
|
} = props;
|
|
165
162
|
const leftSlot = slots["title-left"];
|
|
166
|
-
const
|
|
167
|
-
const showTitle = title || showClose || leftSlot;
|
|
163
|
+
const showTitle = title || leftSlot;
|
|
168
164
|
if (!showTitle) {
|
|
169
165
|
return;
|
|
170
166
|
}
|
|
@@ -172,7 +168,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
172
168
|
"class": bem("header")
|
|
173
169
|
}, [leftSlot && (0, import_vue.createVNode)("span", {
|
|
174
170
|
"class": bem("title-left")
|
|
175
|
-
}, [leftSlot()]), title && (0, import_vue.createVNode)("
|
|
171
|
+
}, [leftSlot()]), title && (0, import_vue.createVNode)("div", {
|
|
176
172
|
"class": bem("title")
|
|
177
173
|
}, [title])]);
|
|
178
174
|
};
|
|
@@ -227,11 +223,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
227
223
|
return () => {
|
|
228
224
|
const Title = renderTitle();
|
|
229
225
|
const {
|
|
230
|
-
theme,
|
|
231
|
-
closeButtonText,
|
|
232
226
|
title
|
|
233
227
|
} = props;
|
|
234
|
-
const showClose = closeButtonText && theme === "default";
|
|
235
228
|
const Content = (0, import_vue.createVNode)(import_vue2.Transition, {
|
|
236
229
|
"name": props.transition ? "zt-slide-up" : ""
|
|
237
230
|
}, {
|
|
@@ -248,15 +241,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
248
241
|
"class": [bem("body"), title ? "" : bem("body-no-title")]
|
|
249
242
|
}, [(0, import_vue.createVNode)("div", {
|
|
250
243
|
"class": bem("keys")
|
|
251
|
-
}, [renderKeys()]), renderSidebar()]),
|
|
252
|
-
"class": bem("finish-button-box")
|
|
253
|
-
}, [(0, import_vue.createVNode)(import_Button.default, {
|
|
254
|
-
"type": "primary",
|
|
255
|
-
"block": true,
|
|
256
|
-
"text": closeButtonText,
|
|
257
|
-
"class": [bem("finish-button"), import_utils.HAPTICS_FEEDBACK],
|
|
258
|
-
"onClick": onClose
|
|
259
|
-
}, null)])]), [[import_vue.vShow, props.show]])]
|
|
244
|
+
}, [renderKeys()]), renderSidebar()])]), [[import_vue.vShow, props.show]])]
|
|
260
245
|
});
|
|
261
246
|
if (props.teleport) {
|
|
262
247
|
return (0, import_vue.createVNode)(import_vue2.Teleport, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-number-keyboard-background:
|
|
1
|
+
:root{--zt-number-keyboard-background: var(--zt-background-3);--zt-number-keyboard-key-height: 44px;--zt-number-keyboard-key-font-size: 24px;--zt-number-keyboard-key-background: var(--zt-background-card);--zt-number-keyboard-delete-font-size: 20px;--zt-number-keyboard-title-color: var(--zt-gray-a6);--zt-number-keyboard-title-height: 34px;--zt-number-keyboard-title-font-size: 14px;--zt-number-keyboard-button-text-color: var(--zt-white);--zt-number-keyboard-button-background: var(--zt-primary-color);--zt-number-keyboard-z-index: 100;--zt-number-keyboard-key-spacing: 0 8px 8px 0;--zt-number-keyboard-radius: 16px 16px 0 0}.zt-number-keyboard{position:fixed;bottom:0;left:0;z-index:var(--zt-number-keyboard-z-index);width:100%;padding-bottom:8px;background:var(--zt-number-keyboard-background);-webkit-user-select:none;user-select:none;border-radius:var(--zt-number-keyboard-radius);box-sizing:border-box}.zt-number-keyboard--with-title{border-radius:20px 20px 0 0}.zt-number-keyboard__header{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;height:var(--zt-number-keyboard-title-height);padding-top:2px;color:var(--zt-number-keyboard-title-color);font-size:var(--zt-number-keyboard-title-font-size);line-height:var(--zt-number-keyboard-title-height)}.zt-number-keyboard__title{display:inline-block}.zt-number-keyboard__title-left{position:absolute;left:0}.zt-number-keyboard__body{display:flex;padding:2px 8px 0 16px}.zt-number-keyboard__body-no-title{padding-top:16px}.zt-number-keyboard__keys{display:flex;flex:3;flex-wrap:wrap}.zt-number-keyboard__sidebar{display:flex;flex:1;flex-direction:column}.zt-number-keyboard--unfit{padding-bottom:0}.zt-key{display:flex;align-items:center;justify-content:center;height:var(--zt-number-keyboard-key-height);font-size:var(--zt-number-keyboard-key-font-size);line-height:var(--zt-number-keyboard-key-height);background:var(--zt-number-keyboard-key-background);border-radius:var(--zt-radius-md);cursor:pointer;color:var(--zt-text-color)}.zt-key--large{position:absolute;top:0;right:6px;bottom:8px;left:0;height:auto}.zt-key--blue,.zt-key--delete{font-size:var(--zt-number-keyboard-delete-font-size)}.zt-key--active{opacity:var(--zt-active-opacity)}.zt-key--blue{color:var(--zt-number-keyboard-button-text-color);background:var(--zt-number-keyboard-button-background);line-height:28px;letter-spacing:0}.zt-key--blue.zt-key--active{opacity:var(--zt-active-opacity)}.zt-key__wrapper{position:relative;flex:1;flex-basis:33%;box-sizing:border-box;padding:var(--zt-number-keyboard-key-spacing)}.zt-key__wrapper--wider{flex-basis:66%}.zt-key__delete-icon{width:40px;height:40px}.zt-key__collapse-icon{width:30px;height:24px}.zt-key__loading-icon{color:var(--zt-number-keyboard-button-text-color)}.zt-number-keyboard__no-title{padding-bottom:0}
|
|
@@ -43,7 +43,7 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
|
43
43
|
type: import("vue").PropType<string | string[]>;
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "
|
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "hide" | "show" | "blur" | "update:modelValue" | "close" | "delete")[], "input" | "hide" | "show" | "blur" | "update:modelValue" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
47
|
show: BooleanConstructor;
|
|
48
48
|
title: StringConstructor;
|
|
49
49
|
theme: {
|
|
@@ -94,13 +94,13 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
|
94
94
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
96
96
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
97
|
-
onShow?: ((...args: any[]) => any) | undefined;
|
|
98
97
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
98
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
}, {
|
|
100
100
|
theme: import("./NumberKeyboard").NumberKeyboardTheme;
|
|
101
|
+
show: boolean;
|
|
101
102
|
maxlength: string | number;
|
|
102
103
|
modelValue: string;
|
|
103
|
-
show: boolean;
|
|
104
104
|
transition: boolean;
|
|
105
105
|
safeAreaInsetBottom: boolean;
|
|
106
106
|
blurOnClose: boolean;
|
package/lib/picker/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-picker-cancel-margin: 8px 4px 8px 16px;--zt-picker-confirm-margin: 8px 16px 8px 4px;--zt-picker-title-height: 44px;--zt-picker-title-border-radius: 16px 16px 0 0;--zt-picker-frame-background-color: var(--zt-gray-
|
|
1
|
+
:root{--zt-picker-cancel-margin: 8px 4px 8px 16px;--zt-picker-confirm-margin: 8px 16px 8px 4px;--zt-picker-title-height: 44px;--zt-picker-title-border-radius: 16px 16px 0 0;--zt-picker-frame-background-color: var(--zt-gray-a06);--zt-picker-cancel-background-color: var(--zt-white);--zt-picker-title-text-color: var(--zt-gray-a4);--zt-picker-background: var(--zt-background-2);--zt-picker-toolbar-height: 60px;--zt-picker-title-font-size: var(--zt-font-size-md);--zt-picker-title-background: var(--zt-background-2);--zt-picker-title-line-height: var(--zt-line-height-md);--zt-picker-action-padding: 0 var(--zt-padding-md);--zt-picker-action-font-size: var(--zt-font-size-lg);--zt-picker-confirm-action-color: var(--zt-white);--zt-picker-cancel-action-color: var(--zt-text-color);--zt-picker-option-font-size: var(--zt-font-size-lg);--zt-picker-option-padding: 0 var(--zt-padding-base);--zt-picker-option-text-color: var(--zt-text-color);--zt-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-picker-loading-icon-color: var(--zt-primary-color);--zt-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4));--zt-picker-unit-font-size: var(--zt-font-size-md)}.zt-theme-dark{--zt-picker-loading-mask-color: rgba(0, 0, 0, .6);--zt-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.zt-picker{position:relative;background:var(--zt-picker-background);-webkit-user-select:none;user-select:none}.zt-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-picker-toolbar-height)}.zt-picker__cancel,.zt-picker__confirm{width:50%}.zt-picker__cancel{background:var(--zt-button-default-background);margin:var(--zt-picker-cancel-margin)}.zt-picker__confirm{margin:var(--zt-picker-confirm-margin)}.zt-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-picker-title-height);border-radius:var(--zt-picker-title-border-radius);font-size:var(--zt-picker-title-font-size);background:var(--zt-picker-title-background);color:var(--zt-picker-title-text-color)}.zt-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.zt-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--zt-picker-loading-icon-color);background:var(--zt-picker-loading-mask-color)}.zt-picker__frame{position:absolute;top:50%;z-index:2;transform:translateY(-50%);pointer-events:none;width:100%;background:var(--zt-picker-frame-background-color)}.zt-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--zt-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.zt-picker-column{position:relative;flex:1;overflow:hidden;font-size:var(--zt-picker-option-font-size);background:var(--zt-picker-background)}.zt-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--zt-picker-option-padding);color:var(--zt-picker-option-text-color)}.zt-picker-column__item--disabled{cursor:not-allowed;opacity:var(--zt-picker-option-disabled-opacity)}.zt-picker-column__item--selected{font-weight:700}.zt-picker-column__unit{background:var(--zt-picker-title-background);position:absolute;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--zt-picker-option-text-color);font-size:var(--zt-picker-option-font-size);width:100%;height:100%}.zt-picker-column__unit-text{margin:0 4px;font-size:var(--zt-picker-unit-font-size)}
|
package/lib/popover/Popover.d.ts
CHANGED
|
@@ -162,8 +162,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
162
162
|
}, {
|
|
163
163
|
offset: [number, number];
|
|
164
164
|
theme: PopoverTheme;
|
|
165
|
-
show: boolean;
|
|
166
165
|
overlay: boolean;
|
|
166
|
+
show: boolean;
|
|
167
167
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
168
168
|
closeOnClickOverlay: boolean;
|
|
169
169
|
actions: PopoverAction[];
|
package/lib/popover/Popover.js
CHANGED
|
@@ -47,10 +47,12 @@ var import_vue3 = require("@floating-ui/vue");
|
|
|
47
47
|
var import_popperjs = require("@zartui/popperjs");
|
|
48
48
|
var import_utils = require("../utils");
|
|
49
49
|
var import_use = require("@zartui/use");
|
|
50
|
+
var import_use_scope_id = require("../composables/use-scope-id");
|
|
51
|
+
var import_use_sync_prop_ref = require("../composables/use-sync-prop-ref");
|
|
50
52
|
var import_icon = require("../icon");
|
|
51
53
|
var import_popup = require("../popup");
|
|
52
54
|
const [name, bem] = (0, import_utils.createNamespace)("popover");
|
|
53
|
-
const popupProps = ["
|
|
55
|
+
const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
|
54
56
|
const popoverProps = {
|
|
55
57
|
show: Boolean,
|
|
56
58
|
theme: (0, import_utils.makeStringProp)("light"),
|
|
@@ -93,6 +95,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
93
95
|
const wrapperRef = (0, import_vue2.ref)();
|
|
94
96
|
const popoverRef = (0, import_vue2.ref)();
|
|
95
97
|
const arrowRef = (0, import_vue2.ref)();
|
|
98
|
+
const show = (0, import_use_sync_prop_ref.useSyncPropRef)(() => props.show, (value) => emit("update:show", value));
|
|
96
99
|
const getPopoverOptions = () => ({
|
|
97
100
|
placement: props.placement,
|
|
98
101
|
modifiers: [{
|
|
@@ -115,7 +118,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
115
118
|
};
|
|
116
119
|
const updateLocation = () => {
|
|
117
120
|
(0, import_vue2.nextTick)(() => {
|
|
118
|
-
if (!
|
|
121
|
+
if (!show.value) {
|
|
119
122
|
return;
|
|
120
123
|
}
|
|
121
124
|
if (!popper) {
|
|
@@ -129,10 +132,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
129
132
|
}
|
|
130
133
|
});
|
|
131
134
|
};
|
|
132
|
-
const updateShow = (value) =>
|
|
135
|
+
const updateShow = (value) => {
|
|
136
|
+
show.value = value;
|
|
137
|
+
};
|
|
133
138
|
const onClickWrapper = () => {
|
|
134
139
|
if (props.trigger === "click") {
|
|
135
|
-
|
|
140
|
+
show.value = !show.value;
|
|
136
141
|
}
|
|
137
142
|
};
|
|
138
143
|
const onClickAction = (action, index) => {
|
|
@@ -145,12 +150,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
145
150
|
action.selected = true;
|
|
146
151
|
emit("select", action, index);
|
|
147
152
|
if (props.closeOnClickAction) {
|
|
148
|
-
|
|
153
|
+
show.value = false;
|
|
149
154
|
}
|
|
150
155
|
};
|
|
151
156
|
const onClickAway = () => {
|
|
152
|
-
if (
|
|
153
|
-
|
|
157
|
+
if (show.value && props.closeOnClickOutside && (!props.overlay || props.closeOnClickOverlay)) {
|
|
158
|
+
show.value = false;
|
|
154
159
|
}
|
|
155
160
|
};
|
|
156
161
|
const renderActionContent = (action, index) => {
|
|
@@ -267,7 +272,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
267
272
|
popper = null;
|
|
268
273
|
}
|
|
269
274
|
});
|
|
270
|
-
(0, import_vue2.watch)(() => [
|
|
275
|
+
(0, import_vue2.watch)(() => [show.value, props.offset, props.placement], updateLocation);
|
|
271
276
|
(0, import_use.useClickAway)(wrapperRef, onClickAway, {
|
|
272
277
|
eventName: "touchstart"
|
|
273
278
|
});
|
|
@@ -279,14 +284,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
279
284
|
"onClick": onClickWrapper
|
|
280
285
|
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), (0, import_vue.createVNode)(import_popup.Popup, (0, import_vue.mergeProps)({
|
|
281
286
|
"ref": popoverRef,
|
|
282
|
-
"
|
|
287
|
+
"show": show.value,
|
|
288
|
+
"class": bem([props.theme, show.value ? "show" : "hidden"]),
|
|
283
289
|
"position": "",
|
|
284
290
|
"transition": "zt-popover-zoom",
|
|
285
291
|
"lockScroll": false,
|
|
286
292
|
"onUpdate:show": updateShow
|
|
287
|
-
}, attrs, (0, import_utils.pick)(props, popupProps), {
|
|
288
|
-
"show": true
|
|
289
|
-
}), {
|
|
293
|
+
}, attrs, (0, import_use_scope_id.useScopeId)(), (0, import_utils.pick)(props, popupProps)), {
|
|
290
294
|
default: () => [props.showArrow && (0, import_vue.createVNode)("div", {
|
|
291
295
|
"class": bem("arrow"),
|
|
292
296
|
"ref": arrowRef
|
package/lib/popover/index.d.ts
CHANGED
|
@@ -107,8 +107,8 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
|
107
107
|
}, {
|
|
108
108
|
offset: [number, number];
|
|
109
109
|
theme: import("./types").PopoverTheme;
|
|
110
|
-
show: boolean;
|
|
111
110
|
overlay: boolean;
|
|
111
|
+
show: boolean;
|
|
112
112
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
113
113
|
closeOnClickOverlay: boolean;
|
|
114
114
|
actions: import("./types").PopoverAction[];
|
package/lib/popup/Popup.d.ts
CHANGED
|
@@ -187,13 +187,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
187
|
onClickCloseIcon?: ((...args: any[]) => any) | undefined;
|
|
188
188
|
}, {
|
|
189
189
|
position: PopupPosition;
|
|
190
|
-
show: boolean;
|
|
191
190
|
overlay: boolean;
|
|
191
|
+
round: boolean;
|
|
192
|
+
show: boolean;
|
|
192
193
|
lockScroll: boolean;
|
|
193
194
|
lazyRender: boolean;
|
|
194
195
|
transitionAppear: boolean;
|
|
195
196
|
closeOnClickOverlay: boolean;
|
|
196
|
-
round: boolean;
|
|
197
197
|
closeIcon: string;
|
|
198
198
|
closeable: boolean;
|
|
199
199
|
closeOnPopstate: boolean;
|