@rdlabo/ionic-theme-ios26 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/lint.yml +40 -0
- package/FEEDBACK.md +100 -7
- package/FEEDBACK2.md +45 -0
- package/README.md +101 -40
- package/USING_ION_ITEM_GROUP.md +7 -9
- package/demo/eslint.config.js +2 -0
- package/demo/src/app/album/album-page.component.html +3 -3
- package/demo/src/app/album/album-page.component.scss +0 -14
- package/demo/src/app/album/album-page.component.spec.ts +1 -1
- package/demo/src/app/health/health-page.component.html +3 -3
- package/demo/src/app/health/health-page.component.spec.ts +2 -2
- package/demo/src/app/index/index-page.component.html +9 -1
- package/demo/src/app/index/index-page.component.spec.ts +6 -6
- package/demo/src/app/index/index-page.component.ts +24 -26
- package/demo/src/app/index/index.routes.ts +64 -0
- package/demo/src/app/index/pages/action-sheet/action-sheet.page.spec.ts +5 -1
- package/demo/src/app/index/pages/action-sheet/action-sheet.page.ts +3 -5
- package/demo/src/app/index/pages/alert/alert.page.spec.ts +5 -1
- package/demo/src/app/index/pages/alert/alert.page.ts +0 -2
- package/demo/src/app/index/pages/breadcrumbs/breadcrumbs.page.html +41 -0
- package/demo/src/app/index/pages/breadcrumbs/breadcrumbs.page.scss +0 -0
- package/demo/src/app/index/pages/breadcrumbs/breadcrumbs.page.spec.ts +21 -0
- package/demo/src/app/index/pages/breadcrumbs/breadcrumbs.page.ts +47 -0
- package/demo/src/app/index/pages/button/button.page.html +41 -19
- package/demo/src/app/index/pages/button/button.page.scss +3 -0
- package/demo/src/app/index/pages/button/button.page.spec.ts +5 -1
- package/demo/src/app/index/pages/button/button.page.ts +0 -2
- package/demo/src/app/index/pages/card/card.page.html +171 -0
- package/demo/src/app/index/pages/card/card.page.scss +0 -0
- package/demo/src/app/index/pages/card/card.page.spec.ts +21 -0
- package/demo/src/app/index/pages/card/card.page.ts +57 -0
- package/demo/src/app/index/pages/checkbox/checkbox.page.spec.ts +5 -1
- package/demo/src/app/index/pages/checkbox/checkbox.page.ts +0 -2
- package/demo/src/app/index/pages/chip/chip.page.html +72 -0
- package/demo/src/app/index/pages/chip/chip.page.scss +0 -0
- package/demo/src/app/index/pages/chip/chip.page.spec.ts +21 -0
- package/demo/src/app/index/pages/chip/chip.page.ts +47 -0
- package/demo/src/app/index/pages/date-and-time-pickers/date-and-time-pickers.page.html +48 -0
- package/demo/src/app/index/pages/date-and-time-pickers/date-and-time-pickers.page.scss +0 -0
- package/demo/src/app/index/pages/date-and-time-pickers/date-and-time-pickers.page.spec.ts +21 -0
- package/demo/src/app/index/pages/date-and-time-pickers/date-and-time-pickers.page.ts +55 -0
- package/demo/src/app/index/pages/floating-action-button/floating-action-button.page.html +106 -0
- package/demo/src/app/index/pages/floating-action-button/floating-action-button.page.scss +0 -0
- package/demo/src/app/index/pages/floating-action-button/floating-action-button.page.spec.ts +21 -0
- package/demo/src/app/index/pages/floating-action-button/floating-action-button.page.ts +49 -0
- package/demo/src/app/index/pages/menu/menu.page.html +13 -0
- package/demo/src/app/index/pages/menu/menu.page.scss +0 -0
- package/demo/src/app/index/pages/menu/menu.page.spec.ts +21 -0
- package/demo/src/app/index/pages/menu/menu.page.ts +17 -0
- package/demo/src/app/index/pages/modal/modal.page.html +37 -0
- package/demo/src/app/index/pages/modal/modal.page.scss +0 -0
- package/demo/src/app/index/pages/modal/modal.page.spec.ts +21 -0
- package/demo/src/app/index/pages/modal/modal.page.ts +77 -0
- package/demo/src/app/index/pages/popover/popover.page.html +34 -0
- package/demo/src/app/index/pages/popover/popover.page.scss +0 -0
- package/demo/src/app/index/pages/popover/popover.page.spec.ts +21 -0
- package/demo/src/app/index/pages/popover/popover.page.ts +47 -0
- package/demo/src/app/index/pages/progress-indicators/progress-indicators.page.html +28 -0
- package/demo/src/app/index/pages/progress-indicators/progress-indicators.page.scss +0 -0
- package/demo/src/app/index/pages/progress-indicators/progress-indicators.page.spec.ts +21 -0
- package/demo/src/app/index/pages/progress-indicators/progress-indicators.page.ts +47 -0
- package/demo/src/app/index/pages/radio/radio.page.html +39 -0
- package/demo/src/app/index/pages/radio/radio.page.scss +0 -0
- package/demo/src/app/index/pages/radio/radio.page.spec.ts +21 -0
- package/demo/src/app/index/pages/radio/radio.page.ts +47 -0
- package/demo/src/app/index/pages/range/range.page.html +58 -0
- package/demo/src/app/index/pages/range/range.page.scss +0 -0
- package/demo/src/app/index/pages/range/range.page.spec.ts +21 -0
- package/demo/src/app/index/pages/range/range.page.ts +49 -0
- package/demo/src/app/index/pages/searchbar/searchbar.page.html +33 -0
- package/demo/src/app/index/pages/searchbar/searchbar.page.scss +0 -0
- package/demo/src/app/index/pages/searchbar/searchbar.page.spec.ts +21 -0
- package/demo/src/app/index/pages/searchbar/searchbar.page.ts +45 -0
- package/demo/src/app/index/pages/segment/segment.page.html +102 -0
- package/demo/src/app/index/pages/segment/segment.page.scss +0 -0
- package/demo/src/app/index/pages/segment/segment.page.spec.ts +21 -0
- package/demo/src/app/index/pages/segment/segment.page.ts +51 -0
- package/demo/src/app/index/pages/select/select.page.html +74 -0
- package/demo/src/app/index/pages/select/select.page.scss +0 -0
- package/demo/src/app/index/pages/select/select.page.spec.ts +21 -0
- package/demo/src/app/index/pages/select/select.page.ts +50 -0
- package/demo/src/app/index/pages/toast/toast.page.html +32 -0
- package/demo/src/app/index/pages/toast/toast.page.scss +0 -0
- package/demo/src/app/index/pages/toast/toast.page.spec.ts +21 -0
- package/demo/src/app/index/pages/toast/toast.page.ts +66 -0
- package/demo/src/app/index/pages/toggle/toggle.page.html +45 -0
- package/demo/src/app/index/pages/toggle/toggle.page.scss +0 -0
- package/demo/src/app/index/pages/toggle/toggle.page.spec.ts +21 -0
- package/demo/src/app/index/pages/toggle/toggle.page.ts +49 -0
- package/demo/src/app/settings/settings-page.component.html +4 -7
- package/demo/src/app/settings/settings-page.component.spec.ts +2 -2
- package/demo/src/app/tabs/tabs.page.html +4 -4
- package/demo/src/app/tabs/tabs.page.spec.ts +1 -1
- package/demo/src/app/tabs/tabs.routes.ts +0 -1
- package/demo/src/global.scss +28 -10
- package/demo/src/index.html +1 -1
- package/demo/src/test.ts +7 -0
- package/demo/src/theme/variables.scss +18 -0
- package/demo/util/mocks/angular/angular-delegate.ts +18 -0
- package/demo/util/mocks/angular/ion-router-outlet.ts +39 -0
- package/demo/util/mocks/angular/modal-controller.ts +7 -0
- package/demo/util/mocks/angular/nav-controller.ts +22 -0
- package/demo/util/mocks/angular/popover-controller.ts +7 -0
- package/demo/util/mocks/util/base.mock.ts +13 -0
- package/demo/util/mocks/util/overlay.ts +13 -0
- package/demo/util/test.config.ts +54 -0
- package/package.json +3 -2
- package/src/components/ion-action-sheet.scss +23 -4
- package/src/components/ion-alert.scss +17 -2
- package/src/components/ion-breadcrumbs.scss +24 -0
- package/src/components/ion-button.scss +105 -62
- package/src/components/ion-card.scss +5 -1
- package/src/components/ion-chip.scss +10 -0
- package/src/components/ion-content.scss +13 -0
- package/src/components/ion-datetime.scss +9 -0
- package/src/components/ion-fab.scss +10 -4
- package/src/components/ion-list.scss +7 -2
- package/src/components/ion-loading.scss +9 -0
- package/src/components/ion-modal.scss +26 -1
- package/src/components/ion-picker.scss +4 -0
- package/src/components/ion-popover.scss +8 -16
- package/src/components/ion-range.scss +21 -0
- package/src/components/ion-searchbar.scss +2 -2
- package/src/components/ion-segment.scss +40 -5
- package/src/components/ion-tabs.scss +2 -2
- package/src/components/ion-toast.scss +11 -2
- package/src/components/ion-toggle.scss +37 -28
- package/src/components/ion-toolbar.scss +27 -0
- package/src/{utils/default-variables.scss → default-variables.scss} +3 -1
- package/src/ionic-theme-ios26-dark-always.scss +6 -0
- package/src/{ionic-theme-dark-class.scss → ionic-theme-ios26-dark-class.scss} +1 -1
- package/src/{ionic-theme-dark-system.scss → ionic-theme-ios26-dark-system.scss} +1 -1
- package/src/ionic-theme-ios26.scss +8 -17
- package/src/utils/api.scss +9 -8
- package/src/utils/dark/ion-button.scss +45 -0
- package/src/{components-dark → utils}/theme-dark.scss +5 -3
- package/src/utils/theme-list-inset.scss +23 -19
- package/src/utils/translucent.scss +59 -58
- package/build-sass.js +0 -25
- package/demo/src/theme/theme-ios26.scss +0 -25
- package/src/components-dark/ion-button.scss +0 -28
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<ion-header [translucent]="true">
|
|
2
|
+
<ion-toolbar>
|
|
3
|
+
<ion-back-button slot="start" defaultHref="/main/index"></ion-back-button>
|
|
4
|
+
<ion-title>chip</ion-title>
|
|
5
|
+
</ion-toolbar>
|
|
6
|
+
</ion-header>
|
|
7
|
+
|
|
8
|
+
<ion-content [fullscreen]="true" color="light">
|
|
9
|
+
<ion-list [inset]="true">
|
|
10
|
+
<ion-item-group class="header-item-group">
|
|
11
|
+
<ion-item>
|
|
12
|
+
<ion-label>
|
|
13
|
+
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
|
|
14
|
+
<h2>chip</h2>
|
|
15
|
+
<ion-header collapse="condense">
|
|
16
|
+
<ion-toolbar></ion-toolbar>
|
|
17
|
+
</ion-header>
|
|
18
|
+
<ion-text><code>This page is a component demo for @rdlabo/ionic-theme-ios26.</code></ion-text>
|
|
19
|
+
</ion-label>
|
|
20
|
+
</ion-item>
|
|
21
|
+
</ion-item-group>
|
|
22
|
+
</ion-list>
|
|
23
|
+
|
|
24
|
+
<section class="section-example">
|
|
25
|
+
<ion-chip class="ios26-disabled">Default</ion-chip>
|
|
26
|
+
<ion-chip class="ios26-disabled" [disabled]="true">Disabled</ion-chip>
|
|
27
|
+
<ion-chip class="ios26-disabled" [outline]="true">Outline</ion-chip>
|
|
28
|
+
<ion-chip class="ios26-disabled">
|
|
29
|
+
<ion-avatar>
|
|
30
|
+
<img alt="Silhouette of a person's head" src="https://ionicframework.com/docs/img/demos/avatar.svg" />
|
|
31
|
+
</ion-avatar>
|
|
32
|
+
<ion-label>Avatar Chip</ion-label>
|
|
33
|
+
<ion-icon name="close-circle"></ion-icon>
|
|
34
|
+
</ion-chip>
|
|
35
|
+
<ion-chip class="ios26-disabled">
|
|
36
|
+
<ion-icon name="pin" color="primary"></ion-icon>
|
|
37
|
+
<ion-label>Icon Chip</ion-label>
|
|
38
|
+
<ion-icon name="close"></ion-icon>
|
|
39
|
+
</ion-chip>
|
|
40
|
+
</section>
|
|
41
|
+
|
|
42
|
+
<section class="section-example">
|
|
43
|
+
<ion-chip>Default</ion-chip>
|
|
44
|
+
<ion-chip [disabled]="true">Disabled</ion-chip>
|
|
45
|
+
<ion-chip [outline]="true">Outline</ion-chip>
|
|
46
|
+
<ion-chip>
|
|
47
|
+
<ion-avatar>
|
|
48
|
+
<img alt="Silhouette of a person's head" src="https://ionicframework.com/docs/img/demos/avatar.svg" />
|
|
49
|
+
</ion-avatar>
|
|
50
|
+
<ion-label>Avatar Chip</ion-label>
|
|
51
|
+
<ion-icon name="close-circle"></ion-icon>
|
|
52
|
+
</ion-chip>
|
|
53
|
+
<ion-chip>
|
|
54
|
+
<ion-icon name="pin" color="primary"></ion-icon>
|
|
55
|
+
<ion-label>Icon Chip</ion-label>
|
|
56
|
+
<ion-icon name="close"></ion-icon>
|
|
57
|
+
</ion-chip>
|
|
58
|
+
</section>
|
|
59
|
+
|
|
60
|
+
<section class="section-example">
|
|
61
|
+
<ion-chip>Default</ion-chip>
|
|
62
|
+
<ion-chip color="primary">Primary</ion-chip>
|
|
63
|
+
<ion-chip color="secondary">Secondary</ion-chip>
|
|
64
|
+
<ion-chip color="tertiary">Tertiary</ion-chip>
|
|
65
|
+
<ion-chip color="success">Success</ion-chip>
|
|
66
|
+
<ion-chip color="warning">Warning</ion-chip>
|
|
67
|
+
<ion-chip color="danger">Danger</ion-chip>
|
|
68
|
+
<ion-chip color="light">Light</ion-chip>
|
|
69
|
+
<ion-chip color="medium">Medium</ion-chip>
|
|
70
|
+
<ion-chip color="dark">Dark</ion-chip>
|
|
71
|
+
</section>
|
|
72
|
+
</ion-content>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { ChipPage } from './chip.page';
|
|
3
|
+
import { testConfig } from '../../../../../util/test.config';
|
|
4
|
+
|
|
5
|
+
describe('ChipPage', () => {
|
|
6
|
+
let component: ChipPage;
|
|
7
|
+
let fixture: ComponentFixture<ChipPage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
providers: testConfig.providers,
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
fixture = TestBed.createComponent(ChipPage);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import {
|
|
5
|
+
IonAvatar,
|
|
6
|
+
IonBackButton,
|
|
7
|
+
IonChip,
|
|
8
|
+
IonContent,
|
|
9
|
+
IonHeader,
|
|
10
|
+
IonIcon,
|
|
11
|
+
IonItem,
|
|
12
|
+
IonItemGroup,
|
|
13
|
+
IonLabel,
|
|
14
|
+
IonList,
|
|
15
|
+
IonText,
|
|
16
|
+
IonTitle,
|
|
17
|
+
IonToolbar,
|
|
18
|
+
} from '@ionic/angular/standalone';
|
|
19
|
+
|
|
20
|
+
@Component({
|
|
21
|
+
selector: 'app-chip',
|
|
22
|
+
templateUrl: './chip.page.html',
|
|
23
|
+
styleUrls: ['./chip.page.scss'],
|
|
24
|
+
standalone: true,
|
|
25
|
+
imports: [
|
|
26
|
+
IonContent,
|
|
27
|
+
IonHeader,
|
|
28
|
+
IonTitle,
|
|
29
|
+
IonToolbar,
|
|
30
|
+
CommonModule,
|
|
31
|
+
FormsModule,
|
|
32
|
+
IonBackButton,
|
|
33
|
+
IonIcon,
|
|
34
|
+
IonItem,
|
|
35
|
+
IonItemGroup,
|
|
36
|
+
IonLabel,
|
|
37
|
+
IonList,
|
|
38
|
+
IonText,
|
|
39
|
+
IonChip,
|
|
40
|
+
IonAvatar,
|
|
41
|
+
],
|
|
42
|
+
})
|
|
43
|
+
export class ChipPage implements OnInit {
|
|
44
|
+
constructor() {}
|
|
45
|
+
|
|
46
|
+
ngOnInit() {}
|
|
47
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<ion-header [translucent]="true">
|
|
2
|
+
<ion-toolbar>
|
|
3
|
+
<ion-back-button slot="start" defaultHref="/main/index"></ion-back-button>
|
|
4
|
+
<ion-title>date-and-time-pickers</ion-title>
|
|
5
|
+
</ion-toolbar>
|
|
6
|
+
</ion-header>
|
|
7
|
+
|
|
8
|
+
<ion-content [fullscreen]="true" color="light">
|
|
9
|
+
<ion-list [inset]="true">
|
|
10
|
+
<ion-item-group class="header-item-group">
|
|
11
|
+
<ion-item>
|
|
12
|
+
<ion-label>
|
|
13
|
+
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
|
|
14
|
+
<h2>date-and-time-pickers</h2>
|
|
15
|
+
<ion-header collapse="condense">
|
|
16
|
+
<ion-toolbar></ion-toolbar>
|
|
17
|
+
</ion-header>
|
|
18
|
+
<ion-text><code>This page is a component demo for @rdlabo/ionic-theme-ios26.</code></ion-text>
|
|
19
|
+
</ion-label>
|
|
20
|
+
</ion-item>
|
|
21
|
+
</ion-item-group>
|
|
22
|
+
</ion-list>
|
|
23
|
+
|
|
24
|
+
<section class="section-example">
|
|
25
|
+
<ion-datetime></ion-datetime>
|
|
26
|
+
</section>
|
|
27
|
+
|
|
28
|
+
<section class="section-example">
|
|
29
|
+
<ion-picker>
|
|
30
|
+
<ion-picker-column [value]="'javascript'">
|
|
31
|
+
<ion-picker-column-option [value]="''" [disabled]="true">--</ion-picker-column-option>
|
|
32
|
+
<ion-picker-column-option [value]="'javascript'">Javascript</ion-picker-column-option>
|
|
33
|
+
<ion-picker-column-option [value]="'typescript'">Typescript</ion-picker-column-option>
|
|
34
|
+
<ion-picker-column-option [value]="'rust'">Rust</ion-picker-column-option>
|
|
35
|
+
<ion-picker-column-option [value]="'c#'">C#</ion-picker-column-option>
|
|
36
|
+
</ion-picker-column>
|
|
37
|
+
</ion-picker>
|
|
38
|
+
</section>
|
|
39
|
+
|
|
40
|
+
<section class="section-example">
|
|
41
|
+
<ion-datetime-button [datetime]="'datetime'"></ion-datetime-button>
|
|
42
|
+
<ion-modal [keepContentsMounted]="true">
|
|
43
|
+
<ng-template>
|
|
44
|
+
<ion-datetime id="datetime"></ion-datetime>
|
|
45
|
+
</ng-template>
|
|
46
|
+
</ion-modal>
|
|
47
|
+
</section>
|
|
48
|
+
</ion-content>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { DateAndTimePickersPage } from './date-and-time-pickers.page';
|
|
3
|
+
import { testConfig } from '../../../../../util/test.config';
|
|
4
|
+
|
|
5
|
+
describe('DateAndTimePickersPage', () => {
|
|
6
|
+
let component: DateAndTimePickersPage;
|
|
7
|
+
let fixture: ComponentFixture<DateAndTimePickersPage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
providers: testConfig.providers,
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
fixture = TestBed.createComponent(DateAndTimePickersPage);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import {
|
|
5
|
+
IonBackButton,
|
|
6
|
+
IonContent,
|
|
7
|
+
IonDatetime,
|
|
8
|
+
IonDatetimeButton,
|
|
9
|
+
IonHeader,
|
|
10
|
+
IonIcon,
|
|
11
|
+
IonItem,
|
|
12
|
+
IonItemGroup,
|
|
13
|
+
IonLabel,
|
|
14
|
+
IonList,
|
|
15
|
+
IonModal,
|
|
16
|
+
IonPicker,
|
|
17
|
+
IonPickerColumn,
|
|
18
|
+
IonPickerColumnOption,
|
|
19
|
+
IonText,
|
|
20
|
+
IonTitle,
|
|
21
|
+
IonToolbar,
|
|
22
|
+
} from '@ionic/angular/standalone';
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
selector: 'app-date-and-time-pickers',
|
|
26
|
+
templateUrl: './date-and-time-pickers.page.html',
|
|
27
|
+
styleUrls: ['./date-and-time-pickers.page.scss'],
|
|
28
|
+
standalone: true,
|
|
29
|
+
imports: [
|
|
30
|
+
IonContent,
|
|
31
|
+
IonHeader,
|
|
32
|
+
IonTitle,
|
|
33
|
+
IonToolbar,
|
|
34
|
+
CommonModule,
|
|
35
|
+
FormsModule,
|
|
36
|
+
IonBackButton,
|
|
37
|
+
IonIcon,
|
|
38
|
+
IonItem,
|
|
39
|
+
IonItemGroup,
|
|
40
|
+
IonLabel,
|
|
41
|
+
IonList,
|
|
42
|
+
IonText,
|
|
43
|
+
IonDatetime,
|
|
44
|
+
IonPicker,
|
|
45
|
+
IonPickerColumn,
|
|
46
|
+
IonPickerColumnOption,
|
|
47
|
+
IonModal,
|
|
48
|
+
IonDatetimeButton,
|
|
49
|
+
],
|
|
50
|
+
})
|
|
51
|
+
export class DateAndTimePickersPage implements OnInit {
|
|
52
|
+
constructor() {}
|
|
53
|
+
|
|
54
|
+
ngOnInit() {}
|
|
55
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<ion-header [translucent]="true">
|
|
2
|
+
<ion-toolbar>
|
|
3
|
+
<ion-back-button slot="start" defaultHref="/main/index"></ion-back-button>
|
|
4
|
+
<ion-title>floating-action-button</ion-title>
|
|
5
|
+
</ion-toolbar>
|
|
6
|
+
</ion-header>
|
|
7
|
+
|
|
8
|
+
<ion-content [fullscreen]="true" color="light">
|
|
9
|
+
<ion-list [inset]="true">
|
|
10
|
+
<ion-item-group class="header-item-group">
|
|
11
|
+
<ion-item>
|
|
12
|
+
<ion-label>
|
|
13
|
+
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
|
|
14
|
+
<h2>floating-action-button</h2>
|
|
15
|
+
<ion-header collapse="condense">
|
|
16
|
+
<ion-toolbar></ion-toolbar>
|
|
17
|
+
</ion-header>
|
|
18
|
+
<ion-text><code>This page is a component demo for @rdlabo/ionic-theme-ios26.</code></ion-text>
|
|
19
|
+
</ion-label>
|
|
20
|
+
</ion-item>
|
|
21
|
+
</ion-item-group>
|
|
22
|
+
</ion-list>
|
|
23
|
+
|
|
24
|
+
<ion-fab slot="fixed" vertical="top" horizontal="start">
|
|
25
|
+
<ion-fab-button size="small">
|
|
26
|
+
<ion-icon name="chevron-forward-circle"></ion-icon>
|
|
27
|
+
</ion-fab-button>
|
|
28
|
+
<ion-fab-list side="end">
|
|
29
|
+
<ion-fab-button>
|
|
30
|
+
<ion-icon name="document"></ion-icon>
|
|
31
|
+
</ion-fab-button>
|
|
32
|
+
<ion-fab-button>
|
|
33
|
+
<ion-icon name="color-palette"></ion-icon>
|
|
34
|
+
</ion-fab-button>
|
|
35
|
+
<ion-fab-button>
|
|
36
|
+
<ion-icon name="globe"></ion-icon>
|
|
37
|
+
</ion-fab-button>
|
|
38
|
+
</ion-fab-list>
|
|
39
|
+
</ion-fab>
|
|
40
|
+
|
|
41
|
+
<ion-fab slot="fixed" vertical="top" horizontal="end" [edge]="true">
|
|
42
|
+
<ion-fab-button>
|
|
43
|
+
<ion-icon name="chevron-down-circle"></ion-icon>
|
|
44
|
+
</ion-fab-button>
|
|
45
|
+
<ion-fab-list side="bottom">
|
|
46
|
+
<ion-fab-button>
|
|
47
|
+
<ion-icon name="document"></ion-icon>
|
|
48
|
+
</ion-fab-button>
|
|
49
|
+
<ion-fab-button>
|
|
50
|
+
<ion-icon name="color-palette"></ion-icon>
|
|
51
|
+
</ion-fab-button>
|
|
52
|
+
<ion-fab-button>
|
|
53
|
+
<ion-icon name="globe"></ion-icon>
|
|
54
|
+
</ion-fab-button>
|
|
55
|
+
</ion-fab-list>
|
|
56
|
+
</ion-fab>
|
|
57
|
+
|
|
58
|
+
<ion-fab slot="fixed" horizontal="center" vertical="center">
|
|
59
|
+
<ion-fab-button>
|
|
60
|
+
<ion-icon name="add"></ion-icon>
|
|
61
|
+
</ion-fab-button>
|
|
62
|
+
<ion-fab-list side="top">
|
|
63
|
+
<ion-fab-button>
|
|
64
|
+
<ion-icon name="chevron-up"></ion-icon>
|
|
65
|
+
</ion-fab-button>
|
|
66
|
+
</ion-fab-list>
|
|
67
|
+
<ion-fab-list side="end">
|
|
68
|
+
<ion-fab-button>
|
|
69
|
+
<ion-icon name="chevron-forward"></ion-icon>
|
|
70
|
+
</ion-fab-button>
|
|
71
|
+
<ion-fab-button>
|
|
72
|
+
<ion-icon name="chevron-forward"></ion-icon>
|
|
73
|
+
</ion-fab-button>
|
|
74
|
+
</ion-fab-list>
|
|
75
|
+
<ion-fab-list side="bottom">
|
|
76
|
+
<ion-fab-button>
|
|
77
|
+
<ion-icon name="chevron-down"></ion-icon>
|
|
78
|
+
</ion-fab-button>
|
|
79
|
+
</ion-fab-list>
|
|
80
|
+
<ion-fab-list side="start">
|
|
81
|
+
<ion-fab-button>
|
|
82
|
+
<ion-icon name="chevron-back"></ion-icon>
|
|
83
|
+
</ion-fab-button>
|
|
84
|
+
<ion-fab-button>
|
|
85
|
+
<ion-icon name="chevron-back"></ion-icon>
|
|
86
|
+
</ion-fab-button>
|
|
87
|
+
</ion-fab-list>
|
|
88
|
+
</ion-fab>
|
|
89
|
+
|
|
90
|
+
<ion-fab slot="fixed" vertical="bottom" horizontal="end">
|
|
91
|
+
<ion-fab-button>
|
|
92
|
+
<ion-icon name="chevron-up-circle"></ion-icon>
|
|
93
|
+
</ion-fab-button>
|
|
94
|
+
<ion-fab-list side="top">
|
|
95
|
+
<ion-fab-button>
|
|
96
|
+
<ion-icon name="document"></ion-icon>
|
|
97
|
+
</ion-fab-button>
|
|
98
|
+
<ion-fab-button>
|
|
99
|
+
<ion-icon name="color-palette"></ion-icon>
|
|
100
|
+
</ion-fab-button>
|
|
101
|
+
<ion-fab-button>
|
|
102
|
+
<ion-icon name="globe"></ion-icon>
|
|
103
|
+
</ion-fab-button>
|
|
104
|
+
</ion-fab-list>
|
|
105
|
+
</ion-fab>
|
|
106
|
+
</ion-content>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { FloatingActionButtonPage } from './floating-action-button.page';
|
|
3
|
+
import { testConfig } from '../../../../../util/test.config';
|
|
4
|
+
|
|
5
|
+
describe('FloatingActionButtonPage', () => {
|
|
6
|
+
let component: FloatingActionButtonPage;
|
|
7
|
+
let fixture: ComponentFixture<FloatingActionButtonPage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
providers: testConfig.providers,
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
fixture = TestBed.createComponent(FloatingActionButtonPage);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import {
|
|
5
|
+
IonBackButton,
|
|
6
|
+
IonContent,
|
|
7
|
+
IonFab,
|
|
8
|
+
IonFabButton,
|
|
9
|
+
IonFabList,
|
|
10
|
+
IonHeader,
|
|
11
|
+
IonIcon,
|
|
12
|
+
IonItem,
|
|
13
|
+
IonItemGroup,
|
|
14
|
+
IonLabel,
|
|
15
|
+
IonList,
|
|
16
|
+
IonText,
|
|
17
|
+
IonTitle,
|
|
18
|
+
IonToolbar,
|
|
19
|
+
} from '@ionic/angular/standalone';
|
|
20
|
+
|
|
21
|
+
@Component({
|
|
22
|
+
selector: 'app-floating-action-button',
|
|
23
|
+
templateUrl: './floating-action-button.page.html',
|
|
24
|
+
styleUrls: ['./floating-action-button.page.scss'],
|
|
25
|
+
standalone: true,
|
|
26
|
+
imports: [
|
|
27
|
+
IonContent,
|
|
28
|
+
IonHeader,
|
|
29
|
+
IonTitle,
|
|
30
|
+
IonToolbar,
|
|
31
|
+
CommonModule,
|
|
32
|
+
FormsModule,
|
|
33
|
+
IonBackButton,
|
|
34
|
+
IonIcon,
|
|
35
|
+
IonItem,
|
|
36
|
+
IonItemGroup,
|
|
37
|
+
IonLabel,
|
|
38
|
+
IonList,
|
|
39
|
+
IonText,
|
|
40
|
+
IonFab,
|
|
41
|
+
IonFabButton,
|
|
42
|
+
IonFabList,
|
|
43
|
+
],
|
|
44
|
+
})
|
|
45
|
+
export class FloatingActionButtonPage implements OnInit {
|
|
46
|
+
constructor() {}
|
|
47
|
+
|
|
48
|
+
ngOnInit() {}
|
|
49
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<ion-header [translucent]="true">
|
|
2
|
+
<ion-toolbar>
|
|
3
|
+
<ion-title>menu</ion-title>
|
|
4
|
+
</ion-toolbar>
|
|
5
|
+
</ion-header>
|
|
6
|
+
|
|
7
|
+
<ion-content [fullscreen]="true">
|
|
8
|
+
<ion-header collapse="condense">
|
|
9
|
+
<ion-toolbar>
|
|
10
|
+
<ion-title size="large">menu</ion-title>
|
|
11
|
+
</ion-toolbar>
|
|
12
|
+
</ion-header>
|
|
13
|
+
</ion-content>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { MenuPage } from './menu.page';
|
|
3
|
+
import { testConfig } from '../../../../../util/test.config';
|
|
4
|
+
|
|
5
|
+
describe('MenuPage', () => {
|
|
6
|
+
let component: MenuPage;
|
|
7
|
+
let fixture: ComponentFixture<MenuPage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
providers: testConfig.providers,
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
fixture = TestBed.createComponent(MenuPage);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/angular/standalone';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-menu',
|
|
8
|
+
templateUrl: './menu.page.html',
|
|
9
|
+
styleUrls: ['./menu.page.scss'],
|
|
10
|
+
standalone: true,
|
|
11
|
+
imports: [IonContent, IonHeader, IonTitle, IonToolbar, CommonModule, FormsModule],
|
|
12
|
+
})
|
|
13
|
+
export class MenuPage implements OnInit {
|
|
14
|
+
constructor() {}
|
|
15
|
+
|
|
16
|
+
ngOnInit() {}
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<ion-header [translucent]="true">
|
|
2
|
+
<ion-toolbar>
|
|
3
|
+
@if (this.isModal()) {
|
|
4
|
+
<ion-buttons slot="end">
|
|
5
|
+
<ion-button (click)="overlayCtrl.dismiss()"><ion-icon name="close-outline" slot="icon-only"></ion-icon></ion-button>
|
|
6
|
+
</ion-buttons>
|
|
7
|
+
} @else {
|
|
8
|
+
<ion-back-button slot="start" defaultHref="/main/index"></ion-back-button>
|
|
9
|
+
}
|
|
10
|
+
<ion-title>modal</ion-title>
|
|
11
|
+
</ion-toolbar>
|
|
12
|
+
</ion-header>
|
|
13
|
+
|
|
14
|
+
<ion-content [fullscreen]="true" color="light">
|
|
15
|
+
<ion-list [inset]="true">
|
|
16
|
+
<ion-item-group class="header-item-group">
|
|
17
|
+
<ion-item>
|
|
18
|
+
<ion-label>
|
|
19
|
+
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
|
|
20
|
+
<h2>modal</h2>
|
|
21
|
+
<ion-header collapse="condense">
|
|
22
|
+
<ion-toolbar></ion-toolbar>
|
|
23
|
+
</ion-header>
|
|
24
|
+
<ion-text><code>This page is a component demo for @rdlabo/ionic-theme-ios26.</code></ion-text>
|
|
25
|
+
</ion-label>
|
|
26
|
+
</ion-item>
|
|
27
|
+
</ion-item-group>
|
|
28
|
+
</ion-list>
|
|
29
|
+
|
|
30
|
+
<ion-list [inset]="true">
|
|
31
|
+
<ion-item-group>
|
|
32
|
+
<ion-item (click)="present('normal')" [button]="true">present:normal</ion-item>
|
|
33
|
+
<ion-item (click)="present('card')" [button]="true">present:card</ion-item>
|
|
34
|
+
<ion-item (click)="present('sheet')" [button]="true">present:sheet</ion-item>
|
|
35
|
+
</ion-item-group>
|
|
36
|
+
</ion-list>
|
|
37
|
+
</ion-content>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { ModalPage } from './modal.page';
|
|
3
|
+
import { testConfig } from '../../../../../util/test.config';
|
|
4
|
+
|
|
5
|
+
describe('ModalPage', () => {
|
|
6
|
+
let component: ModalPage;
|
|
7
|
+
let fixture: ComponentFixture<ModalPage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
providers: testConfig.providers,
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
fixture = TestBed.createComponent(ModalPage);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Component, ElementRef, inject, input, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import {
|
|
5
|
+
IonBackButton,
|
|
6
|
+
IonButton,
|
|
7
|
+
IonButtons,
|
|
8
|
+
IonContent,
|
|
9
|
+
IonHeader,
|
|
10
|
+
IonIcon,
|
|
11
|
+
IonItem,
|
|
12
|
+
IonItemGroup,
|
|
13
|
+
IonLabel,
|
|
14
|
+
IonList,
|
|
15
|
+
IonText,
|
|
16
|
+
IonTitle,
|
|
17
|
+
IonToolbar,
|
|
18
|
+
ModalController,
|
|
19
|
+
} from '@ionic/angular/standalone';
|
|
20
|
+
|
|
21
|
+
@Component({
|
|
22
|
+
selector: 'app-modal',
|
|
23
|
+
templateUrl: './modal.page.html',
|
|
24
|
+
styleUrls: ['./modal.page.scss'],
|
|
25
|
+
standalone: true,
|
|
26
|
+
imports: [
|
|
27
|
+
IonContent,
|
|
28
|
+
IonHeader,
|
|
29
|
+
IonTitle,
|
|
30
|
+
IonToolbar,
|
|
31
|
+
CommonModule,
|
|
32
|
+
FormsModule,
|
|
33
|
+
IonBackButton,
|
|
34
|
+
IonIcon,
|
|
35
|
+
IonItem,
|
|
36
|
+
IonItemGroup,
|
|
37
|
+
IonLabel,
|
|
38
|
+
IonList,
|
|
39
|
+
IonText,
|
|
40
|
+
IonButtons,
|
|
41
|
+
IonButton,
|
|
42
|
+
],
|
|
43
|
+
})
|
|
44
|
+
export class ModalPage implements OnInit {
|
|
45
|
+
readonly overlayCtrl = inject(ModalController);
|
|
46
|
+
readonly #el = inject(ElementRef);
|
|
47
|
+
|
|
48
|
+
readonly isModal = input<boolean>();
|
|
49
|
+
|
|
50
|
+
ngOnInit() {}
|
|
51
|
+
|
|
52
|
+
async present(type: 'normal' | 'card' | 'sheet') {
|
|
53
|
+
const modalDefault = {
|
|
54
|
+
component: ModalPage,
|
|
55
|
+
componentProps: {
|
|
56
|
+
isModal: true,
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
const applyConfig = ((type) => {
|
|
60
|
+
if (type === 'card') {
|
|
61
|
+
return {
|
|
62
|
+
...modalDefault,
|
|
63
|
+
presentingElement: this.#el.nativeElement,
|
|
64
|
+
};
|
|
65
|
+
} else if (type === 'sheet') {
|
|
66
|
+
return {
|
|
67
|
+
...modalDefault,
|
|
68
|
+
breakpoints: [0, 0.5, 0.8],
|
|
69
|
+
initialBreakpoint: 0.8,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return modalDefault;
|
|
73
|
+
})(type);
|
|
74
|
+
const actionSheet = await this.overlayCtrl.create(applyConfig);
|
|
75
|
+
await actionSheet.present();
|
|
76
|
+
}
|
|
77
|
+
}
|