ps-toolkit-ui 0.0.197 → 0.0.201

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 (44) hide show
  1. package/bundles/ps-toolkit-ui.umd.js +182 -32
  2. package/bundles/ps-toolkit-ui.umd.js.map +1 -1
  3. package/bundles/ps-toolkit-ui.umd.min.js +1 -1
  4. package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
  5. package/esm2015/lib/classes/form.class.js +2 -1
  6. package/esm2015/lib/classes/string.class.js +15 -2
  7. package/esm2015/lib/components/calendar/calendar.component.js +98 -0
  8. package/esm2015/lib/components/clock/clock.component.js +34 -0
  9. package/esm2015/lib/components/footer/footer.component.js +1 -1
  10. package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +1 -1
  11. package/esm2015/lib/components/form/button/form.button.component.js +1 -1
  12. package/esm2015/lib/components/form/car/form.car.component.js +1 -1
  13. package/esm2015/lib/components/form/car/search/form.car.search.component.js +1 -1
  14. package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +1 -1
  15. package/esm2015/lib/components/form/date/form.date.component.js +1 -1
  16. package/esm2015/lib/components/form/datetime/form.datetime.component.js +1 -1
  17. package/esm2015/lib/components/form/file/form.file.component.js +1 -1
  18. package/esm2015/lib/components/form/finger/form.finger.component.js +1 -1
  19. package/esm2015/lib/components/form/icon/form.icon.component.js +1 -1
  20. package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +1 -1
  21. package/esm2015/lib/components/form/radio/form.radio.component.js +1 -1
  22. package/esm2015/lib/components/form/select/form.select.component.js +8 -5
  23. package/esm2015/lib/components/form/textarea/form.textarea.component.js +1 -1
  24. package/esm2015/lib/components/form/textbox/form.textbox.component.js +1 -1
  25. package/esm2015/lib/components/form/time/form.time.component.js +1 -1
  26. package/esm2015/lib/components/form/tree/form.tree.component.js +1 -1
  27. package/esm2015/lib/components/header/sub/sub.header.component.js +1 -1
  28. package/esm2015/lib/components/login/login.component.js +3 -3
  29. package/esm2015/lib/components/notfound/notfound.component.js +1 -1
  30. package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +1 -1
  31. package/esm2015/lib/components/steps/steps.component.js +1 -1
  32. package/esm2015/lib/components/table/table.component.js +3 -3
  33. package/esm2015/lib/ps-toolkit-ui.module.js +7 -3
  34. package/esm2015/ps-toolkit-ui.js +3 -1
  35. package/fesm2015/ps-toolkit-ui.js +178 -34
  36. package/fesm2015/ps-toolkit-ui.js.map +1 -1
  37. package/lib/classes/form.class.d.ts +1 -0
  38. package/lib/classes/string.class.d.ts +14 -1
  39. package/lib/components/calendar/calendar.component.d.ts +26 -0
  40. package/lib/components/clock/clock.component.d.ts +11 -0
  41. package/package.json +1 -1
  42. package/ps-toolkit-ui.d.ts +2 -0
  43. package/ps-toolkit-ui.metadata.json +1 -1
  44. package/src/assets/styles/base.css +4 -4
@@ -56,6 +56,7 @@ export declare class InputClass {
56
56
  placeholder: string;
57
57
  id: string;
58
58
  icon: string;
59
+ addNew: boolean;
59
60
  class: string;
60
61
  description: string;
61
62
  type: InputType;
@@ -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;
@@ -169,7 +182,7 @@ export declare const strings: {
169
182
  LoadingDot: string;
170
183
  LoadingDotWhite: string;
171
184
  Loading: string;
172
- LoadingYellow: string;
185
+ LoadingComp: string;
173
186
  LoadingEmpty: string;
174
187
  LoadingTable: string;
175
188
  LoadingText: 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ps-toolkit-ui",
3
- "version": "0.0.197",
3
+ "version": "0.0.201",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^10.1.6",
6
6
  "@angular/core": "^10.1.6"
@@ -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';