@kashi-ui/elements 0.24.0 → 0.26.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/README.md +8 -3
- package/dist/appointment.d.ts +40 -0
- package/dist/appointment.js +174 -0
- package/dist/base.js +26 -0
- package/dist/basic.d.ts +43 -0
- package/dist/basic.js +223 -0
- package/dist/calendar.d.ts +13 -0
- package/dist/calendar.js +46 -1
- package/dist/cdn/appointment-DkMxtSWi.js +1 -0
- package/dist/cdn/base-DfzNTdQk.js +1 -0
- package/dist/cdn/basic-B5n1okZO.js +1 -0
- package/dist/cdn/calendar-oMlnK1_D.js +16 -0
- package/dist/cdn/charts-SHKq2S4I.js +1 -0
- package/dist/cdn/combobox-DiGy7lAB.js +1 -0
- package/dist/cdn/controls-C6zwNYWs.js +1 -0
- package/dist/cdn/digits-DE1YGT94.js +1 -0
- package/dist/cdn/display-DZFW9EEX.js +1 -0
- package/dist/cdn/fields-D2hmrvVR.js +1 -0
- package/dist/cdn/forms-CeItYHFx.js +1 -0
- package/dist/cdn/holidays-BwsAEOI1.js +1 -0
- package/dist/cdn/inputs-DuP7P3ka.js +1 -0
- package/dist/cdn/jalali-BiM5Kfep.js +1 -0
- package/dist/cdn/kashi-elements.js +1 -27
- package/dist/cdn/map-w5X2fTQI.js +12 -0
- package/dist/cdn/menu-Cga7QOfs.js +1 -0
- package/dist/cdn/nav-CwPZ20z-.js +1 -0
- package/dist/cdn/overlay-BDzwsBN5.js +1 -0
- package/dist/cdn/pickers-BOpaZ-7q.js +1 -0
- package/dist/cdn/table-BdF43L5q.js +1 -0
- package/dist/cdn/text-D1U32D6K.js +1 -0
- package/dist/cdn/time-DXw4vOne.js +1 -0
- package/dist/cdn/words-9OdzG7y6.js +1 -0
- package/dist/cdn.d.ts +3 -0
- package/dist/cdn.js +46 -0
- package/dist/charts.d.ts +106 -0
- package/dist/charts.js +436 -0
- package/dist/forms.d.ts +186 -0
- package/dist/forms.js +902 -0
- package/dist/index.d.ts +40 -2
- package/dist/index.js +13 -1
- package/dist/nav.d.ts +163 -0
- package/dist/nav.js +918 -0
- package/dist/pickers.d.ts +108 -0
- package/dist/pickers.js +655 -0
- package/package.json +4 -4
- /package/dist/cdn/{bank-logos-D670Gw0K.js → dist-D670Gw0K.js} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { HTMLBase } from "./base.js";
|
|
2
|
+
import "./calendar.js";
|
|
3
|
+
interface Range {
|
|
4
|
+
start: Date | null;
|
|
5
|
+
end: Date | null;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* انتخاب بازهٔ تاریخ شمسی با تقویم و میانبرها (۷ روز اخیر، این ماه، …).
|
|
9
|
+
* با name دو فیلد name_start و name_end با تاریخ میلادی YYYY-MM-DD ارسال میشوند.
|
|
10
|
+
*/
|
|
11
|
+
export declare class KashiDateRangePicker extends HTMLBase {
|
|
12
|
+
static observedAttributes: string[];
|
|
13
|
+
private current;
|
|
14
|
+
private draft;
|
|
15
|
+
private valueSet;
|
|
16
|
+
private rendered;
|
|
17
|
+
private key;
|
|
18
|
+
private trigger;
|
|
19
|
+
private pop;
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
attributeChangedCallback(name: string, old: string | null, next: string | null): void;
|
|
23
|
+
/** { start, end } با Date */
|
|
24
|
+
get value(): Range;
|
|
25
|
+
set value(r: Range);
|
|
26
|
+
private fmt;
|
|
27
|
+
private text;
|
|
28
|
+
private render;
|
|
29
|
+
open(): void;
|
|
30
|
+
private paintDraft;
|
|
31
|
+
close(focus?: boolean): void;
|
|
32
|
+
private onOutside;
|
|
33
|
+
}
|
|
34
|
+
/** انتخاب ماه شمسی برای گزارشها و فیلترها؛ مقدار «1405-01» (سال-ماه شمسی) */
|
|
35
|
+
export declare class KashiMonthPicker extends HTMLBase {
|
|
36
|
+
static observedAttributes: string[];
|
|
37
|
+
private selected;
|
|
38
|
+
private year;
|
|
39
|
+
private focusMonth;
|
|
40
|
+
private valueSet;
|
|
41
|
+
private rendered;
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
attributeChangedCallback(name: string, old: string | null, next: string | null): void;
|
|
44
|
+
private parse;
|
|
45
|
+
/** «1405-01» */
|
|
46
|
+
get value(): string;
|
|
47
|
+
set value(v: string);
|
|
48
|
+
private out;
|
|
49
|
+
private render;
|
|
50
|
+
}
|
|
51
|
+
/** حجم فایل به فارسی: «۱٫۲ مگابایت» */
|
|
52
|
+
export declare function formatBytes(bytes: number): string;
|
|
53
|
+
/**
|
|
54
|
+
* بارگذاری فایل با کشیدن و رها کردن، بررسی نوع و حجم و فهرست فایلها.
|
|
55
|
+
* با name فایلها با فرم HTML ارسال میشوند؛ برای بارگذاری فوری، element.uploader = (file, onProgress) => Promise بدهید.
|
|
56
|
+
*/
|
|
57
|
+
export declare class KashiFileUpload extends HTMLBase {
|
|
58
|
+
static observedAttributes: string[];
|
|
59
|
+
/** بارگذاری هر فایل؛ onProgress(درصد) را صدا بزنید */
|
|
60
|
+
uploader?: (file: File, onProgress: (percent: number) => void) => Promise<void>;
|
|
61
|
+
private items;
|
|
62
|
+
private rendered;
|
|
63
|
+
private key;
|
|
64
|
+
private input;
|
|
65
|
+
connectedCallback(): void;
|
|
66
|
+
attributeChangedCallback(_n: string, old: string | null, next: string | null): void;
|
|
67
|
+
/** فایلهای پذیرفتهشده */
|
|
68
|
+
get files(): File[];
|
|
69
|
+
private get multiple();
|
|
70
|
+
private render;
|
|
71
|
+
private accepts;
|
|
72
|
+
private add;
|
|
73
|
+
private announce;
|
|
74
|
+
private changed;
|
|
75
|
+
private paint;
|
|
76
|
+
}
|
|
77
|
+
/** نسبت کنتراست دو رنگ طبق WCAG */
|
|
78
|
+
export declare const contrastRatio: (a: string, b: string) => number;
|
|
79
|
+
/**
|
|
80
|
+
* انتخاب رنگ: رنگهای پیشنهادی، پنل اشباع و رنگمایه، کد HEX و RGB، و کنتراست با متن سفید یا مشکی.
|
|
81
|
+
* رنگهای پیشنهادی دلخواه با swatches="#0b8077 فیروزهای, #2740ed لاجوردی".
|
|
82
|
+
*/
|
|
83
|
+
export declare class KashiColorPicker extends HTMLBase {
|
|
84
|
+
static observedAttributes: string[];
|
|
85
|
+
private current;
|
|
86
|
+
private hsv;
|
|
87
|
+
private valueSet;
|
|
88
|
+
private rendered;
|
|
89
|
+
private key;
|
|
90
|
+
private panel;
|
|
91
|
+
connectedCallback(): void;
|
|
92
|
+
disconnectedCallback(): void;
|
|
93
|
+
attributeChangedCallback(name: string, old: string | null, next: string | null): void;
|
|
94
|
+
/** کد HEX، مثل «#0b8077» */
|
|
95
|
+
get value(): string;
|
|
96
|
+
set value(v: string);
|
|
97
|
+
private setColor;
|
|
98
|
+
private swatches;
|
|
99
|
+
private render;
|
|
100
|
+
private pick;
|
|
101
|
+
private paint;
|
|
102
|
+
private paintMessages;
|
|
103
|
+
private openPanel;
|
|
104
|
+
private paintPanel;
|
|
105
|
+
private closePanel;
|
|
106
|
+
private onOutside;
|
|
107
|
+
}
|
|
108
|
+
export {};
|