Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core/date-dropdown): new date-dropdown component #797

Merged
merged 30 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
602f689
fix(ix-dropdown): fix nested dropdown dispose
lzeiml Sep 27, 2023
23441df
test(ix-dropdown): add nested dropdown test
lzeiml Sep 28, 2023
d682c42
fix(core/dropdown): fix nested dropdown dispose
lzeiml Sep 28, 2023
be4eb84
feat(core/date-dropdown): initial commit
matthiashader Oct 3, 2023
2f477ba
Merge branch 'bug/nested-dropdown' into feat/date-dropdown
matthiashader Oct 3, 2023
7f65c2f
feat(core/date-dropdown): initial commit
matthiashader Oct 5, 2023
19c87a2
fix: add dayjs to mount point
danielleroux Oct 5, 2023
877ddf2
test: remove default dayjs
danielleroux Oct 5, 2023
9bacdd0
test: load dayjs script during beforeEach
danielleroux Oct 5, 2023
5908a60
feat(core/date-dropdown): added support for updates outside the compo…
matthiashader Oct 10, 2023
0cc97f3
feat(core/date-dropdown): yarn build + package dependencies
matthiashader Oct 10, 2023
aa38627
feat(core/date-dropdown): async test fixes
matthiashader Oct 10, 2023
8017ec2
Merge remote-tracking branch 'origin/main' into feat/date-dropdown
matthiashader Oct 10, 2023
5d928ef
feat(core/date-dropdown): yarn-lock
matthiashader Oct 10, 2023
d68ab2b
feat(core/date-dropdown): fix
matthiashader Oct 10, 2023
46caa1b
build: remove wrong npm registry
danielleroux Oct 10, 2023
2236a01
feat(core/date-dropdown): fix
matthiashader Oct 10, 2023
ebf54d3
feat(core/date-dropdown): changed naming
matthiashader Oct 10, 2023
5e63606
feat(core/date-dropdown): config change in test app
matthiashader Oct 10, 2023
d81c188
feat(core/date-dropdown): changed breakpoints and documentation,
matthiashader Oct 11, 2023
7b7c0b6
feat(core/date-dropdown): added visual regression tests
matthiashader Oct 16, 2023
89e362e
feat(core/date-dropdown): lint
matthiashader Oct 16, 2023
42a4603
feat(core/date-dropdown): added documentation, changed interface
matthiashader Oct 18, 2023
8092c19
feat(core/date-dropdown): fixes
matthiashader Nov 6, 2023
f6a02b9
feat(core/date-dropdown): missing files from yarn build
matthiashader Nov 6, 2023
63306f5
feat(core/date-dropdown): fixes
matthiashader Nov 6, 2023
93e69fd
feat(core/date-dropdown): undo changes in index.html
matthiashader Nov 6, 2023
7536bcd
feat(core/date-dropdown): removed console.logs
matthiashader Nov 7, 2023
30f25ca
Merge branch 'main' into feat/date-dropdown
nuke-ellington Nov 13, 2023
f900038
Merge branch 'main' into feat/date-dropdown
nuke-ellington Nov 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39,617 changes: 39,617 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/angular-test-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
Expand Down
34 changes: 34 additions & 0 deletions packages/angular/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,40 @@ export declare interface IxContentHeader extends Components.IxContentHeader {
}


@ProxyCmp({
inputs: ['customRangeAllowed', 'dateRangeOptions', 'format', 'from', 'initialSelectedDateRangeName', 'maxDate', 'minDate', 'range', 'to'],
methods: ['getDateRange']
})
@Component({
selector: 'ix-date-dropdown',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['customRangeAllowed', 'dateRangeOptions', 'format', 'from', 'initialSelectedDateRangeName', 'maxDate', 'minDate', 'range', 'to'],
})
export class IxDateDropdown {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
proxyOutputs(this, this.el, ['dateRangeChange']);
}
}


import type { DateRangeChangeEvent as IIxDateDropdownDateRangeChangeEvent } from '@siemens/ix';

export declare interface IxDateDropdown extends Components.IxDateDropdown {
/**
* EventEmitter for date range change events.

This event is emitted when the date range changes within the component.
The event payload contains information about the selected date range. @event undefined,@private undefined
*/
dateRangeChange: EventEmitter<CustomEvent<IIxDateDropdownDateRangeChangeEvent>>;
}


@ProxyCmp({
inputs: ['corners', 'eventDelimiter', 'format', 'from', 'individual', 'maxDate', 'minDate', 'range', 'textSelectDate', 'to'],
methods: ['getCurrentDate']
Expand Down
1 change: 1 addition & 0 deletions packages/angular/src/declare-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const DIRECTIVES = [
d.IxChip,
d.IxCol,
d.IxContentHeader,
d.IxDateDropdown,
d.IxDatePicker,
d.IxDatetimePicker,
d.IxDivider,
Expand Down
Loading