@sarafapp/ant-design 1.0.4 → 1.0.6
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/_virtual/extends.es.js +4 -0
- package/dist/_virtual/fa_IR.es.js +4 -0
- package/dist/_virtual/fa_IR.es2.js +4 -0
- package/dist/_virtual/fa_IR.es3.js +4 -0
- package/dist/_virtual/fa_IR.es4.js +4 -0
- package/dist/_virtual/fa_IR.es5.js +4 -0
- package/dist/_virtual/fa_IR.es6.js +4 -0
- package/dist/_virtual/interopRequireDefault.es.js +4 -0
- package/dist/datePicker/SarafDatePicker.vue.es.js +3 -3
- package/dist/datePicker/SarafDatePicker.vue.es2.js +24 -24
- package/dist/datePicker/SarafRangePicker.vue.es.js +4 -4
- package/dist/index.d.ts +25 -4
- package/dist/index.es.js +84 -82
- package/dist/index.js +4 -4
- package/dist/localProvider/ApplicationLocalProvider.vue.es.js +28 -0
- package/dist/localProvider/ApplicationLocalProvider.vue.es2.js +4 -0
- package/dist/node_modules/@babel/runtime/helpers/extends.es.js +19 -0
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.es.js +13 -0
- package/dist/node_modules/ant-design-vue/lib/calendar/locale/fa_IR.es.js +17 -0
- package/dist/node_modules/ant-design-vue/lib/date-picker/locale/fa_IR.es.js +33 -0
- package/dist/node_modules/ant-design-vue/lib/locale/fa_IR.es.js +136 -0
- package/dist/node_modules/ant-design-vue/lib/time-picker/locale/fa_IR.es.js +16 -0
- package/dist/node_modules/ant-design-vue/lib/vc-pagination/locale/fa_IR.es.js +23 -0
- package/dist/node_modules/ant-design-vue/lib/vc-picker/locale/fa_IR.es.js +40 -0
- package/dist/node_modules/ant-design-vue/locale/fa_IR.es.js +8 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./SarafDatePicker.vue.es2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const c = /* @__PURE__ */
|
|
3
|
+
import o from "../_virtual/_plugin-vue_export-helper.es.js";
|
|
4
|
+
const c = /* @__PURE__ */ o(a, [["__scopeId", "data-v-478d0cae"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { defineComponent as C, mergeModels as g, useModel as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import I from "../
|
|
1
|
+
import { defineComponent as C, mergeModels as g, useModel as k, computed as a, resolveComponent as x, resolveDirective as S, withDirectives as V, createElementBlock as w, openBlock as z, normalizeClass as M, createVNode as d, unref as y } from "vue";
|
|
2
|
+
import B from "../node_modules/dayjs/dayjs.min.es.js";
|
|
3
|
+
import { setupJalaliDate as F, DateFormats as o, DateDisabledOptions as O, DateTools as T } from "@sarafapp/iron_core";
|
|
4
|
+
import { ComponentSize as I } from "../Constants.es.js";
|
|
5
5
|
import { InputStatus as u } from "../baseForm/model/Constants.es.js";
|
|
6
|
-
import
|
|
6
|
+
import N from "../baseForm/SarafFiledInvalidMessage.vue.es.js";
|
|
7
7
|
const q = /* @__PURE__ */ C({
|
|
8
8
|
__name: "SarafDatePicker",
|
|
9
9
|
props: /* @__PURE__ */ g({
|
|
10
10
|
inputControl: {},
|
|
11
11
|
placeholder: { default: "تاریخ مورد نظر را انتخاب کنید" },
|
|
12
|
-
isClearable: { type: Boolean, default: !0 },
|
|
13
12
|
disabled: { type: Boolean, default: !1 },
|
|
14
|
-
|
|
13
|
+
isClearable: { type: Boolean, default: !0 },
|
|
14
|
+
size: { default: I.Large },
|
|
15
15
|
hasTime: { type: Boolean, default: !1 },
|
|
16
|
+
maxDate: { default: null },
|
|
17
|
+
minDate: { default: null },
|
|
16
18
|
disabledDates: { default() {
|
|
17
19
|
return [];
|
|
18
|
-
} }
|
|
19
|
-
maxDate: { default: null },
|
|
20
|
-
minDate: { default: null }
|
|
20
|
+
} }
|
|
21
21
|
}, {
|
|
22
22
|
modelValue: {},
|
|
23
23
|
modelModifiers: {}
|
|
24
24
|
}),
|
|
25
25
|
emits: ["update:modelValue"],
|
|
26
26
|
setup(s) {
|
|
27
|
-
|
|
28
|
-
const e = s, l =
|
|
27
|
+
F();
|
|
28
|
+
const e = s, l = k(s, "modelValue"), i = a(() => e.inputControl.getNotValidMessage()), m = a(() => !i.value), c = a(() => l.value ? B.unix(l.value) : null), f = a(() => m.value ? u.Default : u.Error), p = a(() => ({
|
|
29
29
|
disabled: e.disabled
|
|
30
|
-
})),
|
|
30
|
+
})), v = a(() => e.hasTime ? o.ContainsHour : o.Normal), b = a(() => e.hasTime ? {
|
|
31
31
|
format: o.OnlyHour
|
|
32
|
-
} : !1)
|
|
32
|
+
} : !1);
|
|
33
33
|
function D(t) {
|
|
34
|
-
const r = new
|
|
34
|
+
const r = new O(
|
|
35
35
|
e.maxDate,
|
|
36
36
|
e.minDate,
|
|
37
37
|
e.disabledDates
|
|
38
38
|
);
|
|
39
|
-
return
|
|
39
|
+
return T.isDateDisabled(r, t);
|
|
40
40
|
}
|
|
41
41
|
function n(t) {
|
|
42
|
-
t ? l.value =
|
|
42
|
+
t ? l.value = t.unix() : l.value = null;
|
|
43
43
|
}
|
|
44
44
|
return (t, r) => {
|
|
45
|
-
const h =
|
|
46
|
-
return
|
|
45
|
+
const h = x("a-date-picker"), _ = S("touch-sensitive-control");
|
|
46
|
+
return V((z(), w("div", {
|
|
47
47
|
tabindex: "1",
|
|
48
48
|
class: M(["input__container", p.value])
|
|
49
49
|
}, [
|
|
50
50
|
d(h, {
|
|
51
|
-
value:
|
|
51
|
+
value: c.value,
|
|
52
52
|
size: e.size,
|
|
53
53
|
"allow-clear": e.isClearable,
|
|
54
54
|
placeholder: e.placeholder,
|
|
55
|
-
status:
|
|
55
|
+
status: f.value,
|
|
56
56
|
disabled: e.disabled,
|
|
57
57
|
"disabled-date": D,
|
|
58
|
-
"show-time":
|
|
59
|
-
format:
|
|
58
|
+
"show-time": b.value,
|
|
59
|
+
format: v.value,
|
|
60
60
|
onChange: n,
|
|
61
61
|
onOk: n
|
|
62
62
|
}, null, 8, ["value", "size", "allow-clear", "placeholder", "status", "disabled", "show-time", "format"]),
|
|
63
|
-
d(y(
|
|
63
|
+
d(y(N), {
|
|
64
64
|
"invalid-message": i.value,
|
|
65
65
|
disabled: e.disabled
|
|
66
66
|
}, null, 8, ["invalid-message", "disabled"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./SarafRangePicker.vue.es2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../_virtual/_plugin-vue_export-helper.es.js";
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c6598091"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ color: ButtonColor;
|
|
|
43
43
|
isLoading: boolean;
|
|
44
44
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
45
45
|
|
|
46
|
+
declare const __VLS_component_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
|
|
46
48
|
declare type __VLS_PrettifyLocal<T> = {
|
|
47
49
|
[K in keyof T]: T[K];
|
|
48
50
|
} & {};
|
|
@@ -106,13 +108,13 @@ declare type __VLS_Props_16 = {
|
|
|
106
108
|
declare type __VLS_Props_17 = {
|
|
107
109
|
inputControl: InputControl<Nullable_2<number>>;
|
|
108
110
|
placeholder?: string;
|
|
109
|
-
isClearable?: boolean;
|
|
110
111
|
disabled?: boolean;
|
|
112
|
+
isClearable?: boolean;
|
|
111
113
|
size?: ComponentSize;
|
|
112
114
|
hasTime?: boolean;
|
|
113
|
-
disabledDates?: number[];
|
|
114
115
|
maxDate?: Nullable_2<number>;
|
|
115
116
|
minDate?: Nullable_2<number>;
|
|
117
|
+
disabledDates?: number[];
|
|
116
118
|
};
|
|
117
119
|
|
|
118
120
|
declare type __VLS_Props_18 = {
|
|
@@ -239,10 +241,21 @@ declare function __VLS_template_2(): {
|
|
|
239
241
|
rootEl: any;
|
|
240
242
|
};
|
|
241
243
|
|
|
244
|
+
declare function __VLS_template_3(): {
|
|
245
|
+
attrs: Partial<{}>;
|
|
246
|
+
slots: {
|
|
247
|
+
default?(_: {}): any;
|
|
248
|
+
};
|
|
249
|
+
refs: {};
|
|
250
|
+
rootEl: any;
|
|
251
|
+
};
|
|
252
|
+
|
|
242
253
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
243
254
|
|
|
244
255
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
245
256
|
|
|
257
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
258
|
+
|
|
246
259
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
247
260
|
new (): {
|
|
248
261
|
$slots: S;
|
|
@@ -255,6 +268,14 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
255
268
|
};
|
|
256
269
|
};
|
|
257
270
|
|
|
271
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
272
|
+
new (): {
|
|
273
|
+
$slots: S;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
export declare const ApplicationLocalProvider: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
278
|
+
|
|
258
279
|
export declare class AreaChartDataSource extends CategoricalChartDataSource<ChartSeries[]> {
|
|
259
280
|
constructor(settings: ChartSettings);
|
|
260
281
|
protected generateSeries(): ChartSeries[];
|
|
@@ -416,9 +437,9 @@ placeholder: string;
|
|
|
416
437
|
size: ComponentSize;
|
|
417
438
|
isClearable: boolean;
|
|
418
439
|
hasTime: boolean;
|
|
419
|
-
disabledDates: number[];
|
|
420
440
|
maxDate: Nullable_2<number>;
|
|
421
441
|
minDate: Nullable_2<number>;
|
|
442
|
+
disabledDates: number[];
|
|
422
443
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
423
444
|
|
|
424
445
|
export declare const SarafDefaultSpinner: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {
|
|
@@ -488,9 +509,9 @@ disabled: boolean;
|
|
|
488
509
|
size: ComponentSize;
|
|
489
510
|
isClearable: boolean;
|
|
490
511
|
hasTime: boolean;
|
|
491
|
-
disabledDates: number[];
|
|
492
512
|
maxDate: Nullable_2<number>;
|
|
493
513
|
minDate: Nullable_2<number>;
|
|
514
|
+
disabledDates: number[];
|
|
494
515
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
495
516
|
|
|
496
517
|
export declare const SarafSearchFiled: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
package/dist/index.es.js
CHANGED
|
@@ -7,95 +7,97 @@ import { default as d } from "./icons/ArrowDownIcon.vue.es.js";
|
|
|
7
7
|
import { default as x } from "./icons/ArrowUpIcon.vue.es.js";
|
|
8
8
|
import { default as c } from "./icons/BurgerIcon.vue.es.js";
|
|
9
9
|
import { default as C } from "./loaders/spinners/SarafDefaultSpinner.vue.es.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { default as F } from "./baseForm/
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as j } from "./baseTable/
|
|
19
|
-
import { default as E } from "./baseTable/
|
|
20
|
-
import { default as J } from "./baseTable/
|
|
21
|
-
import { default as O } from "./baseTable/
|
|
22
|
-
import { default as V } from "./baseTable/
|
|
23
|
-
import { default as X } from "./baseTable/
|
|
24
|
-
import { default as Z } from "./baseTable/
|
|
25
|
-
import { default as $ } from "./baseTable/
|
|
26
|
-
import { default as ra } from "./
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { default as pa } from "./dataDisplay/tab/ui/
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { default as Pa } from "./
|
|
37
|
-
import { default as wa } from "./datePicker/
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as ka } from "./icons/
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as Ua } from "./icons/
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
10
|
+
import { default as b } from "./localProvider/ApplicationLocalProvider.vue.es.js";
|
|
11
|
+
import { BasicInputNames as h, InputSizes as D, InputStatus as y, SarafInputTypes as P, SarafSelectMode as g } from "./baseForm/model/Constants.es.js";
|
|
12
|
+
import { SelectItem as A } from "./baseForm/model/Model.es.js";
|
|
13
|
+
import { default as F } from "./baseForm/SarafTextFiled.vue.es.js";
|
|
14
|
+
import { default as v } from "./baseForm/SarafNumberFiled.vue.es.js";
|
|
15
|
+
import { default as R } from "./baseForm/SarafSelect.vue.es.js";
|
|
16
|
+
import { default as M } from "./baseForm/SarafFiledInvalidMessage.vue.es.js";
|
|
17
|
+
import { default as G } from "./baseTable/SarafTable.vue.es.js";
|
|
18
|
+
import { default as j } from "./baseTable/SarafBankCardTableCell.vue.es.js";
|
|
19
|
+
import { default as E } from "./baseTable/SarafIbanTableCell.vue.es.js";
|
|
20
|
+
import { default as J } from "./baseTable/SarafSymbolTableCell.vue.es.js";
|
|
21
|
+
import { default as O } from "./baseTable/SarafTradeAmountTableCell.vue.es.js";
|
|
22
|
+
import { default as V } from "./baseTable/SarafTradeSymbolPriceCell.vue.es.js";
|
|
23
|
+
import { default as X } from "./baseTable/SarafTradeDateCell.vue.es.js";
|
|
24
|
+
import { default as Z } from "./baseTable/SarafPriceTableCell.vue.es.js";
|
|
25
|
+
import { default as $ } from "./baseTable/SarafTradeSymbolCell.vue.es.js";
|
|
26
|
+
import { default as ra } from "./baseTable/SarafDynamicCurrencyPriceTableCell.vue.es.js";
|
|
27
|
+
import { default as oa } from "./dataDisplay/tag/SarafTag.vue.es.js";
|
|
28
|
+
import { TagColors as fa } from "./dataDisplay/tag/model/Constants.es.js";
|
|
29
|
+
import { default as pa } from "./dataDisplay/tab/ui/SarafTabs.vue.es.js";
|
|
30
|
+
import { default as sa } from "./dataDisplay/tab/ui/SarafSecondaryTabs.vue.es.js";
|
|
31
|
+
import { SarafTab as da } from "./dataDisplay/tab/model/SarafTab.es.js";
|
|
32
|
+
import { AreaChartDataSource as xa } from "./dataDisplay/chart/model/AreaChartDataSource.es.js";
|
|
33
|
+
import { DonutChartDataSource as ca } from "./dataDisplay/chart/model/DonutChartDataSource.es.js";
|
|
34
|
+
import { ChartSeries as Ca, ChartSettings as Ta, ChartType as ba, RawChartDataPoint as Ia } from "./dataDisplay/chart/model/ChartTypes.es.js";
|
|
35
|
+
import { TooltipDirective as Da } from "./dataDisplay/tooltip/model/tooltipDirective.es.js";
|
|
36
|
+
import { default as Pa } from "./dataEntry/checkbox/SarafCheckbox.vue.es.js";
|
|
37
|
+
import { default as wa } from "./datePicker/SarafDatePicker.vue.es.js";
|
|
38
|
+
import { default as Ba } from "./datePicker/SarafRangePicker.vue.es.js";
|
|
39
|
+
import { default as ka } from "./icons/SarafArrowIcon.vue.es.js";
|
|
40
|
+
import { default as za } from "./icons/GiftCardIcon.vue.es.js";
|
|
41
|
+
import { default as La } from "./icons/PlusIcon.vue.es.js";
|
|
42
|
+
import { default as Na } from "./icons/ResetIcon.vue.es.js";
|
|
43
|
+
import { default as Ua } from "./icons/SarafLogoIcon.vue.es.js";
|
|
44
|
+
import { default as qa } from "./icons/SearchIcon.vue.es.js";
|
|
45
|
+
import { ButtonColor as Ha, ButtonType as Ja } from "./general/button/model/Constants.es.js";
|
|
46
|
+
import { default as Oa } from "./general/button/SarafButton.vue.es.js";
|
|
47
|
+
import { SpinnerSizes as Va } from "./loaders/spinners/model/Constants.es.js";
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
b as ApplicationLocalProvider,
|
|
50
|
+
xa as AreaChartDataSource,
|
|
49
51
|
d as ArrowDownIcon,
|
|
50
52
|
x as ArrowUpIcon,
|
|
51
|
-
|
|
53
|
+
h as BasicInputNames,
|
|
52
54
|
c as BurgerIcon,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
Ha as ButtonColor,
|
|
56
|
+
Ja as ButtonType,
|
|
57
|
+
Ca as ChartSeries,
|
|
58
|
+
Ta as ChartSettings,
|
|
59
|
+
ba as ChartType,
|
|
58
60
|
o as ComponentSize,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
ca as DonutChartDataSource,
|
|
62
|
+
za as GiftCardIcon,
|
|
63
|
+
D as InputSizes,
|
|
64
|
+
y as InputStatus,
|
|
65
|
+
La as PlusIcon,
|
|
66
|
+
Ia as RawChartDataPoint,
|
|
67
|
+
Na as ResetIcon,
|
|
68
|
+
ka as SarafArrowIcon,
|
|
69
|
+
j as SarafBankCardTableCell,
|
|
70
|
+
Oa as SarafButton,
|
|
69
71
|
s as SarafChart,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
Pa as SarafCheckbox,
|
|
73
|
+
wa as SarafDatePicker,
|
|
72
74
|
C as SarafDefaultSpinner,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
ra as SarafDynamicCurrencyPriceTableCell,
|
|
76
|
+
M as SarafFiledInvalidMessage,
|
|
77
|
+
E as SarafIbanTableCell,
|
|
78
|
+
P as SarafInputTypes,
|
|
79
|
+
Ua as SarafLogoIcon,
|
|
80
|
+
v as SarafNumberFiled,
|
|
79
81
|
p as SarafPasswordFiled,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
Z as SarafPriceTableCell,
|
|
83
|
+
Ba as SarafRangePicker,
|
|
82
84
|
f as SarafSearchFiled,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
85
|
+
sa as SarafSecondaryTabs,
|
|
86
|
+
R as SarafSelect,
|
|
87
|
+
g as SarafSelectMode,
|
|
88
|
+
J as SarafSymbolTableCell,
|
|
89
|
+
da as SarafTab,
|
|
90
|
+
G as SarafTable,
|
|
91
|
+
pa as SarafTabs,
|
|
92
|
+
oa as SarafTag,
|
|
93
|
+
F as SarafTextFiled,
|
|
94
|
+
O as SarafTradeAmountTableCell,
|
|
95
|
+
X as SarafTradeDateCell,
|
|
96
|
+
$ as SarafTradeSymbolCell,
|
|
97
|
+
V as SarafTradeSymbolPriceCell,
|
|
98
|
+
qa as SearchIcon,
|
|
99
|
+
A as SelectItem,
|
|
100
|
+
Va as SpinnerSizes,
|
|
101
|
+
fa as TagColors,
|
|
102
|
+
Da as TooltipDirective
|
|
101
103
|
};
|