naive-ui 2.25.1 → 2.25.2
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/es/_internal/select-menu/src/SelectMenu.d.ts +6 -1
- package/es/_internal/select-menu/src/SelectMenu.js +17 -8
- package/es/_internal/selection/src/Selection.d.ts +31 -26
- package/es/_internal/selection/src/Selection.js +78 -80
- package/es/_internal/selection/styles/dark.js +3 -3
- package/es/_internal/selection/styles/light.d.ts +6 -6
- package/es/_internal/selection/styles/light.js +3 -3
- package/es/_mixins/index.d.ts +1 -1
- package/es/_mixins/index.js +1 -1
- package/es/_mixins/use-css-vars-class.d.ts +9 -2
- package/es/_mixins/use-css-vars-class.js +29 -13
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_utils/css/color-to-class.d.ts +1 -0
- package/es/_utils/css/color-to-class.js +3 -0
- package/es/_utils/css/format-length.d.ts +2 -2
- package/es/_utils/css/format-length.js +1 -2
- package/es/_utils/css/index.d.ts +2 -1
- package/es/_utils/css/index.js +2 -1
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/vue/resolve-slot.js +0 -1
- package/es/alert/src/Alert.d.ts +4 -4
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/badge/src/Badge.d.ts +4 -4
- package/es/button/src/Button.d.ts +3 -2
- package/es/button/src/Button.js +13 -24
- package/es/button/styles/index.d.ts +1 -1
- package/es/button/styles/index.js +1 -1
- package/es/button/styles/rtl.d.ts +2 -5
- package/es/button/styles/rtl.js +1 -1
- package/es/card/src/Card.d.ts +3 -1
- package/es/card/src/Card.js +41 -38
- package/es/card/styles/index.d.ts +1 -1
- package/es/card/styles/index.js +1 -1
- package/es/card/styles/rtl.d.ts +2 -5
- package/es/card/styles/rtl.js +1 -1
- package/es/cascader/src/Cascader.d.ts +30 -30
- package/es/cascader/src/CascaderMenu.d.ts +3 -3
- package/es/cascader/src/CascaderOption.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/es/cascader/styles/light.d.ts +3 -3
- package/es/checkbox/src/styles/index.cssr.js +12 -12
- package/es/data-table/src/DataTable.d.ts +34 -34
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/es/data-table/src/TableParts/Body.d.ts +6 -6
- package/es/data-table/src/TableParts/Cell.d.ts +12 -12
- package/es/data-table/src/TableParts/Header.d.ts +6 -6
- package/es/data-table/styles/light.d.ts +3 -3
- package/es/descriptions/src/Descriptions.d.ts +1 -1
- package/es/dialog/src/Dialog.d.ts +4 -4
- package/es/dialog/src/DialogEnvironment.d.ts +5 -5
- package/es/dialog/src/DialogProvider.d.ts +2 -2
- package/es/dialog/src/dialogProps.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +4 -4
- package/es/form/src/FormItem.d.ts +4 -4
- package/es/form/src/FormItemCol.d.ts +3 -3
- package/es/form/src/FormItemGridItem.d.ts +5 -5
- package/es/form/src/FormItemRow.d.ts +3 -3
- package/es/form/src/utils.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/icon-wrapper/src/IconWrapper.js +7 -5
- package/es/image/src/Image.d.ts +1 -1
- package/es/input/src/Input.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/locales/common/eo.d.ts +109 -0
- package/es/locales/common/eo.js +109 -0
- package/es/locales/common/plPL.d.ts +3 -0
- package/es/locales/common/plPL.js +109 -0
- package/es/locales/date/eo.d.ts +3 -0
- package/es/locales/date/eo.js +6 -0
- package/es/locales/date/plPL.d.ts +3 -0
- package/es/locales/date/plPL.js +6 -0
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.js +4 -0
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +6 -6
- package/es/modal/src/Modal.d.ts +8 -8
- package/es/modal/src/presetProps.d.ts +2 -2
- package/es/notification/src/Notification.d.ts +4 -4
- package/es/notification/src/NotificationEnvironment.d.ts +4 -4
- package/es/notification/src/NotificationProvider.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +33 -33
- package/es/pagination/styles/light.d.ts +3 -3
- package/es/progress/src/Circle.d.ts +19 -3
- package/es/progress/src/Circle.js +41 -22
- package/es/progress/src/Progress.d.ts +14 -5
- package/es/progress/src/Progress.js +43 -29
- package/es/progress/src/styles/index.cssr.js +1 -1
- package/es/result/src/Result.d.ts +4 -4
- package/es/select/src/Select.d.ts +45 -31
- package/es/select/src/Select.js +13 -8
- package/es/select/styles/light.d.ts +3 -3
- package/es/tag/src/Tag.d.ts +7 -5
- package/es/tag/src/Tag.js +60 -40
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/tag/styles/index.d.ts +1 -1
- package/es/tag/styles/index.js +1 -1
- package/es/tag/styles/rtl.d.ts +2 -5
- package/es/tag/styles/rtl.js +1 -1
- package/es/timeline/src/TimelineItem.d.ts +4 -4
- package/es/tree/src/utils.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +30 -30
- package/es/tree-select/styles/light.d.ts +3 -3
- package/es/typography/src/create-header.d.ts +4 -4
- package/es/typography/src/headers.d.ts +18 -18
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +6 -1
- package/lib/_internal/select-menu/src/SelectMenu.js +16 -7
- package/lib/_internal/selection/src/Selection.d.ts +31 -26
- package/lib/_internal/selection/src/Selection.js +77 -79
- package/lib/_internal/selection/styles/dark.js +3 -3
- package/lib/_internal/selection/styles/light.d.ts +6 -6
- package/lib/_internal/selection/styles/light.js +3 -3
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +3 -2
- package/lib/_mixins/use-css-vars-class.d.ts +9 -2
- package/lib/_mixins/use-css-vars-class.js +31 -15
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_utils/css/color-to-class.d.ts +1 -0
- package/lib/_utils/css/color-to-class.js +7 -0
- package/lib/_utils/css/format-length.d.ts +2 -2
- package/lib/_utils/css/format-length.js +2 -1
- package/lib/_utils/css/index.d.ts +2 -1
- package/lib/_utils/css/index.js +4 -5
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/vue/resolve-slot.js +0 -1
- package/lib/alert/src/Alert.d.ts +4 -4
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/badge/src/Badge.d.ts +4 -4
- package/lib/button/src/Button.d.ts +3 -2
- package/lib/button/src/Button.js +11 -22
- package/lib/button/styles/index.d.ts +1 -1
- package/lib/button/styles/index.js +1 -1
- package/lib/button/styles/rtl.d.ts +2 -5
- package/lib/button/styles/rtl.js +2 -1
- package/lib/card/src/Card.d.ts +3 -1
- package/lib/card/src/Card.js +40 -37
- package/lib/card/styles/index.d.ts +1 -1
- package/lib/card/styles/index.js +1 -1
- package/lib/card/styles/rtl.d.ts +2 -5
- package/lib/card/styles/rtl.js +2 -1
- package/lib/cascader/src/Cascader.d.ts +30 -30
- package/lib/cascader/src/CascaderMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderOption.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/lib/cascader/styles/light.d.ts +3 -3
- package/lib/checkbox/src/styles/index.cssr.js +12 -12
- package/lib/data-table/src/DataTable.d.ts +34 -34
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/lib/data-table/src/TableParts/Body.d.ts +6 -6
- package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
- package/lib/data-table/src/TableParts/Header.d.ts +6 -6
- package/lib/data-table/styles/light.d.ts +3 -3
- package/lib/descriptions/src/Descriptions.d.ts +1 -1
- package/lib/dialog/src/Dialog.d.ts +4 -4
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -5
- package/lib/dialog/src/DialogProvider.d.ts +2 -2
- package/lib/dialog/src/dialogProps.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +4 -4
- package/lib/form/src/FormItem.d.ts +4 -4
- package/lib/form/src/FormItemCol.d.ts +3 -3
- package/lib/form/src/FormItemGridItem.d.ts +5 -5
- package/lib/form/src/FormItemRow.d.ts +3 -3
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/icon-wrapper/src/IconWrapper.js +6 -4
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/locales/common/eo.d.ts +109 -0
- package/lib/locales/common/eo.js +111 -0
- package/lib/locales/common/plPL.d.ts +3 -0
- package/lib/locales/common/plPL.js +111 -0
- package/lib/locales/date/eo.d.ts +3 -0
- package/lib/locales/date/eo.js +11 -0
- package/lib/locales/date/plPL.d.ts +3 -0
- package/lib/locales/date/plPL.js +11 -0
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +9 -1
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +6 -6
- package/lib/modal/src/Modal.d.ts +8 -8
- package/lib/modal/src/presetProps.d.ts +2 -2
- package/lib/notification/src/Notification.d.ts +4 -4
- package/lib/notification/src/NotificationEnvironment.d.ts +4 -4
- package/lib/notification/src/NotificationProvider.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +33 -33
- package/lib/pagination/styles/light.d.ts +3 -3
- package/lib/progress/src/Circle.d.ts +19 -3
- package/lib/progress/src/Circle.js +40 -21
- package/lib/progress/src/Progress.d.ts +14 -5
- package/lib/progress/src/Progress.js +42 -28
- package/lib/progress/src/styles/index.cssr.js +1 -1
- package/lib/result/src/Result.d.ts +4 -4
- package/lib/select/src/Select.d.ts +45 -31
- package/lib/select/src/Select.js +13 -8
- package/lib/select/styles/light.d.ts +3 -3
- package/lib/tag/src/Tag.d.ts +7 -5
- package/lib/tag/src/Tag.js +58 -38
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/tag/styles/index.d.ts +1 -1
- package/lib/tag/styles/index.js +1 -1
- package/lib/tag/styles/rtl.d.ts +2 -5
- package/lib/tag/styles/rtl.js +2 -1
- package/lib/timeline/src/TimelineItem.d.ts +4 -4
- package/lib/tree/src/utils.js +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +30 -30
- package/lib/tree-select/styles/light.d.ts +3 -3
- package/lib/typography/src/create-header.d.ts +4 -4
- package/lib/typography/src/headers.d.ts +18 -18
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/web-types.json +28 -1
|
@@ -111,7 +111,7 @@ declare const paginationProps: {
|
|
|
111
111
|
borderHover: string;
|
|
112
112
|
borderActive: string;
|
|
113
113
|
borderFocus: string;
|
|
114
|
-
boxShadowHover:
|
|
114
|
+
boxShadowHover: string;
|
|
115
115
|
boxShadowActive: string;
|
|
116
116
|
boxShadowFocus: string;
|
|
117
117
|
caretColor: string;
|
|
@@ -122,7 +122,7 @@ declare const paginationProps: {
|
|
|
122
122
|
borderHoverWarning: string;
|
|
123
123
|
borderActiveWarning: string;
|
|
124
124
|
borderFocusWarning: string;
|
|
125
|
-
boxShadowHoverWarning:
|
|
125
|
+
boxShadowHoverWarning: string;
|
|
126
126
|
boxShadowActiveWarning: string;
|
|
127
127
|
boxShadowFocusWarning: string;
|
|
128
128
|
colorActiveWarning: string;
|
|
@@ -131,7 +131,7 @@ declare const paginationProps: {
|
|
|
131
131
|
borderHoverError: string;
|
|
132
132
|
borderActiveError: string;
|
|
133
133
|
borderFocusError: string;
|
|
134
|
-
boxShadowHoverError:
|
|
134
|
+
boxShadowHoverError: string;
|
|
135
135
|
boxShadowActiveError: string;
|
|
136
136
|
boxShadowFocusError: string;
|
|
137
137
|
colorActiveError: string;
|
|
@@ -339,7 +339,7 @@ declare const paginationProps: {
|
|
|
339
339
|
borderHover: string;
|
|
340
340
|
borderActive: string;
|
|
341
341
|
borderFocus: string;
|
|
342
|
-
boxShadowHover:
|
|
342
|
+
boxShadowHover: string;
|
|
343
343
|
boxShadowActive: string;
|
|
344
344
|
boxShadowFocus: string;
|
|
345
345
|
caretColor: string;
|
|
@@ -350,7 +350,7 @@ declare const paginationProps: {
|
|
|
350
350
|
borderHoverWarning: string;
|
|
351
351
|
borderActiveWarning: string;
|
|
352
352
|
borderFocusWarning: string;
|
|
353
|
-
boxShadowHoverWarning:
|
|
353
|
+
boxShadowHoverWarning: string;
|
|
354
354
|
boxShadowActiveWarning: string;
|
|
355
355
|
boxShadowFocusWarning: string;
|
|
356
356
|
colorActiveWarning: string;
|
|
@@ -359,7 +359,7 @@ declare const paginationProps: {
|
|
|
359
359
|
borderHoverError: string;
|
|
360
360
|
borderActiveError: string;
|
|
361
361
|
borderFocusError: string;
|
|
362
|
-
boxShadowHoverError:
|
|
362
|
+
boxShadowHoverError: string;
|
|
363
363
|
boxShadowActiveError: string;
|
|
364
364
|
boxShadowFocusError: string;
|
|
365
365
|
colorActiveError: string;
|
|
@@ -567,7 +567,7 @@ declare const paginationProps: {
|
|
|
567
567
|
borderHover: string;
|
|
568
568
|
borderActive: string;
|
|
569
569
|
borderFocus: string;
|
|
570
|
-
boxShadowHover:
|
|
570
|
+
boxShadowHover: string;
|
|
571
571
|
boxShadowActive: string;
|
|
572
572
|
boxShadowFocus: string;
|
|
573
573
|
caretColor: string;
|
|
@@ -578,7 +578,7 @@ declare const paginationProps: {
|
|
|
578
578
|
borderHoverWarning: string;
|
|
579
579
|
borderActiveWarning: string;
|
|
580
580
|
borderFocusWarning: string;
|
|
581
|
-
boxShadowHoverWarning:
|
|
581
|
+
boxShadowHoverWarning: string;
|
|
582
582
|
boxShadowActiveWarning: string;
|
|
583
583
|
boxShadowFocusWarning: string;
|
|
584
584
|
colorActiveWarning: string;
|
|
@@ -587,7 +587,7 @@ declare const paginationProps: {
|
|
|
587
587
|
borderHoverError: string;
|
|
588
588
|
borderActiveError: string;
|
|
589
589
|
borderFocusError: string;
|
|
590
|
-
boxShadowHoverError:
|
|
590
|
+
boxShadowHoverError: string;
|
|
591
591
|
boxShadowActiveError: string;
|
|
592
592
|
boxShadowFocusError: string;
|
|
593
593
|
colorActiveError: string;
|
|
@@ -838,7 +838,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
838
838
|
borderHover: string;
|
|
839
839
|
borderActive: string;
|
|
840
840
|
borderFocus: string;
|
|
841
|
-
boxShadowHover:
|
|
841
|
+
boxShadowHover: string;
|
|
842
842
|
boxShadowActive: string;
|
|
843
843
|
boxShadowFocus: string;
|
|
844
844
|
caretColor: string;
|
|
@@ -849,7 +849,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
849
849
|
borderHoverWarning: string;
|
|
850
850
|
borderActiveWarning: string;
|
|
851
851
|
borderFocusWarning: string;
|
|
852
|
-
boxShadowHoverWarning:
|
|
852
|
+
boxShadowHoverWarning: string;
|
|
853
853
|
boxShadowActiveWarning: string;
|
|
854
854
|
boxShadowFocusWarning: string;
|
|
855
855
|
colorActiveWarning: string;
|
|
@@ -858,7 +858,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
858
858
|
borderHoverError: string;
|
|
859
859
|
borderActiveError: string;
|
|
860
860
|
borderFocusError: string;
|
|
861
|
-
boxShadowHoverError:
|
|
861
|
+
boxShadowHoverError: string;
|
|
862
862
|
boxShadowActiveError: string;
|
|
863
863
|
boxShadowFocusError: string;
|
|
864
864
|
colorActiveError: string;
|
|
@@ -1066,7 +1066,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1066
1066
|
borderHover: string;
|
|
1067
1067
|
borderActive: string;
|
|
1068
1068
|
borderFocus: string;
|
|
1069
|
-
boxShadowHover:
|
|
1069
|
+
boxShadowHover: string;
|
|
1070
1070
|
boxShadowActive: string;
|
|
1071
1071
|
boxShadowFocus: string;
|
|
1072
1072
|
caretColor: string;
|
|
@@ -1077,7 +1077,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1077
1077
|
borderHoverWarning: string;
|
|
1078
1078
|
borderActiveWarning: string;
|
|
1079
1079
|
borderFocusWarning: string;
|
|
1080
|
-
boxShadowHoverWarning:
|
|
1080
|
+
boxShadowHoverWarning: string;
|
|
1081
1081
|
boxShadowActiveWarning: string;
|
|
1082
1082
|
boxShadowFocusWarning: string;
|
|
1083
1083
|
colorActiveWarning: string;
|
|
@@ -1086,7 +1086,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1086
1086
|
borderHoverError: string;
|
|
1087
1087
|
borderActiveError: string;
|
|
1088
1088
|
borderFocusError: string;
|
|
1089
|
-
boxShadowHoverError:
|
|
1089
|
+
boxShadowHoverError: string;
|
|
1090
1090
|
boxShadowActiveError: string;
|
|
1091
1091
|
boxShadowFocusError: string;
|
|
1092
1092
|
colorActiveError: string;
|
|
@@ -1294,7 +1294,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1294
1294
|
borderHover: string;
|
|
1295
1295
|
borderActive: string;
|
|
1296
1296
|
borderFocus: string;
|
|
1297
|
-
boxShadowHover:
|
|
1297
|
+
boxShadowHover: string;
|
|
1298
1298
|
boxShadowActive: string;
|
|
1299
1299
|
boxShadowFocus: string;
|
|
1300
1300
|
caretColor: string;
|
|
@@ -1305,7 +1305,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1305
1305
|
borderHoverWarning: string;
|
|
1306
1306
|
borderActiveWarning: string;
|
|
1307
1307
|
borderFocusWarning: string;
|
|
1308
|
-
boxShadowHoverWarning:
|
|
1308
|
+
boxShadowHoverWarning: string;
|
|
1309
1309
|
boxShadowActiveWarning: string;
|
|
1310
1310
|
boxShadowFocusWarning: string;
|
|
1311
1311
|
colorActiveWarning: string;
|
|
@@ -1314,7 +1314,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1314
1314
|
borderHoverError: string;
|
|
1315
1315
|
borderActiveError: string;
|
|
1316
1316
|
borderFocusError: string;
|
|
1317
|
-
boxShadowHoverError:
|
|
1317
|
+
boxShadowHoverError: string;
|
|
1318
1318
|
boxShadowActiveError: string;
|
|
1319
1319
|
boxShadowFocusError: string;
|
|
1320
1320
|
colorActiveError: string;
|
|
@@ -1655,7 +1655,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1655
1655
|
borderHover: string;
|
|
1656
1656
|
borderActive: string;
|
|
1657
1657
|
borderFocus: string;
|
|
1658
|
-
boxShadowHover:
|
|
1658
|
+
boxShadowHover: string;
|
|
1659
1659
|
boxShadowActive: string;
|
|
1660
1660
|
boxShadowFocus: string;
|
|
1661
1661
|
caretColor: string;
|
|
@@ -1666,7 +1666,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1666
1666
|
borderHoverWarning: string;
|
|
1667
1667
|
borderActiveWarning: string;
|
|
1668
1668
|
borderFocusWarning: string;
|
|
1669
|
-
boxShadowHoverWarning:
|
|
1669
|
+
boxShadowHoverWarning: string;
|
|
1670
1670
|
boxShadowActiveWarning: string;
|
|
1671
1671
|
boxShadowFocusWarning: string;
|
|
1672
1672
|
colorActiveWarning: string;
|
|
@@ -1675,7 +1675,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1675
1675
|
borderHoverError: string;
|
|
1676
1676
|
borderActiveError: string;
|
|
1677
1677
|
borderFocusError: string;
|
|
1678
|
-
boxShadowHoverError:
|
|
1678
|
+
boxShadowHoverError: string;
|
|
1679
1679
|
boxShadowActiveError: string;
|
|
1680
1680
|
boxShadowFocusError: string;
|
|
1681
1681
|
colorActiveError: string;
|
|
@@ -1841,7 +1841,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1841
1841
|
borderHover: string;
|
|
1842
1842
|
borderActive: string;
|
|
1843
1843
|
borderFocus: string;
|
|
1844
|
-
boxShadowHover:
|
|
1844
|
+
boxShadowHover: string;
|
|
1845
1845
|
boxShadowActive: string;
|
|
1846
1846
|
boxShadowFocus: string;
|
|
1847
1847
|
caretColor: string;
|
|
@@ -1852,7 +1852,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1852
1852
|
borderHoverWarning: string;
|
|
1853
1853
|
borderActiveWarning: string;
|
|
1854
1854
|
borderFocusWarning: string;
|
|
1855
|
-
boxShadowHoverWarning:
|
|
1855
|
+
boxShadowHoverWarning: string;
|
|
1856
1856
|
boxShadowActiveWarning: string;
|
|
1857
1857
|
boxShadowFocusWarning: string;
|
|
1858
1858
|
colorActiveWarning: string;
|
|
@@ -1861,7 +1861,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1861
1861
|
borderHoverError: string;
|
|
1862
1862
|
borderActiveError: string;
|
|
1863
1863
|
borderFocusError: string;
|
|
1864
|
-
boxShadowHoverError:
|
|
1864
|
+
boxShadowHoverError: string;
|
|
1865
1865
|
boxShadowActiveError: string;
|
|
1866
1866
|
boxShadowFocusError: string;
|
|
1867
1867
|
colorActiveError: string;
|
|
@@ -2111,7 +2111,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2111
2111
|
borderHover: string;
|
|
2112
2112
|
borderActive: string;
|
|
2113
2113
|
borderFocus: string;
|
|
2114
|
-
boxShadowHover:
|
|
2114
|
+
boxShadowHover: string;
|
|
2115
2115
|
boxShadowActive: string;
|
|
2116
2116
|
boxShadowFocus: string;
|
|
2117
2117
|
caretColor: string;
|
|
@@ -2122,7 +2122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2122
2122
|
borderHoverWarning: string;
|
|
2123
2123
|
borderActiveWarning: string;
|
|
2124
2124
|
borderFocusWarning: string;
|
|
2125
|
-
boxShadowHoverWarning:
|
|
2125
|
+
boxShadowHoverWarning: string;
|
|
2126
2126
|
boxShadowActiveWarning: string;
|
|
2127
2127
|
boxShadowFocusWarning: string;
|
|
2128
2128
|
colorActiveWarning: string;
|
|
@@ -2131,7 +2131,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2131
2131
|
borderHoverError: string;
|
|
2132
2132
|
borderActiveError: string;
|
|
2133
2133
|
borderFocusError: string;
|
|
2134
|
-
boxShadowHoverError:
|
|
2134
|
+
boxShadowHoverError: string;
|
|
2135
2135
|
boxShadowActiveError: string;
|
|
2136
2136
|
boxShadowFocusError: string;
|
|
2137
2137
|
colorActiveError: string;
|
|
@@ -2339,7 +2339,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2339
2339
|
borderHover: string;
|
|
2340
2340
|
borderActive: string;
|
|
2341
2341
|
borderFocus: string;
|
|
2342
|
-
boxShadowHover:
|
|
2342
|
+
boxShadowHover: string;
|
|
2343
2343
|
boxShadowActive: string;
|
|
2344
2344
|
boxShadowFocus: string;
|
|
2345
2345
|
caretColor: string;
|
|
@@ -2350,7 +2350,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2350
2350
|
borderHoverWarning: string;
|
|
2351
2351
|
borderActiveWarning: string;
|
|
2352
2352
|
borderFocusWarning: string;
|
|
2353
|
-
boxShadowHoverWarning:
|
|
2353
|
+
boxShadowHoverWarning: string;
|
|
2354
2354
|
boxShadowActiveWarning: string;
|
|
2355
2355
|
boxShadowFocusWarning: string;
|
|
2356
2356
|
colorActiveWarning: string;
|
|
@@ -2359,7 +2359,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2359
2359
|
borderHoverError: string;
|
|
2360
2360
|
borderActiveError: string;
|
|
2361
2361
|
borderFocusError: string;
|
|
2362
|
-
boxShadowHoverError:
|
|
2362
|
+
boxShadowHoverError: string;
|
|
2363
2363
|
boxShadowActiveError: string;
|
|
2364
2364
|
boxShadowFocusError: string;
|
|
2365
2365
|
colorActiveError: string;
|
|
@@ -2567,7 +2567,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2567
2567
|
borderHover: string;
|
|
2568
2568
|
borderActive: string;
|
|
2569
2569
|
borderFocus: string;
|
|
2570
|
-
boxShadowHover:
|
|
2570
|
+
boxShadowHover: string;
|
|
2571
2571
|
boxShadowActive: string;
|
|
2572
2572
|
boxShadowFocus: string;
|
|
2573
2573
|
caretColor: string;
|
|
@@ -2578,7 +2578,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2578
2578
|
borderHoverWarning: string;
|
|
2579
2579
|
borderActiveWarning: string;
|
|
2580
2580
|
borderFocusWarning: string;
|
|
2581
|
-
boxShadowHoverWarning:
|
|
2581
|
+
boxShadowHoverWarning: string;
|
|
2582
2582
|
boxShadowActiveWarning: string;
|
|
2583
2583
|
boxShadowFocusWarning: string;
|
|
2584
2584
|
colorActiveWarning: string;
|
|
@@ -2587,7 +2587,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2587
2587
|
borderHoverError: string;
|
|
2588
2588
|
borderActiveError: string;
|
|
2589
2589
|
borderFocusError: string;
|
|
2590
|
-
boxShadowHoverError:
|
|
2590
|
+
boxShadowHoverError: string;
|
|
2591
2591
|
boxShadowActiveError: string;
|
|
2592
2592
|
boxShadowFocusError: string;
|
|
2593
2593
|
colorActiveError: string;
|
|
@@ -108,7 +108,7 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
|
108
108
|
borderHover: string;
|
|
109
109
|
borderActive: string;
|
|
110
110
|
borderFocus: string;
|
|
111
|
-
boxShadowHover:
|
|
111
|
+
boxShadowHover: string;
|
|
112
112
|
boxShadowActive: string;
|
|
113
113
|
boxShadowFocus: string;
|
|
114
114
|
caretColor: string;
|
|
@@ -119,7 +119,7 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
|
119
119
|
borderHoverWarning: string;
|
|
120
120
|
borderActiveWarning: string;
|
|
121
121
|
borderFocusWarning: string;
|
|
122
|
-
boxShadowHoverWarning:
|
|
122
|
+
boxShadowHoverWarning: string;
|
|
123
123
|
boxShadowActiveWarning: string;
|
|
124
124
|
boxShadowFocusWarning: string;
|
|
125
125
|
colorActiveWarning: string;
|
|
@@ -128,7 +128,7 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
|
128
128
|
borderHoverError: string;
|
|
129
129
|
borderActiveError: string;
|
|
130
130
|
borderFocusError: string;
|
|
131
|
-
boxShadowHoverError:
|
|
131
|
+
boxShadowHoverError: string;
|
|
132
132
|
boxShadowActiveError: string;
|
|
133
133
|
boxShadowFocusError: string;
|
|
134
134
|
colorActiveError: string;
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
};
|
|
27
27
|
showIndicator: {
|
|
28
28
|
type: BooleanConstructor;
|
|
29
|
-
|
|
29
|
+
required: true;
|
|
30
30
|
};
|
|
31
31
|
indicatorTextColor: StringConstructor;
|
|
32
32
|
unit: StringConstructor;
|
|
@@ -34,6 +34,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
type: NumberConstructor;
|
|
35
35
|
required: true;
|
|
36
36
|
};
|
|
37
|
+
gapDegree: {
|
|
38
|
+
type: PropType<number>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
gapOffsetDegree: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
37
45
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
46
|
clsPrefix: {
|
|
39
47
|
type: StringConstructor;
|
|
@@ -60,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
68
|
};
|
|
61
69
|
showIndicator: {
|
|
62
70
|
type: BooleanConstructor;
|
|
63
|
-
|
|
71
|
+
required: true;
|
|
64
72
|
};
|
|
65
73
|
indicatorTextColor: StringConstructor;
|
|
66
74
|
unit: StringConstructor;
|
|
@@ -68,9 +76,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
76
|
type: NumberConstructor;
|
|
69
77
|
required: true;
|
|
70
78
|
};
|
|
79
|
+
gapDegree: {
|
|
80
|
+
type: PropType<number>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
gapOffsetDegree: {
|
|
84
|
+
type: NumberConstructor;
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
71
87
|
}>>, {
|
|
72
88
|
percentage: number;
|
|
73
|
-
showIndicator: boolean;
|
|
74
89
|
offsetDegree: number;
|
|
90
|
+
gapOffsetDegree: number;
|
|
75
91
|
}>;
|
|
76
92
|
export default _default;
|
|
@@ -37,46 +37,65 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
37
37
|
},
|
|
38
38
|
showIndicator: {
|
|
39
39
|
type: Boolean,
|
|
40
|
-
|
|
40
|
+
required: true
|
|
41
41
|
},
|
|
42
42
|
indicatorTextColor: String,
|
|
43
43
|
unit: String,
|
|
44
44
|
viewBoxWidth: {
|
|
45
45
|
type: Number,
|
|
46
46
|
required: true
|
|
47
|
+
},
|
|
48
|
+
gapDegree: {
|
|
49
|
+
type: Number,
|
|
50
|
+
required: true
|
|
51
|
+
},
|
|
52
|
+
gapOffsetDegree: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: 0
|
|
47
55
|
}
|
|
48
56
|
},
|
|
49
57
|
setup(props, { slots }) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
function getPathStyles(percent, offsetDegree, strokeColor) {
|
|
59
|
+
const { gapDegree, viewBoxWidth } = props;
|
|
60
|
+
const radius = 50;
|
|
61
|
+
const beginPositionX = 0;
|
|
62
|
+
const beginPositionY = radius;
|
|
63
|
+
const endPositionX = 0;
|
|
64
|
+
const endPositionY = 2 * radius;
|
|
65
|
+
const pathString = `M 55,55 m ${beginPositionX},${beginPositionY}
|
|
66
|
+
a ${radius},${radius} 0 1 1 ${endPositionX},${-endPositionY}
|
|
67
|
+
a ${radius},${radius} 0 1 1 ${-endPositionX},${endPositionY}`;
|
|
68
|
+
const len = Math.PI * 2 * radius;
|
|
69
|
+
const pathStyle = {
|
|
70
|
+
stroke: strokeColor,
|
|
71
|
+
strokeDasharray: `${(percent / 100) * (len - gapDegree)}px ${viewBoxWidth * 8}px`,
|
|
72
|
+
strokeDashoffset: `-${gapDegree / 2 + (Math.PI / 3.6) * offsetDegree}px`
|
|
73
|
+
};
|
|
74
|
+
return {
|
|
75
|
+
pathString,
|
|
76
|
+
pathStyle
|
|
77
|
+
};
|
|
78
|
+
}
|
|
56
79
|
return () => {
|
|
57
|
-
const { fillColor, railColor,
|
|
80
|
+
const { fillColor, railColor, strokeWidth, offsetDegree, status, percentage, showIndicator, indicatorTextColor, unit, gapOffsetDegree, clsPrefix } = props;
|
|
81
|
+
const { pathString: railPathString, pathStyle: railPathStyle } = getPathStyles(100, 0, railColor);
|
|
82
|
+
const { pathString: fillPathString, pathStyle: fillPathStyle } = getPathStyles(percentage, offsetDegree, fillColor);
|
|
58
83
|
return ((0, vue_1.h)("div", { class: `${clsPrefix}-progress-content`, role: "none" },
|
|
59
84
|
(0, vue_1.h)("div", { class: `${clsPrefix}-progress-graph`, "aria-hidden": true },
|
|
60
|
-
(0, vue_1.h)("div", { class: `${clsPrefix}-progress-graph-circle
|
|
85
|
+
(0, vue_1.h)("div", { class: `${clsPrefix}-progress-graph-circle`, style: {
|
|
86
|
+
transform: gapOffsetDegree
|
|
87
|
+
? `rotate(${gapOffsetDegree}deg)`
|
|
88
|
+
: undefined
|
|
89
|
+
} },
|
|
61
90
|
(0, vue_1.h)("svg", { viewBox: "0 0 110 110" },
|
|
62
91
|
(0, vue_1.h)("g", null,
|
|
63
|
-
(0, vue_1.h)("path", { class: `${clsPrefix}-progress-graph-circle-rail`, d:
|
|
64
|
-
{
|
|
65
|
-
strokeDashoffset: 0,
|
|
66
|
-
stroke: railColor
|
|
67
|
-
},
|
|
68
|
-
railStyle
|
|
69
|
-
] })),
|
|
92
|
+
(0, vue_1.h)("path", { class: `${clsPrefix}-progress-graph-circle-rail`, d: railPathString, "stroke-width": strokeWidth, "stroke-linecap": "round", fill: "none", style: railPathStyle })),
|
|
70
93
|
(0, vue_1.h)("g", null,
|
|
71
94
|
(0, vue_1.h)("path", { class: [
|
|
72
95
|
`${clsPrefix}-progress-graph-circle-fill`,
|
|
73
96
|
percentage === 0 &&
|
|
74
97
|
`${clsPrefix}-progress-graph-circle-fill--empty`
|
|
75
|
-
], d:
|
|
76
|
-
strokeDasharray: strokeDasharrayRef.value,
|
|
77
|
-
strokeDashoffset: strokeDashoffsetRef.value,
|
|
78
|
-
stroke: fillColor
|
|
79
|
-
} }))))),
|
|
98
|
+
], d: fillPathString, "stroke-width": strokeWidth, "stroke-linecap": "round", fill: "none", style: fillPathStyle }))))),
|
|
80
99
|
showIndicator ? ((0, vue_1.h)("div", null, slots.default ? ((0, vue_1.h)("div", { class: `${clsPrefix}-progress-custom-content`, role: "none" }, slots.default())) : status !== 'default' ? ((0, vue_1.h)("div", { class: `${clsPrefix}-progress-icon`, "aria-hidden": true },
|
|
81
100
|
(0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: clsPrefix }, {
|
|
82
101
|
default: () => iconMap[status]
|
|
@@ -4,9 +4,11 @@ import { Status } from './interface';
|
|
|
4
4
|
declare const progressProps: {
|
|
5
5
|
readonly processing: BooleanConstructor;
|
|
6
6
|
readonly type: {
|
|
7
|
-
readonly type: PropType<"circle" | "line" | "multiple-circle">;
|
|
7
|
+
readonly type: PropType<"circle" | "line" | "multiple-circle" | "dashboard">;
|
|
8
8
|
readonly default: "line";
|
|
9
9
|
};
|
|
10
|
+
readonly gapDegree: NumberConstructor;
|
|
11
|
+
readonly gapOffsetDegree: NumberConstructor;
|
|
10
12
|
readonly status: {
|
|
11
13
|
readonly type: PropType<Status>;
|
|
12
14
|
readonly default: "default";
|
|
@@ -122,9 +124,11 @@ export declare type ProgressProps = ExtractPublicPropTypes<typeof progressProps>
|
|
|
122
124
|
declare const _default: import("vue").DefineComponent<{
|
|
123
125
|
readonly processing: BooleanConstructor;
|
|
124
126
|
readonly type: {
|
|
125
|
-
readonly type: PropType<"circle" | "line" | "multiple-circle">;
|
|
127
|
+
readonly type: PropType<"circle" | "line" | "multiple-circle" | "dashboard">;
|
|
126
128
|
readonly default: "line";
|
|
127
129
|
};
|
|
130
|
+
readonly gapDegree: NumberConstructor;
|
|
131
|
+
readonly gapOffsetDegree: NumberConstructor;
|
|
128
132
|
readonly status: {
|
|
129
133
|
readonly type: PropType<Status>;
|
|
130
134
|
readonly default: "default";
|
|
@@ -236,8 +240,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
236
240
|
lineBgProcessing: string;
|
|
237
241
|
}, any>>>;
|
|
238
242
|
}, {
|
|
243
|
+
themeClass?: import("vue").Ref<string> | undefined;
|
|
244
|
+
onRender?: (() => void) | undefined;
|
|
239
245
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
240
246
|
mergedIndicatorPlacement: import("vue").ComputedRef<"inside" | "outside">;
|
|
247
|
+
gapDeg: import("vue").ComputedRef<number | undefined>;
|
|
241
248
|
cssVars: import("vue").ComputedRef<{
|
|
242
249
|
'--n-bezier': string;
|
|
243
250
|
'--n-fill-color': string;
|
|
@@ -253,13 +260,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
253
260
|
'--n-text-color-circle': string;
|
|
254
261
|
'--n-text-color-line-inner': string;
|
|
255
262
|
'--n-text-color-line-outer': string;
|
|
256
|
-
}
|
|
263
|
+
}> | undefined;
|
|
257
264
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
258
265
|
readonly processing: BooleanConstructor;
|
|
259
266
|
readonly type: {
|
|
260
|
-
readonly type: PropType<"circle" | "line" | "multiple-circle">;
|
|
267
|
+
readonly type: PropType<"circle" | "line" | "multiple-circle" | "dashboard">;
|
|
261
268
|
readonly default: "line";
|
|
262
269
|
};
|
|
270
|
+
readonly gapDegree: NumberConstructor;
|
|
271
|
+
readonly gapOffsetDegree: NumberConstructor;
|
|
263
272
|
readonly status: {
|
|
264
273
|
readonly type: PropType<Status>;
|
|
265
274
|
readonly default: "default";
|
|
@@ -371,7 +380,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
371
380
|
lineBgProcessing: string;
|
|
372
381
|
}, any>>>;
|
|
373
382
|
}>>, {
|
|
374
|
-
type: "circle" | "line" | "multiple-circle";
|
|
383
|
+
type: "circle" | "line" | "multiple-circle" | "dashboard";
|
|
375
384
|
strokeWidth: number;
|
|
376
385
|
status: Status;
|
|
377
386
|
processing: boolean;
|
|
@@ -14,7 +14,7 @@ const MultipleCircle_1 = __importDefault(require("./MultipleCircle"));
|
|
|
14
14
|
const progressProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { processing: Boolean, type: {
|
|
15
15
|
type: String,
|
|
16
16
|
default: 'line'
|
|
17
|
-
}, status: {
|
|
17
|
+
}, gapDegree: Number, gapOffsetDegree: Number, status: {
|
|
18
18
|
type: String,
|
|
19
19
|
default: 'default'
|
|
20
20
|
}, railColor: [String, Array], railStyle: [String, Array], color: [String, Array], viewBoxWidth: {
|
|
@@ -46,40 +46,54 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
46
46
|
const mergedIndicatorPlacementRef = (0, vue_1.computed)(() => {
|
|
47
47
|
return props.indicatorPlacement || props.indicatorPosition;
|
|
48
48
|
});
|
|
49
|
-
const
|
|
49
|
+
const gapDeg = (0, vue_1.computed)(() => {
|
|
50
|
+
if (props.gapDegree || props.gapDegree === 0) {
|
|
51
|
+
return props.gapDegree;
|
|
52
|
+
}
|
|
53
|
+
if (props.type === 'dashboard') {
|
|
54
|
+
return 75;
|
|
55
|
+
}
|
|
56
|
+
return undefined;
|
|
57
|
+
});
|
|
58
|
+
const { mergedClsPrefixRef, NConfigProvider } = (0, _mixins_1.useConfig)(props);
|
|
59
|
+
const disableInlineTheme = NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.disableInlineTheme;
|
|
50
60
|
const themeRef = (0, _mixins_1.useTheme)('Progress', '-progress', index_cssr_1.default, styles_1.progressLight, props, mergedClsPrefixRef);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
};
|
|
61
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
62
|
+
const { status } = props;
|
|
63
|
+
const { common: { cubicBezierEaseInOut }, self: { fontSize, fontSizeCircle, railColor, railHeight, iconSizeCircle, iconSizeLine, textColorCircle, textColorLineInner, textColorLineOuter, lineBgProcessing, fontWeightCircle, [(0, _utils_1.createKey)('iconColor', status)]: iconColor, [(0, _utils_1.createKey)('fillColor', status)]: fillColor } } = themeRef.value;
|
|
64
|
+
return {
|
|
65
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
66
|
+
'--n-fill-color': fillColor,
|
|
67
|
+
'--n-font-size': fontSize,
|
|
68
|
+
'--n-font-size-circle': fontSizeCircle,
|
|
69
|
+
'--n-font-weight-circle': fontWeightCircle,
|
|
70
|
+
'--n-icon-color': iconColor,
|
|
71
|
+
'--n-icon-size-circle': iconSizeCircle,
|
|
72
|
+
'--n-icon-size-line': iconSizeLine,
|
|
73
|
+
'--n-line-bg-processing': lineBgProcessing,
|
|
74
|
+
'--n-rail-color': railColor,
|
|
75
|
+
'--n-rail-height': railHeight,
|
|
76
|
+
'--n-text-color-circle': textColorCircle,
|
|
77
|
+
'--n-text-color-line-inner': textColorLineInner,
|
|
78
|
+
'--n-text-color-line-outer': textColorLineOuter
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
const themeClassHandle = disableInlineTheme
|
|
82
|
+
? (0, _mixins_1.useThemeClass)('progress', (0, vue_1.computed)(() => props.status[0]), cssVarsRef, props)
|
|
83
|
+
: _mixins_1.emptyThemeClassHandle;
|
|
84
|
+
return Object.assign({ mergedClsPrefix: mergedClsPrefixRef, mergedIndicatorPlacement: mergedIndicatorPlacementRef, gapDeg, cssVars: disableInlineTheme ? undefined : cssVarsRef }, themeClassHandle);
|
|
75
85
|
},
|
|
76
86
|
render() {
|
|
77
87
|
// it's ok to expand all prop here since no slots' deps
|
|
78
|
-
const { type, cssVars, indicatorTextColor, showIndicator, status, railColor, railStyle, color, percentage, viewBoxWidth, strokeWidth, mergedIndicatorPlacement, unit, borderRadius, fillBorderRadius, height, processing, circleGap, mergedClsPrefix, $slots } = this;
|
|
88
|
+
const { type, cssVars, indicatorTextColor, showIndicator, status, railColor, railStyle, color, percentage, viewBoxWidth, strokeWidth, mergedIndicatorPlacement, unit, borderRadius, fillBorderRadius, height, processing, circleGap, mergedClsPrefix, gapDeg, gapOffsetDegree, themeClass, $slots, onRender } = this;
|
|
89
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
79
90
|
return ((0, vue_1.h)("div", { class: [
|
|
91
|
+
themeClass,
|
|
80
92
|
`${mergedClsPrefix}-progress`,
|
|
81
93
|
`${mergedClsPrefix}-progress--${type}`,
|
|
82
94
|
`${mergedClsPrefix}-progress--${status}`
|
|
83
|
-
], style: cssVars, "aria-valuemax": 100, "aria-valuemin": 0, "aria-valuenow": percentage, role: type === 'circle' || type === 'line'
|
|
95
|
+
], style: cssVars, "aria-valuemax": 100, "aria-valuemin": 0, "aria-valuenow": percentage, role: type === 'circle' || type === 'line' || type === 'dashboard'
|
|
96
|
+
? 'progressbar'
|
|
97
|
+
: 'none' }, type === 'circle' || type === 'dashboard' ? ((0, vue_1.h)(Circle_1.default, { clsPrefix: mergedClsPrefix, status: status, showIndicator: showIndicator, indicatorTextColor: indicatorTextColor, railColor: railColor, fillColor: color, railStyle: railStyle, offsetDegree: this.offsetDegree, percentage: percentage, viewBoxWidth: viewBoxWidth, strokeWidth: strokeWidth, gapDegree: gapDeg === undefined ? (type === 'dashboard' ? 75 : 0) : gapDeg, gapOffsetDegree: gapOffsetDegree, unit: unit }, $slots)) : type === 'line' ? ((0, vue_1.h)(Line_1.default, { clsPrefix: mergedClsPrefix, status: status, showIndicator: showIndicator, indicatorTextColor: indicatorTextColor, railColor: railColor, fillColor: color, railStyle: railStyle, percentage: percentage, processing: processing, indicatorPlacement: mergedIndicatorPlacement, unit: unit, fillBorderRadius: fillBorderRadius, railBorderRadius: borderRadius, height: height }, $slots)) : type === 'multiple-circle' ? ((0, vue_1.h)(MultipleCircle_1.default, { clsPrefix: mergedClsPrefix, strokeWidth: strokeWidth, railColor: railColor, fillColor: color, railStyle: railStyle, viewBoxWidth: viewBoxWidth, percentage: percentage, showIndicator: showIndicator, circleGap: circleGap }, $slots)) : null));
|
|
84
98
|
}
|
|
85
99
|
});
|
|
@@ -49,7 +49,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('progress', {
|
|
|
49
49
|
font-size: var(--n-font-size);
|
|
50
50
|
padding-left: 4px;
|
|
51
51
|
transition: color .3s var(--n-bezier);
|
|
52
|
-
`)])]), (0, cssr_1.cM)('circle', {
|
|
52
|
+
`)])]), (0, cssr_1.cM)('circle, dashboard', {
|
|
53
53
|
width: '120px'
|
|
54
54
|
}, [(0, cssr_1.cB)('progress-custom-content', `
|
|
55
55
|
position: absolute;
|