![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@libusoftcicom/lc-datepicker
Advanced tools
LC DatePicker - Pure Angular date and time picker component.
Pure Angular date and time picker component.
npm install @libusoftcicom/lc-datepicker
Use the following snippet inside your app module:
import {LcDatePickerModule} from '@libusoftcicom/lc-datepicker';
@NgModule({
declarations: [
...
],
imports: [
...
LcDatePickerModule.withImplementation({adapter: LuxonDateAdapterService})
// or LcDatePickerModule.withImplementation({adapter: MomentDateAdapterService})
// It is also possible to extend LCDatePickerAdapter and implement the adapter using a different library.
],
providers: [
...
],
bootstrap: [...]
})
export class AppModule {}
Use the following snippet inside your component:
import {DatePickerConfig, ECalendarType} from '@libusoftcicom/lc-datepicker';
@Component({
...
})
export class AppComponent {
public inputDate: DateTime;
public datePickerConfig: DatePickerConfig;
public dateRangePickerConfig: DatePickerConfig;
constructor(
private readonly dateAdapter: LCDatePickerAdapter,
...
) {
const timezone = 'Europe/Zagreb';
// For dates use ISO 8601 formatted strings, e.g. 2024-09-12T22:00:00.000Z
// For LCDateRangePickerComponent separate the first and second date using /,
// e.g. 2024-09-12T22:00:00.000Z/2024-09-13T22:00:00.000Z
this.inputDate = this.dateAdapter.toISOString(this.dateAdapter.now(timezone));
// configuration is optional, except for the value.
// Other properties will be given default values.
const datePickerConfiguration: IDatePickerConfiguration = {
value: this.inputDate,
calendarType: ECalendarType.Date,
localization: 'hr',
hourFormat: EHourFormat.TWENTY_FOUR_HOUR,
timezone: timezone,
minimumDate: minDate,
maximumDate: maxDate,
disabledDates: [
2024-09-12T22:00:00.000Z
// ...
],
disabledTimeRanges: [
{startTime: {hour: 0, minute: 0}, stopTime: {hour: 7, minute: 59}}
// ...
]
labels: { confirmLabel: 'OK', fromLabel: 'From', toLabel: 'To' },
theme: { primaryColor: '#5e666f', fontColor: '#5e666f' }
};
this.datePickerConfig = new DatePickerConfig(datePickerConfiguration, this.dateAdapter);
const today = this.dateAdapter.today(timezone);
const dateRangePickerConfiguration = {
...Object.assign(datePickerConfiguration),
value: this.dateAdapter.toISOString(today) + '/' + this.dateAdapter.toISOString(this.dateAdapter.add(today, 1, 'day')),
calendarType: ECalendarType.DateRange
};
this.dateRangePickerConfig = new DatePickerConfig(dateRangePickerConfiguration, this.dateAdapter);
...
}
public setCalendarDate(dateTime: string): void {
this.dateInput.nativeElement.value = dateTime;
}
public setDatePickerOpen(open: boolean): void {
if (!open) {
this.dateInput.nativeElement.click();
this.dateInput.nativeElement.select();
}
}
Use the following snippet inside your template for date-picker:
<lc-datepicker
[config]="datePickerConfig"
(openedChange)="setDatePickerOpen($event)"
(dateChange)="setCalendarDate($event)">
</lc-datepicker>
Use the following snippet inside your template for date-range-picker:
<lc-date-range-picker
[config]="dateRangePickerConfig"
(openedChange)="setDateRangePickerOpen($event)"
(dateChange)="setCalendarDateRange($event)">
</lc-date-range-picker>
This project was generated with Angular CLI version 18.0.0.
Angular CLI must be installed before building LC DatePicker component.
npm install -g @angular/cli
git clone https://github.com/LibusoftCicom/lc-datepicker.git
cd lc-datepicker/
npm install
npm run start
Open "http://localhost:4200" in browser
This project was generated with Angular CLI version 18.0.0.
Angular CLI must be installed before building LC DatePicker component.
npm install -g @angular/cli
git clone https://github.com/LibusoftCicom/lc-datepicker.git
cd lc-datepicker/
npm install
npm run build
We use SemVer for versioning. For the versions available, see the link to tags on this repository.
This project was generated with Angular CLI version 18.0.0.
Angular CLI must be installed before building LC DatePicker component.
npm install -g @angular/cli
git clone https://github.com/LibusoftCicom/lc-datepicker.git
cd lc-datepicker/
npm install
npm run test
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our contributing guide and code of conduct and then check out one of our issues.
LC DatePicker is freely distributable under the terms of the MIT license.
FAQs
LC DatePicker - Pure Angular date and time picker component.
The npm package @libusoftcicom/lc-datepicker receives a total of 49 weekly downloads. As such, @libusoftcicom/lc-datepicker popularity was classified as not popular.
We found that @libusoftcicom/lc-datepicker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.