-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/message-box-updates
- Loading branch information
Showing
52 changed files
with
1,395 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# This flag indicates if the tag should be treated as a latest one, which is going to trigger | ||
# - npm publish with `latest` tag, which will become new default version | ||
# - master version incrementation | ||
# - main version incrementation | ||
latest=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...mponent-docs/platform-forms/platform-date-picker/platform-date-picker-docs.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<fd-docs-section-title id="formDatePicker" componentName="DatePicker"> | ||
Simple Date Picker and Range Date Picker in Platform Form. | ||
</fd-docs-section-title> | ||
|
||
<description> | ||
Value of date-picker can be initialized by passing data using object property in fdp-form-group. | ||
</description> | ||
<component-example> | ||
<fdp-platform-date-picker-example></fdp-platform-date-picker-example> | ||
</component-example> | ||
<code-example [exampleFiles]="datePickerExample"></code-example> | ||
|
||
<separator></separator> | ||
<fd-docs-section-title id="disablecalnder" componentName="DatePicker"> | ||
Disable parts of Calender for selection | ||
</fd-docs-section-title> | ||
<description> | ||
Part of Calendar can be disabled. This can be controlled by passing disableFunction for simple | ||
date-picker and passing disableRangeStartFunction and disableRangeEndFunction for range Date Picker. | ||
</description> | ||
<component-example> | ||
<fdp-date-picker-disable-func-example></fdp-date-picker-disable-func-example> | ||
</component-example> | ||
<code-example [exampleFiles]="datePickerDisableFunction"></code-example> | ||
|
||
<separator></separator> | ||
<fd-docs-section-title id="datePickerFormat" componentName="DatePicker"> | ||
Date Picker Formatting | ||
</fd-docs-section-title> | ||
<description> | ||
Providing a custom format for the dates is possible through providing <code>DATE_TIME_FORMATS</code> config. | ||
</description> | ||
<component-example> | ||
<fdp-date-picker-format-example></fdp-date-picker-format-example> | ||
</component-example> | ||
<code-example [exampleFiles]="datePickerFormat"></code-example> | ||
|
||
<separator></separator> | ||
|
||
<fd-docs-section-title id="internationalExample" componentName="'DatePickerInternational'"> | ||
Internationalization of Date Picker | ||
</fd-docs-section-title> | ||
<description> | ||
It is possible to internationalize both the aria labels and the month names/weekdays through providing a service. | ||
</description> | ||
<component-example> | ||
<fdp-date-picker-i18n-example></fdp-date-picker-i18n-example> | ||
</component-example> | ||
<code-example [exampleFiles]="datePickeri18nExample"></code-example> |
68 changes: 68 additions & 0 deletions
68
...component-docs/platform-forms/platform-date-picker/platform-date-picker-docs.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import { Component } from '@angular/core'; | ||
import * as datepickerHtml from '!raw-loader!./platform-date-picker-examples/platform-date-picker-example.component.html'; | ||
import * as datepickerts from '!raw-loader!./platform-date-picker-examples/platform-date-picker-example.component.ts'; | ||
import * as datepickeri18n from '!raw-loader!./platform-date-picker-examples/platform-date-picker-i18n-example.component.ts'; | ||
import * as datepickerDisabledFnCodeTs from '!raw-loader!./platform-date-picker-examples/platform-date-picker-disable-func-example.component.ts'; | ||
import * as datepickerDisabledFnHtml from '!raw-loader!./platform-date-picker-examples/platform-date-picker-disable-func-example.component.html'; | ||
import * as datepickerFormatTs from '!raw-loader!./platform-date-picker-examples/platform-date-picker-format-example.component.ts'; | ||
import * as datepickerFormatHtml from '!raw-loader!./platform-date-picker-examples/platform-date-picker-format-example.component.html'; | ||
|
||
import { ExampleFile } from '../../../../documentation/core-helpers/code-example/example-file'; | ||
|
||
@Component({ | ||
selector: 'app-datepicker', | ||
templateUrl: './platform-date-picker-docs.component.html' | ||
}) | ||
export class PlatformDatePickerDocsComponent { | ||
datePickerExample: ExampleFile[] = [ | ||
{ | ||
language: 'html', | ||
code: datepickerHtml, | ||
fileName: 'platform-date-picker-example' | ||
}, | ||
{ | ||
language: 'typescript', | ||
code: datepickerts, | ||
fileName: 'platform-date-picker-example', | ||
component: 'PlatformDatePickerExampleComponent' | ||
} | ||
]; | ||
|
||
datePickeri18nExample: ExampleFile[] = [ | ||
{ | ||
language: 'typescript', | ||
code: datepickeri18n, | ||
fileName: 'platform-date-picker-i18n-example', | ||
component: 'PlatformDatePickeri18nExampleComponent' | ||
} | ||
]; | ||
|
||
datePickerDisableFunction: ExampleFile[] = [ | ||
{ | ||
language: 'html', | ||
code: datepickerDisabledFnHtml, | ||
fileName: 'platform-date-picker-disable-func-example' | ||
}, | ||
{ | ||
language: 'typescript', | ||
code: datepickerDisabledFnCodeTs, | ||
fileName: 'platform-date-picker-disable-func-example', | ||
component: 'DatePickerDisableFuncExampleComponent' | ||
} | ||
]; | ||
|
||
datePickerFormat: ExampleFile[] = [ | ||
{ | ||
language: 'typescript', | ||
code: datepickerFormatTs, | ||
fileName: 'platform-date-picker-format-example', | ||
component: 'PlatformDatePickerFormatExampleComponent' | ||
}, | ||
{ | ||
language: 'html', | ||
code: datepickerFormatHtml, | ||
fileName: 'platform-date-picker-format-example', | ||
component: 'PlatformDatePickerFormatExampleComponent' | ||
}, | ||
]; | ||
} |
48 changes: 48 additions & 0 deletions
48
...rm/component-docs/platform-forms/platform-date-picker/platform-date-picker-docs.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { ApiComponent } from '../../../../documentation/core-helpers/api/api.component'; | ||
import { API_FILES } from '../../../api-files'; | ||
import { SharedDocumentationPageModule } from '../../../../documentation/shared-documentation-page.module'; | ||
import { PlatformDatePickerModule, FdpFormGroupModule, PlatformLinkModule } from '@fundamental-ngx/platform'; | ||
import { FdDatetimeModule, SegmentedButtonModule } from '@fundamental-ngx/core'; | ||
|
||
import { PlatformDatePickerDocsComponent } from './platform-date-picker-docs.component'; | ||
import { PlatformDatePickerHeaderComponent } from './platform-date-picker-header/platform-date-picker-header.component'; | ||
import { PlatformDatePickerExampleComponent } from './platform-date-picker-examples/platform-date-picker-example.component'; | ||
import { PlatformDatePickeri18nExampleComponent } from './platform-date-picker-examples/platform-date-picker-i18n-example.component'; | ||
import { PlatformDatePickerDisableFuncExampleComponent } from './platform-date-picker-examples/platform-date-picker-disable-func-example.component'; | ||
import { PlatformDatePickerFormatExampleComponent } from './platform-date-picker-examples/platform-date-picker-format-example.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: PlatformDatePickerHeaderComponent, | ||
children: [ | ||
{ path: '', component: PlatformDatePickerDocsComponent }, | ||
{ path: 'api', component: ApiComponent, data: { content: API_FILES.datePicker } } | ||
] | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
PlatformDatePickerDocsComponent, | ||
PlatformDatePickerExampleComponent, | ||
PlatformDatePickerDisableFuncExampleComponent, | ||
PlatformDatePickerHeaderComponent, | ||
PlatformDatePickeri18nExampleComponent, | ||
PlatformDatePickerFormatExampleComponent | ||
], | ||
imports: [ | ||
RouterModule.forChild(routes), | ||
SharedDocumentationPageModule, | ||
SegmentedButtonModule, | ||
PlatformLinkModule, | ||
FdDatetimeModule, | ||
PlatformDatePickerModule, | ||
FdpFormGroupModule | ||
], | ||
exports: [RouterModule] | ||
|
||
}) | ||
export class PlatformDatePickerDocsModule {} |
Oops, something went wrong.