fcr-ui-scene-mobile 3.4.0
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/lib/assets/ground_glass_bg.png +0 -0
- package/lib/base.d.ts +11 -0
- package/lib/base.js +39 -0
- package/lib/common/device-store.d.ts +86 -0
- package/lib/common/device-store.js +642 -0
- package/lib/common/device-stream-store.d.ts +26 -0
- package/lib/common/device-stream-store.js +298 -0
- package/lib/common/event-store.d.ts +124 -0
- package/lib/common/event-store.js +249 -0
- package/lib/common/global-context.d.ts +11 -0
- package/lib/common/global-context.js +9 -0
- package/lib/common/member-list-data-source.d.ts +28 -0
- package/lib/common/member-list-data-source.js +305 -0
- package/lib/common/participant-store.d.ts +195 -0
- package/lib/common/participant-store.js +1577 -0
- package/lib/common/security-store.d.ts +119 -0
- package/lib/common/security-store.js +948 -0
- package/lib/common/setting-store.d.ts +181 -0
- package/lib/common/setting-store.js +797 -0
- package/lib/common/type.d.ts +73 -0
- package/lib/common/type.js +22 -0
- package/lib/config/default-config.d.ts +32 -0
- package/lib/config/default-config.js +39 -0
- package/lib/config/setting-config.d.ts +16 -0
- package/lib/config/setting-config.js +17 -0
- package/lib/creator.d.ts +10 -0
- package/lib/creator.js +49 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/hooks/useIsNodePresent.d.ts +4 -0
- package/lib/hooks/useIsNodePresent.js +53 -0
- package/lib/hooks/useOnRefMount.d.ts +2 -0
- package/lib/hooks/useOnRefMount.js +27 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +50 -0
- package/lib/mobile-global.css +28 -0
- package/lib/modules/action-bar/bottom-icons.d.ts +17 -0
- package/lib/modules/action-bar/bottom-icons.js +160 -0
- package/lib/modules/action-bar/context.d.ts +2 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/index.css +33 -0
- package/lib/modules/action-bar/index.d.ts +27 -0
- package/lib/modules/action-bar/index.js +46 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.css +130 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.d.ts +19 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.js +252 -0
- package/lib/modules/action-bar/member-list-popup/attendee/list.d.ts +1 -0
- package/lib/modules/action-bar/member-list-popup/attendee/list.js +82 -0
- package/lib/modules/action-bar/member-list-popup/index.css +35 -0
- package/lib/modules/action-bar/member-list-popup/index.d.ts +7 -0
- package/lib/modules/action-bar/member-list-popup/index.js +40 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.css +0 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.d.ts +12 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.js +58 -0
- package/lib/modules/action-bar/more-popup/index.css +71 -0
- package/lib/modules/action-bar/more-popup/index.d.ts +2 -0
- package/lib/modules/action-bar/more-popup/index.js +126 -0
- package/lib/modules/action-bar/store.d.ts +196 -0
- package/lib/modules/action-bar/store.js +1425 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +2 -0
- package/lib/modules/action-bar/view.js +75 -0
- package/lib/modules/audio-stream/ index.d.ts +19 -0
- package/lib/modules/audio-stream/ index.js +109 -0
- package/lib/modules/audio-stream/index.d.ts +25 -0
- package/lib/modules/audio-stream/index.js +135 -0
- package/lib/modules/chat/chat-bar/index.css +97 -0
- package/lib/modules/chat/chat-bar/index.d.ts +12 -0
- package/lib/modules/chat/chat-bar/index.js +129 -0
- package/lib/modules/chat/chat-notification/index.css +71 -0
- package/lib/modules/chat/chat-notification/index.d.ts +3 -0
- package/lib/modules/chat/chat-notification/index.js +75 -0
- package/lib/modules/chat/chat-select/index.css +183 -0
- package/lib/modules/chat/chat-select/index.d.ts +12 -0
- package/lib/modules/chat/chat-select/index.js +223 -0
- package/lib/modules/chat/contex.d.ts +2 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +1 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +108 -0
- package/lib/modules/chat/index.d.ts +28 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +208 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +617 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +183 -0
- package/lib/modules/chat/store.js +1101 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/chat/view.d.ts +11 -0
- package/lib/modules/chat/view.js +414 -0
- package/lib/modules/layout/bottom-drawer/index.css +34 -0
- package/lib/modules/layout/bottom-drawer/index.d.ts +3 -0
- package/lib/modules/layout/bottom-drawer/index.js +129 -0
- package/lib/modules/layout/components/Layout.d.ts +1 -0
- package/lib/modules/layout/components/Layout.js +98 -0
- package/lib/modules/layout/components/equip-request-popup/index.css +30 -0
- package/lib/modules/layout/components/equip-request-popup/index.d.ts +3 -0
- package/lib/modules/layout/components/equip-request-popup/index.js +78 -0
- package/lib/modules/layout/components/index.css +78 -0
- package/lib/modules/layout/components/index.d.ts +2 -0
- package/lib/modules/layout/components/index.js +25 -0
- package/lib/modules/layout/context.d.ts +2 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/drawer-header/index.css +27 -0
- package/lib/modules/layout/drawer-header/index.d.ts +10 -0
- package/lib/modules/layout/drawer-header/index.js +54 -0
- package/lib/modules/layout/index.css +22 -0
- package/lib/modules/layout/index.d.ts +8 -0
- package/lib/modules/layout/index.js +47 -0
- package/lib/modules/layout/store.d.ts +59 -0
- package/lib/modules/layout/store.js +379 -0
- package/lib/modules/layout/type.d.ts +65 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/member-layout/context.d.ts +2 -0
- package/lib/modules/member-layout/context.js +9 -0
- package/lib/modules/member-layout/data.d.ts +2 -0
- package/lib/modules/member-layout/data.js +304 -0
- package/lib/modules/member-layout/grid/index.css +98 -0
- package/lib/modules/member-layout/grid/index.d.ts +21 -0
- package/lib/modules/member-layout/grid/index.js +316 -0
- package/lib/modules/member-layout/index.css +88 -0
- package/lib/modules/member-layout/index.d.ts +8 -0
- package/lib/modules/member-layout/index.js +45 -0
- package/lib/modules/member-layout/share-toast/index.css +30 -0
- package/lib/modules/member-layout/share-toast/index.d.ts +5 -0
- package/lib/modules/member-layout/share-toast/index.js +43 -0
- package/lib/modules/member-layout/speaker/index.css +30 -0
- package/lib/modules/member-layout/speaker/index.d.ts +9 -0
- package/lib/modules/member-layout/speaker/index.js +28 -0
- package/lib/modules/member-layout/store.d.ts +70 -0
- package/lib/modules/member-layout/store.js +479 -0
- package/lib/modules/member-layout/user/index.css +121 -0
- package/lib/modules/member-layout/user/index.d.ts +34 -0
- package/lib/modules/member-layout/user/index.js +355 -0
- package/lib/modules/member-layout/user/types.d.ts +16 -0
- package/lib/modules/member-layout/user/types.js +6 -0
- package/lib/modules/member-layout/view.d.ts +2 -0
- package/lib/modules/member-layout/view.js +225 -0
- package/lib/modules/state-bar/context.d.ts +2 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +79 -0
- package/lib/modules/state-bar/index.d.ts +17 -0
- package/lib/modules/state-bar/index.js +55 -0
- package/lib/modules/state-bar/leaving-room/index.css +14 -0
- package/lib/modules/state-bar/leaving-room/index.d.ts +7 -0
- package/lib/modules/state-bar/leaving-room/index.js +38 -0
- package/lib/modules/state-bar/meeting-detail/index.css +72 -0
- package/lib/modules/state-bar/meeting-detail/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/index.js +59 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.d.ts +4 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.js +81 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.css +92 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.js +188 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.css +27 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.js +87 -0
- package/lib/modules/state-bar/store.d.ts +76 -0
- package/lib/modules/state-bar/store.js +561 -0
- package/lib/modules/state-bar/view.d.ts +7 -0
- package/lib/modules/state-bar/view.js +215 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +41 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +53 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +156 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +35 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +65 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +39 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +18 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +52 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +30 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +98 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +89 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +9 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +53 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +4 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +29 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +38 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +107 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +89 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +134 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +106 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +168 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +183 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +51 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +248 -0
- package/lib/modules/whiteboard/context.d.ts +69 -0
- package/lib/modules/whiteboard/context.js +36 -0
- package/lib/modules/whiteboard/index.d.ts +119 -0
- package/lib/modules/whiteboard/index.js +1134 -0
- package/lib/modules/whiteboard/style.css +143 -0
- package/lib/modules/whiteboard/type.d.ts +94 -0
- package/lib/modules/whiteboard/type.js +89 -0
- package/lib/modules/whiteboard/utils.d.ts +12 -0
- package/lib/modules/whiteboard/utils.js +36 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +29 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +183 -0
- package/lib/plugins/multi-lang-plugin.d.ts +1 -0
- package/lib/plugins/multi-lang-plugin.js +19 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/translations/enUS.d.ts +1855 -0
- package/lib/translations/enUS.js +1895 -0
- package/lib/translations/zhCN.d.ts +1852 -0
- package/lib/translations/zhCN.js +1892 -0
- package/lib/type.d.ts +121 -0
- package/lib/type.js +46 -0
- package/lib/ui-manager.d.ts +32 -0
- package/lib/ui-manager.js +426 -0
- package/lib/ui-scene.d.ts +14 -0
- package/lib/ui-scene.js +141 -0
- package/lib/utilities/board-context.d.ts +4 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +286 -0
- package/lib/utilities/constant.js +271 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +117 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +101 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/tools.d.ts +27 -0
- package/lib/utilities/tools.js +169 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/package.json +63 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
.fcr-pagination {
|
|
2
|
+
background: var(--fcr_web_ui_scene_fill2);
|
|
3
|
+
box-shadow: var(--fcr_dark_s_shadow);
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
border-width: 1px;
|
|
6
|
+
border-style: solid;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
padding: 0 4px;
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
height: 36px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.fcr-pagination .fcr-pagination__prev,
|
|
14
|
+
.fcr-pagination .fcr-pagination__next,
|
|
15
|
+
.fcr-pagination .fcr-pagination__expansion {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
.fcr-pagination .fcr-pagination__prev {
|
|
21
|
+
padding-right: 4px;
|
|
22
|
+
}
|
|
23
|
+
.fcr-pagination .fcr-pagination__next {
|
|
24
|
+
padding-left: 4px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.fcr-pagination .fcr-pagination__btn {
|
|
28
|
+
border-radius: 6px;
|
|
29
|
+
height: 26px;
|
|
30
|
+
width: 26px;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
outline: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.fcr-pagination .fcr-pagination__btn:hover:not(.fcr-pagination_btn--disabled) {
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
color: var(--color-icon-2);
|
|
40
|
+
background: var(--color-hover);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.fcr-pagination .fcr-pagination__btn:active:not(.fcr-pagination_btn--disabled) {
|
|
44
|
+
@apply fcr-bg-brand-8;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.fcr-pagination .fcr-pagination__page {
|
|
48
|
+
@apply fcr-text-1;
|
|
49
|
+
text-align: center;
|
|
50
|
+
width: 58px;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
align-self: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.fcr-pagination-small {
|
|
56
|
+
height: 32px;
|
|
57
|
+
}
|
|
58
|
+
.fcr-pagination-small .fcr-pagination__page {
|
|
59
|
+
width: 40px;
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
font-weight: 400;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.fcr-pagination.fcr-pagination-half-r {
|
|
65
|
+
@apply fcr-rounded-8;
|
|
66
|
+
height: 32px;
|
|
67
|
+
min-width: 40px;
|
|
68
|
+
font-size: 16px;
|
|
69
|
+
padding: 5px;
|
|
70
|
+
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
71
|
+
border: none;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.fcr-pagination-half-r .fcr-pagination__extra .fcr-clickabel-icon {
|
|
76
|
+
@apply fcr-rounded-4;
|
|
77
|
+
width: 30px;
|
|
78
|
+
height: 22px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.fcr-pagination-half-r .fcr-pagination__next .fcr-pagination__btn,
|
|
82
|
+
.fcr-pagination-half-r .fcr-pagination__prev .fcr-pagination__btn {
|
|
83
|
+
@apply fcr-rounded-4;
|
|
84
|
+
width: 22px;
|
|
85
|
+
height: 22px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.fcr-pagination-half-r .fcr-pagination__page {
|
|
89
|
+
flex-shrink: 0;
|
|
90
|
+
width: fit-content;
|
|
91
|
+
min-width: 35px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.fcr-pagination-mask {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
width: 0;
|
|
97
|
+
opacity: 0;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
transition: 0.3s all;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.fcr-pagination-mask--expanded {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
width: 148px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.fcr-pagination__expansion {
|
|
108
|
+
width: 0;
|
|
109
|
+
opacity: 0;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
transition: 0.3s all;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.fcr-pagination__expansion--expanded {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
width: 30px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.fcr-pagination-half-r .fcr-pagination__extra {
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
align-items: center;
|
|
124
|
+
padding-right: 9px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.fcr-pagination-half-r .fcr-pagination__btn {
|
|
128
|
+
@apply fcr-rounded-10;
|
|
129
|
+
height: 30px;
|
|
130
|
+
width: 30px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.fcr-pagination-half-r .fcr-pagination__prev {
|
|
134
|
+
padding-left: 13px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.fcr-pagination_btn--disabled {
|
|
138
|
+
cursor: not-allowed;
|
|
139
|
+
opacity: 0.5;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.fcr-pagination-float {
|
|
143
|
+
pointer-events: none;
|
|
144
|
+
width: 100%;
|
|
145
|
+
height: 100%;
|
|
146
|
+
position: absolute;
|
|
147
|
+
--effect-color: theme(colors.brand.4);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.fcr-pagination-float .fcr-pagination-float__prev,
|
|
151
|
+
.fcr-pagination-float .fcr-pagination-float__next {
|
|
152
|
+
@apply fcr-bg-4 fcr-rounded-8;
|
|
153
|
+
pointer-events: all;
|
|
154
|
+
position: absolute;
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
align-items: center;
|
|
158
|
+
top: 50%;
|
|
159
|
+
transform: translateY(-50%);
|
|
160
|
+
font-size: 12px;
|
|
161
|
+
}
|
|
162
|
+
.fcr-pagination-float .fcr-pagination-float__prev {
|
|
163
|
+
left: 10px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.fcr-pagination-float .fcr-pagination-float__next {
|
|
167
|
+
right: 10px;
|
|
168
|
+
}
|
|
169
|
+
.fcr-pagination-float .fcr-pagination-float__btn,
|
|
170
|
+
.fcr-pagination-list-view .fcr-pagination-float__btn {
|
|
171
|
+
@apply fcr-rounded-8 fcr-bg-2;
|
|
172
|
+
width: 40px;
|
|
173
|
+
height: 40px;
|
|
174
|
+
/* Note: backdrop-filter has minimal browser support */
|
|
175
|
+
backdrop-filter: blur(25px);
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
outline: none;
|
|
180
|
+
}
|
|
181
|
+
.fcr-pagination-float .fcr-pagination-float__btn:hover:not(.fcr-pagination_btn--disabled),
|
|
182
|
+
.fcr-pagination-list-view .fcr-pagination-float__btn:hover:not(.fcr-pagination_btn--disabled) {
|
|
183
|
+
@apply fcr-bg-brand-6;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
color: var(--color-icon-2);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.fcr-pagination-float .fcr-pagination-float__btn:active:not(.fcr-pagination_btn--disabled),
|
|
189
|
+
.fcr-pagination-list-view .fcr-pagination-float__btn:active:not(.fcr-pagination_btn--disabled) {
|
|
190
|
+
@apply fcr-bg-brand-8;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.fcr-pagination-float__page {
|
|
194
|
+
@apply fcr-text-1;
|
|
195
|
+
padding: 3px 0 5px;
|
|
196
|
+
}
|
|
197
|
+
.fcr-pagination-list-view {
|
|
198
|
+
--effect-color: theme(colors.brand.4);
|
|
199
|
+
display: flex;
|
|
200
|
+
gap: 4px;
|
|
201
|
+
}
|
|
202
|
+
.fcr-pagination-list-view-col {
|
|
203
|
+
flex-direction: column;
|
|
204
|
+
}
|
|
205
|
+
.fcr-pagination-list-view .fcr-pagination-float__btn {
|
|
206
|
+
@apply fcr-rounded-4;
|
|
207
|
+
}
|
|
208
|
+
.fcr-pagination-list-view-row .fcr-pagination-float__btn {
|
|
209
|
+
width: 30px;
|
|
210
|
+
height: 114px;
|
|
211
|
+
}
|
|
212
|
+
.fcr-pagination-list-view-row .fcr-pagination-list-view__next svg {
|
|
213
|
+
transform: rotate(180deg);
|
|
214
|
+
}
|
|
215
|
+
.fcr-pagination-list-view-col .fcr-pagination-float__btn {
|
|
216
|
+
width: 192px;
|
|
217
|
+
height: 30px;
|
|
218
|
+
}
|
|
219
|
+
.fcr-pagination-list-view-col .fcr-pagination-list-view__prev svg {
|
|
220
|
+
transform: rotate(90deg);
|
|
221
|
+
}
|
|
222
|
+
.fcr-pagination-list-view-col .fcr-pagination-list-view__next svg {
|
|
223
|
+
transform: rotate(270deg);
|
|
224
|
+
}
|
|
225
|
+
.fcr-pagination-list-view .fcr-pagination-list-view__prev .fcr-pagination-float__btn,
|
|
226
|
+
.fcr-pagination-list-view .fcr-pagination-list-view__next .fcr-pagination-float__btn {
|
|
227
|
+
@apply fcr-bg-2-a70;
|
|
228
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
type PaginationProps = {
|
|
4
|
+
current: number;
|
|
5
|
+
total: number;
|
|
6
|
+
onChange?: (current: number) => void;
|
|
7
|
+
};
|
|
8
|
+
type HalfRoundedProps = PaginationProps & {
|
|
9
|
+
onAdd?: () => void;
|
|
10
|
+
addText: string;
|
|
11
|
+
showText: string;
|
|
12
|
+
hideText: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const HalfRoundedPagination: FC<HalfRoundedProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.HalfRoundedPagination = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
11
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
12
|
+
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
13
|
+
require("./index.css");
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
var _react = require("react");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
var usePageCounter = function usePageCounter(context) {
|
|
18
|
+
var _useState = (0, _react.useState)(context.current),
|
|
19
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
20
|
+
current = _useState2[0],
|
|
21
|
+
setCurrent = _useState2[1];
|
|
22
|
+
(0, _react.useEffect)(function () {
|
|
23
|
+
setCurrent(context.current);
|
|
24
|
+
}, [context.current]);
|
|
25
|
+
var handlePrev = function handlePrev() {
|
|
26
|
+
if (current <= 1) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
setCurrent(current - 1);
|
|
30
|
+
};
|
|
31
|
+
var handleNext = function handleNext() {
|
|
32
|
+
if (current >= context.total) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
setCurrent(current + 1);
|
|
36
|
+
};
|
|
37
|
+
return {
|
|
38
|
+
current: current,
|
|
39
|
+
handlePrev: handlePrev,
|
|
40
|
+
handleNext: handleNext
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
var HalfRoundedPagination = exports.HalfRoundedPagination = function HalfRoundedPagination(_ref) {
|
|
44
|
+
var current = _ref.current,
|
|
45
|
+
total = _ref.total,
|
|
46
|
+
_ref$onAdd = _ref.onAdd,
|
|
47
|
+
onAdd = _ref$onAdd === void 0 ? function () {} : _ref$onAdd,
|
|
48
|
+
_ref$onChange = _ref.onChange,
|
|
49
|
+
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
50
|
+
addText = _ref.addText,
|
|
51
|
+
showText = _ref.showText,
|
|
52
|
+
hideText = _ref.hideText;
|
|
53
|
+
var cls = (0, _classnames["default"])('fcr-pagination fcr-pagination-half-r', {});
|
|
54
|
+
var _useState3 = (0, _react.useState)(false),
|
|
55
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
56
|
+
expansionVisible = _useState4[0],
|
|
57
|
+
setExpansionVisible = _useState4[1];
|
|
58
|
+
var _useState5 = (0, _react.useState)(true),
|
|
59
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
60
|
+
expanded = _useState6[0],
|
|
61
|
+
setExpanded = _useState6[1];
|
|
62
|
+
var _usePageCounter = usePageCounter({
|
|
63
|
+
current: current,
|
|
64
|
+
total: total
|
|
65
|
+
}),
|
|
66
|
+
handleNext = _usePageCounter.handleNext,
|
|
67
|
+
handlePrev = _usePageCounter.handlePrev,
|
|
68
|
+
innerCurrent = _usePageCounter.current;
|
|
69
|
+
(0, _react.useEffect)(function () {
|
|
70
|
+
onChange(innerCurrent);
|
|
71
|
+
}, [innerCurrent]);
|
|
72
|
+
var handleExpand = function handleExpand() {
|
|
73
|
+
setExpanded(function (expanded) {
|
|
74
|
+
return !expanded;
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
var prevCls = (0, _classnames["default"])('fcr-pagination__btn', innerCurrent <= 1 ? 'fcr-pagination_btn--disabled' : 'fcr-btn-click-effect');
|
|
78
|
+
var nextCls = (0, _classnames["default"])('fcr-pagination__btn', innerCurrent >= total ? 'fcr-pagination_btn--disabled' : 'fcr-btn-click-effect');
|
|
79
|
+
var expansionCls = (0, _classnames["default"])('fcr-pagination__expansion', {
|
|
80
|
+
'fcr-pagination__expansion--expanded': !expanded || expansionVisible
|
|
81
|
+
});
|
|
82
|
+
var maskCls = (0, _classnames["default"])('fcr-pagination-mask', {
|
|
83
|
+
'fcr-pagination-mask--expanded': expanded
|
|
84
|
+
});
|
|
85
|
+
var handleHover = function handleHover(visible) {
|
|
86
|
+
return function () {
|
|
87
|
+
setExpansionVisible(visible);
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
91
|
+
className: "fcr-pagination-half-r-wrapper",
|
|
92
|
+
onMouseEnter: handleHover(true),
|
|
93
|
+
onMouseLeave: handleHover(false),
|
|
94
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
95
|
+
className: cls,
|
|
96
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
97
|
+
className: maskCls,
|
|
98
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
99
|
+
className: "fcr-pagination__extra",
|
|
100
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
101
|
+
content: addText,
|
|
102
|
+
placement: "top",
|
|
103
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
104
|
+
type: _type.FcrIconType.FCR_V2_PHONE_MORE1,
|
|
105
|
+
onClick: onAdd,
|
|
106
|
+
colors: {
|
|
107
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
112
|
+
className: "fcr-divider"
|
|
113
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
114
|
+
className: "fcr-pagination__prev",
|
|
115
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
116
|
+
className: prevCls,
|
|
117
|
+
onClick: handlePrev,
|
|
118
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
119
|
+
type: _type.FcrIconType.FCR_LEFT4,
|
|
120
|
+
size: 24,
|
|
121
|
+
colors: {
|
|
122
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
127
|
+
className: "fcr-pagination__page",
|
|
128
|
+
children: [current !== null && current !== void 0 ? current : 0, "/", total !== null && total !== void 0 ? total : 0]
|
|
129
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
130
|
+
className: "fcr-pagination__next",
|
|
131
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
132
|
+
className: nextCls,
|
|
133
|
+
onClick: handleNext,
|
|
134
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
135
|
+
type: _type.FcrIconType.FCR_RIGHT4,
|
|
136
|
+
size: 24,
|
|
137
|
+
colors: {
|
|
138
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
139
|
+
}
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
})]
|
|
143
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
144
|
+
content: expanded ? hideText : showText,
|
|
145
|
+
placement: !expanded ? 'right' : 'top',
|
|
146
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
147
|
+
className: expansionCls,
|
|
148
|
+
onClick: handleExpand,
|
|
149
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
150
|
+
type: _type.FcrIconType.FCR_V2_CHEVRON_LEFT2,
|
|
151
|
+
size: 16,
|
|
152
|
+
style: {
|
|
153
|
+
transform: expanded ? 'rotate(0deg)' : 'rotate(180deg)'
|
|
154
|
+
},
|
|
155
|
+
colors: {
|
|
156
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
})
|
|
160
|
+
})]
|
|
161
|
+
})
|
|
162
|
+
});
|
|
163
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const scenePaginationUIContextDefault: {
|
|
2
|
+
observables: {
|
|
3
|
+
currentPage: number;
|
|
4
|
+
totalPage: number;
|
|
5
|
+
};
|
|
6
|
+
addPage: () => void;
|
|
7
|
+
changePage: (_page: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const ScenePaginationUIContext: import("react").Context<{
|
|
10
|
+
observables: {
|
|
11
|
+
currentPage: number;
|
|
12
|
+
totalPage: number;
|
|
13
|
+
};
|
|
14
|
+
addPage: () => void;
|
|
15
|
+
changePage: (_page: number) => void;
|
|
16
|
+
}>;
|
|
17
|
+
export type ScenePaginationUIContextValue = typeof scenePaginationUIContextDefault;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ScenePaginationUIContext = void 0;
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var scenePaginationUIContextDefault = {
|
|
10
|
+
observables: {
|
|
11
|
+
currentPage: 0,
|
|
12
|
+
totalPage: 0
|
|
13
|
+
},
|
|
14
|
+
addPage: function addPage() {},
|
|
15
|
+
changePage: function changePage(_page) {}
|
|
16
|
+
};
|
|
17
|
+
var ScenePaginationUIContext = exports.ScenePaginationUIContext = /*#__PURE__*/(0, _react.createContext)(scenePaginationUIContextDefault);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = ProgressDialog;
|
|
8
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
9
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
10
|
+
require("./style.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function ProgressDialog(props) {
|
|
13
|
+
var title = props.title,
|
|
14
|
+
progress = props.progress;
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
16
|
+
className: "progress-dialog-frame",
|
|
17
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
18
|
+
className: "progress-dialog-icon",
|
|
19
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
20
|
+
type: _type.FcrIconType.FCR_DOWNLOAD,
|
|
21
|
+
size: 24
|
|
22
|
+
})
|
|
23
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
24
|
+
className: "progress-dialog-content",
|
|
25
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
26
|
+
className: "progress-dialog-title",
|
|
27
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
28
|
+
children: title
|
|
29
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
30
|
+
children: [progress, "%"]
|
|
31
|
+
})]
|
|
32
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
33
|
+
className: "progress-dialog-progress",
|
|
34
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
className: "progress-dialog-progress-bar",
|
|
36
|
+
style: {
|
|
37
|
+
width: "".concat(progress, "%")
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
})]
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.progress-dialog-frame {
|
|
2
|
+
width: 290px;
|
|
3
|
+
min-height: 58px;
|
|
4
|
+
padding: 10px 0;
|
|
5
|
+
border-radius: var(--fcr_cornerradius_s);
|
|
6
|
+
background: var(--fcr_ui_scene_white6);
|
|
7
|
+
box-shadow: var(--fcr_web_light_dropup);
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
z-index: 1000;
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: calc(100% - 98px);
|
|
13
|
+
left: calc(100vw - 310px);
|
|
14
|
+
}
|
|
15
|
+
.progress-dialog-icon {
|
|
16
|
+
width: 32px;
|
|
17
|
+
height: 32px;
|
|
18
|
+
margin: 0 18px;
|
|
19
|
+
}
|
|
20
|
+
.progress-dialog-icon svg {
|
|
21
|
+
width: 32px;
|
|
22
|
+
height: 32px;
|
|
23
|
+
}
|
|
24
|
+
.progress-dialog-content {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
flex: 1;
|
|
29
|
+
padding-right: 18px;
|
|
30
|
+
}
|
|
31
|
+
.progress-dialog-title {
|
|
32
|
+
font-size: 13px;
|
|
33
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
34
|
+
margin-bottom: 10px;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex: 1;
|
|
38
|
+
}
|
|
39
|
+
.progress-dialog-progress {
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
height: 9px;
|
|
42
|
+
background: var(--fcr_ui_scene_ramp_brand1);
|
|
43
|
+
border-radius: var(--fcr_cornerradius_round);
|
|
44
|
+
flex: 1;
|
|
45
|
+
}
|
|
46
|
+
.progress-dialog-progress-bar {
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 9px;
|
|
49
|
+
background: var(--fcr_ui_scene_ramp_brand6);
|
|
50
|
+
border-radius: var(--fcr_cornerradius_round);
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ScenePagination: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ScenePagination = void 0;
|
|
8
|
+
var _mobxReact = require("mobx-react");
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _pagination = require("./pagination");
|
|
11
|
+
var _store = require("./pagination/store");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var ScenePagination = exports.ScenePagination = (0, _mobxReact.observer)(function () {
|
|
14
|
+
var _useContext = (0, _react.useContext)(_store.ScenePaginationUIContext),
|
|
15
|
+
observables = _useContext.observables,
|
|
16
|
+
addPage = _useContext.addPage,
|
|
17
|
+
changePage = _useContext.changePage;
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
|
+
className: "fcr-board-pagination",
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pagination.HalfRoundedPagination, {
|
|
21
|
+
current: observables.currentPage,
|
|
22
|
+
total: observables.totalPage,
|
|
23
|
+
onAdd: addPage,
|
|
24
|
+
onChange: changePage,
|
|
25
|
+
addText: 'fcr_board_new_page',
|
|
26
|
+
showText: 'fcr_board_show_pageration',
|
|
27
|
+
hideText: 'fcr_board_hide_pageration'
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
.whiteboard-switch-theme {
|
|
2
|
+
height: 175px;
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
column-gap: 22px;
|
|
8
|
+
border-bottom: 1px solid var(--fcr_ui_scene_line1);
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
.whiteboard-switch-theme-popover {
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
.whiteboard-switch-theme-popover .fcr-tooltip-inner {
|
|
16
|
+
border-radius: 0 !important;
|
|
17
|
+
box-shadow: none !important;
|
|
18
|
+
border: none !important;
|
|
19
|
+
}
|
|
20
|
+
.whiteboard-switch-theme_item {
|
|
21
|
+
width: 184px;
|
|
22
|
+
height: 136px;
|
|
23
|
+
border: 1px solid var(--fcr_ui_scene_line1);
|
|
24
|
+
border-radius: 16px;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: top;
|
|
28
|
+
align-items: top;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
background: var(--fcr_web_ui_scene_fill4_popup);
|
|
31
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
32
|
+
}
|
|
33
|
+
.whiteboard-switch-theme_item-active {
|
|
34
|
+
background-color: var(--fcr_ui_scene_ramp_brand6);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.whiteboard-switch-theme_item-close {
|
|
38
|
+
width: 30px;
|
|
39
|
+
height: 30px;
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 50%;
|
|
42
|
+
margin-top: -15px;
|
|
43
|
+
border-radius: 50%;
|
|
44
|
+
left: calc(50% + 220px * 1.5);
|
|
45
|
+
background: var(--fcr_web_ui_scene_fill4_popup);
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
.whiteboard-switch-theme_item-close:hover {
|
|
52
|
+
background: var(--fcr_web_ui_scene_hover);
|
|
53
|
+
}
|
|
54
|
+
.whiteboard-switch-theme_item-close:hover path {
|
|
55
|
+
fill: var(--fcr_ui_scene_ramp_brand6);
|
|
56
|
+
}
|
|
57
|
+
.whiteboard-switch-theme_item:hover {
|
|
58
|
+
border: 2px solid var(--fcr_ui_scene_ramp_brand6);
|
|
59
|
+
}
|
|
60
|
+
.whiteboard-switch-theme_item:hover .whiteboard-switch-theme_item-inner {
|
|
61
|
+
width: 172px;
|
|
62
|
+
margin-top: 3px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.whiteboard-switch-theme_item-inner {
|
|
66
|
+
width: 174px;
|
|
67
|
+
height: 100px;
|
|
68
|
+
border-radius: 12px;
|
|
69
|
+
background: var(--fcr_ui_scene_white10);
|
|
70
|
+
margin: 4px 4px 9px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
row-gap: 12px;
|
|
76
|
+
}
|
|
77
|
+
.whiteboard-switch-theme_item-inner.whiteboard {
|
|
78
|
+
background: #fff;
|
|
79
|
+
}
|
|
80
|
+
.whiteboard-switch-theme_item-inner.blackboard {
|
|
81
|
+
background: #000;
|
|
82
|
+
}
|
|
83
|
+
.whiteboard-switch-theme_item-inner.chalkboard {
|
|
84
|
+
background: #5a7d75;
|
|
85
|
+
}
|
|
86
|
+
.whiteboard-switch-theme_color-group {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
column-gap: 18px;
|
|
91
|
+
}
|
|
92
|
+
.whiteboard-switch-theme_color-group span {
|
|
93
|
+
display: block;
|
|
94
|
+
width: 18px;
|
|
95
|
+
height: 18px;
|
|
96
|
+
border-radius: 18px;
|
|
97
|
+
background: var(--fcr_web_ui_scene_fill4_popup);
|
|
98
|
+
}
|