ngx-lite-form 1.5.0 → 1.6.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 CHANGED
@@ -36,6 +36,8 @@ Lite Form is ideal for a wide range of applications, including but not limited t
36
36
  - **Built-in Validation** - Form validation with error messages and utilities
37
37
  - **Password Security** - Advanced password validation and strength analysis
38
38
  - **Date Handling** - Single date and date range selection with custom formatting
39
+ - **Time Picker** - Intuitive time selection with hour/minute controls and quick actions
40
+ - **Rating Input** - Star rating component with multiple variants and readonly mode
39
41
  - **File Upload** - Drag & drop file upload with camera capture and file management
40
42
  - **Panels & Dialogs** - Modal panels supporting string, template, or component content with configurable action buttons
41
43
  - **Data Tables** - Flexible table component with custom columns, sorting, and pagination
@@ -57,10 +59,12 @@ Lite Form provides 18+ form and UI components. Click on any component below for
57
59
  - **[LiteMultiSelect](docs/lite-multi-select.md)** - Multi-selection dropdown with inline display
58
60
  - **[LiteRadio](docs/lite-radio.md)** - Radio button group for single selection
59
61
  - **[LiteCheckbox](docs/lite-checkbox.md)** - Checkbox for boolean input
60
- - **[LiteToggle](docs/lite-toggle.md)** - Modern iOS-style toggle switch for boolean states
61
- - **[LiteSlider](docs/lite-slider.md)** - Range slider for numeric input with visual feedback
62
+ - **[LiteToggle](docs/lite-toggle.md)** - Toggle switch for boolean input
63
+ - **[LiteSlider](docs/lite-slider.md)** - Range slider for numeric input
62
64
  - **[LiteDate](docs/lite-date.md)** - Date picker with single/range selection
63
65
  - **[LiteDateTime](docs/lite-datetime.md)** - Combined date and time picker
66
+ - **[LiteTime](docs/lite-time.md)** - Time picker with hour/minute selection
67
+ - **[LiteRate](docs/lite-rate.md)** - Star rating input with variants
64
68
  - **[LiteFile](docs/lite-file.md)** - File upload with drag & drop and camera capture
65
69
 
66
70
  ### Data Display & Navigation
@@ -99,6 +103,8 @@ import {
99
103
  LiteSlider,
100
104
  LiteDate,
101
105
  LiteDateTime,
106
+ LiteTime,
107
+ LiteRate,
102
108
  LiteFile,
103
109
  LiteTable,
104
110
  LitePaginator,
@@ -114,8 +120,10 @@ import {
114
120
  MultiSelectFieldDto,
115
121
  RadioFieldDto,
116
122
  DateRangeFieldDto,
117
- FileFieldDto,
123
+ TimeFieldDto,
124
+ RateFieldDto,
118
125
  SliderFieldDto,
126
+ FileFieldDto,
119
127
  TableFieldDto,
120
128
  PaginatorFieldDto,
121
129
  LitePanelAction,
@@ -136,6 +144,8 @@ import {
136
144
  LiteSlider,
137
145
  LiteDate,
138
146
  LiteDateTime,
147
+ LiteTime,
148
+ LiteRate,
139
149
  LiteFile,
140
150
  LiteTable,
141
151
  LitePaginator,
@@ -169,20 +179,6 @@ export class AppComponent {
169
179
  // Checkbox (using basic FieldDto for boolean)
170
180
  agreeField = new FieldDto('I agree to terms', new FormControl<boolean>(false, { nonNullable: true }));
171
181
 
172
- // Toggle switch
173
- notificationsField = new FieldDto('Enable Notifications', new FormControl<boolean>(true, { nonNullable: true }));
174
-
175
- // Slider
176
- volumeField = new SliderFieldDto(
177
- 'Volume',
178
- new FormControl<number>(75, { nonNullable: true }),
179
- 0,
180
- 100,
181
- 1,
182
- true,
183
- (value) => `${value}%`
184
- );
185
-
186
182
  // Select dropdown
187
183
  countryField = new SelectFieldDto(
188
184
  'Country',
@@ -324,8 +320,6 @@ export class AppComponent {
324
320
  <lite-password [control]="passwordField" [showStrengthIndicator]="true"></lite-password>
325
321
  <lite-textarea [control]="descriptionField"></lite-textarea>
326
322
  <lite-checkbox [control]="agreeField"></lite-checkbox>
327
- <lite-toggle [control]="notificationsField"></lite-toggle>
328
- <lite-slider [control]="volumeField"></lite-slider>
329
323
  <lite-select [control]="countryField"></lite-select>
330
324
  <lite-multi-select [control]="skillsField"></lite-multi-select>
331
325
  <lite-radio [control]="planField"></lite-radio>
@@ -421,8 +415,6 @@ For detailed API documentation, examples, and usage guides for each component, p
421
415
  - [LiteMultiSelect Documentation](docs/lite-multi-select.md)
422
416
  - [LiteRadio Documentation](docs/lite-radio.md)
423
417
  - [LiteCheckbox Documentation](docs/lite-checkbox.md)
424
- - [LiteToggle Documentation](docs/lite-toggle.md)
425
- - [LiteSlider Documentation](docs/lite-slider.md)
426
418
  - [LiteDate Documentation](docs/lite-date.md)
427
419
  - [LiteDateTime Documentation](docs/lite-datetime.md)
428
420
  - [LiteFile Documentation](docs/lite-file.md)
@@ -580,35 +572,6 @@ class BadgeFieldDto {
580
572
  }
581
573
  ```
582
574
 
583
- ### SliderFieldDto
584
- Slider field configuration for the LiteSlider component.
585
-
586
- ```typescript
587
- class SliderFieldDto {
588
- label: string;
589
- formControl: FormControl<number>;
590
- min?: number; // Minimum value (default: 0)
591
- max?: number; // Maximum value (default: 100)
592
- step?: number; // Step increment (default: 1)
593
- showMinMax?: boolean; // Show min/max labels (default: true)
594
- valueFormatter?: (value: number) => string; // Custom value formatter
595
- hint?: string; // Helper text
596
-
597
- constructor(
598
- label: string,
599
- formControl: FormControl<number>,
600
- min: number = 0,
601
- max: number = 100,
602
- step: number = 1,
603
- showMinMax: boolean = true,
604
- valueFormatter?: (value: number) => string,
605
- hint?: string
606
- )
607
- }
608
- ```
609
-
610
- **Note:** LiteToggle uses the standard `FieldDto` with a `FormControl<boolean>`.
611
-
612
575
  ---
613
576
 
614
577
  ## Validation