@ledvance/base 1.3.28 → 1.3.29
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/package.json +1 -1
- package/src/api/nativeEventEmitter.ts +2 -2
- package/src/components/AdvanceList.tsx +1 -1
- package/src/components/BallDirectionView.tsx +1 -1
- package/src/components/Card.tsx +1 -1
- package/src/components/Cell.tsx +67 -59
- package/src/components/MoodStripAdjustView.tsx +1 -1
- package/src/components/Page.tsx +2 -2
- package/src/components/Segmented.tsx +1 -1
- package/src/components/ldvSwitch.tsx +1 -1
- package/src/components/ldvTopBar.tsx +1 -1
- package/src/components/weekSelect.tsx +1 -1
- package/src/i18n/strings.ts +13302 -13302
- package/src/models/modules/NativePropsSlice.tsx +2 -2
- package/src/utils/common.ts +3 -0
|
@@ -176,7 +176,7 @@ const nativePropsSlice = createSlice({
|
|
|
176
176
|
setTimeZone(state, action: PayloadAction<any>) {
|
|
177
177
|
state.timeZone = action.payload
|
|
178
178
|
},
|
|
179
|
-
|
|
179
|
+
setGestureControlValues(state, action: PayloadAction<any>) {
|
|
180
180
|
const keys = Object.keys(action.payload)
|
|
181
181
|
keys.forEach(key => {
|
|
182
182
|
state.gestureControlValues[key] = action.payload[key]
|
|
@@ -488,7 +488,7 @@ export const {
|
|
|
488
488
|
setSystemTimeFormat,
|
|
489
489
|
setTimeZone,
|
|
490
490
|
setEnergieverbrauch,
|
|
491
|
-
|
|
491
|
+
setGestureControlValues,
|
|
492
492
|
} = nativePropsSlice.actions
|
|
493
493
|
|
|
494
494
|
export {
|
package/src/utils/common.ts
CHANGED
|
@@ -259,6 +259,7 @@ interface DialogProps {
|
|
|
259
259
|
confirmText?: string
|
|
260
260
|
subTitle?: string
|
|
261
261
|
onConfirm: (data: any, args: { close: () => void }) => void
|
|
262
|
+
onCancel: () => void
|
|
262
263
|
}
|
|
263
264
|
|
|
264
265
|
export function showDialog(props: DialogProps) {
|
|
@@ -271,6 +272,7 @@ export function showDialog(props: DialogProps) {
|
|
|
271
272
|
confirmText,
|
|
272
273
|
subTitle,
|
|
273
274
|
onConfirm,
|
|
275
|
+
onCancel
|
|
274
276
|
} = props
|
|
275
277
|
return (
|
|
276
278
|
method === 'confirm' ?
|
|
@@ -280,6 +282,7 @@ export function showDialog(props: DialogProps) {
|
|
|
280
282
|
confirmText: showConfirmText && (confirmText || I18n.getLang('conflict_dialog_save_item_fixedtimecycle_answer_yes_text')) || '',
|
|
281
283
|
subTitle,
|
|
282
284
|
onConfirm,
|
|
285
|
+
onCancel,
|
|
283
286
|
motionConfig: {
|
|
284
287
|
hideDuration: 0,
|
|
285
288
|
showDuration: 100
|