@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,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { SegmentPage } from './segment.page';
|
|
3
|
+
import { testConfig } from '../../../../../util/test.config';
|
|
4
|
+
|
|
5
|
+
describe('SegmentPage', () => {
|
|
6
|
+
let component: SegmentPage;
|
|
7
|
+
let fixture: ComponentFixture<SegmentPage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
providers: testConfig.providers,
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
fixture = TestBed.createComponent(SegmentPage);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Component, 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
|
+
IonSegment,
|
|
16
|
+
IonSegmentButton,
|
|
17
|
+
IonText,
|
|
18
|
+
IonTitle,
|
|
19
|
+
IonToolbar,
|
|
20
|
+
} from '@ionic/angular/standalone';
|
|
21
|
+
|
|
22
|
+
@Component({
|
|
23
|
+
selector: 'app-segment',
|
|
24
|
+
templateUrl: './segment.page.html',
|
|
25
|
+
styleUrls: ['./segment.page.scss'],
|
|
26
|
+
standalone: true,
|
|
27
|
+
imports: [
|
|
28
|
+
IonContent,
|
|
29
|
+
IonHeader,
|
|
30
|
+
IonTitle,
|
|
31
|
+
IonToolbar,
|
|
32
|
+
CommonModule,
|
|
33
|
+
FormsModule,
|
|
34
|
+
IonBackButton,
|
|
35
|
+
IonIcon,
|
|
36
|
+
IonItem,
|
|
37
|
+
IonItemGroup,
|
|
38
|
+
IonLabel,
|
|
39
|
+
IonList,
|
|
40
|
+
IonText,
|
|
41
|
+
IonSegment,
|
|
42
|
+
IonSegmentButton,
|
|
43
|
+
IonButtons,
|
|
44
|
+
IonButton,
|
|
45
|
+
],
|
|
46
|
+
})
|
|
47
|
+
export class SegmentPage implements OnInit {
|
|
48
|
+
constructor() {}
|
|
49
|
+
|
|
50
|
+
ngOnInit() {}
|
|
51
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<ion-header [translucent]="true">
|
|
2
|
+
<ion-toolbar>
|
|
3
|
+
<ion-back-button slot="start" defaultHref="/main/index"></ion-back-button>
|
|
4
|
+
<ion-title>select</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>select</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-list [inset]="true">
|
|
25
|
+
<ion-item-group>
|
|
26
|
+
<ion-item>
|
|
27
|
+
<ion-select label="Default label" placeholder="Favorite Fruit">
|
|
28
|
+
<ion-select-option [value]="'apple'">Apple</ion-select-option>
|
|
29
|
+
<ion-select-option [value]="'banana'">Banana</ion-select-option>
|
|
30
|
+
<ion-select-option [value]="'orange'">Orange</ion-select-option>
|
|
31
|
+
</ion-select>
|
|
32
|
+
</ion-item>
|
|
33
|
+
|
|
34
|
+
<ion-item>
|
|
35
|
+
<ion-select label="Fixed label" label-placement="fixed" placeholder="Favorite fruit">
|
|
36
|
+
<ion-select-option [value]="'apple'">Apple</ion-select-option>
|
|
37
|
+
<ion-select-option [value]="'banana'">Banana</ion-select-option>
|
|
38
|
+
<ion-select-option [value]="'orange'">Orange</ion-select-option>
|
|
39
|
+
</ion-select>
|
|
40
|
+
</ion-item>
|
|
41
|
+
|
|
42
|
+
<ion-item>
|
|
43
|
+
<ion-select label="Stacked label" label-placement="stacked">
|
|
44
|
+
<ion-select-option [value]="'apple'">Apple</ion-select-option>
|
|
45
|
+
<ion-select-option [value]="'banana'">Banana</ion-select-option>
|
|
46
|
+
<ion-select-option [value]="'orange'">Orange</ion-select-option>
|
|
47
|
+
</ion-select>
|
|
48
|
+
</ion-item>
|
|
49
|
+
|
|
50
|
+
<ion-item>
|
|
51
|
+
<ion-select label="Floating label" label-placement="floating">
|
|
52
|
+
<ion-select-option [value]="'apple'">Apple</ion-select-option>
|
|
53
|
+
<ion-select-option [value]="'banana'">Banana</ion-select-option>
|
|
54
|
+
<ion-select-option [value]="'orange'">Orange</ion-select-option>
|
|
55
|
+
</ion-select>
|
|
56
|
+
</ion-item>
|
|
57
|
+
</ion-item-group>
|
|
58
|
+
</ion-list>
|
|
59
|
+
|
|
60
|
+
<ion-list [inset]="true">
|
|
61
|
+
<ion-list-header><ion-label>Interfaces</ion-label></ion-list-header>
|
|
62
|
+
<ion-item-group>
|
|
63
|
+
@for (item of interfaces; track item) {
|
|
64
|
+
<ion-item>
|
|
65
|
+
<ion-select [label]="item" placeholder="Favorite Fruit" [interface]="item">
|
|
66
|
+
<ion-select-option [value]="'apple'">Apple</ion-select-option>
|
|
67
|
+
<ion-select-option [value]="'banana'">Banana</ion-select-option>
|
|
68
|
+
<ion-select-option [value]="'orange'">Orange</ion-select-option>
|
|
69
|
+
</ion-select>
|
|
70
|
+
</ion-item>
|
|
71
|
+
}
|
|
72
|
+
</ion-item-group>
|
|
73
|
+
</ion-list>
|
|
74
|
+
</ion-content>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { SelectPage } from './select.page';
|
|
3
|
+
import { testConfig } from '../../../../../util/test.config';
|
|
4
|
+
|
|
5
|
+
describe('SelectPage', () => {
|
|
6
|
+
let component: SelectPage;
|
|
7
|
+
let fixture: ComponentFixture<SelectPage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
providers: testConfig.providers,
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
fixture = TestBed.createComponent(SelectPage);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
IonHeader,
|
|
8
|
+
IonIcon,
|
|
9
|
+
IonItem,
|
|
10
|
+
IonItemGroup,
|
|
11
|
+
IonLabel,
|
|
12
|
+
IonList,
|
|
13
|
+
IonListHeader,
|
|
14
|
+
IonSelect,
|
|
15
|
+
IonSelectOption,
|
|
16
|
+
IonText,
|
|
17
|
+
IonTitle,
|
|
18
|
+
IonToolbar,
|
|
19
|
+
} from '@ionic/angular/standalone';
|
|
20
|
+
|
|
21
|
+
@Component({
|
|
22
|
+
selector: 'app-select',
|
|
23
|
+
templateUrl: './select.page.html',
|
|
24
|
+
styleUrls: ['./select.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
|
+
IonSelect,
|
|
41
|
+
IonSelectOption,
|
|
42
|
+
IonListHeader,
|
|
43
|
+
],
|
|
44
|
+
})
|
|
45
|
+
export class SelectPage implements OnInit {
|
|
46
|
+
readonly interfaces = ['alert', 'action-sheet', 'popover', 'modal'] as ('action-sheet' | 'popover' | 'alert' | 'modal')[];
|
|
47
|
+
constructor() {}
|
|
48
|
+
|
|
49
|
+
ngOnInit() {}
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<ion-header [translucent]="true">
|
|
2
|
+
<ion-toolbar>
|
|
3
|
+
<ion-back-button slot="start" defaultHref="/main/index"></ion-back-button>
|
|
4
|
+
<ion-title>toast</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>toast</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-list [inset]="true">
|
|
25
|
+
<ion-item-group>
|
|
26
|
+
<ion-item (click)="present('top')" [button]="true">present:top</ion-item>
|
|
27
|
+
<ion-item (click)="present('middle')" [button]="true">present:middle</ion-item>
|
|
28
|
+
<ion-item (click)="present('bottom')" [button]="true">present:bottom</ion-item>
|
|
29
|
+
<ion-item (click)="present('anchor')" [button]="true">present:anchor</ion-item>
|
|
30
|
+
</ion-item-group>
|
|
31
|
+
</ion-list>
|
|
32
|
+
</ion-content>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { ToastPage } from './toast.page';
|
|
3
|
+
import { testConfig } from '../../../../../util/test.config';
|
|
4
|
+
|
|
5
|
+
describe('ToastPage', () => {
|
|
6
|
+
let component: ToastPage;
|
|
7
|
+
let fixture: ComponentFixture<ToastPage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
providers: testConfig.providers,
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
fixture = TestBed.createComponent(ToastPage);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Component, inject, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import {
|
|
5
|
+
IonBackButton,
|
|
6
|
+
IonContent,
|
|
7
|
+
IonHeader,
|
|
8
|
+
IonIcon,
|
|
9
|
+
IonItem,
|
|
10
|
+
IonItemGroup,
|
|
11
|
+
IonLabel,
|
|
12
|
+
IonList,
|
|
13
|
+
IonText,
|
|
14
|
+
IonTitle,
|
|
15
|
+
IonToolbar,
|
|
16
|
+
ToastController,
|
|
17
|
+
} from '@ionic/angular/standalone';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
selector: 'app-toast',
|
|
21
|
+
templateUrl: './toast.page.html',
|
|
22
|
+
styleUrls: ['./toast.page.scss'],
|
|
23
|
+
standalone: true,
|
|
24
|
+
imports: [
|
|
25
|
+
IonContent,
|
|
26
|
+
IonHeader,
|
|
27
|
+
IonTitle,
|
|
28
|
+
IonToolbar,
|
|
29
|
+
CommonModule,
|
|
30
|
+
FormsModule,
|
|
31
|
+
IonBackButton,
|
|
32
|
+
IonIcon,
|
|
33
|
+
IonItem,
|
|
34
|
+
IonItemGroup,
|
|
35
|
+
IonLabel,
|
|
36
|
+
IonList,
|
|
37
|
+
IonText,
|
|
38
|
+
],
|
|
39
|
+
})
|
|
40
|
+
export class ToastPage implements OnInit {
|
|
41
|
+
readonly overlayCtrl = inject(ToastController);
|
|
42
|
+
|
|
43
|
+
ngOnInit() {}
|
|
44
|
+
|
|
45
|
+
async present(type: 'top' | 'middle' | 'bottom' | 'anchor') {
|
|
46
|
+
const toastDefault = {
|
|
47
|
+
message: 'Hello World!',
|
|
48
|
+
buttons: ['Close'],
|
|
49
|
+
};
|
|
50
|
+
const applyConfig = ((type) => {
|
|
51
|
+
if (type === 'anchor') {
|
|
52
|
+
return {
|
|
53
|
+
...toastDefault,
|
|
54
|
+
positionAnchor: 'tab-bar-bottom',
|
|
55
|
+
position: 'bottom' as 'top' | 'middle' | 'bottom',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
...toastDefault,
|
|
60
|
+
position: type as 'top' | 'middle' | 'bottom',
|
|
61
|
+
};
|
|
62
|
+
})(type);
|
|
63
|
+
const actionSheet = await this.overlayCtrl.create(applyConfig);
|
|
64
|
+
await actionSheet.present();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<ion-header [translucent]="true">
|
|
2
|
+
<ion-toolbar>
|
|
3
|
+
<ion-back-button slot="start" defaultHref="/main/index"></ion-back-button>
|
|
4
|
+
<ion-title>toggle</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>toggle</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-list [inset]="true">
|
|
25
|
+
<ion-list-header><ion-label>Default styles</ion-label></ion-list-header>
|
|
26
|
+
<ion-item-group>
|
|
27
|
+
<ion-item>
|
|
28
|
+
<ion-toggle color="success" justify="space-between">Airplane Mode</ion-toggle>
|
|
29
|
+
</ion-item>
|
|
30
|
+
</ion-item-group>
|
|
31
|
+
<ion-note>This component is overwrite.</ion-note>
|
|
32
|
+
</ion-list>
|
|
33
|
+
|
|
34
|
+
<section class="section-example">
|
|
35
|
+
<ion-toggle>Default Toggle</ion-toggle><br /><br />
|
|
36
|
+
<ion-toggle [checked]="true">Checked Toggle</ion-toggle><br /><br />
|
|
37
|
+
<ion-toggle [disabled]="true">Disabled Toggle</ion-toggle><br /><br />
|
|
38
|
+
<ion-toggle [checked]="true" [disabled]="true">Disabled Checked Toggle</ion-toggle>
|
|
39
|
+
<ion-toggle enable-on-off-labels="true">Enable Notifications</ion-toggle>
|
|
40
|
+
<ion-toggle label-placement="start">Label at the Start</ion-toggle><br /><br />
|
|
41
|
+
<ion-toggle label-placement="end">Label at the End</ion-toggle><br /><br />
|
|
42
|
+
<ion-toggle label-placement="fixed">Fixed Width Label</ion-toggle><br /><br />
|
|
43
|
+
<ion-toggle label-placement="stacked">Stacked Label</ion-toggle>
|
|
44
|
+
</section>
|
|
45
|
+
</ion-content>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { TogglePage } from './toggle.page';
|
|
3
|
+
import { testConfig } from '../../../../../util/test.config';
|
|
4
|
+
|
|
5
|
+
describe('TogglePage', () => {
|
|
6
|
+
let component: TogglePage;
|
|
7
|
+
let fixture: ComponentFixture<TogglePage>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
providers: testConfig.providers,
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
fixture = TestBed.createComponent(TogglePage);
|
|
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
|
+
IonHeader,
|
|
8
|
+
IonIcon,
|
|
9
|
+
IonItem,
|
|
10
|
+
IonItemGroup,
|
|
11
|
+
IonLabel,
|
|
12
|
+
IonList,
|
|
13
|
+
IonListHeader,
|
|
14
|
+
IonNote,
|
|
15
|
+
IonText,
|
|
16
|
+
IonTitle,
|
|
17
|
+
IonToggle,
|
|
18
|
+
IonToolbar,
|
|
19
|
+
} from '@ionic/angular/standalone';
|
|
20
|
+
|
|
21
|
+
@Component({
|
|
22
|
+
selector: 'app-toggle',
|
|
23
|
+
templateUrl: './toggle.page.html',
|
|
24
|
+
styleUrls: ['./toggle.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
|
+
IonListHeader,
|
|
40
|
+
IonNote,
|
|
41
|
+
IonText,
|
|
42
|
+
IonToggle,
|
|
43
|
+
],
|
|
44
|
+
})
|
|
45
|
+
export class TogglePage implements OnInit {
|
|
46
|
+
constructor() {}
|
|
47
|
+
|
|
48
|
+
ngOnInit() {}
|
|
49
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<ion-header [translucent]="true">
|
|
2
2
|
<ion-toolbar>
|
|
3
|
-
<ion-
|
|
4
|
-
<ion-back-button defaultHref="/"></ion-back-button>
|
|
5
|
-
</ion-buttons>
|
|
3
|
+
<ion-back-button slot="start" defaultHref="/"></ion-back-button>
|
|
6
4
|
<ion-title>Settings</ion-title>
|
|
7
|
-
<ion-buttons slot="end">
|
|
8
|
-
<ion-button
|
|
5
|
+
<ion-buttons class="ios26-disabled" slot="end">
|
|
6
|
+
<ion-button fill="default" href="https://github.com/rdlabo-team/ionic-theme-ios26"
|
|
9
7
|
><ion-icon name="logo-github" slot="icon-only"></ion-icon
|
|
10
8
|
></ion-button>
|
|
11
9
|
</ion-buttons>
|
|
@@ -33,8 +31,7 @@
|
|
|
33
31
|
<ion-item-group>
|
|
34
32
|
<ion-item>
|
|
35
33
|
<ion-icon name="airplane" slot="start" style="background: linear-gradient(#f8b250, #f79407)"></ion-icon>
|
|
36
|
-
<ion-
|
|
37
|
-
<ion-toggle slot="end" color="success"></ion-toggle>
|
|
34
|
+
<ion-toggle color="success" justify="space-between">Airplane Mode</ion-toggle>
|
|
38
35
|
</ion-item>
|
|
39
36
|
<ion-item [detail]="true">
|
|
40
37
|
<ion-icon name="wifi" slot="start" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
2
|
import { SettingsPage } from './settings-page.component';
|
|
3
|
-
import { testConfig } from '
|
|
3
|
+
import { testConfig } from '../../../util/test.config';
|
|
4
4
|
|
|
5
|
-
describe('
|
|
5
|
+
describe('SettingsPage', () => {
|
|
6
6
|
let component: SettingsPage;
|
|
7
7
|
let fixture: ComponentFixture<SettingsPage>;
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<ion-tabs>
|
|
2
|
-
<ion-tab-bar slot="bottom">
|
|
2
|
+
<ion-tab-bar id="tab-bar-bottom" slot="bottom">
|
|
3
3
|
<ion-tab-button tab="index" href="/main/index">
|
|
4
|
-
<ion-icon aria-hidden="true" name="documents
|
|
4
|
+
<ion-icon aria-hidden="true" name="documents"></ion-icon>
|
|
5
5
|
<ion-label>Index</ion-label>
|
|
6
6
|
</ion-tab-button>
|
|
7
7
|
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
</ion-tab-button>
|
|
12
12
|
|
|
13
13
|
<ion-tab-button tab="settings" href="/main/settings">
|
|
14
|
-
<ion-icon aria-hidden="true" name="cog
|
|
14
|
+
<ion-icon aria-hidden="true" name="cog"></ion-icon>
|
|
15
15
|
<ion-label>Settings</ion-label>
|
|
16
16
|
</ion-tab-button>
|
|
17
17
|
|
|
18
18
|
<ion-tab-button tab="health" href="/main/health">
|
|
19
|
-
<ion-icon aria-hidden="true" name="list
|
|
19
|
+
<ion-icon aria-hidden="true" name="list"></ion-icon>
|
|
20
20
|
<ion-label>Health</ion-label>
|
|
21
21
|
</ion-tab-button>
|
|
22
22
|
</ion-tab-bar>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
2
|
|
|
3
3
|
import { TabsPage } from './tabs.page';
|
|
4
|
-
import { testConfig } from '
|
|
4
|
+
import { testConfig } from '../../../util/test.config';
|
|
5
5
|
|
|
6
6
|
describe('TabsPage', () => {
|
|
7
7
|
let component: TabsPage;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Routes } from '@angular/router';
|
|
2
2
|
import { TabsPage } from './tabs.page';
|
|
3
|
-
import { IndexPageComponent } from '../index/index-page.component';
|
|
4
3
|
import { AlbumPage } from '../album/album-page.component';
|
|
5
4
|
import { SettingsPage } from '../settings/settings-page.component';
|
|
6
5
|
import { HealthPage } from '../health/health-page.component';
|
package/demo/src/global.scss
CHANGED
|
@@ -32,16 +32,34 @@
|
|
|
32
32
|
* https://ionicframework.com/docs/theming/dark-mode
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
|
-
@use 'theme/theme-ios26';
|
|
36
|
-
|
|
37
35
|
//@use "@ionic/angular/css/palettes/dark.always.css";
|
|
36
|
+
//@use '@ionic/angular/css/palettes/dark.system.css';
|
|
37
|
+
@use '@ionic/angular/css/palettes/dark.class.css';
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
@use '../../src/default-variables';
|
|
40
|
+
@use '../../src/ionic-theme-ios26';
|
|
41
|
+
@use '../../src/ionic-theme-ios26-dark-class';
|
|
42
|
+
|
|
43
|
+
:root {
|
|
44
|
+
--ios26-color-background-rgb: var(--ion-color-light-rgb);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
ion-header.ios,
|
|
48
|
+
ion-footer.ios {
|
|
49
|
+
ion-buttons:not(.ios26-disabled),
|
|
50
|
+
ion-button:not(.ios26-disabled),
|
|
51
|
+
ion-back-button:not(.ios26-disabled) {
|
|
52
|
+
--color: var(--ion-text-color, #000);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
section.section-example {
|
|
57
|
+
background: var(--ion-background-color, #fff);
|
|
58
|
+
border-radius: 24px;
|
|
59
|
+
padding: 16px;
|
|
60
|
+
margin: 16px;
|
|
61
|
+
}
|
|
45
62
|
|
|
46
|
-
|
|
47
|
-
|
|
63
|
+
ion-searchbar .searchbar-input-container {
|
|
64
|
+
margin: 0 20px !important;
|
|
65
|
+
}
|
package/demo/src/index.html
CHANGED
package/demo/src/test.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
|
|
3
|
+
import { getTestBed } from '@angular/core/testing';
|
|
4
|
+
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
|
|
5
|
+
|
|
6
|
+
// First, initialize the Angular testing environment.
|
|
7
|
+
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
// For information on how to create your own theme, please see:
|
|
2
2
|
// http://ionicframework.com/docs/theming/
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--ion-color-light: #f2f2f7;
|
|
6
|
+
--ion-color-light-rgb: 242, 242, 247;
|
|
7
|
+
--ion-color-light-contrast: #000000;
|
|
8
|
+
--ion-color-light-contrast-rgb: 0, 0, 0;
|
|
9
|
+
--ion-color-light-shade: #d5d5d9;
|
|
10
|
+
--ion-color-light-tint: #f3f3f8;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ion-palette-dark {
|
|
14
|
+
--ion-color-light: #222428;
|
|
15
|
+
--ion-color-light-rgb: 34, 36, 40;
|
|
16
|
+
--ion-color-light-contrast: #fff;
|
|
17
|
+
--ion-color-light-contrast-rgb: 255, 255, 255;
|
|
18
|
+
--ion-color-light-shade: #1e2023;
|
|
19
|
+
--ion-color-light-tint: #383a3e;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApplicationRef, NgZone, Injector, EnvironmentInjector, ComponentRef } from '@angular/core';
|
|
2
|
+
import { FrameworkDelegate } from '@ionic/core/components';
|
|
3
|
+
|
|
4
|
+
export class MockAngularDelegate {
|
|
5
|
+
create(environmentInjector: EnvironmentInjector, injector: Injector, elementReferenceKey?: string): MockAngularFrameworkDelegate {
|
|
6
|
+
return new MockAngularFrameworkDelegate();
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export class MockAngularFrameworkDelegate implements FrameworkDelegate {
|
|
11
|
+
async attachViewToDom(container: any, component: any, params?: any, cssClasses?: string[]): Promise<any> {
|
|
12
|
+
// no-op
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
async removeViewFromDom(_container: any, component: any): Promise<void> {
|
|
16
|
+
// no-op
|
|
17
|
+
}
|
|
18
|
+
}
|