sard 1.0.18 → 1.0.20

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.
Files changed (47) hide show
  1. package/all-components.js +2 -2
  2. package/components/check-icon/index.css +1 -1
  3. package/components/cool-icon/index.css +1 -1
  4. package/components/date-strip/index.css +1 -1
  5. package/components/dialog/index.css +1 -1
  6. package/components/flex/common.d.ts +19 -0
  7. package/components/flex/common.js +9 -0
  8. package/components/flex/flex.vue.d.ts +19 -0
  9. package/components/flex/flex.vue.js +69 -0
  10. package/components/flex/index.css +1 -0
  11. package/components/flex/index.d.ts +5 -0
  12. package/components/flex/index.js +7 -0
  13. package/components/floating-panel/index.css +1 -1
  14. package/components/grid/common.d.ts +1 -1
  15. package/components/grid/grid.vue.d.ts +1 -1
  16. package/components/grid/grid.vue.js +8 -3
  17. package/components/index.d.ts +1 -1
  18. package/components/index.js +3 -3
  19. package/components/keyboard/index.css +1 -1
  20. package/components/list/index.css +1 -1
  21. package/components/menu/index.css +1 -1
  22. package/components/pagination/index.css +1 -1
  23. package/components/segmented/index.css +1 -1
  24. package/components/share-sheet/index.css +1 -1
  25. package/components/skeleton/index.css +1 -1
  26. package/components/skeleton/skeleton-avatar.vue.js +7 -16
  27. package/components/skeleton/skeleton-paragraph.vue.js +7 -14
  28. package/components/skeleton/skeleton-title.vue.js +2 -14
  29. package/components/status-bar/index.css +1 -1
  30. package/components/status-bar/status-bar.vue.js +2 -12
  31. package/components/stepper/index.css +1 -1
  32. package/components/style/index.css +1 -1
  33. package/components/switch/index.css +1 -1
  34. package/components/upload/index.css +1 -1
  35. package/global.d.ts +1 -1
  36. package/index.css +1 -1
  37. package/index.js +3 -3
  38. package/locale/lang/fa-IR.d.ts +166 -0
  39. package/locale/lang/fa-IR.js +155 -0
  40. package/package.json +1 -1
  41. package/components/space/common.d.ts +0 -18
  42. package/components/space/common.js +0 -23
  43. package/components/space/index.css +0 -1
  44. package/components/space/index.d.ts +0 -5
  45. package/components/space/index.js +0 -7
  46. package/components/space/space.vue.d.ts +0 -17
  47. package/components/space/space.vue.js +0 -59
package/index.js CHANGED
@@ -114,6 +114,8 @@ import { Dropdown, DropdownItem } from "./components/dropdown/index.js";
114
114
  import { Ellipsis } from "./components/ellipsis/index.js";
115
115
  import { Empty } from "./components/empty/index.js";
116
116
  import { Fab, FabItem } from "./components/fab/index.js";
117
+ import { flexGap } from "./components/flex/common.js";
118
+ import { Flex } from "./components/flex/index.js";
117
119
  import { FloatingBubble } from "./components/floating-bubble/index.js";
118
120
  import { FloatingPanel } from "./components/floating-panel/index.js";
119
121
  import { CancelError, isCancelError } from "./components/form/Validator.js";
@@ -180,8 +182,6 @@ import { Signature } from "./components/signature/index.js";
180
182
  import { Skeleton, SkeletonAvatar, SkeletonBlock, SkeletonParagraph, SkeletonTitle } from "./components/skeleton/index.js";
181
183
  import { SlideVerify } from "./components/slide-verify/index.js";
182
184
  import { Slider } from "./components/slider/index.js";
183
- import { spaceSizes } from "./components/space/common.js";
184
- import { Space } from "./components/space/index.js";
185
185
  import { StatusBar } from "./components/status-bar/index.js";
186
186
  import { Stepper } from "./components/stepper/index.js";
187
187
  import { Step, Steps } from "./components/steps/index.js";
@@ -217,4 +217,4 @@ function prepareEnvironment() {
217
217
  });
218
218
  }
219
219
  //#endregion
220
- export { ADD_SWIPER_CONTEXT_KEY, ALPHANUMERIC_CHARS, Accordion, AccordionItem, ActionSheet, ActionSheetItem, Alert, Avatar, AvatarGroup, BackTop, Badge, Barcode, BarcodeFormatList, BarcodeTextPositionList, Button, Calendar, CalendarInput, CalendarPopout, CancelError, Card, Cascader, CascaderInput, CascaderPopout, Checkbox, CheckboxGroup, CheckboxInput, CheckboxPopout, Col, Collapse, ColorPicker, ColorPickerInput, ColorPickerPopout, Compact, CoolIcon, CountDown, CountTo, CropImage, DateStrip, DatetimePicker, DatetimePickerInput, DatetimePickerPopout, DatetimeRangePicker, DatetimeRangePickerInput, DatetimeRangePickerPopout, Descriptions, DescriptionsItem, Dialog, Divider, Dnd, DndHandle, DndItem, Dropdown, DropdownItem, ECLList, Ellipsis, Empty, Fab, FabItem, FloatingBubble, FloatingPanel, Form, FormItem, FormItemPlain, FormPlain, Friction, Grid, GridItem, Image, Indexes, IndexesAnchor, IndexesNav, Input, Keyboard, KeyboardPopout, List, ListItem, LoadMore, LoadMoreStatus, Loading, Marquee, Menu, MenuItem, Motion, Navbar, NavbarItem, NavbarPit, NoticeBar, Notify, OnlyChild, Overlay, Pagination, PasswordInput, Picker, PickerInput, PickerPopout, PickerView, PickerViewColumn, Popout, PopoutInput, Popover, Popup, PreviewImage, ProgressBar, ProgressCircle, PullDownRefresh, PuzzleVerify, Qrcode, REMOVE_SWIPER_CONTEXT_KEY, Radio, RadioGroup, RadioInput, RadioPopout, Rate, ReadMore, Result, RotateVerify, Row, SWIPER_AUTO_HEIGHT_KEY, ScrollList, ScrollSpy, ScrollSpyAnchor, Search, Segmented, SegmentedItem, Select, SelectInput, SelectOption, SelectOptionGroup, SelectPopout, ShareSheet, ShareSheetIcon, ShareSheetItem, ShareSheetRow, Sidebar, SidebarItem, Signature, Skeleton, SkeletonAvatar, SkeletonBlock, SkeletonParagraph, SkeletonTitle, SlideVerify, Slider, Space, Spring, StatusBar, Step, Stepper, Steps, Sticky, StickyBox, SwipeAction, Swiper, SwiperItem, Switch, Tab, Tabbar, TabbarItem, TabbarPit, Table, Tabs, Tag, Text, Timeline, TimelineItem, Toast, Tree, TreeBranch, TreeNode, Upload, UploadPreview, Waterfall, WaterfallItem, WaterfallLoad, Watermark, actionSheet, addSeparator, addUnit, arrayEqual, arrayMove, autoUpdate, barcode, baseLunarYear, calculateBarcodeLayout, camelCase, capitalize, chainGet, chainSet, checkRtl, chooseFile, clamp, clipboard, computePosition, createActionSheet, createBem, createBemStruct, createCropImage, createDialog, createInertialAnimate, createNotify, createPreviewImage, createToast, cropImage, cssVar, cssVarName, currentLocale, debounce, deepClone, defaultBemConfig, defaultColorPickerPresets, defaultColorPickerValue, defaultOptionKeys, defineSetupFnComponent, dialog, earthlyBranches, enhanceComponent, extend, flatVNode, formatColor, formatDate, formatNumber, formatTime, getAllImperatives, getAspectFillSize, getAspectFitSize, getAvailableImperative, getCurrentTime, getDampingValue, getDayOfYear, getDaysAfterLastDay, getDaysBeforeFirstDay, getDaysInMonth, getDaysSinceUnixEpoch, getDecimalsLength, getFileName, getFirstDayWeekday, getGridCenterSize, getGridIndex, getGridPrizeCount, getImperatives, getInBoundValue, getLeafNodes, getLunarDayName, getLunarHourName, getLunarLeapMonth, getLunarLeapMonthDays, getLunarMonthDays, getLunarMonthName, getLunarYearDays, getLunarYearName, getNextMonthDate, getNextMonthHeadDays, getNodeLevel, getOverflowRangeInArea, getPageRange, getPrevMonthDate, getPrevMonthTailDays, getPreviewColor, getRectDampingValue, getRotatedRect, getScrollIntoViewValue, getScrollTop, getTouchPoint, getTransformOrigin, getTreeCheckedKeys, getTreeHalfCheckedKeys, getTwoPointsDistance, heavenlyStems, hslToHsv, hslToHwb, hslToRgb, hsvToHsl, hwbToHsl, imageDataToDataURL, inRange, initializeCheckNodes, installer, isBoolean, isCancelError, isColorScheme, isConfigObject, isDate, isEmptyArray, isEmptyBinding, isEmptyValue, isFileUrl, isFunction, isImageFile, isImageUrl, isKorean, isLeapYear, isNoEmptyArray, isNullish, isNumber, isObject, isPlainObject, isPrimitive, isRectEqual, isRenderVisible, isSizeEqual, isString, isUndefined, isVideoFile, isVideoUrl, isVisibleEmpty, kebabCase, loadImage, localeContextKey, logError, looseToNumber, lowerFirst, lunarDayNames, lunarInfo, lunarMonthNames, lunarToSolar, lunarYearNames, mapTreeToGrid, matchScrollVisible, measureTextWidth, minmaxDate, mround, nestedToMulti, noop, normalizeBarcodeOptions, normalizeHsla, normalizeHsva, notify, omit, omitFormPopoutProps, parseColor, parseDate, partition, partitionPopoutInputProps, pascalCase, pick, plateEnglishLetterKeys, plateProvinceKeys, plateSuffixKeys, popupManager, prepareEnvironment, previewImage, provideColorScheme, provideLocale, qrcode, random, reactiveComputed, readFileContent, rgbToHsl, round, safeAreaInsets, scrollToTarget, setCheckedRecursively, setLocale, shuffle, sleep, snakeCase, solarToLunar, spaceSizes, splitUnit, spreadEach, springFestivals, throttle, toArray, toDate, toDateNumber, toDateString, toMonthNumber, toReactive, toTouchEvent, toast, treeToMap, uniqid, updateAncestorsChecked, upperFirst, useClickOutside, useColorScheme, useComposition, useCountDown, useDragPinch, useElementBackTop, useElementScroll, useFormContext, useFormItem, useFormItemContext, useFormPopout, useImperative, useInPopup, useIndeterminate, useInitialVelocity, useIntersectionObserver, useKeyList, useLocale, useLockScroll, useLuckyDraw, useLuckyGrid, useLuckyWheel, useMotioning, useOptionKeys, usePageBackTop, usePageScroll, usePointerDown, usePopoutInput, usePopper, usePopupEnter, usePopupVisibleHookProvide, useReachBottom, useResizeObserver, useRtl, useScrollSide, useScrollSpy, useScroller, useSimulatedClick, useSimulatedDblClick, useSimulatedPress, useSingleTask, useSlotMachine, useStopMovedClick, useTimeout, useTimeoutLoading, useTranslate, useTranslateWithPrefix, useWindowResize, useZIndex, walkAncestor, walkDescendant, walkNodes, windowInfo, withResolvers };
220
+ export { ADD_SWIPER_CONTEXT_KEY, ALPHANUMERIC_CHARS, Accordion, AccordionItem, ActionSheet, ActionSheetItem, Alert, Avatar, AvatarGroup, BackTop, Badge, Barcode, BarcodeFormatList, BarcodeTextPositionList, Button, Calendar, CalendarInput, CalendarPopout, CancelError, Card, Cascader, CascaderInput, CascaderPopout, Checkbox, CheckboxGroup, CheckboxInput, CheckboxPopout, Col, Collapse, ColorPicker, ColorPickerInput, ColorPickerPopout, Compact, CoolIcon, CountDown, CountTo, CropImage, DateStrip, DatetimePicker, DatetimePickerInput, DatetimePickerPopout, DatetimeRangePicker, DatetimeRangePickerInput, DatetimeRangePickerPopout, Descriptions, DescriptionsItem, Dialog, Divider, Dnd, DndHandle, DndItem, Dropdown, DropdownItem, ECLList, Ellipsis, Empty, Fab, FabItem, Flex, FloatingBubble, FloatingPanel, Form, FormItem, FormItemPlain, FormPlain, Friction, Grid, GridItem, Image, Indexes, IndexesAnchor, IndexesNav, Input, Keyboard, KeyboardPopout, List, ListItem, LoadMore, LoadMoreStatus, Loading, Marquee, Menu, MenuItem, Motion, Navbar, NavbarItem, NavbarPit, NoticeBar, Notify, OnlyChild, Overlay, Pagination, PasswordInput, Picker, PickerInput, PickerPopout, PickerView, PickerViewColumn, Popout, PopoutInput, Popover, Popup, PreviewImage, ProgressBar, ProgressCircle, PullDownRefresh, PuzzleVerify, Qrcode, REMOVE_SWIPER_CONTEXT_KEY, Radio, RadioGroup, RadioInput, RadioPopout, Rate, ReadMore, Result, RotateVerify, Row, SWIPER_AUTO_HEIGHT_KEY, ScrollList, ScrollSpy, ScrollSpyAnchor, Search, Segmented, SegmentedItem, Select, SelectInput, SelectOption, SelectOptionGroup, SelectPopout, ShareSheet, ShareSheetIcon, ShareSheetItem, ShareSheetRow, Sidebar, SidebarItem, Signature, Skeleton, SkeletonAvatar, SkeletonBlock, SkeletonParagraph, SkeletonTitle, SlideVerify, Slider, Spring, StatusBar, Step, Stepper, Steps, Sticky, StickyBox, SwipeAction, Swiper, SwiperItem, Switch, Tab, Tabbar, TabbarItem, TabbarPit, Table, Tabs, Tag, Text, Timeline, TimelineItem, Toast, Tree, TreeBranch, TreeNode, Upload, UploadPreview, Waterfall, WaterfallItem, WaterfallLoad, Watermark, actionSheet, addSeparator, addUnit, arrayEqual, arrayMove, autoUpdate, barcode, baseLunarYear, calculateBarcodeLayout, camelCase, capitalize, chainGet, chainSet, checkRtl, chooseFile, clamp, clipboard, computePosition, createActionSheet, createBem, createBemStruct, createCropImage, createDialog, createInertialAnimate, createNotify, createPreviewImage, createToast, cropImage, cssVar, cssVarName, currentLocale, debounce, deepClone, defaultBemConfig, defaultColorPickerPresets, defaultColorPickerValue, defaultOptionKeys, defineSetupFnComponent, dialog, earthlyBranches, enhanceComponent, extend, flatVNode, flexGap, formatColor, formatDate, formatNumber, formatTime, getAllImperatives, getAspectFillSize, getAspectFitSize, getAvailableImperative, getCurrentTime, getDampingValue, getDayOfYear, getDaysAfterLastDay, getDaysBeforeFirstDay, getDaysInMonth, getDaysSinceUnixEpoch, getDecimalsLength, getFileName, getFirstDayWeekday, getGridCenterSize, getGridIndex, getGridPrizeCount, getImperatives, getInBoundValue, getLeafNodes, getLunarDayName, getLunarHourName, getLunarLeapMonth, getLunarLeapMonthDays, getLunarMonthDays, getLunarMonthName, getLunarYearDays, getLunarYearName, getNextMonthDate, getNextMonthHeadDays, getNodeLevel, getOverflowRangeInArea, getPageRange, getPrevMonthDate, getPrevMonthTailDays, getPreviewColor, getRectDampingValue, getRotatedRect, getScrollIntoViewValue, getScrollTop, getTouchPoint, getTransformOrigin, getTreeCheckedKeys, getTreeHalfCheckedKeys, getTwoPointsDistance, heavenlyStems, hslToHsv, hslToHwb, hslToRgb, hsvToHsl, hwbToHsl, imageDataToDataURL, inRange, initializeCheckNodes, installer, isBoolean, isCancelError, isColorScheme, isConfigObject, isDate, isEmptyArray, isEmptyBinding, isEmptyValue, isFileUrl, isFunction, isImageFile, isImageUrl, isKorean, isLeapYear, isNoEmptyArray, isNullish, isNumber, isObject, isPlainObject, isPrimitive, isRectEqual, isRenderVisible, isSizeEqual, isString, isUndefined, isVideoFile, isVideoUrl, isVisibleEmpty, kebabCase, loadImage, localeContextKey, logError, looseToNumber, lowerFirst, lunarDayNames, lunarInfo, lunarMonthNames, lunarToSolar, lunarYearNames, mapTreeToGrid, matchScrollVisible, measureTextWidth, minmaxDate, mround, nestedToMulti, noop, normalizeBarcodeOptions, normalizeHsla, normalizeHsva, notify, omit, omitFormPopoutProps, parseColor, parseDate, partition, partitionPopoutInputProps, pascalCase, pick, plateEnglishLetterKeys, plateProvinceKeys, plateSuffixKeys, popupManager, prepareEnvironment, previewImage, provideColorScheme, provideLocale, qrcode, random, reactiveComputed, readFileContent, rgbToHsl, round, safeAreaInsets, scrollToTarget, setCheckedRecursively, setLocale, shuffle, sleep, snakeCase, solarToLunar, splitUnit, spreadEach, springFestivals, throttle, toArray, toDate, toDateNumber, toDateString, toMonthNumber, toReactive, toTouchEvent, toast, treeToMap, uniqid, updateAncestorsChecked, upperFirst, useClickOutside, useColorScheme, useComposition, useCountDown, useDragPinch, useElementBackTop, useElementScroll, useFormContext, useFormItem, useFormItemContext, useFormPopout, useImperative, useInPopup, useIndeterminate, useInitialVelocity, useIntersectionObserver, useKeyList, useLocale, useLockScroll, useLuckyDraw, useLuckyGrid, useLuckyWheel, useMotioning, useOptionKeys, usePageBackTop, usePageScroll, usePointerDown, usePopoutInput, usePopper, usePopupEnter, usePopupVisibleHookProvide, useReachBottom, useResizeObserver, useRtl, useScrollSide, useScrollSpy, useScroller, useSimulatedClick, useSimulatedDblClick, useSimulatedPress, useSingleTask, useSlotMachine, useStopMovedClick, useTimeout, useTimeoutLoading, useTranslate, useTranslateWithPrefix, useWindowResize, useZIndex, walkAncestor, walkDescendant, walkNodes, windowInfo, withResolvers };
@@ -0,0 +1,166 @@
1
+ declare const _default: {
2
+ _sard: {
3
+ actionSheet: {
4
+ cancel: string;
5
+ };
6
+ calendar: {
7
+ weeks: {
8
+ 0: string;
9
+ 1: string;
10
+ 2: string;
11
+ 3: string;
12
+ 4: string;
13
+ 5: string;
14
+ 6: string;
15
+ };
16
+ abbrWeeks: {
17
+ 0: string;
18
+ 1: string;
19
+ 2: string;
20
+ 3: string;
21
+ 4: string;
22
+ 5: string;
23
+ 6: string;
24
+ };
25
+ fullWeeks: {
26
+ 0: string;
27
+ 1: string;
28
+ 2: string;
29
+ 3: string;
30
+ 4: string;
31
+ 5: string;
32
+ 6: string;
33
+ };
34
+ monthTitle: string;
35
+ start: string;
36
+ end: string;
37
+ to: string;
38
+ multipleOutlet: string;
39
+ };
40
+ cascader: {
41
+ pleaseSelect: string;
42
+ error: string;
43
+ noData: string;
44
+ };
45
+ cropImage: {
46
+ confirm: string;
47
+ cancel: string;
48
+ };
49
+ datetimePicker: {
50
+ y: string;
51
+ M: string;
52
+ d: string;
53
+ h: string;
54
+ m: string;
55
+ s: string;
56
+ };
57
+ datetimeRangePickerInput: {
58
+ to: string;
59
+ };
60
+ dialog: {
61
+ confirm: string;
62
+ cancel: string;
63
+ };
64
+ empty: {
65
+ noData: string;
66
+ };
67
+ form: {
68
+ defaultValidateMessages: {
69
+ default: string;
70
+ required: string;
71
+ enum: string;
72
+ whitespace: string;
73
+ date: {
74
+ format: string;
75
+ parse: string;
76
+ invalid: string;
77
+ };
78
+ types: {
79
+ string: string;
80
+ function: string;
81
+ array: string;
82
+ object: string;
83
+ number: string;
84
+ date: string;
85
+ boolean: string;
86
+ integer: string;
87
+ float: string;
88
+ regexp: string;
89
+ email: string;
90
+ url: string;
91
+ hex: string;
92
+ };
93
+ string: {
94
+ len: string;
95
+ min: string;
96
+ max: string;
97
+ range: string;
98
+ };
99
+ number: {
100
+ len: string;
101
+ min: string;
102
+ max: string;
103
+ range: string;
104
+ };
105
+ array: {
106
+ len: string;
107
+ min: string;
108
+ max: string;
109
+ range: string;
110
+ };
111
+ pattern: {
112
+ mismatch: string;
113
+ };
114
+ };
115
+ };
116
+ loadMore: {
117
+ incompleteText: string;
118
+ loadingText: string;
119
+ completeText: string;
120
+ errorText: string;
121
+ };
122
+ pagination: {
123
+ previous: string;
124
+ next: string;
125
+ };
126
+ popout: {
127
+ confirm: string;
128
+ cancel: string;
129
+ };
130
+ pullDownRefresh: {
131
+ unready: string;
132
+ ready: string;
133
+ loading: string;
134
+ doneSuccess: string;
135
+ doneFail: string;
136
+ };
137
+ readMore: {
138
+ fold: string;
139
+ unfold: string;
140
+ };
141
+ select: {
142
+ selected: string;
143
+ selectAll: string;
144
+ clearSelect: string;
145
+ };
146
+ shareSheet: {
147
+ cancel: string;
148
+ };
149
+ signature: {
150
+ confirm: string;
151
+ clear: string;
152
+ cancel: string;
153
+ };
154
+ tree: {
155
+ addSibling: string;
156
+ addChild: string;
157
+ addRoot: string;
158
+ removeNode: string;
159
+ edit: string;
160
+ please: string;
161
+ error: string;
162
+ noData: string;
163
+ };
164
+ };
165
+ };
166
+ export default _default;
@@ -0,0 +1,155 @@
1
+ //#region packages/sard/locale/lang/fa-IR.ts
2
+ const formTypeTemplate = "{label} یک {type} معتبر نیست";
3
+ var fa_IR_default = { _sard: {
4
+ actionSheet: { cancel: "انصراف" },
5
+ calendar: {
6
+ weeks: {
7
+ 0: "یک‌شنبه",
8
+ 1: "دوشنبه",
9
+ 2: "سه‌شنبه",
10
+ 3: "چهارشنبه",
11
+ 4: "پنجشنبه",
12
+ 5: "جمعه",
13
+ 6: "شنبه"
14
+ },
15
+ abbrWeeks: {
16
+ 0: "یک",
17
+ 1: "دو",
18
+ 2: "سه",
19
+ 3: "چهار",
20
+ 4: "پنج",
21
+ 5: "جمعه",
22
+ 6: "شنبه"
23
+ },
24
+ fullWeeks: {
25
+ 0: "یک‌شنبه",
26
+ 1: "دوشنبه",
27
+ 2: "سه‌شنبه",
28
+ 3: "چهارشنبه",
29
+ 4: "پنجشنبه",
30
+ 5: "جمعه",
31
+ 6: "شنبه"
32
+ },
33
+ monthTitle: "{year}/{month}",
34
+ start: "شروع",
35
+ end: "پایان",
36
+ to: "تا",
37
+ multipleOutlet: "{count} تاریخ انتخاب شده"
38
+ },
39
+ cascader: {
40
+ pleaseSelect: "لطفاً انتخاب کنید",
41
+ error: "درخواست ناموفق بود، برای بارگذاری مجدد کلیک کنید",
42
+ noData: "داده‌ای وجود ندارد"
43
+ },
44
+ cropImage: {
45
+ confirm: "تأیید",
46
+ cancel: "انصراف"
47
+ },
48
+ datetimePicker: {
49
+ y: "",
50
+ M: "",
51
+ d: "",
52
+ h: "",
53
+ m: "",
54
+ s: ""
55
+ },
56
+ datetimeRangePickerInput: { to: "تا" },
57
+ dialog: {
58
+ confirm: "تأیید",
59
+ cancel: "انصراف"
60
+ },
61
+ empty: { noData: "داده‌ای وجود ندارد" },
62
+ form: { defaultValidateMessages: {
63
+ default: "خطای اعتبارسنجی فیلد {label}",
64
+ required: "{label} الزامی است",
65
+ enum: "{label} باید یکی از [{enum}] باشد",
66
+ whitespace: "{label} نمی‌تواند خالی باشد",
67
+ date: {
68
+ format: "فرمت تاریخ {label} نامعتبر است",
69
+ parse: "{label} نمی‌تواند به تاریخ تبدیل شود",
70
+ invalid: "{label} تاریخ نامعتبر است"
71
+ },
72
+ types: {
73
+ string: formTypeTemplate,
74
+ function: formTypeTemplate,
75
+ array: formTypeTemplate,
76
+ object: formTypeTemplate,
77
+ number: formTypeTemplate,
78
+ date: formTypeTemplate,
79
+ boolean: formTypeTemplate,
80
+ integer: formTypeTemplate,
81
+ float: formTypeTemplate,
82
+ regexp: formTypeTemplate,
83
+ email: formTypeTemplate,
84
+ url: formTypeTemplate,
85
+ hex: formTypeTemplate
86
+ },
87
+ string: {
88
+ len: "{label} باید {len} کاراکتر باشد",
89
+ min: "{label} باید حداقل {min} کاراکتر باشد",
90
+ max: "{label} باید حداکثر {max} کاراکتر باشد",
91
+ range: "{label} باید بین {min}-{max} کاراکتر باشد"
92
+ },
93
+ number: {
94
+ len: "{label} باید برابر {len} باشد",
95
+ min: "{label} باید حداقل {min} باشد",
96
+ max: "{label} باید حداکثر {max} باشد",
97
+ range: "{label} باید بین {min}-{max} باشد"
98
+ },
99
+ array: {
100
+ len: "باید {len} {label} باشد",
101
+ min: "حداقل {min} {label}",
102
+ max: "حداکثر {max} {label}",
103
+ range: "تعداد {label} باید بین {min}-{max} باشد"
104
+ },
105
+ pattern: { mismatch: "{label} با الگوی {pattern} مطابقت ندارد" }
106
+ } },
107
+ loadMore: {
108
+ incompleteText: "برای نمایش موارد بیشتر کلیک کنید",
109
+ loadingText: "در حال بارگذاری...",
110
+ completeText: "مورد دیگری وجود ندارد",
111
+ errorText: "درخواست ناموفق بود، برای بارگذاری مجدد کلیک کنید"
112
+ },
113
+ pagination: {
114
+ previous: "قبلی",
115
+ next: "بعدی"
116
+ },
117
+ popout: {
118
+ confirm: "تأیید",
119
+ cancel: "انصراف"
120
+ },
121
+ pullDownRefresh: {
122
+ unready: "برای تازه‌سازی به پایین بکشید",
123
+ ready: "برای تازه‌سازی رها کنید",
124
+ loading: "در حال بارگذاری...",
125
+ doneSuccess: "تازه‌سازی با موفقیت انجام شد",
126
+ doneFail: "تازه‌سازی ناموفق بود"
127
+ },
128
+ readMore: {
129
+ fold: "جمع‌کردن",
130
+ unfold: "بازکردن"
131
+ },
132
+ select: {
133
+ selected: "{num} مورد انتخاب شده",
134
+ selectAll: "انتخاب همه",
135
+ clearSelect: "پاک‌کردن انتخاب"
136
+ },
137
+ shareSheet: { cancel: "انصراف" },
138
+ signature: {
139
+ confirm: "تأیید",
140
+ clear: "پاک‌کردن",
141
+ cancel: "انصراف"
142
+ },
143
+ tree: {
144
+ addSibling: "افزودن گره هم‌سطح",
145
+ addChild: "افزودن گره فرزند",
146
+ addRoot: "افزودن گره ریشه",
147
+ removeNode: "حذف گره",
148
+ edit: "ویرایش گره",
149
+ please: "لطفاً عنوان را وارد کنید",
150
+ error: "درخواست ناموفق بود، برای بارگذاری مجدد کلیک کنید",
151
+ noData: "داده‌ای وجود ندارد"
152
+ }
153
+ } };
154
+ //#endregion
155
+ export { fa_IR_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sard",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "sard 是基于 Vue3 的 Web 移动端 UI 组件库",
5
5
  "keywords": [
6
6
  "UI",
@@ -1,18 +0,0 @@
1
- import { type DefaultProps } from '../config';
2
- export type SpaceSize = 'small' | 'medium' | 'large';
3
- export type SpaceAlign = 'start' | 'end' | 'center' | 'baseline';
4
- export type SpaceJustify = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
5
- export interface SpaceProps {
6
- direction?: 'vertical' | 'horizontal';
7
- size?: SpaceSize | (string & {});
8
- align?: SpaceAlign | (string & {});
9
- justify?: SpaceJustify | (string & {});
10
- wrap?: boolean;
11
- }
12
- export declare const spaceSizes: string[];
13
- export declare const spaceMapAlign: Record<string, string>;
14
- export declare const spaceMapJustify: Record<string, string>;
15
- export declare const defaultSpaceProps: DefaultProps<SpaceProps>;
16
- export interface SpaceSlots {
17
- default?(props: Record<string, never>): any;
18
- }
@@ -1,23 +0,0 @@
1
- //#region packages/sard/components/space/common.ts
2
- const spaceSizes = [
3
- "small",
4
- "medium",
5
- "large"
6
- ];
7
- const spaceMapAlign = {
8
- start: "flex-start",
9
- end: "flex-end"
10
- };
11
- const spaceMapJustify = {
12
- start: "flex-start",
13
- end: "flex-end",
14
- between: "space-between",
15
- around: "space-around",
16
- evenly: "space-evenly"
17
- };
18
- const defaultSpaceProps = {
19
- direction: "horizontal",
20
- size: "medium"
21
- };
22
- //#endregion
23
- export { defaultSpaceProps, spaceMapAlign, spaceMapJustify, spaceSizes };
@@ -1 +0,0 @@
1
- :root{--s-space-gap-sm:var(--s-size-xs);--s-space-gap:var(--s-size-sm);--s-space-gap-lg:var(--s-size)}.s-space{display:flex}.s-space--vertical{flex-direction:column}.s-space--horizontal{flex-direction:row}.s-space--small{gap:var(--s-space-gap-sm)}.s-space--medium{gap:var(--s-space-gap)}.s-space--large{gap:var(--s-space-gap-lg)}.s-space--wrap{flex-wrap:wrap}
@@ -1,5 +0,0 @@
1
- import { type EnhancedComponent } from '../../utils';
2
- import _Space from './space.vue';
3
- export declare const Space: EnhancedComponent<typeof _Space>;
4
- export default Space;
5
- export { type SpaceProps, type SpaceSlots, type SpaceSize, spaceSizes } from './common';
@@ -1,7 +0,0 @@
1
- import { enhanceComponent } from "../../utils/component.js";
2
- import { spaceSizes } from "./common.js";
3
- import space_default from "./space.vue.js";
4
- //#region packages/sard/components/space/index.ts
5
- const Space = enhanceComponent(space_default);
6
- //#endregion
7
- export { Space, Space as default, spaceSizes };
@@ -1,17 +0,0 @@
1
- import { type SpaceProps, type SpaceSlots } from './common';
2
- type __VLS_Slots = SpaceSlots;
3
- declare const __VLS_base: import("vue").DefineComponent<SpaceProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SpaceProps> & Readonly<{}>, {
4
- size: import("./common").SpaceSize | (string & {});
5
- direction: "vertical" | "horizontal";
6
- wrap: boolean;
7
- justify: import("./common").SpaceJustify | (string & {});
8
- align: import("./common").SpaceAlign | (string & {});
9
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
13
- type __VLS_WithSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
16
- };
17
- };
@@ -1,59 +0,0 @@
1
- import { createBem } from "../../utils/bem.js";
2
- import { defaultSpaceProps, spaceMapAlign, spaceMapJustify, spaceSizes } from "./common.js";
3
- import { computed, createElementBlock, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderSlot } from "vue";
4
- //#region packages/sard/components/space/space.vue
5
- var space_default = /*@__PURE__*/ defineComponent({
6
- __name: "space",
7
- props: /*@__PURE__*/ mergeDefaults({
8
- direction: {
9
- type: String,
10
- required: false
11
- },
12
- size: {
13
- type: [String, Object],
14
- required: false
15
- },
16
- align: {
17
- type: [String, Object],
18
- required: false
19
- },
20
- justify: {
21
- type: [String, Object],
22
- required: false
23
- },
24
- wrap: {
25
- type: Boolean,
26
- required: false
27
- }
28
- }, defaultSpaceProps),
29
- setup(__props) {
30
- const props = __props;
31
- const bem = createBem("space");
32
- const presetSize = computed(() => {
33
- return spaceSizes.includes(props.size);
34
- });
35
- const spaceClass = computed(() => {
36
- return [
37
- bem.b(),
38
- bem.m(props.direction),
39
- bem.m(props.size, presetSize.value),
40
- bem.m("wrap", props.wrap)
41
- ];
42
- });
43
- const spaceStyle = computed(() => {
44
- return {
45
- gap: presetSize.value ? "" : props.size,
46
- alignItems: (props.align && spaceMapAlign[props.align]) ?? props.align,
47
- justifyContent: (props.justify && spaceMapJustify[props.justify]) ?? props.justify
48
- };
49
- });
50
- return (_ctx, _cache) => {
51
- return openBlock(), createElementBlock("div", {
52
- class: normalizeClass(spaceClass.value),
53
- style: normalizeStyle(spaceStyle.value)
54
- }, [renderSlot(_ctx.$slots, "default")], 6);
55
- };
56
- }
57
- });
58
- //#endregion
59
- export { space_default as default };