Skip to content

Commit

Permalink
update npm version 7.16.4
Browse files Browse the repository at this point in the history
  • Loading branch information
heliomarpm committed Oct 23, 2023
1 parent 8561373 commit a5c960b
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 52 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ docs
projects
*.map
*.png
upversion.js
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,7 @@ openCalendar() {

## Contributing

Please make sure to read the [Contributing Guide](docs/CONTRIBUTING.md) before making a pull request.

Please make sure to read the [Contributing Guide](https://github.com/heliomarpm/ion-calendar/blob/main/docs/CONTRIBUTING.md) before making a pull request.

Thank you to all the people who already contributed to project!

Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "ion-calendar",
"version": "7.16.3",
"version": "7.16.4",
"scripts": {
"ng": "ng",
"uplink": "npm run build && cd dist/ion-calendar && npm link && cd ../../projects/demo && npm link @heliomarpm/ion-calendar",
"prepare": "npm run build && cd dist/ion-calendar && npm link && cd ../../projects/demo && npm link @heliomarpm/ion-calendar",
"build": "ng build ion-calendar",
"build:demo": "ng build demo",
"package": "npm run build && cd dist/ion-calendar && npm pack",
Expand Down Expand Up @@ -33,7 +33,7 @@
"@angular/cli": "~16.2.1",
"@angular/compiler-cli": "^16.2.0",
"@types/jasmine": "~4.3.0",
"@types/luxon": "^3.3.2",
"@types/luxon": "^3.3.3",
"jasmine-core": "~4.6.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
Expand Down
25 changes: 0 additions & 25 deletions prebuild.js

This file was deleted.

5 changes: 4 additions & 1 deletion projects/demo/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import { IonCalendarModule } from '@heliomarpm/ion-calendar';

@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, IonicModule.forRoot({mode: "ios"}), AppRoutingModule, IonCalendarModule],
imports: [
BrowserModule, IonicModule.forRoot({mode: "ios"}), AppRoutingModule,
IonCalendarModule //.forRoot({doneLabel: 'Confirm',closeIcon: true})
],
providers: [{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }],
bootstrap: [AppComponent],
})
Expand Down
11 changes: 8 additions & 3 deletions projects/demo/src/app/home/home.page.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
<ion-header [translucent]="true">
<ion-toolbar>
<ion-title>
Blank
{{title}}
</ion-title>

<a href="https://github.com/heliomarpm/ion-calendar" slot="end" title="github" target="_blank" rel="noreferrer noopener" >
<ion-icon slot="end" name="logo-github" color="dark"/>
</a>
<ion-toggle slot="end" (ionChange)="toggleTheme($event)" />

</ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true" class="ion-padding">
<ion-header collapse="condense">
<ion-toolbar>
<ion-title size="large">Blank</ion-title>
<ion-title size="large">{{title}}</ion-title>
</ion-toolbar>
</ion-header>

Expand All @@ -24,8 +29,8 @@ <h2>Modal mode (result in console.log)</h2>
<app-demo-modal-locale></app-demo-modal-locale>
<app-demo-modal-multi></app-demo-modal-multi>
<app-demo-modal-range></app-demo-modal-range>
<app-demo-modal-range-noend-date></app-demo-modal-range-noend-date>
<app-demo-modal-range-backwards></app-demo-modal-range-backwards>
<app-demo-modal-range-end-date></app-demo-modal-range-end-date>

<app-demo-basic></app-demo-basic>
</div>
Expand Down
4 changes: 4 additions & 0 deletions projects/demo/src/app/home/home.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ ion-toolbar {
ion-toggle {
margin-right: 20px
}

ion-icon {
margin-right: 10px;
}
}

.my-class {
Expand Down
13 changes: 7 additions & 6 deletions projects/demo/src/app/home/home.page.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { Component } from '@angular/core';
import { Component } from "@angular/core";
import { environment } from "../../environments/environment";

@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
selector: "app-home",
templateUrl: "home.page.html",
styleUrls: ["home.page.scss"],
})
export class HomePage {
title = `@heliomar/ion-calendar - ${environment.version}`;

constructor() { }

toggleTheme(event: any) {
const dark = event.detail.checked || false;
document.body.setAttribute('color-theme', (dark ? 'dark' : 'light'));
document.body.setAttribute("color-theme", dark ? "dark" : "light");
}

}
6 changes: 6 additions & 0 deletions projects/demo/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import * as environ from "./environment";

export const environment = {
...environ.environment,
production: true,
};
17 changes: 17 additions & 0 deletions projects/demo/src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

export const environment = {
production: false,
version: '7.16.4'
};

/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
8 changes: 5 additions & 3 deletions projects/demo/src/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Demo</title>
<base href="/">
<meta charset="utf-8" />
<title>IonCalendar Demo</title>

<base href="/" />

<meta name="color-scheme" content="light dark" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
Expand Down
2 changes: 1 addition & 1 deletion projects/ion-calendar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@heliomarpm/ion-calendar",
"version": "7.16.3",
"version": "7.16.4",
"description": "A date picker super component for ionic6+",
"author": "Heliomar P. Marques",
"license": "MIT",
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"paths": {
"@heliomarpm/ion-calendar": [
"dist/ion-calendar"
],
"@heliomarpm/ion-calendar/lib/types": [
"projects/ion-calendar/src/lib/types"
]
},
"noImplicitReturns": true,
Expand Down

0 comments on commit a5c960b

Please sign in to comment.