ps-toolkit-ui 0.0.199 → 0.0.200
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/bundles/ps-toolkit-ui.umd.js +147 -3
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/string.class.js +14 -1
- package/esm2015/lib/components/calendar/calendar.component.js +98 -0
- package/esm2015/lib/components/clock/clock.component.js +31 -0
- package/esm2015/lib/components/notfound/notfound.component.js +1 -1
- package/esm2015/lib/ps-toolkit-ui.module.js +7 -3
- package/esm2015/ps-toolkit-ui.js +3 -1
- package/fesm2015/ps-toolkit-ui.js +143 -5
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/string.class.d.ts +13 -0
- package/lib/components/calendar/calendar.component.d.ts +26 -0
- package/lib/components/clock/clock.component.d.ts +11 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.d.ts +2 -0
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -144,10 +144,23 @@ export declare const strings: {
|
|
|
144
144
|
FileSelected: string;
|
|
145
145
|
Selected: string;
|
|
146
146
|
Limit: string;
|
|
147
|
+
Today: string;
|
|
147
148
|
SendCodeLimit: string;
|
|
148
149
|
SendCodeError: string;
|
|
149
150
|
CodeNotFound: string;
|
|
150
151
|
Total: string;
|
|
152
|
+
Month1: string;
|
|
153
|
+
Month2: string;
|
|
154
|
+
Month3: string;
|
|
155
|
+
Month4: string;
|
|
156
|
+
Month5: string;
|
|
157
|
+
Month6: string;
|
|
158
|
+
Month7: string;
|
|
159
|
+
Month8: string;
|
|
160
|
+
Month9: string;
|
|
161
|
+
Month10: string;
|
|
162
|
+
Month11: string;
|
|
163
|
+
Month12: string;
|
|
151
164
|
Day: string;
|
|
152
165
|
HourP: string;
|
|
153
166
|
MinuteP: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DayClass } from '../../classes/form.class';
|
|
2
|
+
import * as moment from 'jalali-moment';
|
|
3
|
+
import { PsToolkitUiConfigService } from '../../services/config.service';
|
|
4
|
+
export declare class CalendarComponent {
|
|
5
|
+
config: PsToolkitUiConfigService;
|
|
6
|
+
state: string;
|
|
7
|
+
months: any[];
|
|
8
|
+
active: moment.Moment;
|
|
9
|
+
previousDays: DayClass[];
|
|
10
|
+
nextDays: DayClass[];
|
|
11
|
+
days: DayClass[];
|
|
12
|
+
todayDay: number;
|
|
13
|
+
todayMonth: number;
|
|
14
|
+
todayYear: number;
|
|
15
|
+
l: (k: any, v?: any) => string;
|
|
16
|
+
constructor(config: PsToolkitUiConfigService);
|
|
17
|
+
changeState(s: string): void;
|
|
18
|
+
getYears(): number[];
|
|
19
|
+
getActiveMonth(): string;
|
|
20
|
+
add(c: number): void;
|
|
21
|
+
changeMonth(c: number): void;
|
|
22
|
+
changeYear(c: number): void;
|
|
23
|
+
setDate(): void;
|
|
24
|
+
isToday(m: moment.Moment, d: number): boolean;
|
|
25
|
+
setActive(m: any): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as moment from 'jalali-moment';
|
|
3
|
+
export declare class ClockComponent implements OnInit, OnDestroy {
|
|
4
|
+
clockInterval: any;
|
|
5
|
+
clock: ElementRef;
|
|
6
|
+
active: moment.Moment;
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
clockUpdate(): void;
|
|
11
|
+
}
|
package/package.json
CHANGED
package/ps-toolkit-ui.d.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
5
|
export { SafeStylePipe as ɵi } from './lib/classes/safestyle.class';
|
|
6
|
+
export { CalendarComponent as ɵm } from './lib/components/calendar/calendar.component';
|
|
7
|
+
export { ClockComponent as ɵn } from './lib/components/clock/clock.component';
|
|
6
8
|
export { FormHiddenComponent as ɵl } from './lib/components/form/hidden/form.hidden.component';
|
|
7
9
|
export { FormSelectItemComponent as ɵa } from './lib/components/form/select/item/form.select.item.component';
|
|
8
10
|
export { FormTreeItemComponent as ɵf } from './lib/components/form/tree/item/form.tree.item.component';
|