@maple-design/ui-vue 1.1.0 → 1.1.1
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/_components/field-presentation/EditorPanel.vue.mjs +3 -3
- package/es/_components/field-presentation/editor-pending.mjs +4 -0
- package/es/_components/field-presentation/form-bridge.mjs +1 -1
- package/es/_components/field-presentation/with-field-presentation.mjs +51 -8
- package/es/_components/picker-field/PickerField.vue.mjs +3 -13
- package/es/_components/picker-field/TemporalCurrent.vue.mjs +2 -3
- package/es/_components/picker-field/range-labels.mjs +18 -0
- package/es/_components/selected-options/style/index.css +33 -15
- package/es/_components/selection-field/use-selection-session.mjs +1 -0
- package/es/_components/virtual-list-v2/VirtualList2.vue.mjs +26 -4
- package/es/action-sheet/ActionSheet2.vue.mjs +2 -3
- package/es/auto-complete/auto-complete.mjs +2 -2
- package/es/auto-complete/presentation.mjs +1 -0
- package/es/auto-complete/props.mjs +2 -0
- package/es/auto-complete/style/index.css +7 -2
- package/es/back-top/style/index.css +1 -1
- package/es/breadcrumb/style/index.css +1 -1
- package/es/button/base.mjs +7 -0
- package/es/button/index.mjs +9 -9
- package/es/button/style/index.css +1 -1
- package/es/card/Card.vue.mjs +55 -13
- package/es/carousel/style/index.css +1 -1
- package/es/carousel/use-carousel-locale.mjs +10 -3
- package/es/cascader/CascaderMenu.vue.mjs +2 -2
- package/es/cascader/cascader-option.mjs +15 -6
- package/es/cascader/field-adapter.mjs +1 -0
- package/es/cascader/props.mjs +2 -0
- package/es/cascader/style/index.css +36 -9
- package/es/cascader/style/index.mjs +1 -0
- package/es/cascader/use-cascader-focus.mjs +9 -6
- package/es/checkbox/CheckboxGroup.vue.mjs +2 -2
- package/es/checkbox/base.mjs +7 -0
- package/es/checkbox/index.mjs +1 -1
- package/es/checkbox/presentation.mjs +2 -2
- package/es/checkbox/style/index.css +1 -1
- package/es/countdown/use-countdown.mjs +9 -2
- package/es/date/DatePanelActions.vue.mjs +4 -4
- package/es/date/DateRangeQuickPanel.vue.mjs +2 -2
- package/es/date/DateShortcuts.vue.mjs +2 -2
- package/es/date/field-adapter.mjs +2 -3
- package/es/date/picker-panels/DayPickerPanel2.vue.mjs +4 -5
- package/es/date/picker-panels/MonthPickerPanel2.vue.mjs +5 -6
- package/es/date/picker-panels/PanelHeader2.vue.mjs +6 -7
- package/es/date/picker-panels/YearPickerPanel2.vue.mjs +2 -2
- package/es/date/presentation/CalendarContent2.vue.mjs +13 -14
- package/es/date/presentation/CalendarViewport.vue.mjs +2 -3
- package/es/date/presentation/use-date-locale.mjs +2 -3
- package/es/date/presentation/use-field-locale.mjs +5 -6
- package/es/date/presentation/use-panel-actions-locale.mjs +4 -5
- package/es/date-range/presentation/RangeContent2.vue.mjs +4 -5
- package/es/dialog/Dialog.vue.mjs +3 -3
- package/es/ellipsis/style/index.css +1 -1
- package/es/fab/Fab.mjs +4 -5
- package/es/form/FormItemLabel.vue.mjs +4 -3
- package/es/form/focus-explicit-label.mjs +52 -0
- package/es/input/base.mjs +7 -0
- package/es/input/index.mjs +19 -19
- package/es/locale/date-text.mjs +38 -0
- package/es/locale/misc-text.mjs +23 -0
- package/es/locale/temporal-text.mjs +22 -0
- package/es/locale/zh-CN.mjs +235 -131
- package/es/maple-vue.mjs +1 -1
- package/es/maple.css +273 -207
- package/es/maple.esm.js +19385 -18978
- package/es/nav-menu/style/index.css +1 -1
- package/es/notice-bar/NoticeBar2.vue.mjs +2 -3
- package/es/number-keyboard/NumberKeyboard2.vue.mjs +5 -6
- package/es/pagination/PageInput.vue.mjs +2 -2
- package/es/pagination/style/index.css +2 -2
- package/es/people-select/PeopleSelect.mjs +35 -54
- package/es/people-select/Person.vue.mjs +3 -3
- package/es/people-select/emits.mjs +1 -1
- package/es/people-select/people-select.mjs +6 -8
- package/es/people-select/presentation.mjs +3 -1
- package/es/people-select/props.mjs +9 -3
- package/es/people-select/selection.mjs +64 -0
- package/es/people-select/style/index.css +6 -0
- package/es/picker/Picker.vue.mjs +2 -2
- package/es/picker/Picker2.vue.mjs +4 -5
- package/es/picker/base.mjs +7 -0
- package/es/picker/index.mjs +5 -5
- package/es/progress/style/index.css +2 -2
- package/es/radio/style/index.css +1 -1
- package/es/rate/style/index.css +2 -2
- package/es/ripple/index.mjs +78 -0
- package/es/search/HistoryContent.vue.mjs +4 -4
- package/es/search/Search.vue.mjs +4 -4
- package/es/search/props.mjs +1 -2
- package/es/select/props.mjs +2 -0
- package/es/select/select.mjs +14 -4
- package/es/select/style/index.css +22 -12
- package/es/select/use-select-controller.mjs +22 -2
- package/es/slider/Slider.vue.mjs +43 -21
- package/es/slider/SliderInput.vue.mjs +14 -2
- package/es/slider/style/index.css +2 -2
- package/es/steps/style/index.css +10 -10
- package/es/switch/Switch.vue.mjs +12 -1
- package/es/switch/style/index.css +1 -1
- package/es/tab-bar/TabBar.vue.mjs +2 -2
- package/es/tab-bar/style/index.css +2 -2
- package/es/tabs/style/index.css +1 -1
- package/es/tabs/use-tabs-configuration.mjs +2 -3
- package/es/themes/alps-light/index.mjs +10 -11
- package/es/themes/create-brand-dark.mjs +18 -0
- package/es/themes/dark/breadcrumb-item.mjs +1 -1
- package/es/themes/dark/cascader.mjs +1 -1
- package/es/themes/dark/index.mjs +2 -2
- package/es/themes/firefly-light/index.mjs +12 -13
- package/es/themes/index.mjs +2 -2
- package/es/themes/maple-light/index.mjs +2 -2
- package/es/time/presentation/TimeFieldPanel.vue.mjs +2 -2
- package/es/time/presentation/TimePanelContent2.vue.mjs +8 -9
- package/es/time/presentation/use-field-locale.mjs +5 -6
- package/es/time/props.mjs +1 -1
- package/es/time-range/presentation/TimePanelContent2.vue.mjs +6 -7
- package/es/time-range/props.mjs +1 -1
- package/es/trigger/popup-move-focus.mjs +6 -6
- package/es/trigger/position.mjs +49 -3
- package/es/trigger/positioner.mjs +34 -5
- package/es/trigger/trigger.mjs +1 -1
- package/es/upload/Upload.vue.mjs +18 -2
- package/es/upload/composables/use-upload-queue.mjs +10 -1
- package/es/upload/composables/use-uploader.mjs +45 -11
- package/es/upload/use-upload-locale.mjs +16 -12
- package/es/utils/modal-focus.mjs +9 -2
- package/es/utils/modal-surface.mjs +9 -3
- package/highlight/web-types.en-US.json +698 -176
- package/highlight/web-types.zh-CN.json +699 -177
- package/lib/_components/field-presentation/EditorPanel.vue.js +3 -3
- package/lib/_components/field-presentation/editor-pending.js +4 -0
- package/lib/_components/field-presentation/with-field-presentation.js +50 -7
- package/lib/_components/picker-field/PickerField.vue.js +3 -13
- package/lib/_components/picker-field/TemporalCurrent.vue.js +2 -3
- package/lib/_components/picker-field/range-labels.js +18 -0
- package/lib/_components/selected-options/style/index.css +33 -15
- package/lib/_components/selection-field/use-selection-session.js +1 -0
- package/lib/_components/virtual-list-v2/VirtualList2.vue.js +25 -3
- package/lib/action-sheet/ActionSheet2.vue.js +2 -3
- package/lib/auto-complete/auto-complete.js +2 -2
- package/lib/auto-complete/presentation.js +1 -0
- package/lib/auto-complete/props.js +2 -0
- package/lib/auto-complete/style/index.css +7 -2
- package/lib/back-top/style/index.css +1 -1
- package/lib/breadcrumb/style/index.css +1 -1
- package/lib/button/base.js +7 -0
- package/lib/button/index.js +4 -4
- package/lib/button/style/index.css +1 -1
- package/lib/card/Card.vue.js +55 -13
- package/lib/carousel/style/index.css +1 -1
- package/lib/carousel/use-carousel-locale.js +9 -2
- package/lib/cascader/CascaderMenu.vue.js +2 -2
- package/lib/cascader/cascader-option.js +15 -6
- package/lib/cascader/field-adapter.js +1 -0
- package/lib/cascader/props.js +2 -0
- package/lib/cascader/style/index.css +36 -9
- package/lib/cascader/style/index.js +1 -0
- package/lib/cascader/use-cascader-focus.js +9 -6
- package/lib/checkbox/base.js +7 -0
- package/lib/checkbox/index.js +4 -4
- package/lib/checkbox/presentation.js +2 -2
- package/lib/checkbox/style/index.css +1 -1
- package/lib/countdown/use-countdown.js +9 -2
- package/lib/date/DatePanelActions.vue.js +4 -4
- package/lib/date/DateRangeQuickPanel.vue.js +2 -2
- package/lib/date/DateShortcuts.vue.js +2 -2
- package/lib/date/field-adapter.js +2 -3
- package/lib/date/picker-panels/DayPickerPanel2.vue.js +6 -7
- package/lib/date/picker-panels/MonthPickerPanel2.vue.js +7 -8
- package/lib/date/picker-panels/PanelHeader2.vue.js +6 -7
- package/lib/date/picker-panels/YearPickerPanel2.vue.js +2 -2
- package/lib/date/presentation/CalendarContent2.vue.js +13 -14
- package/lib/date/presentation/CalendarViewport.vue.js +2 -3
- package/lib/date/presentation/use-date-locale.js +2 -3
- package/lib/date/presentation/use-field-locale.js +5 -6
- package/lib/date/presentation/use-panel-actions-locale.js +4 -5
- package/lib/date-range/presentation/RangeContent2.vue.js +4 -5
- package/lib/dialog/Dialog.vue.js +3 -3
- package/lib/ellipsis/style/index.css +1 -1
- package/lib/fab/Fab.js +4 -5
- package/lib/form/FormItemLabel.vue.js +3 -2
- package/lib/form/focus-explicit-label.js +52 -0
- package/lib/input/base.js +7 -0
- package/lib/input/index.js +5 -5
- package/lib/locale/date-text.js +38 -0
- package/lib/locale/misc-text.js +23 -0
- package/lib/locale/temporal-text.js +22 -0
- package/lib/locale/zh-CN.js +234 -130
- package/lib/maple-vue.js +1 -1
- package/lib/maple.cjs.js +3637 -2963
- package/lib/maple.css +273 -207
- package/lib/nav-menu/style/index.css +1 -1
- package/lib/notice-bar/NoticeBar2.vue.js +2 -3
- package/lib/number-keyboard/NumberKeyboard2.vue.js +5 -6
- package/lib/pagination/PageInput.vue.js +2 -2
- package/lib/pagination/style/index.css +2 -2
- package/lib/people-select/PeopleSelect.js +34 -53
- package/lib/people-select/Person.vue.js +3 -3
- package/lib/people-select/emits.js +1 -1
- package/lib/people-select/people-select.js +6 -8
- package/lib/people-select/presentation.js +3 -1
- package/lib/people-select/props.js +9 -3
- package/lib/people-select/selection.js +64 -0
- package/lib/people-select/style/index.css +6 -0
- package/lib/picker/Picker.vue.js +2 -2
- package/lib/picker/Picker2.vue.js +4 -5
- package/lib/picker/base.js +7 -0
- package/lib/picker/index.js +5 -5
- package/lib/progress/style/index.css +2 -2
- package/lib/radio/style/index.css +1 -1
- package/lib/rate/style/index.css +2 -2
- package/lib/ripple/index.js +78 -0
- package/lib/search/HistoryContent.vue.js +4 -4
- package/lib/search/Search.vue.js +4 -4
- package/lib/search/props.js +1 -2
- package/lib/select/props.js +2 -0
- package/lib/select/select.js +14 -4
- package/lib/select/style/index.css +22 -12
- package/lib/select/use-select-controller.js +22 -2
- package/lib/slider/Slider.vue.js +42 -20
- package/lib/slider/SliderInput.vue.js +14 -2
- package/lib/slider/style/index.css +2 -2
- package/lib/steps/style/index.css +10 -10
- package/lib/switch/Switch.vue.js +11 -0
- package/lib/switch/style/index.css +1 -1
- package/lib/tab-bar/TabBar.vue.js +2 -2
- package/lib/tab-bar/style/index.css +2 -2
- package/lib/tabs/style/index.css +1 -1
- package/lib/tabs/use-tabs-configuration.js +2 -3
- package/lib/themes/alps-light/index.js +10 -11
- package/lib/themes/create-brand-dark.js +18 -0
- package/lib/themes/dark/breadcrumb-item.js +1 -1
- package/lib/themes/dark/cascader.js +1 -1
- package/lib/themes/dark/index.js +2 -2
- package/lib/themes/firefly-light/index.js +12 -13
- package/lib/themes/index.js +2 -2
- package/lib/themes/maple-light/index.js +2 -2
- package/lib/time/presentation/TimeFieldPanel.vue.js +2 -2
- package/lib/time/presentation/TimePanelContent2.vue.js +8 -9
- package/lib/time/presentation/use-field-locale.js +5 -6
- package/lib/time/props.js +1 -1
- package/lib/time-range/presentation/TimePanelContent2.vue.js +6 -7
- package/lib/time-range/props.js +1 -1
- package/lib/trigger/popup-move-focus.js +6 -6
- package/lib/trigger/position.js +48 -2
- package/lib/trigger/positioner.js +33 -4
- package/lib/trigger/trigger.js +1 -1
- package/lib/upload/Upload.vue.js +17 -1
- package/lib/upload/composables/use-upload-queue.js +10 -1
- package/lib/upload/composables/use-uploader.js +45 -11
- package/lib/upload/use-upload-locale.js +15 -11
- package/lib/utils/modal-focus.js +9 -2
- package/lib/utils/modal-surface.js +9 -3
- package/package.json +6 -6
- package/types/styleVars.d.ts +3 -0
- package/types-generated/_components/field-presentation/editor-pending.d.ts +3 -0
- package/types-generated/_components/field-presentation/with-field-presentation.d.ts +2 -0
- package/types-generated/_components/picker-field/range-labels.d.ts +1 -0
- package/types-generated/action-sheet/ActionSheet.vue.d.ts +2 -1
- package/types-generated/action-sheet/index.d.ts +1 -1
- package/types-generated/auto-complete/auto-complete.d.ts +13 -4
- package/types-generated/auto-complete/index.d.ts +30 -0
- package/types-generated/auto-complete/presentation.d.ts +9 -0
- package/types-generated/auto-complete/props.d.ts +5 -1
- package/types-generated/breadcrumb/index.d.ts +72 -2
- package/types-generated/button/base.d.ts +266 -0
- package/types-generated/button/index.d.ts +3 -1
- package/types-generated/cascader/Cascader.vue.d.ts +10 -1
- package/types-generated/cascader/CascaderPanel.vue.d.ts +1 -1
- package/types-generated/cascader/index.d.ts +39 -9
- package/types-generated/cascader/presentation.d.ts +18 -3
- package/types-generated/cascader/props.d.ts +5 -0
- package/types-generated/cascader/style/index.d.ts +1 -0
- package/types-generated/cascader/use-cascader-controller.d.ts +4 -0
- package/types-generated/checkbox/base.d.ts +361 -0
- package/types-generated/checkbox/index.d.ts +362 -3
- package/types-generated/date/picker-panels/DayPickerPanel.vue.d.ts +6 -248
- package/types-generated/date/picker-panels/MonthPickerPanel.vue.d.ts +8 -249
- package/types-generated/date/picker-panels/PanelHeader.vue.d.ts +3 -124
- package/types-generated/date/picker-panels/YearPickerPanel.vue.d.ts +6 -248
- package/types-generated/date/presentation/CalendarContent.vue.d.ts +1169 -966
- package/types-generated/date-range/presentation/RangeContent.vue.d.ts +2561 -1430
- package/types-generated/form/focus-explicit-label.d.ts +2 -0
- package/types-generated/index.d.ts +1 -1
- package/types-generated/input/base.d.ts +481 -0
- package/types-generated/input/index.d.ts +2 -0
- package/types-generated/locale/date-text.d.ts +2 -0
- package/types-generated/locale/misc-text.d.ts +2 -0
- package/types-generated/locale/temporal-text.d.ts +2 -0
- package/types-generated/maple-vue.d.ts +1 -1
- package/types-generated/menu/index.d.ts +1022 -2
- package/types-generated/people-select/PeopleSelect.d.ts +38 -16
- package/types-generated/people-select/emits.d.ts +3 -2
- package/types-generated/people-select/index.d.ts +135 -63
- package/types-generated/people-select/people-select.d.ts +47 -16
- package/types-generated/people-select/presentation.d.ts +46 -16
- package/types-generated/people-select/props.d.ts +18 -7
- package/types-generated/people-select/selection.d.ts +11 -0
- package/types-generated/people-select/types.d.ts +5 -1
- package/types-generated/picker/Picker.vue.d.ts +5 -125
- package/types-generated/picker/base.d.ts +2043 -0
- package/types-generated/picker/index.d.ts +1134 -206
- package/types-generated/radio/index.d.ts +365 -2
- package/types-generated/search/Search.vue.d.ts +2 -2
- package/types-generated/search/props.d.ts +1 -1
- package/types-generated/select/index.d.ts +30 -0
- package/types-generated/select/native-editor-owner.d.ts +1 -0
- package/types-generated/select/props.d.ts +6 -1
- package/types-generated/select/select.d.ts +9 -0
- package/types-generated/select/use-select-controller.d.ts +5 -0
- package/types-generated/slider/SliderInput.vue.d.ts +4 -0
- package/types-generated/themes/dark/cascader.d.ts +1 -1
- package/types-generated/themes/index.d.ts +2 -2
- package/types-generated/time/presentation/TimePanelContent.vue.d.ts +1117 -309
- package/types-generated/time/props.d.ts +3 -2
- package/types-generated/time-range/picker-props.d.ts +1 -1
- package/types-generated/time-range/presentation/TimePanelContent.vue.d.ts +1125 -317
- package/types-generated/time-range/props.d.ts +6 -5
- package/types-generated/trigger/position.d.ts +1 -0
- package/types-generated/upload/Upload.vue.d.ts +11 -11
- package/types-generated/upload/composables/use-upload-queue.d.ts +1 -0
- package/types-generated/upload/composables/use-uploader.d.ts +2 -0
- package/types-generated/utils/modal-focus.d.ts +1 -0
- package/umd/_components/selected-options/style/index.css +33 -15
- package/umd/auto-complete/style/index.css +7 -2
- package/umd/back-top/style/index.css +1 -1
- package/umd/breadcrumb/style/index.css +1 -1
- package/umd/button/style/index.css +1 -1
- package/umd/carousel/style/index.css +1 -1
- package/umd/cascader/style/index.css +36 -9
- package/umd/checkbox/style/index.css +1 -1
- package/umd/ellipsis/style/index.css +1 -1
- package/umd/maple.css +273 -207
- package/umd/maple.js +3 -3
- package/umd/nav-menu/style/index.css +1 -1
- package/umd/pagination/style/index.css +2 -2
- package/umd/people-select/style/index.css +6 -0
- package/umd/progress/style/index.css +2 -2
- package/umd/radio/style/index.css +1 -1
- package/umd/rate/style/index.css +2 -2
- package/umd/select/style/index.css +22 -12
- package/umd/slider/style/index.css +2 -2
- package/umd/steps/style/index.css +10 -10
- package/umd/switch/style/index.css +1 -1
- package/umd/tab-bar/style/index.css +2 -2
- package/umd/tabs/style/index.css +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:where([data-mp-theme]) {
|
|
6
6
|
--mp-nav-menu-background: var(--mp-sys-color-surface-overlay);
|
|
7
7
|
--mp-nav-menu-color: var(--mp-sys-color-content-primary);
|
|
8
|
-
--mp-nav-menu-active-color: var(--mp-sys-color-
|
|
8
|
+
--mp-nav-menu-active-color: var(--mp-sys-color-action-primary);
|
|
9
9
|
--mp-nav-menu-disabled-color: var(--mp-color-text-disabled);
|
|
10
10
|
--mp-nav-menu-border-color: var(--mp-sys-color-border-default);
|
|
11
11
|
--mp-nav-menu-height: 48px;
|
|
@@ -5,12 +5,11 @@ const iconsVue = require("@maple-design/icons-vue");
|
|
|
5
5
|
const sharedVue = require("@maple-design/shared-vue");
|
|
6
6
|
require("../icon/index.js");
|
|
7
7
|
const RegisteredIcon_vue_vue_type_script_setup_true_lang = require("../icon/RegisteredIcon.vue.js");
|
|
8
|
-
require("../locale/index.js");
|
|
9
8
|
const provide = require("../locale-provider/provide.js");
|
|
9
|
+
const miscText = require("../locale/misc-text.js");
|
|
10
10
|
const components = require("../utils/components.js");
|
|
11
11
|
const props = require("./props.js");
|
|
12
12
|
const Icon_vue_vue_type_script_setup_true_lang = require("../icon/Icon.vue.js");
|
|
13
|
-
const state = require("../locale/state.js");
|
|
14
13
|
const { name, n, classes } = components.createNamespace("notice-bar");
|
|
15
14
|
const _sfc_main = vue.defineComponent({
|
|
16
15
|
name,
|
|
@@ -23,7 +22,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
23
22
|
emits: ["close", "replay"],
|
|
24
23
|
setup(props2, { emit }) {
|
|
25
24
|
const { t: translate } = provide.injectLocaleProvider();
|
|
26
|
-
const closeLabel = vue.computed(() => String(translate?.("common.close") ??
|
|
25
|
+
const closeLabel = vue.computed(() => String(translate?.("common.close") ?? miscText.miscText("common.close") ?? "Close"));
|
|
27
26
|
const visible = vue.ref(true);
|
|
28
27
|
const contentRef = vue.ref(null);
|
|
29
28
|
const textRef = vue.ref(null);
|
|
@@ -6,15 +6,14 @@ const sharedVue = require("@maple-design/shared-vue");
|
|
|
6
6
|
const useVue = require("@maple-design/use-vue");
|
|
7
7
|
const errorDescription = require("../form/error-description.js");
|
|
8
8
|
require("../icon/index.js");
|
|
9
|
-
require("../locale/index.js");
|
|
10
9
|
const provide = require("../locale-provider/provide.js");
|
|
10
|
+
const miscText = require("../locale/misc-text.js");
|
|
11
11
|
require("../popup/index.js");
|
|
12
12
|
const ripple_index = require("../ripple/index.js");
|
|
13
13
|
const components = require("../utils/components.js");
|
|
14
14
|
const props = require("./props.js");
|
|
15
15
|
const Icon_vue_vue_type_script_setup_true_lang = require("../icon/Icon.vue.js");
|
|
16
16
|
const Popup_vue_vue_type_script_setup_true_lang = require("../popup/Popup.vue.js");
|
|
17
|
-
const state = require("../locale/state.js");
|
|
18
17
|
const { name, n, classes } = components.createNamespace("number-keyboard");
|
|
19
18
|
function shuffle(items) {
|
|
20
19
|
const result = [...items];
|
|
@@ -51,9 +50,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
51
50
|
const { describe: describeError } = errorDescription.useFormErrorDescription();
|
|
52
51
|
const { t: localT } = provide.injectLocaleProvider();
|
|
53
52
|
const titleId = `number-keyboard-title-${vue.useId()}`;
|
|
54
|
-
const deleteLabel = vue.computed(() => (localT ||
|
|
55
|
-
const closeLabel = vue.computed(() => (localT ||
|
|
56
|
-
const dialogLabel = () => attrs["aria-label"] ?? (!attrs["aria-labelledby"] && !props2.title ? (localT ||
|
|
53
|
+
const deleteLabel = vue.computed(() => (localT || miscText.miscText)("numberKeyboard.delete") ?? "Delete");
|
|
54
|
+
const closeLabel = vue.computed(() => (localT || miscText.miscText)("numberKeyboard.done") ?? "Done");
|
|
55
|
+
const dialogLabel = () => attrs["aria-label"] ?? (!attrs["aria-labelledby"] && !props2.title ? (localT || miscText.miscText)("numberKeyboard.label") ?? "Number keyboard" : void 0);
|
|
57
56
|
const dialogLabelledby = () => attrs["aria-labelledby"] ?? (!attrs["aria-label"] && props2.title ? titleId : void 0);
|
|
58
57
|
const contentAttrs = () => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "aria-label" && key !== "aria-labelledby"));
|
|
59
58
|
const open = useVue.useVModel(props2, "open", { emit, eventName: "update:open", defaultValue: props2.defaultOpen });
|
|
@@ -68,7 +67,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
68
67
|
}
|
|
69
68
|
return props2.overlayClosable ?? true;
|
|
70
69
|
});
|
|
71
|
-
const closeText = vue.computed(() => props2.closeButtonText ??
|
|
70
|
+
const closeText = vue.computed(() => props2.closeButtonText ?? (localT || miscText.miscText)("cascaderPickerDoneButtonText"));
|
|
72
71
|
const extraKeys = vue.computed(() => {
|
|
73
72
|
const { extraKey } = props2;
|
|
74
73
|
if (!extraKey || extraKey === "") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const
|
|
4
|
+
const base = require("../input/base.js");
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
6
|
__name: "PageInput",
|
|
7
7
|
props: {
|
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
setup(__props, { emit: __emit }) {
|
|
15
15
|
const emit = __emit;
|
|
16
16
|
return (_ctx, _cache) => {
|
|
17
|
-
return vue.openBlock(), vue.createBlock(vue.unref(
|
|
17
|
+
return vue.openBlock(), vue.createBlock(vue.unref(base.default), {
|
|
18
18
|
"edit-mode": "direct",
|
|
19
19
|
"model-value": _ctx.modelValue,
|
|
20
20
|
size: _ctx.size,
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
--mp-pagination-touch-size: 44px;
|
|
22
22
|
--mp-pagination-focus-width: 2px;
|
|
23
23
|
--mp-pagination-focus-offset: 1px;
|
|
24
|
-
--mp-pagination-focus-color: var(--mp-sys-color-
|
|
24
|
+
--mp-pagination-focus-color: var(--mp-sys-color-action-primary);
|
|
25
25
|
--mp-pagination-item-background: transparent;
|
|
26
26
|
--mp-pagination-hover-background: var(--mp-color-fill-1);
|
|
27
27
|
--mp-pagination-active-background: var(--mp-color-primary-light-1);
|
|
28
|
-
--mp-pagination-active-color: var(--mp-sys-color-
|
|
28
|
+
--mp-pagination-active-color: var(--mp-sys-color-action-primary);
|
|
29
29
|
--mp-pagination-disabled-color: var(--mp-color-text-disabled);
|
|
30
30
|
--mp-pagination-disabled-background: var(--mp-color-fill-1);
|
|
31
31
|
}
|
|
@@ -10,6 +10,7 @@ const emits = require("./emits.js");
|
|
|
10
10
|
const Person_vue_vue_type_script_setup_true_lang = require("./Person.vue.js");
|
|
11
11
|
const presentation = require("./presentation.js");
|
|
12
12
|
const props = require("./props.js");
|
|
13
|
+
const selection = require("./selection.js");
|
|
13
14
|
const _PeopleSelect = vue.defineComponent({
|
|
14
15
|
name: components.createNamespace("people-select").name,
|
|
15
16
|
inheritAttrs: false,
|
|
@@ -34,42 +35,18 @@ const _PeopleSelect = vue.defineComponent({
|
|
|
34
35
|
immediate: false
|
|
35
36
|
});
|
|
36
37
|
const options = vue.computed(() => Array.isArray(props2.options) ? props2.options : source.data.value);
|
|
37
|
-
const
|
|
38
|
-
vue.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (person) {
|
|
43
|
-
selectedCache.value = person;
|
|
44
|
-
} else if (selectedCache.value?.value !== value.value) {
|
|
45
|
-
selectedCache.value = void 0;
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{ immediate: true }
|
|
49
|
-
);
|
|
50
|
-
const selected = vue.computed(() => {
|
|
51
|
-
const current = options.value.find((person) => person.value === value.value);
|
|
52
|
-
if (current) {
|
|
53
|
-
return current;
|
|
54
|
-
}
|
|
55
|
-
if (typeof props2.fallbackOption === "function" && value.value != null) {
|
|
56
|
-
return props2.fallbackOption(value.value);
|
|
57
|
-
}
|
|
58
|
-
if (props2.fallbackOption !== false && props2.label) {
|
|
59
|
-
return { ...selectedCache.value, value: value.value ?? "", label: props2.label };
|
|
38
|
+
const selection$1 = selection.useSelectedPeople(props2, value, options);
|
|
39
|
+
const selected = vue.computed(
|
|
40
|
+
() => selection$1.people.value[0] ?? {
|
|
41
|
+
value: "",
|
|
42
|
+
label: props2.label || props2.defaultText
|
|
60
43
|
}
|
|
61
|
-
|
|
62
|
-
return selectedCache.value;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
value: value.value ?? "",
|
|
66
|
-
label: props2.fallbackOption === false ? props2.defaultText : props2.label || value.value || props2.defaultText
|
|
67
|
-
};
|
|
68
|
-
});
|
|
44
|
+
);
|
|
69
45
|
const readScope = vue.computed(() => ({
|
|
70
46
|
value: value.value,
|
|
71
|
-
text: emptyPolicy.isEmpty(value.value) ? emptyPolicy.emptyText.value :
|
|
72
|
-
person: selected.value
|
|
47
|
+
text: emptyPolicy.isEmpty(value.value) ? emptyPolicy.emptyText.value : selection$1.people.value.map((person) => person.label).join(", "),
|
|
48
|
+
person: selected.value,
|
|
49
|
+
...props2.multiple ? { people: selection$1.people.value } : {}
|
|
73
50
|
}));
|
|
74
51
|
const childOptions = options;
|
|
75
52
|
async function load(query) {
|
|
@@ -111,25 +88,29 @@ const _PeopleSelect = vue.defineComponent({
|
|
|
111
88
|
if (emptyPolicy.isEmpty(value.value)) {
|
|
112
89
|
return emptyPolicy.emptyText.value;
|
|
113
90
|
}
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
91
|
+
const renderPerson = (person) => {
|
|
92
|
+
const scope = {
|
|
93
|
+
person,
|
|
94
|
+
disabled: form.mergedDisabled.value || !person.value || !!person.disabled
|
|
95
|
+
};
|
|
96
|
+
const actions = slots.actions ? slots.actions(scope) : props2.renderActions?.(scope);
|
|
97
|
+
return vue.h(
|
|
98
|
+
Person_vue_vue_type_script_setup_true_lang.default,
|
|
99
|
+
{
|
|
100
|
+
key: person.value,
|
|
101
|
+
person,
|
|
102
|
+
showAvatar: props2.showAvatar,
|
|
103
|
+
disabled: scope.disabled,
|
|
104
|
+
showPhone: props2.showPhone,
|
|
105
|
+
showChat: props2.showChat,
|
|
106
|
+
call: props2.call,
|
|
107
|
+
chat: props2.chat,
|
|
108
|
+
onActionError: (error, action) => emit("action-error", error, action)
|
|
109
|
+
},
|
|
110
|
+
actions == null ? void 0 : { default: () => actions }
|
|
111
|
+
);
|
|
117
112
|
};
|
|
118
|
-
|
|
119
|
-
return vue.h(
|
|
120
|
-
Person_vue_vue_type_script_setup_true_lang.default,
|
|
121
|
-
{
|
|
122
|
-
person: selected.value,
|
|
123
|
-
showAvatar: props2.showAvatar,
|
|
124
|
-
disabled: scope.disabled,
|
|
125
|
-
showPhone: props2.showPhone,
|
|
126
|
-
showChat: props2.showChat,
|
|
127
|
-
call: props2.call,
|
|
128
|
-
chat: props2.chat,
|
|
129
|
-
onActionError: (error, action) => emit("action-error", error, action)
|
|
130
|
-
},
|
|
131
|
-
actions == null ? void 0 : { default: () => actions }
|
|
132
|
-
);
|
|
113
|
+
return props2.multiple ? vue.h("span", { class: "mp-people-select-people" }, selection$1.people.value.map(renderPerson)) : renderPerson(selected.value);
|
|
133
114
|
};
|
|
134
115
|
const personSlots = () => ({
|
|
135
116
|
...slots,
|
|
@@ -151,8 +132,8 @@ const _PeopleSelect = vue.defineComponent({
|
|
|
151
132
|
ref: control,
|
|
152
133
|
modelValue: value.value,
|
|
153
134
|
options: childOptions.value,
|
|
154
|
-
label: selected.value.label,
|
|
155
|
-
fallbackOption: props2.fallbackOption === false ? false :
|
|
135
|
+
label: props2.multiple ? "" : selected.value.label,
|
|
136
|
+
fallbackOption: props2.fallbackOption === false ? false : selection$1.resolve,
|
|
156
137
|
loading: props2.loading || source.loading.value,
|
|
157
138
|
filterOption: props2.filterOption ?? !remote.value,
|
|
158
139
|
"onUpdate:modelValue": update,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const
|
|
4
|
+
const base = require("../button/base.js");
|
|
5
5
|
const components = require("../utils/components.js");
|
|
6
6
|
const usePeopleTexts = require("./use-people-texts.js");
|
|
7
7
|
const _hoisted_1 = ["src"];
|
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
63
63
|
}, ["stop"]))
|
|
64
64
|
}, [
|
|
65
65
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
66
|
-
_ctx.showPhone ? (vue.openBlock(), vue.createBlock(vue.unref(
|
|
66
|
+
_ctx.showPhone ? (vue.openBlock(), vue.createBlock(vue.unref(base.default), {
|
|
67
67
|
key: 0,
|
|
68
68
|
size: "xs",
|
|
69
69
|
variant: "text",
|
|
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
90
90
|
])),
|
|
91
91
|
_: 1
|
|
92
92
|
}, 8, ["disabled", "aria-label", "loading"])) : vue.createCommentVNode("", true),
|
|
93
|
-
_ctx.showChat ? (vue.openBlock(), vue.createBlock(vue.unref(
|
|
93
|
+
_ctx.showChat ? (vue.openBlock(), vue.createBlock(vue.unref(base.default), {
|
|
94
94
|
key: 1,
|
|
95
95
|
size: "xs",
|
|
96
96
|
variant: "text",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const identity = (value) => value === null || typeof value === "string";
|
|
3
|
+
const identity = (value) => value === null || typeof value === "string" || Array.isArray(value) && value.every((id) => typeof id === "string");
|
|
4
4
|
const peopleSelectEmits = {
|
|
5
5
|
"update:modelValue": identity,
|
|
6
6
|
"update:open": (open) => typeof open === "boolean",
|
|
@@ -5,7 +5,9 @@ const context = require("../_components/selected-options/context.js");
|
|
|
5
5
|
const itemProvide = require("../form/item-provide.js");
|
|
6
6
|
const select_index = require("../select/index.js");
|
|
7
7
|
const components = require("../utils/components.js");
|
|
8
|
+
const emits = require("./emits.js");
|
|
8
9
|
const props = require("./props.js");
|
|
10
|
+
const selection = require("./selection.js");
|
|
9
11
|
const {
|
|
10
12
|
name
|
|
11
13
|
} = components.createNamespace("people-select");
|
|
@@ -13,12 +15,7 @@ const Base = /* @__PURE__ */ vue.defineComponent({
|
|
|
13
15
|
name,
|
|
14
16
|
inheritAttrs: false,
|
|
15
17
|
props: props.peopleSelectProps,
|
|
16
|
-
emits:
|
|
17
|
-
"update:modelValue": (value) => value === null || typeof value === "string",
|
|
18
|
-
change: (value) => value === null || typeof value === "string",
|
|
19
|
-
clear: () => true,
|
|
20
|
-
search: (query) => typeof query === "string"
|
|
21
|
-
},
|
|
18
|
+
emits: emits.peopleSelectEmits,
|
|
22
19
|
setup(props2, {
|
|
23
20
|
emit,
|
|
24
21
|
attrs,
|
|
@@ -44,12 +41,12 @@ const Base = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
41
|
...option
|
|
45
42
|
})));
|
|
46
43
|
const blocked = () => mergedDisabled.value || mergedReadonly.value || props2.loading;
|
|
47
|
-
const label = vue.computed(() =>
|
|
44
|
+
const label = vue.computed(() => selection.peopleText(value.value, props2));
|
|
48
45
|
const commit = (next) => {
|
|
49
46
|
if (blocked()) {
|
|
50
47
|
return;
|
|
51
48
|
}
|
|
52
|
-
const text = next === null ? null : typeof next === "string" ? next : "";
|
|
49
|
+
const text = next === null ? null : props2.multiple ? Array.isArray(next) ? next.filter((id) => typeof id === "string") : [] : typeof next === "string" ? next : "";
|
|
53
50
|
if (props2.modelValue === void 0) {
|
|
54
51
|
localValue.value = text;
|
|
55
52
|
}
|
|
@@ -62,6 +59,7 @@ const Base = /* @__PURE__ */ vue.defineComponent({
|
|
|
62
59
|
name: props2.name
|
|
63
60
|
}, {
|
|
64
61
|
"placeholder": props2.placeholder,
|
|
62
|
+
"multiple": props2.multiple,
|
|
65
63
|
"clearable": props2.clearable,
|
|
66
64
|
"emptyValue": props2.emptyValue,
|
|
67
65
|
"filterable": props2.filterable,
|
|
@@ -4,10 +4,12 @@ const vue = require("vue");
|
|
|
4
4
|
const withFieldPresentation = require("../_components/field-presentation/with-field-presentation.js");
|
|
5
5
|
const SelectionEditor_vue_vue_type_script_setup_true_lang = require("../_components/selected-options/SelectionEditor.vue.js");
|
|
6
6
|
const peopleSelect = require("./people-select.js");
|
|
7
|
+
const selection = require("./selection.js");
|
|
7
8
|
const Presented = withFieldPresentation.withFieldPresentation(peopleSelect.default, {
|
|
9
|
+
selectionConfirmation: "update",
|
|
8
10
|
methods: ["focus", "blur"],
|
|
9
11
|
defaultPresentation: "popup",
|
|
10
|
-
text:
|
|
12
|
+
text: selection.peopleText,
|
|
11
13
|
editor: ({ props, attrs, value, update, emit, slots, disabled, readonly }) => vue.h(
|
|
12
14
|
SelectionEditor_vue_vue_type_script_setup_true_lang.default,
|
|
13
15
|
{ kind: "people-select" },
|
|
@@ -6,6 +6,8 @@ const props = require("../select/props.js");
|
|
|
6
6
|
const emptyValue = require("../utils/empty-value.js");
|
|
7
7
|
const peopleSelectProps = {
|
|
8
8
|
...props$2.fieldLoadingProps,
|
|
9
|
+
/** 弹出编辑是否需要确认;未设置时单选即提交,多选保留确认。 */
|
|
10
|
+
needConfirm: { type: Boolean, default: void 0 },
|
|
9
11
|
...props$1.fieldPresentationProps,
|
|
10
12
|
emptyValue: emptyValue.emptyValueProp(),
|
|
11
13
|
/** Reactive display data for a selected value absent from options. */
|
|
@@ -43,9 +45,13 @@ const peopleSelectProps = {
|
|
|
43
45
|
type: String,
|
|
44
46
|
default: "-"
|
|
45
47
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
multiple: props.selectProps.multiple,
|
|
49
|
+
modelValue: { type: [String, Array], default: void 0 },
|
|
50
|
+
/** 非受控初始选中人员 ID 或 ID 数组,仅创建时读取。 */
|
|
51
|
+
defaultValue: {
|
|
52
|
+
type: [String, Array],
|
|
53
|
+
default: (props2) => props2.multiple ? [] : ""
|
|
54
|
+
},
|
|
49
55
|
isLabel: {
|
|
50
56
|
type: Boolean,
|
|
51
57
|
default: false
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
function personIds(value) {
|
|
5
|
+
return Array.isArray(value) ? value : value == null ? [] : [value];
|
|
6
|
+
}
|
|
7
|
+
function useSelectedPeople(props, value, options) {
|
|
8
|
+
const cache = vue.shallowRef(/* @__PURE__ */ new Map());
|
|
9
|
+
vue.watch(
|
|
10
|
+
[options, value],
|
|
11
|
+
() => {
|
|
12
|
+
const next = /* @__PURE__ */ new Map();
|
|
13
|
+
for (const id of personIds(value.value)) {
|
|
14
|
+
const person = options.value.find((option) => option.value === id) ?? cache.value.get(id);
|
|
15
|
+
if (person) {
|
|
16
|
+
next.set(id, person);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
cache.value = next;
|
|
20
|
+
},
|
|
21
|
+
{ immediate: true, flush: "sync" }
|
|
22
|
+
);
|
|
23
|
+
function resolve(id) {
|
|
24
|
+
const current = options.value.find((option) => option.value === id);
|
|
25
|
+
if (current) {
|
|
26
|
+
return current;
|
|
27
|
+
}
|
|
28
|
+
if (typeof props.fallbackOption === "function") {
|
|
29
|
+
return props.fallbackOption(id);
|
|
30
|
+
}
|
|
31
|
+
if (props.fallbackOption !== false) {
|
|
32
|
+
if (!props.multiple && props.label) {
|
|
33
|
+
return { ...cache.value.get(id), value: id, label: props.label };
|
|
34
|
+
}
|
|
35
|
+
const cached = cache.value.get(id);
|
|
36
|
+
if (cached) {
|
|
37
|
+
return cached;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
value: id,
|
|
42
|
+
label: props.fallbackOption === false ? props.defaultText ?? "-" : !props.multiple && props.label || id || (props.defaultText ?? "-")
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
people: vue.computed(() => personIds(value.value).map(resolve)),
|
|
47
|
+
resolve
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function peopleText(value, props) {
|
|
51
|
+
return personIds(value).map((id) => {
|
|
52
|
+
const option = Array.isArray(props.options) ? props.options.find((person) => person.value === id) : void 0;
|
|
53
|
+
if (option) {
|
|
54
|
+
return option.label;
|
|
55
|
+
}
|
|
56
|
+
if (typeof props.fallbackOption === "function") {
|
|
57
|
+
return props.fallbackOption(id).label;
|
|
58
|
+
}
|
|
59
|
+
return !props.multiple && props.label || id || (props.defaultText ?? "-");
|
|
60
|
+
}).join(", ");
|
|
61
|
+
}
|
|
62
|
+
exports.peopleText = peopleText;
|
|
63
|
+
exports.personIds = personIds;
|
|
64
|
+
exports.useSelectedPeople = useSelectedPeople;
|
package/lib/picker/Picker.vue.js
CHANGED
|
@@ -159,5 +159,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
159
|
_: 3
|
|
160
160
|
}, 16);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
exports.default =
|
|
162
|
+
const Picker = /* @__PURE__ */ _pluginVue_exportHelper.default(Picker_vue_vue_type_script_lang.default, [["render", _sfc_render]]);
|
|
163
|
+
exports.default = Picker;
|
|
@@ -4,12 +4,12 @@ const vue = require("vue");
|
|
|
4
4
|
const iconsVue = require("@maple-design/icons-vue");
|
|
5
5
|
const sharedVue = require("@maple-design/shared-vue");
|
|
6
6
|
const useVue = require("@maple-design/use-vue");
|
|
7
|
-
const
|
|
7
|
+
const base = require("../button/base.js");
|
|
8
8
|
const errorDescription = require("../form/error-description.js");
|
|
9
9
|
const itemProvide = require("../form/item-provide.js");
|
|
10
10
|
require("../icon/index.js");
|
|
11
|
-
require("../locale/index.js");
|
|
12
11
|
const provide = require("../locale-provider/provide.js");
|
|
12
|
+
const temporalText = require("../locale/temporal-text.js");
|
|
13
13
|
require("../popup/index.js");
|
|
14
14
|
const components = require("../utils/components.js");
|
|
15
15
|
const elements = require("../utils/elements.js");
|
|
@@ -17,7 +17,6 @@ const options = require("../utils/options.js");
|
|
|
17
17
|
const props = require("./props.js");
|
|
18
18
|
const Popup_vue_vue_type_script_setup_true_lang = require("../popup/Popup.vue.js");
|
|
19
19
|
const Icon_vue_vue_type_script_setup_true_lang = require("../icon/Icon.vue.js");
|
|
20
|
-
const state = require("../locale/state.js");
|
|
21
20
|
const { name, n, classes } = components.createNamespace("picker");
|
|
22
21
|
const MOMENTUM_RECORD_TIME = 300;
|
|
23
22
|
const MOMENTUM_ALLOW_DISTANCE = 15;
|
|
@@ -28,7 +27,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
28
27
|
name,
|
|
29
28
|
components: {
|
|
30
29
|
MIconCheck: iconsVue.IconCheck,
|
|
31
|
-
MpButton:
|
|
30
|
+
MpButton: base.default,
|
|
32
31
|
MpIcon: Icon_vue_vue_type_script_setup_true_lang.default,
|
|
33
32
|
MpPopup: Popup_vue_vue_type_script_setup_true_lang.default
|
|
34
33
|
},
|
|
@@ -547,7 +546,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
547
546
|
Transition: vue.Transition,
|
|
548
547
|
toRaw: vue.toRaw,
|
|
549
548
|
pt,
|
|
550
|
-
t:
|
|
549
|
+
t: temporalText.temporalText,
|
|
551
550
|
n,
|
|
552
551
|
classes,
|
|
553
552
|
isOptionSelected,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const components = require("../utils/components.js");
|
|
4
|
+
const Picker = require("./Picker.vue.js");
|
|
5
|
+
const props = require("./props.js");
|
|
6
|
+
const MpPicker = components.withPropsDefaultsSetter(Picker.default, props.props);
|
|
7
|
+
exports.default = MpPicker;
|
package/lib/picker/index.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const sharedVue = require("@maple-design/shared-vue");
|
|
5
5
|
const components = require("../utils/components.js");
|
|
6
|
-
const
|
|
6
|
+
const base = require("./base.js");
|
|
7
7
|
const props = require("./props.js");
|
|
8
8
|
let singletonOptions;
|
|
9
9
|
function Picker(options) {
|
|
@@ -19,7 +19,7 @@ function Picker(options) {
|
|
|
19
19
|
function resetSingletonOptions() {
|
|
20
20
|
singletonOptions === reactivePickerOptions && (singletonOptions = null);
|
|
21
21
|
}
|
|
22
|
-
const { unmountInstance } = components.mountInstance(
|
|
22
|
+
const { unmountInstance } = components.mountInstance(base.default, reactivePickerOptions, {
|
|
23
23
|
onConfirm: (values, indexes, options2) => {
|
|
24
24
|
resolve({
|
|
25
25
|
state: "confirm",
|
|
@@ -74,10 +74,10 @@ Picker.close = function() {
|
|
|
74
74
|
prevSingletonOptions.open = false;
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
|
-
Picker.Component = components.withInstall(
|
|
78
|
-
const InstalledPicker = components.withInstall(
|
|
77
|
+
Picker.Component = components.withInstall(base.default);
|
|
78
|
+
const InstalledPicker = components.withInstall(base.default, Picker);
|
|
79
79
|
components.withPropsDefaultsSetter(Picker, props.props);
|
|
80
|
-
const _PickerComponent =
|
|
80
|
+
const _PickerComponent = base.default;
|
|
81
81
|
exports.pickerProps = props.props;
|
|
82
82
|
exports._PickerComponent = _PickerComponent;
|
|
83
83
|
exports.default = InstalledPicker;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
--mp-progress-font-size: var(--mp-sys-font-size-sm);
|
|
7
7
|
--mp-progress-text-color: var(--mp-sys-color-content-secondary);
|
|
8
8
|
--mp-progress-track-color: var(--mp-sys-color-state-hover);
|
|
9
|
-
--mp-progress-default-color: var(--mp-sys-color-
|
|
10
|
-
--mp-progress-primary-color: var(--mp-sys-color-
|
|
9
|
+
--mp-progress-default-color: var(--mp-sys-color-action-primary);
|
|
10
|
+
--mp-progress-primary-color: var(--mp-sys-color-action-primary);
|
|
11
11
|
--mp-progress-secondary-color: var(--mp-sys-color-content-secondary);
|
|
12
12
|
--mp-progress-tertiary-color: var(--mp-sys-color-content-tertiary);
|
|
13
13
|
--mp-progress-info-color: var(--mp-sys-color-content-info);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
:root,
|
|
5
5
|
:where([data-mp-theme]) {
|
|
6
|
-
--mp-radio-control-color-checked: var(--mp-sys-color-
|
|
6
|
+
--mp-radio-control-color-checked: var(--mp-sys-color-action-primary);
|
|
7
7
|
--mp-radio-control-color: var(--mp-sys-color-content-secondary);
|
|
8
8
|
--mp-radio-control-color-disabled: var(--mp-sys-color-content-disabled);
|
|
9
9
|
--mp-radio-control-color-error: var(--mp-sys-color-content-danger);
|
package/lib/rate/style/index.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--mp-rate-disabled-color: var(--mp-sys-color-content-disabled);
|
|
7
7
|
--mp-rate-error-color: var(--mp-sys-color-content-danger);
|
|
8
8
|
--mp-rate-active-scale: 1.2;
|
|
9
|
-
--mp-rate-focus-color: var(--mp-sys-color-
|
|
9
|
+
--mp-rate-focus-color: var(--mp-sys-color-action-primary);
|
|
10
10
|
--mp-rate-focus-width: 2px;
|
|
11
11
|
--mp-rate-focus-offset: 2px;
|
|
12
12
|
--mp-rate-size: 24px;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
--mp-rate-min-height: 0px;
|
|
15
15
|
--mp-rate-action-padding: 4px;
|
|
16
16
|
--mp-rate-empty-color: var(--mp-color-text);
|
|
17
|
-
--mp-rate-active-color: var(--mp-sys-color-
|
|
17
|
+
--mp-rate-active-color: var(--mp-sys-color-action-primary);
|
|
18
18
|
--mp-rate-transition-duration: 250ms;
|
|
19
19
|
--mp-rate-scale-duration: 250ms;
|
|
20
20
|
--mp-rate-transition-timing-function: ease;
|