fluekit 2.5.3 → 2.5.5
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/dist/AlertDialog.d.ts +1 -0
- package/dist/Icons.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +26 -6
- package/dist/showAlertDialog.d.ts +8 -0
- package/package.json +1 -1
package/dist/AlertDialog.d.ts
CHANGED
package/dist/Icons.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export { default as RadioListTile } from './RadioListTile';
|
|
|
50
50
|
export { default as Slider } from './Slider';
|
|
51
51
|
export { default as RangeSlider } from './RangeSlider';
|
|
52
52
|
export { default as AlertDialog } from './AlertDialog';
|
|
53
|
+
export * from './showAlertDialog';
|
|
53
54
|
export { default as BottomSheet } from './BottomSheet';
|
|
54
55
|
export { default as SegmentedControl } from './SegmentedControl';
|
|
55
56
|
export { default as Builder } from './Builder';
|
package/dist/index.js
CHANGED
|
@@ -1503,10 +1503,10 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
|
|
|
1503
1503
|
return g.physics === "never" ? e.overflow = "hidden" : (g.scrollDirection === "vertical" ? (e.overflowX = "hidden", e.overflowY = "auto") : (e.overflowX = "auto", e.overflowY = "hidden"), g.physics === "clamping" ? e.overscrollBehavior = "none" : g.physics === "bouncing" && (e.overscrollBehavior = "auto")), g.clipBehavior === "none" && g.physics === "never" && (e.overflow = "visible"), e;
|
|
1504
1504
|
}), C = computed(() => {
|
|
1505
1505
|
let e = {
|
|
1506
|
-
minWidth: g.scrollDirection === "horizontal" ? "max-content" : "100%",
|
|
1507
|
-
minHeight: g.scrollDirection === "vertical" ? "fit-content" : "100%",
|
|
1508
1506
|
boxSizing: "border-box",
|
|
1509
|
-
display: "flow-root"
|
|
1507
|
+
display: "flow-root",
|
|
1508
|
+
width: "100%",
|
|
1509
|
+
height: "100%"
|
|
1510
1510
|
};
|
|
1511
1511
|
return g.padding && Object.assign(e, paddingToStyle(g.padding)), e;
|
|
1512
1512
|
}), E = (e) => {
|
|
@@ -2995,7 +2995,8 @@ const Icons = {
|
|
|
2995
2995
|
starBorder: "M19.65 9.04l-4.84-.42-1.89-4.45c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.73 3.68-3.18c.67-.58.32-1.68-.56-1.75zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.01 4.38.38-3.32 2.88 1 4.28L12 15.4z",
|
|
2996
2996
|
starHalf: "M19.65 9.04l-4.84-.42-1.89-4.45c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.73 3.68-3.18c.67-.58.32-1.68-.56-1.75zM12 15.4V6.1l1.71 4.01 4.38.38-3.32 2.88 1 4.28L12 15.4z",
|
|
2997
2997
|
monitor: "M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H4V5h16v11z",
|
|
2998
|
-
warning: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
2998
|
+
warning: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",
|
|
2999
|
+
videoPlay: "M8 5v14l11-7z"
|
|
2999
3000
|
};
|
|
3000
3001
|
var Toast_default = /* @__PURE__ */ defineComponent({
|
|
3001
3002
|
__name: "Toast",
|
|
@@ -4538,7 +4539,26 @@ var Radio_default = /* @__PURE__ */ defineComponent({
|
|
|
4538
4539
|
_: 3
|
|
4539
4540
|
})) : createCommentVNode("", !0);
|
|
4540
4541
|
}
|
|
4541
|
-
})
|
|
4542
|
+
});
|
|
4543
|
+
const showAlertDialog = (e) => {
|
|
4544
|
+
let p = document.createElement("div");
|
|
4545
|
+
document.body.appendChild(p);
|
|
4546
|
+
let m = () => {
|
|
4547
|
+
render(null, p), document.body.removeChild(p), e.onClose?.();
|
|
4548
|
+
}, g = () => {
|
|
4549
|
+
e.onOk?.(), m();
|
|
4550
|
+
};
|
|
4551
|
+
return render(createVNode(AlertDialog_default, {
|
|
4552
|
+
...e,
|
|
4553
|
+
visible: !0,
|
|
4554
|
+
"onUpdate:visible": (e) => {
|
|
4555
|
+
e || m();
|
|
4556
|
+
},
|
|
4557
|
+
onClose: m,
|
|
4558
|
+
onOk: g
|
|
4559
|
+
}), p), { close: m };
|
|
4560
|
+
};
|
|
4561
|
+
var BottomSheet_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
4542
4562
|
__name: "BottomSheet",
|
|
4543
4563
|
props: {
|
|
4544
4564
|
visible: {
|
|
@@ -6965,4 +6985,4 @@ function setDefaultVW(e) {
|
|
|
6965
6985
|
function setTransform(e) {
|
|
6966
6986
|
console.warn("setTransform is no longer supported. Please use <FlueConfigProvider :transform='transform'/> instead.");
|
|
6967
6987
|
}
|
|
6968
|
-
export { ActionChip_default as ActionChip, AlertDialog_default as AlertDialog, Align_default as Align, Alignment, AnimatedContainer_default as AnimatedContainer, AnimatedOpacity_default as AnimatedOpacity, Animation_default as AnimationWidget, Animator, AppBar_default as AppBar, AspectRatio_default as AspectRatio, AssetImage, BackdropFilter_default as BackdropFilter, BlurStyle, Border, BorderRadius, BorderSide, BottomNavigationBar_default as BottomNavigationBar, BottomSheet_default as BottomSheet, Box_default as Box, BoxAlignment, BoxConstraints, BoxDecoration, BoxFit, BoxShadow, BoxShape, Builder_default as Builder, Button_default as Button, ButtonStyle, ButtonStylePreset, Card_default as Card, Center_default as Center, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChoiceChip_default as ChoiceChip, CircleAvatar_default as CircleAvatar, CircularProgressIndicator_default as CircularProgressIndicator, Clip, ClipOval_default as ClipOval, ClipRRect_default as ClipRRect, Color, ColorUtils, Colors, Column_default as Column, ConstrainedBox_default as ConstrainedBox, Container_default as Container, CrossAxisAlignment, CupertinoActivityIndicator_default as CupertinoActivityIndicator, CupertinoColors, CupertinoContextMenu_default as CupertinoContextMenu, CupertinoNavigationBar_default as CupertinoNavigationBar, CupertinoPageScaffold_default as CupertinoPageScaffold, DecorationImage, Divider_default as Divider, Drawer_default as Drawer, EdgeInsets, ElevatedButton_default as ElevatedButton, Expanded_default as Expanded, Fixed_default as Fixed, FlexBox_default as FlexBox, FlexItem_default as FlexItem, FloatingLabelBehavior, FlueConfigProvider_default as FlueConfigProvider, FontStyle, FontWeight, GestureDetector_default as GestureDetector, GridView_default as GridView, Icon_default as Icon, IconButton_default as IconButton, Icons, IgnorePointer_default as IgnorePointer, Image_default as Image, ImageColorBackground_default as ImageColorBackground, ImageFilter, ImageProvider, ImageUtils, InkWell_default as InkWell, InputDecoration, LayoutBuilder_default as LayoutBuilder, LinearGradient, LinearProgressIndicator_default as LinearProgressIndicator, ListTile_default as ListTile, ListView_default as ListView, MainAxisAlignment, Matrix4, MediaQuery_default as MediaQuery, MediaQueryKey, MemoryImage, Modal_default as Modal, NetworkImage, Opacity_default as Opacity, Orientation, OutlineInputBorder, OutlinedButton_default as OutlinedButton, Overlay_default as Overlay, Padding_default as Padding, PopupMenuButton_default as PopupMenuButton, Positioned_default as Positioned, RadialGradient, Radio_default as Radio, RadioGroup_default as RadioGroup, RadioListTile_default as RadioListTile, RangeSlider_default as RangeSlider, RatingBar_default as RatingBar, RefreshIndicator_default as RefreshIndicator, Row_default as Row, SafeArea_default as SafeArea, Scaffold_default as Scaffold, ScrollView_default as ScrollView, SegmentedControl_default as SegmentedControl, Size, SizedBox_default as SizedBox, Slider_default as Slider, SlidingSegmentedControl_default as SlidingSegmentedControl, SnackBar, Spacer_default as Spacer, Stack_default as Stack, StackFit, Sticky_default as Sticky, StyleProvider, Switch_default as Switch, TabBar_default as TabBar, TabBarView_default as TabBarView, Text_default as Text, TextAlign, TextArea_default as TextArea, TextBaseline, TextButton_default as TextButton, TextButtonWithIcon_default as TextButtonWithIcon, TextDecoration, TextDecorationStyle, TextDirection, TextField_default as TextField, TextOverflow, TextStyle, TextStylePreset, TileMode, Toast, Transform_default as Transform, UnderlineInputBorder, Wrap_default as Wrap, animationToStyle, borderRadiusToStyle, borderSideToStyle, borderToStyle, boxConstraintsToStyle, boxDecorationToStyle, boxShadowToCSS, buttonStyleToStyle, computeLuminance, createAssetImageProvider, createNetworkImageProvider, darken, decorationImageToStyle, defineKeyframes, edgeInsetsToStyle, extractDominantColor, isBorderRadius, isBorderSide, isBorders, isBoxConstraints, isBoxDecoration, isBoxShadow, isEdgeInsets, isImageFilter, isImageProvider, isTextStyle, keep, lighten, marginToStyle, matrix4ToCSSStyle, normalizeSrc, paddingToStyle, px2vw, registerKeyframes, resolveColor, setAssetBaseURL, setDefaultVW, setTransform, sizeToStyle, toCSSStyle as textStyleToCSSStyle, toCSSStyle, useMediaQuery, withAlpha, withBlue, withGreen, withOpacity, withRed };
|
|
6988
|
+
export { ActionChip_default as ActionChip, AlertDialog_default as AlertDialog, Align_default as Align, Alignment, AnimatedContainer_default as AnimatedContainer, AnimatedOpacity_default as AnimatedOpacity, Animation_default as AnimationWidget, Animator, AppBar_default as AppBar, AspectRatio_default as AspectRatio, AssetImage, BackdropFilter_default as BackdropFilter, BlurStyle, Border, BorderRadius, BorderSide, BottomNavigationBar_default as BottomNavigationBar, BottomSheet_default as BottomSheet, Box_default as Box, BoxAlignment, BoxConstraints, BoxDecoration, BoxFit, BoxShadow, BoxShape, Builder_default as Builder, Button_default as Button, ButtonStyle, ButtonStylePreset, Card_default as Card, Center_default as Center, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChoiceChip_default as ChoiceChip, CircleAvatar_default as CircleAvatar, CircularProgressIndicator_default as CircularProgressIndicator, Clip, ClipOval_default as ClipOval, ClipRRect_default as ClipRRect, Color, ColorUtils, Colors, Column_default as Column, ConstrainedBox_default as ConstrainedBox, Container_default as Container, CrossAxisAlignment, CupertinoActivityIndicator_default as CupertinoActivityIndicator, CupertinoColors, CupertinoContextMenu_default as CupertinoContextMenu, CupertinoNavigationBar_default as CupertinoNavigationBar, CupertinoPageScaffold_default as CupertinoPageScaffold, DecorationImage, Divider_default as Divider, Drawer_default as Drawer, EdgeInsets, ElevatedButton_default as ElevatedButton, Expanded_default as Expanded, Fixed_default as Fixed, FlexBox_default as FlexBox, FlexItem_default as FlexItem, FloatingLabelBehavior, FlueConfigProvider_default as FlueConfigProvider, FontStyle, FontWeight, GestureDetector_default as GestureDetector, GridView_default as GridView, Icon_default as Icon, IconButton_default as IconButton, Icons, IgnorePointer_default as IgnorePointer, Image_default as Image, ImageColorBackground_default as ImageColorBackground, ImageFilter, ImageProvider, ImageUtils, InkWell_default as InkWell, InputDecoration, LayoutBuilder_default as LayoutBuilder, LinearGradient, LinearProgressIndicator_default as LinearProgressIndicator, ListTile_default as ListTile, ListView_default as ListView, MainAxisAlignment, Matrix4, MediaQuery_default as MediaQuery, MediaQueryKey, MemoryImage, Modal_default as Modal, NetworkImage, Opacity_default as Opacity, Orientation, OutlineInputBorder, OutlinedButton_default as OutlinedButton, Overlay_default as Overlay, Padding_default as Padding, PopupMenuButton_default as PopupMenuButton, Positioned_default as Positioned, RadialGradient, Radio_default as Radio, RadioGroup_default as RadioGroup, RadioListTile_default as RadioListTile, RangeSlider_default as RangeSlider, RatingBar_default as RatingBar, RefreshIndicator_default as RefreshIndicator, Row_default as Row, SafeArea_default as SafeArea, Scaffold_default as Scaffold, ScrollView_default as ScrollView, SegmentedControl_default as SegmentedControl, Size, SizedBox_default as SizedBox, Slider_default as Slider, SlidingSegmentedControl_default as SlidingSegmentedControl, SnackBar, Spacer_default as Spacer, Stack_default as Stack, StackFit, Sticky_default as Sticky, StyleProvider, Switch_default as Switch, TabBar_default as TabBar, TabBarView_default as TabBarView, Text_default as Text, TextAlign, TextArea_default as TextArea, TextBaseline, TextButton_default as TextButton, TextButtonWithIcon_default as TextButtonWithIcon, TextDecoration, TextDecorationStyle, TextDirection, TextField_default as TextField, TextOverflow, TextStyle, TextStylePreset, TileMode, Toast, Transform_default as Transform, UnderlineInputBorder, Wrap_default as Wrap, animationToStyle, borderRadiusToStyle, borderSideToStyle, borderToStyle, boxConstraintsToStyle, boxDecorationToStyle, boxShadowToCSS, buttonStyleToStyle, computeLuminance, createAssetImageProvider, createNetworkImageProvider, darken, decorationImageToStyle, defineKeyframes, edgeInsetsToStyle, extractDominantColor, isBorderRadius, isBorderSide, isBorders, isBoxConstraints, isBoxDecoration, isBoxShadow, isEdgeInsets, isImageFilter, isImageProvider, isTextStyle, keep, lighten, marginToStyle, matrix4ToCSSStyle, normalizeSrc, paddingToStyle, px2vw, registerKeyframes, resolveColor, setAssetBaseURL, setDefaultVW, setTransform, showAlertDialog, sizeToStyle, toCSSStyle as textStyleToCSSStyle, toCSSStyle, useMediaQuery, withAlpha, withBlue, withGreen, withOpacity, withRed };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AlertDialogProps } from './AlertDialog';
|
|
2
|
+
export interface AlertDialogOptions extends Omit<AlertDialogProps, "visible"> {
|
|
3
|
+
onOk?: () => void;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const showAlertDialog: (options: AlertDialogOptions) => {
|
|
7
|
+
close: () => void;
|
|
8
|
+
};
|