Skip to content

Commit

Permalink
Updated to Angular 18.
Browse files Browse the repository at this point in the history
Fixed duplicate tracking indexes.
Fixed disabled dates not functioning correctly.
  • Loading branch information
Googlproxer committed Jul 11, 2024
1 parent ac155e8 commit 1b7fa51
Show file tree
Hide file tree
Showing 17 changed files with 4,881 additions and 2,942 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Setup .npmrc file to publish to npm
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org

- name: Read release version
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm

- name: Install Global Packages
Expand All @@ -37,12 +37,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm

- name: Install Global Packages
Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"cSpell.words": [
"ddTHH",
"Elem",
"googlproxer",
"ionicons",
"packagr"
]
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ export class HomePage {
| Name | Type | Default | Description |
| ----------------- | ------------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------- |
| from | `Date` | `new Date()` | start date |
| to | `Date` | 0 (Infinite) | end date |
| from | `Date` or `number` | `new Date()` | start date |
| to | `Date` or `number` | 0 (Infinite) | end date |
| color | `string` | `'primary'` | 'primary', 'secondary', 'danger', 'light', 'dark' |
| pickMode | `string` | `single` | 'multi', 'range', 'single' |
| showToggleButtons | `boolean` | `true` | show toggle buttons |
Expand Down Expand Up @@ -394,18 +394,18 @@ openCalendar() {
| Name | Type | Default | Description |
| ------------------------- | -------------------------- | ------------------------------------- | ---------------------------------------------------------- |
| from | `Date` | `new Date()` | start date |
| to | `Date` | 0 (Infinite) | end date |
| from | `Date` or `number` | `new Date()` | start date |
| to | `Date` or `number` | 0 (Infinite) | end date |
| title | `string` | `'CALENDAR'` | title |
| color | `string` | `'primary'` | 'primary', 'secondary', 'danger', 'light', 'dark' |
| defaultScrollTo | `Date` | none | let the view scroll to the default date |
| defaultDate | `Date` | none | default date data, apply to single |
| defaultDates | `Array<Date>` | none | default dates data, apply to multi |
| defaultDateRange | `{ from: Date, to: Date }` | none | default date-range data, apply to range |
| defaultScrollTo | `Date` | undefined | let the view scroll to the default date |
| defaultDate | `Date` | undefined | default date data, apply to single |
| defaultDates | `Array<Date>` | undefined | default dates data, apply to multi |
| defaultDateRange | `{ from: Date, to: Date }` | undefined | default date-range data, apply to range |
| defaultTitle | `string` | '' | default title in days |
| defaultSubtitle | `string` | '' | default subtitle in days |
| cssClass | `string` | `''` | Additional classes for custom styles, separated by spaces. |
| canBackwardsSelected | `boolean` | `false` | can backwards selected |
| canBackwardsSelected | `boolean` | `false` | Allow selection to any date before `to` |
| pickMode | `string` | `single` | 'multi', 'range', 'single' |
| disableWeeks | `Array<number>` | `[]` | week to be disabled (0-6) |
| closeLabel | `string` | `CANCEL` | cancel button label |
Expand Down Expand Up @@ -439,14 +439,14 @@ openCalendar() {
#### DaysConfig
| Name | Type | Default | Description |
| -------- | --------- | -------- | ------------------------------------- |
| cssClass | `string` | `''` | separated by spaces |
| date | `Date` | required | configured days |
| marked | `boolean` | false | highlight color |
| disable | `boolean` | false | disable |
| title | `string` | none | displayed title eg: `'today'` |
| subTitle | `string` | none | subTitle subTitle eg: `'New Year\'s'` |
| Name | Type | Default | Description |
| -------- | --------- | --------- | ------------------------------------- |
| cssClass | `string` | `''` | separated by spaces |
| date | `Date` | required | configured days |
| marked | `boolean` | false | highlight color |
| disable | `boolean` | false | disable |
| title | `string` | undefined | displayed title eg: `'today'` |
| subTitle | `string` | undefined | subTitle subTitle eg: `'New Year\'s'` |
### CalendarResult
Expand Down
Loading

0 comments on commit 1b7fa51

Please sign in to comment.