@ng-atomic/components 17.9.0 → 17.11.0
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/esm2022/atoms/icon/icon.atom.mjs +2 -2
- package/esm2022/components.module.mjs +3 -2
- package/esm2022/frames/app/app.frame.mjs +192 -16
- package/esm2022/frames/auto-layout/auto-layout.frame.mjs +2 -2
- package/esm2022/frames/columns/columns.frame.mjs +4 -4
- package/esm2022/frames/divider/divider.frame.mjs +2 -2
- package/esm2022/frames/drawer/drawer.frame.mjs +2 -2
- package/esm2022/frames/entrance/entrance.frame.mjs +2 -2
- package/esm2022/frames/fab/fab.frame.mjs +2 -2
- package/esm2022/frames/frames.module.mjs +2 -1
- package/esm2022/frames/line-up/line-up.frame.mjs +2 -2
- package/esm2022/frames/loading/loading.frame.mjs +2 -2
- package/esm2022/frames/router-outlet/router-outlet.frame.mjs +11 -4
- package/esm2022/frames/scroll/scroll.frame.mjs +2 -2
- package/esm2022/frames/scroll-v2/scroll.frame.mjs +2 -2
- package/esm2022/frames/side-nav/side-nav.frame.mjs +34 -28
- package/esm2022/frames/smart-menu/smart-menu.frame.mjs +2 -2
- package/esm2022/frames/vertical-hide/vertical-hide.frame.mjs +2 -2
- package/esm2022/molecules/checkbox-column/checkbox-column.molecule.mjs +48 -11
- package/esm2022/molecules/date-input-field/date-input-field.molecule.mjs +2 -2
- package/esm2022/molecules/date-range-input-field/date-range-input-field.molecule.mjs +2 -2
- package/esm2022/molecules/grid-item/grid-item.molecule.mjs +2 -2
- package/esm2022/molecules/loading-box/loading-box.molecule.mjs +2 -2
- package/esm2022/molecules/navigation-list-item/navigation-list-item.molecule.mjs +11 -8
- package/esm2022/molecules/select-input-field/select-input-field.molecule.mjs +2 -2
- package/esm2022/organisms/action-buttons-section/action-buttons-section.organism.mjs +2 -2
- package/esm2022/organisms/action-input-section/action-input-section.organism.mjs +2 -2
- package/esm2022/organisms/card-input-section/card-input-section.organism.mjs +2 -2
- package/esm2022/organisms/cvc-and-exp-input-section/cvc-and-exp-input-section.organism.mjs +2 -2
- package/esm2022/organisms/date-input-section/date-input-section.organism.mjs +2 -2
- package/esm2022/organisms/date-range-input-section/date-range-input-section.organism.mjs +2 -2
- package/esm2022/organisms/definition-list/definition-list.organism.mjs +2 -2
- package/esm2022/organisms/file-input-section/file-input-section.organism.mjs +2 -2
- package/esm2022/organisms/grid-cards-section/grid-cards-section.organism.mjs +2 -2
- package/esm2022/organisms/heading/heading.organism.mjs +2 -2
- package/esm2022/organisms/menu-footer/menu-footer.organism.mjs +2 -2
- package/esm2022/organisms/menu-header/menu-header.organism.mjs +4 -5
- package/esm2022/organisms/messages-section/messages-section.organism.mjs +2 -2
- package/esm2022/organisms/navigation-list/navigation-list.organism.mjs +51 -20
- package/esm2022/organisms/navigator/navigator.organism.mjs +3 -3
- package/esm2022/organisms/number-input-section/number-input-section.organism.mjs +2 -2
- package/esm2022/organisms/paginator/paginator.organism.mjs +2 -2
- package/esm2022/organisms/password-input-section/password-input-section.organism.mjs +2 -2
- package/esm2022/organisms/select-input-section/select-input-section.organism.mjs +2 -2
- package/esm2022/organisms/slider-input-section/slider-input-section.organism.mjs +4 -4
- package/esm2022/organisms/smart-list/smart-list.organism.mjs +11 -3
- package/esm2022/organisms/social-login-section/social-login-section.organism.mjs +2 -2
- package/esm2022/organisms/table/index.helpers.mjs +3 -1
- package/esm2022/organisms/table/table.organism.mjs +205 -101
- package/esm2022/organisms/text-input-section/text-input-section.organism.mjs +2 -2
- package/esm2022/organisms/textarea-section/textarea-section.organism.mjs +2 -2
- package/esm2022/organisms/thread-messages-section/thread-messages-section.organism.mjs +2 -2
- package/esm2022/pages/_index/index.page.mjs +242 -50
- package/esm2022/pages/form/form.page.mjs +71 -46
- package/esm2022/pages/pages.module.mjs +3 -4
- package/esm2022/templates/_index/index.template.mjs +66 -28
- package/esm2022/templates/background/background.template.mjs +2 -2
- package/esm2022/templates/entrance/entrance.template.mjs +2 -2
- package/esm2022/templates/form/form.builder.mjs +12 -2
- package/esm2022/templates/form/form.template.mjs +2 -2
- package/esm2022/templates/icon-button-menu/icon-button-menu.template.mjs +2 -2
- package/esm2022/templates/menu/menu.template.mjs +3 -3
- package/esm2022/templates/selection/selection.template.mjs +2 -2
- package/esm2022/templates/settings/settings.template.mjs +2 -2
- package/fesm2022/ng-atomic-components-atoms-icon.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-app.mjs +191 -15
- package/fesm2022/ng-atomic-components-frames-app.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-auto-layout.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-columns.mjs +3 -3
- package/fesm2022/ng-atomic-components-frames-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-divider.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-drawer.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-entrance.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-fab.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-line-up.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-loading.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-router-outlet.mjs +10 -3
- package/fesm2022/ng-atomic-components-frames-router-outlet.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-scroll-v2.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-scroll.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-side-nav.mjs +33 -27
- package/fesm2022/ng-atomic-components-frames-side-nav.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-frames-smart-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-vertical-hide.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames.mjs +1 -0
- package/fesm2022/ng-atomic-components-frames.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-checkbox-column.mjs +47 -10
- package/fesm2022/ng-atomic-components-molecules-checkbox-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-date-input-field.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-date-range-input-field.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-grid-item.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-loading-box.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-navigation-list-item.mjs +10 -7
- package/fesm2022/ng-atomic-components-molecules-navigation-list-item.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-select-input-field.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-action-buttons-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-action-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-card-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-date-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-date-range-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-definition-list.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-file-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-grid-cards-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-heading.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-menu-footer.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-menu-header.mjs +3 -4
- package/fesm2022/ng-atomic-components-organisms-menu-header.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-messages-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs +50 -19
- package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-navigator.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-navigator.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-number-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-paginator.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-password-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-slider-input-section.mjs +3 -3
- package/fesm2022/ng-atomic-components-organisms-slider-input-section.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-smart-list.mjs +10 -2
- package/fesm2022/ng-atomic-components-organisms-smart-list.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-table.mjs +206 -100
- package/fesm2022/ng-atomic-components-organisms-table.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-text-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-thread-messages-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-pages-_index.mjs +242 -50
- package/fesm2022/ng-atomic-components-pages-_index.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages-form.mjs +71 -46
- package/fesm2022/ng-atomic-components-pages-form.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-pages.mjs +2 -3
- package/fesm2022/ng-atomic-components-pages.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-_index.mjs +65 -27
- package/fesm2022/ng-atomic-components-templates-_index.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-background.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-entrance.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-form.mjs +13 -3
- package/fesm2022/ng-atomic-components-templates-form.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-menu.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-templates-selection.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-settings.mjs +2 -2
- package/fesm2022/ng-atomic-components.mjs +2 -1
- package/fesm2022/ng-atomic-components.mjs.map +1 -1
- package/frames/app/app.frame.d.ts +69 -52
- package/frames/columns/columns.frame.d.ts +3 -3
- package/frames/fab/fab.frame.d.ts +3 -3
- package/frames/router-outlet/router-outlet.frame.d.ts +4 -3
- package/frames/side-nav/side-nav.frame.d.ts +16 -12
- package/molecules/actions-column/actions-column.molecule.d.ts +3 -3
- package/molecules/checkbox-column/checkbox-column.molecule.d.ts +8 -2
- package/molecules/chips-input-field/chips-input-field.molecule.d.ts +3 -3
- package/molecules/loading-box/loading-box.molecule.d.ts +3 -3
- package/molecules/navigation-list-item/navigation-list-item.molecule.d.ts +3 -2
- package/organisms/menu-header/menu-header.organism.d.ts +10 -4
- package/organisms/navigation-list/navigation-list.organism.d.ts +2 -1
- package/organisms/navigator/navigator.organism.d.ts +3 -3
- package/organisms/slider-input-section/slider-input-section.organism.d.ts +3 -3
- package/organisms/smart-list/smart-list.organism.d.ts +14 -13
- package/organisms/stripe-input-section/stripe-input-section.organism.d.ts +3 -3
- package/organisms/table/index.helpers.d.ts +1 -0
- package/organisms/table/table.organism.d.ts +39 -9
- package/package.json +3 -3
- package/pages/_index/index.page.d.ts +123 -82
- package/pages/form/form.page.d.ts +69 -56
- package/pages/terms/terms.page.d.ts +3 -3
- package/templates/_index/index.template.d.ts +27 -15
- package/templates/form/form.template.d.ts +3 -3
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, Directive, PLATFORM_ID, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { inject, computed, effect, input, Directive, PLATFORM_ID, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
3
3
|
import { RouterOutlet } from '@angular/router';
|
|
4
4
|
import { LoadingFrame } from '@ng-atomic/components/frames/loading';
|
|
5
5
|
import { SideNavFrame } from '@ng-atomic/components/frames/side-nav';
|
|
6
6
|
import { EntranceFrame } from '@ng-atomic/components/frames/entrance';
|
|
7
|
-
import { InjectableComponent, _computed, NgAtomicComponent } from '@ng-atomic/core';
|
|
7
|
+
import { InjectableComponent, applyToInput, provideEffect, _computed, NgAtomicComponent } from '@ng-atomic/core';
|
|
8
8
|
import { FormBuilder } from '@angular/forms';
|
|
9
9
|
import { makeConfig } from '@ng-atomic/common/services/ui';
|
|
10
10
|
import { isPlatformServer, isPlatformBrowser } from '@angular/common';
|
|
11
11
|
import { BackgroundTemplateStore } from '@ng-atomic/components/templates/background';
|
|
12
12
|
import { DrawerFrame } from '@ng-atomic/components/frames/drawer';
|
|
13
13
|
import { FabFrame } from '@ng-atomic/components/frames/fab';
|
|
14
|
-
import {
|
|
14
|
+
import { AppService } from '@ng-atomic/common/services/app';
|
|
15
|
+
import { SideAppService } from '@ng-atomic/common/services/side-app';
|
|
16
|
+
import { AuthService } from '@ng-atomic/common/services/auth';
|
|
17
|
+
import { RootPropertyService } from '@ng-atomic/common/services/root-property';
|
|
18
|
+
import { makeInitializerConfig } from '@ng-atomic/common/services/initializer';
|
|
19
|
+
import { injectPrimaryPaths } from '@ng-atomic/common/utils';
|
|
15
20
|
|
|
16
21
|
var ActionId;
|
|
17
22
|
(function (ActionId) {
|
|
@@ -41,10 +46,172 @@ class AppFrameStore extends InjectableComponent {
|
|
|
41
46
|
{ id: ActionId.SIGN_OUT, name: 'ログアウト', icon: 'exit_to_app' },
|
|
42
47
|
],
|
|
43
48
|
sideNavMode: 'collapsed',
|
|
49
|
+
sideNavMenuType: 'menu',
|
|
50
|
+
sideNavMenuTitle: undefined,
|
|
44
51
|
sideAppOutletName: 'side-app',
|
|
45
52
|
});
|
|
46
53
|
}, ['components', 'frames', 'app']); }
|
|
47
|
-
static { this.
|
|
54
|
+
static { this.provideAppServiceConfig = () => AppFrameStore.Config.provide(() => {
|
|
55
|
+
const app = inject(AppService);
|
|
56
|
+
const fabHide = computed(() => app.sideApp.opened());
|
|
57
|
+
return (config) => ({
|
|
58
|
+
...config,
|
|
59
|
+
isLoading: app.loading.isLoading(),
|
|
60
|
+
sideNavMode: app.sideNavMode.sideNavMode(),
|
|
61
|
+
sideAppOpened: app.sideApp.opened(),
|
|
62
|
+
fabActions: app.fab.actions(),
|
|
63
|
+
fabHide: fabHide(),
|
|
64
|
+
});
|
|
65
|
+
}); }
|
|
66
|
+
static provideIconButtonMenuAsDefaultConfig() {
|
|
67
|
+
return [
|
|
68
|
+
RootPropertyService.Config.provide(() => {
|
|
69
|
+
const getProps = (context) => {
|
|
70
|
+
switch (context.breakpoint) {
|
|
71
|
+
case 'xSmall': return { '--menu-width': '220px' };
|
|
72
|
+
case 'small':
|
|
73
|
+
case 'medium':
|
|
74
|
+
case 'large':
|
|
75
|
+
case 'xLarge': return { '--menu-width': '64px' };
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
return (config, context) => ({ ...config, ...getProps(context) });
|
|
79
|
+
}),
|
|
80
|
+
AppFrameStore.Config.provide(() => {
|
|
81
|
+
const getMenuType = (context) => {
|
|
82
|
+
switch (context.breakpoint) {
|
|
83
|
+
case 'xSmall': return 'menu';
|
|
84
|
+
default: return 'icon-button-menu';
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
return (config, context) => ({
|
|
88
|
+
...config,
|
|
89
|
+
sideNavMenuType: getMenuType(context),
|
|
90
|
+
});
|
|
91
|
+
})
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
static { this.Initializer = makeInitializerConfig(AppFrameStore); }
|
|
95
|
+
static { this.provideInitializer = AppFrameStore.Initializer.provide; }
|
|
96
|
+
static provideExpandSideAppOnInit() {
|
|
97
|
+
return AppFrameStore.Initializer.provide(() => {
|
|
98
|
+
inject(SideAppService).expand();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
static provideSideNavActionsInitializer(actionsFactory) {
|
|
102
|
+
return AppFrameStore.Initializer.provide((store) => {
|
|
103
|
+
const paths = injectPrimaryPaths();
|
|
104
|
+
function compare(paths, payload) {
|
|
105
|
+
if (payload === undefined)
|
|
106
|
+
return false;
|
|
107
|
+
return payload.every((path, i) => paths[i] === path);
|
|
108
|
+
}
|
|
109
|
+
const actions = actionsFactory();
|
|
110
|
+
effect(() => {
|
|
111
|
+
applyToInput(store, 'sideNavActions', actions.map(action => ({
|
|
112
|
+
...action, disabled: compare(paths(), action?.payload),
|
|
113
|
+
})));
|
|
114
|
+
}, { allowSignalWrites: true });
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
static provideNavigateEffect() {
|
|
118
|
+
return provideEffect(AppFrameStore.ActionId.NAVIGATE, () => {
|
|
119
|
+
const app = inject(AppService);
|
|
120
|
+
return (payload) => {
|
|
121
|
+
app.router.navigate(payload).then(() => app.sideNav.collapse());
|
|
122
|
+
};
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
static provideSignOutEffect() {
|
|
126
|
+
return provideEffect(AppFrameStore.ActionId.SIGN_OUT, () => {
|
|
127
|
+
const app = inject(AppService);
|
|
128
|
+
const auth = inject(AuthService);
|
|
129
|
+
return () => {
|
|
130
|
+
auth.signOut().then(() => {
|
|
131
|
+
app.sideNav.collapse();
|
|
132
|
+
app.snackBar.open('サインアウトしました');
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
static provideOpenSideAppEffect() {
|
|
138
|
+
return provideEffect(AppFrameStore.ActionId.OPEN_SIDE_APP, () => {
|
|
139
|
+
const app = inject(AppService);
|
|
140
|
+
return () => {
|
|
141
|
+
console.debug('open side app');
|
|
142
|
+
app.sideApp.expand();
|
|
143
|
+
};
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
static provideSignUpWithEmailEffect() {
|
|
147
|
+
return provideEffect(AppFrameStore.ActionId.SIGN_UP_WITH_EMAIL, () => {
|
|
148
|
+
const app = inject(AppService);
|
|
149
|
+
const store = inject(AppFrameStore);
|
|
150
|
+
const auth = inject(AuthService);
|
|
151
|
+
return () => {
|
|
152
|
+
const data = store.form().getRawValue();
|
|
153
|
+
app.loading.await(() => {
|
|
154
|
+
return auth.createUserWithEmailAndPassword(data.email, data.password).then(() => {
|
|
155
|
+
app.snackBar.open('新規登録しました。');
|
|
156
|
+
}).catch((error) => {
|
|
157
|
+
console.error(error);
|
|
158
|
+
app.snackBar.open(error.message);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
static provideSignInWithEmailEffect() {
|
|
165
|
+
return provideEffect(AppFrameStore.ActionId.SIGN_IN_WITH_EMAIL, () => {
|
|
166
|
+
const app = inject(AppService);
|
|
167
|
+
const store = inject(AppFrameStore);
|
|
168
|
+
const auth = inject(AuthService);
|
|
169
|
+
return () => {
|
|
170
|
+
const data = store.form().getRawValue();
|
|
171
|
+
app.loading.await(() => {
|
|
172
|
+
return auth.signInWithEmailAndPassword(data.email, data.password).then(() => {
|
|
173
|
+
app.snackBar.open('ログインしました');
|
|
174
|
+
}).catch((error) => {
|
|
175
|
+
console.error(error);
|
|
176
|
+
app.snackBar.open(error.message);
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
static provideSignInWithGoogleEffect() {
|
|
183
|
+
return provideEffect(AppFrameStore.ActionId.SIGN_IN_WITH_GOOGLE, () => {
|
|
184
|
+
const app = inject(AppService);
|
|
185
|
+
const auth = inject(AuthService);
|
|
186
|
+
return () => {
|
|
187
|
+
auth.signInWithGoogle().then(() => {
|
|
188
|
+
app.snackBar.open('ログインしました');
|
|
189
|
+
}).catch((error) => {
|
|
190
|
+
console.error(error);
|
|
191
|
+
const _message = error.message.match(/HTTP Cloud Function returned an error: (.*) \(.*/);
|
|
192
|
+
const message = _message ? JSON.parse(_message[1]).error.message : error.message;
|
|
193
|
+
app.snackBar.open(message);
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
static provideDefaultEffects() {
|
|
199
|
+
return [
|
|
200
|
+
AppFrameStore.provideNavigateEffect(),
|
|
201
|
+
AppFrameStore.provideSignOutEffect(),
|
|
202
|
+
AppFrameStore.provideOpenSideAppEffect(),
|
|
203
|
+
AppFrameStore.provideSignUpWithEmailEffect(),
|
|
204
|
+
AppFrameStore.provideSignInWithEmailEffect(),
|
|
205
|
+
AppFrameStore.provideSignInWithGoogleEffect(),
|
|
206
|
+
];
|
|
207
|
+
}
|
|
208
|
+
static provideDefault() {
|
|
209
|
+
return [
|
|
210
|
+
AppFrameStore.provideAppServiceConfig(),
|
|
211
|
+
AppFrameStore.provideIconButtonMenuAsDefaultConfig(),
|
|
212
|
+
AppFrameStore.provideDefaultEffects(),
|
|
213
|
+
];
|
|
214
|
+
}
|
|
48
215
|
constructor() {
|
|
49
216
|
super();
|
|
50
217
|
this.config = AppFrameStore.Config.inject();
|
|
@@ -56,13 +223,15 @@ class AppFrameStore extends InjectableComponent {
|
|
|
56
223
|
this.entranceActions = input(_computed(() => this.config().entranceActions));
|
|
57
224
|
this.sideNavActions = input(_computed(() => this.config().sideNavActions));
|
|
58
225
|
this.sideNavMode = input(_computed(() => this.config().sideNavMode));
|
|
226
|
+
this.sideNavMenuType = input(_computed(() => this.config().sideNavMenuType));
|
|
227
|
+
this.sideNavMenuTitle = input(_computed(() => this.config().sideNavMenuTitle));
|
|
59
228
|
this.sideAppOutletName = input(_computed(() => this.config().sideAppOutletName));
|
|
60
229
|
this.fabActions = input(_computed(() => this.config().fabActions));
|
|
61
230
|
this.fabHide = input(_computed(() => this.config().fabHide));
|
|
62
|
-
initializeStore(this);
|
|
231
|
+
AppFrameStore.Initializer.initializeStore(this);
|
|
63
232
|
}
|
|
64
233
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: AppFrameStore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
65
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.2.2", type: AppFrameStore, isStandalone: true, selector: "frames-app", inputs: { isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, isEntrance: { classPropertyName: "isEntrance", publicName: "isEntrance", isSignal: true, isRequired: false, transformFunction: null }, sideAppOpened: { classPropertyName: "sideAppOpened", publicName: "sideAppOpened", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, entranceActions: { classPropertyName: "entranceActions", publicName: "entranceActions", isSignal: true, isRequired: false, transformFunction: null }, sideNavActions: { classPropertyName: "sideNavActions", publicName: "sideNavActions", isSignal: true, isRequired: false, transformFunction: null }, sideNavMode: { classPropertyName: "sideNavMode", publicName: "sideNavMode", isSignal: true, isRequired: false, transformFunction: null }, sideAppOutletName: { classPropertyName: "sideAppOutletName", publicName: "sideAppOutletName", isSignal: true, isRequired: false, transformFunction: null }, fabActions: { classPropertyName: "fabActions", publicName: "fabActions", isSignal: true, isRequired: false, transformFunction: null }, fabHide: { classPropertyName: "fabHide", publicName: "fabHide", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
234
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.2.2", type: AppFrameStore, isStandalone: true, selector: "frames-app", inputs: { isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, isEntrance: { classPropertyName: "isEntrance", publicName: "isEntrance", isSignal: true, isRequired: false, transformFunction: null }, sideAppOpened: { classPropertyName: "sideAppOpened", publicName: "sideAppOpened", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, entranceActions: { classPropertyName: "entranceActions", publicName: "entranceActions", isSignal: true, isRequired: false, transformFunction: null }, sideNavActions: { classPropertyName: "sideNavActions", publicName: "sideNavActions", isSignal: true, isRequired: false, transformFunction: null }, sideNavMode: { classPropertyName: "sideNavMode", publicName: "sideNavMode", isSignal: true, isRequired: false, transformFunction: null }, sideNavMenuType: { classPropertyName: "sideNavMenuType", publicName: "sideNavMenuType", isSignal: true, isRequired: false, transformFunction: null }, sideNavMenuTitle: { classPropertyName: "sideNavMenuTitle", publicName: "sideNavMenuTitle", isSignal: true, isRequired: false, transformFunction: null }, sideAppOutletName: { classPropertyName: "sideAppOutletName", publicName: "sideAppOutletName", isSignal: true, isRequired: false, transformFunction: null }, fabActions: { classPropertyName: "fabActions", publicName: "fabActions", isSignal: true, isRequired: false, transformFunction: null }, fabHide: { classPropertyName: "fabHide", publicName: "fabHide", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
66
235
|
}
|
|
67
236
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: AppFrameStore, decorators: [{
|
|
68
237
|
type: Directive,
|
|
@@ -80,9 +249,6 @@ class AppFrame extends NgAtomicComponent {
|
|
|
80
249
|
isPlatformBrowser() {
|
|
81
250
|
return isPlatformBrowser(this.platformId);
|
|
82
251
|
}
|
|
83
|
-
dispatch(action, scope, componentId) {
|
|
84
|
-
return super.dispatch(action, scope, componentId);
|
|
85
|
-
}
|
|
86
252
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: AppFrame, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
87
253
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.2", type: AppFrame, isStandalone: true, selector: "frames-app", usesInheritance: true, hostDirectives: [{ directive: AppFrameStore }], ngImport: i0, template: `
|
|
88
254
|
<router-outlet/>
|
|
@@ -92,7 +258,11 @@ class AppFrame extends NgAtomicComponent {
|
|
|
92
258
|
}
|
|
93
259
|
}
|
|
94
260
|
<frames-loading [isLoading]="store.isLoading()">
|
|
95
|
-
<frames-fab
|
|
261
|
+
<frames-fab
|
|
262
|
+
[actions]="store.fabActions()"
|
|
263
|
+
[hide]="store.fabHide()"
|
|
264
|
+
(action)="dispatch($event)"
|
|
265
|
+
>
|
|
96
266
|
<frames-entrance
|
|
97
267
|
[isEntrance]="store.isEntrance()"
|
|
98
268
|
[form]="store.form()"
|
|
@@ -108,7 +278,8 @@ class AppFrame extends NgAtomicComponent {
|
|
|
108
278
|
<frames-side-nav
|
|
109
279
|
[actions]="store.sideNavActions()"
|
|
110
280
|
[mode]="store.sideNavMode()"
|
|
111
|
-
[
|
|
281
|
+
[menuType]="store.sideNavMenuType()"
|
|
282
|
+
[menuTitle]="store.sideNavMenuTitle()"
|
|
112
283
|
(action)="dispatch($event)"
|
|
113
284
|
contents
|
|
114
285
|
>
|
|
@@ -121,7 +292,7 @@ class AppFrame extends NgAtomicComponent {
|
|
|
121
292
|
</frames-entrance>
|
|
122
293
|
</frames-fab>
|
|
123
294
|
</frames-loading>
|
|
124
|
-
`, isInline: true, styles: [":host{--primary-color-SCOPED-IN-frames-app-
|
|
295
|
+
`, isInline: true, styles: [":host{--primary-color-SCOPED-IN-frames-app-sQsj: var(--primary-color);--on-primary-color-SCOPED-IN-frames-app-sQsj: var(--on-primary-color);--surface-color-SCOPED-IN-frames-app-sQsj: var(--surface-color);--on-surface-color-SCOPED-IN-frames-app-sQsj: var(--on-surface-color);--background-color-SCOPED-IN-frames-app-sQsj: var(--background-color);--on-background-color-SCOPED-IN-frames-app-sQsj: var(--on-background-color);--menu-width-SCOPED-IN-frames-app-sQsj: var(--menu-width);--menu-background-color-SCOPED-IN-frames-app-sQsj: var(--menu-background-color);--menu-on-background-color-SCOPED-IN-frames-app-sQsj: var(--menu-on-background-color);--background-primary-color-SCOPED-IN-frames-app-sQsj: var(--background-primary-color);--background-on-primary-color-SCOPED-IN-frames-app-sQsj: var(--background-on-primary-color);--background-background-color-SCOPED-IN-frames-app-sQsj: var(--background-background-color);--loading-primary-color-SCOPED-IN-frames-app-sQsj: var(--loading-primary-color);--page-width-lv1-SCOPED-IN-frames-app-sQsj: var(--page-width-lv1);--menu-padding-top: 56px;--menu-padding-top-SCOPED-IN-frames-app-sQsj: var(--menu-padding-top);--loading-z-index: 1000;--loading-z-index-SCOPED-IN-frames-app-sQsj: var(--loading-z-index)}:host{display:block;width:100%;height:100%;position:fixed;color:var(--primary-color-SCOPED-IN-frames-app-sQsj);touch-action:none}:host *{--primary-color: var(--primary-color-SCOPED-IN-frames-app-sQsj);--on-primary-color: var(--on-primary-color-SCOPED-IN-frames-app-sQsj);--surface-color: var(--surface-color-SCOPED-IN-frames-app-sQsj);--on-surface-color: var(--on-surface-color-SCOPED-IN-frames-app-sQsj);--background-color: var(--background-color-SCOPED-IN-frames-app-sQsj);--on-background-color: var(--on-background-color-SCOPED-IN-frames-app-sQsj);--menu-background-color: var(--menu-background-color-SCOPED-IN-frames-app-sQsj);--menu-on-background-color: var(--menu-on-background-color-SCOPED-IN-frames-app-sQsj)}:host frames-side-nav{color:#000;--menu-width: var(--menu-width-SCOPED-IN-frames-app-sQsj)}:host frames-loading{--primary-color: var(--loading-primary-color-SCOPED-IN-frames-app-sQsj)}:host templates-background{--primary-color: var(--background-primary-color-SCOPED-IN-frames-app-sQsj);--on-primary-color: var(--background-on-primary-color-SCOPED-IN-frames-app-sQsj);--background-color: var(--background-background-color-SCOPED-IN-frames-app-sQsj);position:absolute;top:0;left:0}:host frames-side-nav .side-app{position:relative;width:var(--page-width-lv1-SCOPED-IN-frames-app-sQsj);height:100%}\n"], dependencies: [{ kind: "component", type: FabFrame, selector: "frames-fab" }, { kind: "component", type: LoadingFrame, selector: "frames-loading" }, { kind: "component", type: SideNavFrame, selector: "frames-side-nav" }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: EntranceFrame, selector: "frames-entrance" }, { kind: "component", type:
|
|
125
296
|
// DrawerFrameStore,
|
|
126
297
|
DrawerFrame, selector: "frames-drawer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
127
298
|
}
|
|
@@ -144,7 +315,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
144
315
|
}
|
|
145
316
|
}
|
|
146
317
|
<frames-loading [isLoading]="store.isLoading()">
|
|
147
|
-
<frames-fab
|
|
318
|
+
<frames-fab
|
|
319
|
+
[actions]="store.fabActions()"
|
|
320
|
+
[hide]="store.fabHide()"
|
|
321
|
+
(action)="dispatch($event)"
|
|
322
|
+
>
|
|
148
323
|
<frames-entrance
|
|
149
324
|
[isEntrance]="store.isEntrance()"
|
|
150
325
|
[form]="store.form()"
|
|
@@ -160,7 +335,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
160
335
|
<frames-side-nav
|
|
161
336
|
[actions]="store.sideNavActions()"
|
|
162
337
|
[mode]="store.sideNavMode()"
|
|
163
|
-
[
|
|
338
|
+
[menuType]="store.sideNavMenuType()"
|
|
339
|
+
[menuTitle]="store.sideNavMenuTitle()"
|
|
164
340
|
(action)="dispatch($event)"
|
|
165
341
|
contents
|
|
166
342
|
>
|
|
@@ -175,7 +351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
175
351
|
</frames-loading>
|
|
176
352
|
`, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
|
|
177
353
|
AppFrameStore,
|
|
178
|
-
], styles: [":host{--primary-color-SCOPED-IN-frames-app-
|
|
354
|
+
], styles: [":host{--primary-color-SCOPED-IN-frames-app-sQsj: var(--primary-color);--on-primary-color-SCOPED-IN-frames-app-sQsj: var(--on-primary-color);--surface-color-SCOPED-IN-frames-app-sQsj: var(--surface-color);--on-surface-color-SCOPED-IN-frames-app-sQsj: var(--on-surface-color);--background-color-SCOPED-IN-frames-app-sQsj: var(--background-color);--on-background-color-SCOPED-IN-frames-app-sQsj: var(--on-background-color);--menu-width-SCOPED-IN-frames-app-sQsj: var(--menu-width);--menu-background-color-SCOPED-IN-frames-app-sQsj: var(--menu-background-color);--menu-on-background-color-SCOPED-IN-frames-app-sQsj: var(--menu-on-background-color);--background-primary-color-SCOPED-IN-frames-app-sQsj: var(--background-primary-color);--background-on-primary-color-SCOPED-IN-frames-app-sQsj: var(--background-on-primary-color);--background-background-color-SCOPED-IN-frames-app-sQsj: var(--background-background-color);--loading-primary-color-SCOPED-IN-frames-app-sQsj: var(--loading-primary-color);--page-width-lv1-SCOPED-IN-frames-app-sQsj: var(--page-width-lv1);--menu-padding-top: 56px;--menu-padding-top-SCOPED-IN-frames-app-sQsj: var(--menu-padding-top);--loading-z-index: 1000;--loading-z-index-SCOPED-IN-frames-app-sQsj: var(--loading-z-index)}:host{display:block;width:100%;height:100%;position:fixed;color:var(--primary-color-SCOPED-IN-frames-app-sQsj);touch-action:none}:host *{--primary-color: var(--primary-color-SCOPED-IN-frames-app-sQsj);--on-primary-color: var(--on-primary-color-SCOPED-IN-frames-app-sQsj);--surface-color: var(--surface-color-SCOPED-IN-frames-app-sQsj);--on-surface-color: var(--on-surface-color-SCOPED-IN-frames-app-sQsj);--background-color: var(--background-color-SCOPED-IN-frames-app-sQsj);--on-background-color: var(--on-background-color-SCOPED-IN-frames-app-sQsj);--menu-background-color: var(--menu-background-color-SCOPED-IN-frames-app-sQsj);--menu-on-background-color: var(--menu-on-background-color-SCOPED-IN-frames-app-sQsj)}:host frames-side-nav{color:#000;--menu-width: var(--menu-width-SCOPED-IN-frames-app-sQsj)}:host frames-loading{--primary-color: var(--loading-primary-color-SCOPED-IN-frames-app-sQsj)}:host templates-background{--primary-color: var(--background-primary-color-SCOPED-IN-frames-app-sQsj);--on-primary-color: var(--background-on-primary-color-SCOPED-IN-frames-app-sQsj);--background-color: var(--background-background-color-SCOPED-IN-frames-app-sQsj);position:absolute;top:0;left:0}:host frames-side-nav .side-app{position:relative;width:var(--page-width-lv1-SCOPED-IN-frames-app-sQsj);height:100%}\n"] }]
|
|
179
355
|
}] });
|
|
180
356
|
|
|
181
357
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-frames-app.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/frames/app/app.frame.ts","../../../../../packages/@ng-atomic/components/src/lib/frames/app/ng-atomic-components-frames-app.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, PLATFORM_ID, input } from '@angular/core';\nimport { Directive, inject } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport { LoadingFrame } from '@ng-atomic/components/frames/loading';\nimport { SideNavFrame } from '@ng-atomic/components/frames/side-nav';\nimport { EntranceFrame } from '@ng-atomic/components/frames/entrance';\nimport { Action, InjectableComponent, NgAtomicComponent, _computed } from '@ng-atomic/core';\nimport { FormBuilder } from '@angular/forms';\nimport { makeConfig } from '@ng-atomic/common/services/ui';\nimport { isPlatformBrowser, isPlatformServer } from '@angular/common';\nimport { BackgroundTemplateStore } from '@ng-atomic/components/templates/background';\nimport { DrawerFrame } from '@ng-atomic/components/frames/drawer';\nimport { FabFrame } from '@ng-atomic/components/frames/fab';\nimport { initializeStore, provideStoreInitializer } from '@ng-atomic/components/pages/form';\n\nenum ActionId {\n SIGN_IN_WITH_GOOGLE = '[@ng-atomic/components:frames/app] Sign In With Google',\n SIGN_IN_WITH_TWITTER = '[@ng-atomic/components:frames/app] Sign In With Twitter',\n SIGN_IN_WITH_EMAIL = '[@ng-atomic/components:frames/app] Sign In With Email',\n SIGN_UP_WITH_EMAIL = '[@ng-atomic/components:frames/app] Sign Up With Email',\n NAVIGATE = '[@ng-atomic/components:frames/app] Navigate',\n SIGN_OUT = '[@ng-atomic/components:frames/app] Sign Out',\n OPEN_SIDE_APP = '[@ng-atomic/components:frames/app] Open Side App',\n}\n\n@Directive({ standalone: true, selector: 'frames-app' })\nexport class AppFrameStore extends InjectableComponent {\n static readonly ActionId = ActionId;\n static readonly Config = makeConfig(() => {\n return () => ({\n fabActions: [],\n fabHide: true,\n isEntrance: true,\n isLoading: false,\n sideAppOpened: false,\n title: 'title',\n form: inject(FormBuilder).group({}),\n entranceActions: [\n { id: ActionId.SIGN_IN_WITH_GOOGLE, name: 'Googleでサインイン', icon: '' },\n ],\n sideNavActions: [\n { id: ActionId.SIGN_OUT, name: 'ログアウト', icon: 'exit_to_app' },\n ],\n sideNavMode: 'collapsed' as 'expanded' | 'collapsed',\n sideAppOutletName: 'side-app',\n });\n }, ['components', 'frames', 'app']);\n static provideInitializer = provideStoreInitializer<AppFrameStore>;\n\n readonly config = AppFrameStore.Config.inject();\n readonly isLoading = input(_computed(() => this.config().isLoading));\n readonly isEntrance = input(_computed(() => this.config().isEntrance));\n readonly sideAppOpened = input(_computed(() => this.config().sideAppOpened));\n readonly title = input(_computed(() => this.config().title));\n readonly form = input(_computed(() => this.config().form));\n readonly entranceActions = input(_computed(() => this.config().entranceActions));\n readonly sideNavActions = input(_computed(() => this.config().sideNavActions));\n readonly sideNavMode = input(_computed(() => this.config().sideNavMode));\n readonly sideAppOutletName = input(_computed(() => this.config().sideAppOutletName));\n readonly fabActions = input(_computed(() => this.config().fabActions));\n readonly fabHide = input(_computed(() => this.config().fabHide));\n\n constructor() {\n super();\n initializeStore(this);\n }\n}\n\n\n@Component({\n selector: 'frames-app',\n standalone: true,\n imports: [\n FabFrame,\n LoadingFrame,\n SideNavFrame,\n RouterOutlet,\n EntranceFrame,\n // DrawerFrameStore,\n DrawerFrame,\n BackgroundTemplateStore,\n ],\n template: `\n <router-outlet/>\n @if (isPlatformBrowser()) {\n @defer {\n <templates-background injectable/>\n }\n }\n <frames-loading [isLoading]=\"store.isLoading()\">\n <frames-fab [actions]=\"store.fabActions()\" [hide]=\"store.fabHide()\">\n <frames-entrance\n [isEntrance]=\"store.isEntrance()\"\n [form]=\"store.form()\"\n [title]=\"store.title()\"\n [actions]=\"store.entranceActions()\"\n (action)=\"dispatch($event)\"\n >\n <frames-drawer\n [opened]=\"store.sideAppOpened()\"\n [position]=\"'end'\"\n [hasBackdrop]=\"false\"\n >\n <frames-side-nav\n [actions]=\"store.sideNavActions()\"\n [mode]=\"store.sideNavMode()\"\n [menuTitle]=\"store.title()\"\n (action)=\"dispatch($event)\"\n contents\n >\n <router-outlet contents/>\n </frames-side-nav>\n <div drawer style=\"width: var(--page-width-lv1);height: 100%;\">\n <router-outlet [name]=\"store.sideAppOutletName()\" />\n </div>\n </frames-drawer>\n </frames-entrance>\n </frames-fab>\n </frames-loading>\n `,\n styleUrl: './app.frame.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n AppFrameStore,\n ],\n})\nexport class AppFrame extends NgAtomicComponent {\n protected store = inject(AppFrameStore);\n readonly platformId = inject(PLATFORM_ID);\n\n protected isPlatformServer() {\n return isPlatformServer(this.platformId);\n }\n\n protected isPlatformBrowser() {\n return isPlatformBrowser(this.platformId);\n }\n\n dispatch(action: Action<any>, scope?: string, componentId?: string | number): Promise<void> {\n return super.dispatch(action, scope, componentId);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAeA,IAAK,QAQJ,CAAA;AARD,CAAA,UAAK,QAAQ,EAAA;AACX,IAAA,QAAA,CAAA,qBAAA,CAAA,GAAA,wDAA8E,CAAA;AAC9E,IAAA,QAAA,CAAA,sBAAA,CAAA,GAAA,yDAAgF,CAAA;AAChF,IAAA,QAAA,CAAA,oBAAA,CAAA,GAAA,uDAA4E,CAAA;AAC5E,IAAA,QAAA,CAAA,oBAAA,CAAA,GAAA,uDAA4E,CAAA;AAC5E,IAAA,QAAA,CAAA,UAAA,CAAA,GAAA,6CAAwD,CAAA;AACxD,IAAA,QAAA,CAAA,UAAA,CAAA,GAAA,6CAAwD,CAAA;AACxD,IAAA,QAAA,CAAA,eAAA,C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YAAY;wBACZ,aAAa;;wBAEb,WAAW;wBACX,uBAAuB;qBACxB,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAC/B,cAAA,EAAA;wBACd,aAAa;AACd,qBAAA,EAAA,MAAA,EAAA,CAAA,mgFAAA,CAAA,EAAA,CAAA;;;AC5HH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-frames-app.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/frames/app/app.frame.ts","../../../../../packages/@ng-atomic/components/src/lib/frames/app/ng-atomic-components-frames-app.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, PLATFORM_ID, computed, effect, input } from '@angular/core';\nimport { Directive, inject } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport { LoadingFrame } from '@ng-atomic/components/frames/loading';\nimport { SideNavFrame } from '@ng-atomic/components/frames/side-nav';\nimport { EntranceFrame } from '@ng-atomic/components/frames/entrance';\nimport { Action, Actions, InjectableComponent, NgAtomicComponent, _computed, applyToInput, provideEffect } from '@ng-atomic/core';\nimport { AbstractControl, FormBuilder } from '@angular/forms';\nimport { makeConfig, UIContext } from '@ng-atomic/common/services/ui';\nimport { isPlatformBrowser, isPlatformServer } from '@angular/common';\nimport { BackgroundTemplateStore } from '@ng-atomic/components/templates/background';\nimport { DrawerFrame } from '@ng-atomic/components/frames/drawer';\nimport { FabFrame } from '@ng-atomic/components/frames/fab';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { SideAppService } from '@ng-atomic/common/services/side-app';\nimport { AuthService } from '@ng-atomic/common/services/auth';\nimport { RootPropertyService } from '@ng-atomic/common/services/root-property';\nimport { makeInitializerConfig } from '@ng-atomic/common/services/initializer';\nimport { injectPrimaryPaths } from '@ng-atomic/common/utils';\n\nenum ActionId {\n SIGN_IN_WITH_GOOGLE = '[@ng-atomic/components:frames/app] Sign In With Google',\n SIGN_IN_WITH_TWITTER = '[@ng-atomic/components:frames/app] Sign In With Twitter',\n SIGN_IN_WITH_EMAIL = '[@ng-atomic/components:frames/app] Sign In With Email',\n SIGN_UP_WITH_EMAIL = '[@ng-atomic/components:frames/app] Sign Up With Email',\n NAVIGATE = '[@ng-atomic/components:frames/app] Navigate',\n SIGN_OUT = '[@ng-atomic/components:frames/app] Sign Out',\n OPEN_SIDE_APP = '[@ng-atomic/components:frames/app] Open Side App',\n}\n\n@Directive({ standalone: true, selector: 'frames-app' })\nexport class AppFrameStore extends InjectableComponent {\n static readonly ActionId = ActionId;\n static readonly Config = makeConfig(() => {\n return () => ({\n fabActions: [],\n fabHide: true,\n isEntrance: true,\n isLoading: false,\n sideAppOpened: false,\n title: 'title',\n form: inject(FormBuilder).group({}) as AbstractControl,\n entranceActions: [\n { id: ActionId.SIGN_IN_WITH_GOOGLE, name: 'Googleでサインイン', icon: '' },\n ] as Actions,\n sideNavActions: [\n { id: ActionId.SIGN_OUT, name: 'ログアウト', icon: 'exit_to_app' },\n ] as Actions,\n sideNavMode: 'collapsed' as 'expanded' | 'collapsed',\n sideNavMenuType: 'menu' as 'menu' | 'icon-button-menu',\n sideNavMenuTitle: undefined as string,\n sideAppOutletName: 'side-app',\n });\n }, ['components', 'frames', 'app']);\n static provideAppServiceConfig = () => AppFrameStore.Config.provide(() => {\n const app = inject(AppService);\n const fabHide = computed(() => app.sideApp.opened());\n return (config) => ({\n ...config,\n isLoading: app.loading.isLoading(),\n sideNavMode: app.sideNavMode.sideNavMode(),\n sideAppOpened: app.sideApp.opened(),\n fabActions: app.fab.actions(),\n fabHide: fabHide(),\n });\n });\n static provideIconButtonMenuAsDefaultConfig() {\n return [\n RootPropertyService.Config.provide(() => {\n const getProps = (context: UIContext) => {\n switch (context.breakpoint) {\n case 'xSmall': return { '--menu-width': '220px' };\n case 'small':\n case 'medium':\n case 'large':\n case 'xLarge': return { '--menu-width': '64px' };\n }\n }\n return (config, context) => ({...config, ...getProps(context)});\n }),\n AppFrameStore.Config.provide(() => {\n const getMenuType = (context: UIContext) => {\n switch (context.breakpoint) {\n case 'xSmall': return 'menu';\n default: return 'icon-button-menu';\n }\n };\n return (config, context) => ({\n ...config,\n sideNavMenuType: getMenuType(context),\n });\n })\n ];\n }\n static Initializer = makeInitializerConfig(AppFrameStore);\n static provideInitializer = AppFrameStore.Initializer.provide;\n static provideExpandSideAppOnInit() {\n return AppFrameStore.Initializer.provide(() => {\n inject(SideAppService).expand();\n });\n }\n static provideSideNavActionsInitializer(actionsFactory: () => Action[]) {\n return AppFrameStore.Initializer.provide((store) => {\n const paths = injectPrimaryPaths();\n function compare(paths: string[], payload?: string[]) {\n if (payload === undefined) return false;\n return payload.every((path, i) => paths[i] === path);\n }\n const actions = actionsFactory();\n\n effect(() => {\n applyToInput(store, 'sideNavActions', actions.map(action => ({\n ...action, disabled: compare(paths(), action?.payload),\n })));\n }, {allowSignalWrites: true});\n });\n }\n static provideNavigateEffect() {\n return provideEffect(AppFrameStore.ActionId.NAVIGATE, () => {\n const app = inject(AppService);\n return (payload: string[]) => {\n app.router.navigate(payload).then(() => app.sideNav.collapse());\n };\n });\n }\n static provideSignOutEffect() {\n return provideEffect(AppFrameStore.ActionId.SIGN_OUT, () => {\n const app = inject(AppService);\n const auth = inject(AuthService);\n return () => {\n auth.signOut().then(() => {\n app.sideNav.collapse();\n app.snackBar.open('サインアウトしました');\n });\n };\n });\n }\n static provideOpenSideAppEffect() {\n return provideEffect(AppFrameStore.ActionId.OPEN_SIDE_APP, () => {\n const app = inject(AppService);\n return () => {\n console.debug('open side app');\n app.sideApp.expand();\n }\n });\n }\n static provideSignUpWithEmailEffect() {\n return provideEffect(AppFrameStore.ActionId.SIGN_UP_WITH_EMAIL, () => {\n const app = inject(AppService);\n const store = inject(AppFrameStore);\n const auth = inject(AuthService);\n return () => {\n const data = store.form().getRawValue() as {email: string, password: string};\n app.loading.await(() => {\n return auth.createUserWithEmailAndPassword(data.email, data.password).then(() => {\n app.snackBar.open('新規登録しました。');\n }).catch((error) => {\n console.error(error);\n app.snackBar.open(error.message);\n });\n });\n };\n });\n }\n static provideSignInWithEmailEffect() {\n return provideEffect(AppFrameStore.ActionId.SIGN_IN_WITH_EMAIL, () => {\n const app = inject(AppService);\n const store = inject(AppFrameStore);\n const auth = inject(AuthService);\n return () => {\n const data = store.form().getRawValue() as {email: string, password: string};\n app.loading.await(() => {\n return auth.signInWithEmailAndPassword(data.email, data.password).then(() => {\n app.snackBar.open('ログインしました');\n }).catch((error) => {\n console.error(error);\n app.snackBar.open(error.message);\n });\n });\n };\n });\n }\n static provideSignInWithGoogleEffect() {\n return provideEffect(AppFrameStore.ActionId.SIGN_IN_WITH_GOOGLE, () => {\n const app = inject(AppService);\n const auth = inject(AuthService);\n return () => {\n auth.signInWithGoogle().then(() => {\n app.snackBar.open('ログインしました');\n }).catch((error) => {\n console.error(error);\n const _message = error.message.match(/HTTP Cloud Function returned an error: (.*) \\(.*/);\n const message = _message ? JSON.parse(_message[1]).error.message : error.message;\n app.snackBar.open(message);\n });\n };\n });\n }\n static provideDefaultEffects() {\n return [\n AppFrameStore.provideNavigateEffect(),\n AppFrameStore.provideSignOutEffect(),\n AppFrameStore.provideOpenSideAppEffect(),\n AppFrameStore.provideSignUpWithEmailEffect(),\n AppFrameStore.provideSignInWithEmailEffect(),\n AppFrameStore.provideSignInWithGoogleEffect(),\n ];\n }\n\n static provideDefault() {\n return [\n AppFrameStore.provideAppServiceConfig(),\n AppFrameStore.provideIconButtonMenuAsDefaultConfig(),\n AppFrameStore.provideDefaultEffects(),\n ]\n }\n\n readonly config = AppFrameStore.Config.inject();\n readonly isLoading = input(_computed(() => this.config().isLoading));\n readonly isEntrance = input(_computed(() => this.config().isEntrance));\n readonly sideAppOpened = input(_computed(() => this.config().sideAppOpened));\n readonly title = input(_computed(() => this.config().title));\n readonly form = input(_computed(() => this.config().form));\n readonly entranceActions = input(_computed(() => this.config().entranceActions));\n readonly sideNavActions = input(_computed(() => this.config().sideNavActions));\n readonly sideNavMode = input(_computed(() => this.config().sideNavMode));\n readonly sideNavMenuType = input(_computed(() => this.config().sideNavMenuType));\n readonly sideNavMenuTitle = input(_computed(() => this.config().sideNavMenuTitle));\n readonly sideAppOutletName = input(_computed(() => this.config().sideAppOutletName));\n readonly fabActions = input(_computed(() => this.config().fabActions));\n readonly fabHide = input(_computed(() => this.config().fabHide));\n\n constructor() {\n super();\n AppFrameStore.Initializer.initializeStore(this);\n }\n}\n\n\n@Component({\n selector: 'frames-app',\n standalone: true,\n imports: [\n FabFrame,\n LoadingFrame,\n SideNavFrame,\n RouterOutlet,\n EntranceFrame,\n // DrawerFrameStore,\n DrawerFrame,\n BackgroundTemplateStore,\n ],\n template: `\n <router-outlet/>\n @if (isPlatformBrowser()) {\n @defer {\n <templates-background injectable/>\n }\n }\n <frames-loading [isLoading]=\"store.isLoading()\">\n <frames-fab\n [actions]=\"store.fabActions()\"\n [hide]=\"store.fabHide()\"\n (action)=\"dispatch($event)\"\n >\n <frames-entrance\n [isEntrance]=\"store.isEntrance()\"\n [form]=\"store.form()\"\n [title]=\"store.title()\"\n [actions]=\"store.entranceActions()\"\n (action)=\"dispatch($event)\"\n >\n <frames-drawer\n [opened]=\"store.sideAppOpened()\"\n [position]=\"'end'\"\n [hasBackdrop]=\"false\"\n >\n <frames-side-nav\n [actions]=\"store.sideNavActions()\"\n [mode]=\"store.sideNavMode()\"\n [menuType]=\"store.sideNavMenuType()\"\n [menuTitle]=\"store.sideNavMenuTitle()\"\n (action)=\"dispatch($event)\"\n contents\n >\n <router-outlet contents/>\n </frames-side-nav>\n <div drawer style=\"width: var(--page-width-lv1);height: 100%;\">\n <router-outlet [name]=\"store.sideAppOutletName()\" />\n </div>\n </frames-drawer>\n </frames-entrance>\n </frames-fab>\n </frames-loading>\n `,\n styleUrl: './app.frame.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n AppFrameStore,\n ],\n})\nexport class AppFrame extends NgAtomicComponent {\n protected store = inject(AppFrameStore);\n readonly platformId = inject(PLATFORM_ID);\n\n protected isPlatformServer() {\n return isPlatformServer(this.platformId);\n }\n\n protected isPlatformBrowser() {\n return isPlatformBrowser(this.platformId);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,IAAK,QAQJ,CAAA;AARD,CAAA,UAAK,QAAQ,EAAA;AACX,IAAA,QAAA,CAAA,qBAAA,CAAA,GAAA,wDAA8E,CAAA;AAC9E,IAAA,QAAA,CAAA,sBAAA,CAAA,GAAA,yDAAgF,CAAA;AAChF,IAAA,QAAA,CAAA,oBAAA,CAAA,GAAA,uDAA4E,CAAA;AAC5E,IAAA,QAAA,CAAA,oBAAA,CAAA,GAAA,uDAA4E,CAAA;AAC5E,IAAA,QAAA,CAAA,UAAA,CAAA,GAAA,6CAAwD,CAAA;AACxD,IAAA,QAAA,CAAA,UAAA,CAAA,GAAA,6CAAwD,CAAA;AACxD,IAAA,QAAA,CAAA,eAAA,CAAA,GAAA,kDAAkE,CAAA;AACpE,CAAC,EARI,QAAQ,KAAR,QAAQ,GAQZ,EAAA,CAAA,CAAA,CAAA;AAGK,MAAO,aAAc,SAAQ,mBAAmB,CAAA;aACpC,IAAQ,CAAA,QAAA,GAAG,QAAH,CAAY,EAAA;AACpB,IAAA,SAAA,IAAA,CAAA,MAAM,GAAG,UAAU,CAAC,MAAK;QACvC,OAAO,OAAO;AACZ,YAAA,UAAU,EAAE,EAAE;AACd,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,SAAS,EAAE,KAAK;AAChB,YAAA,aAAa,EAAE,KAAK;AACpB,YAAA,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,EAAE,CAAoB;AACtD,YAAA,eAAe,EAAE;AACf,gBAAA,EAAE,EAAE,EAAE,QAAQ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12.0.0", version: "17.2.2", ngImport: i0, type: AutoLayoutFrame, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.2", type: AutoLayoutFrame, isStandalone: true, selector: "frames-auto-layout", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{--gap: 24px;--gap-SCOPED-IN-auto-layout-
|
|
7
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.2", type: AutoLayoutFrame, isStandalone: true, selector: "frames-auto-layout", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{--gap: 24px;--gap-SCOPED-IN-auto-layout-SvM5: var(--gap);--vertical-padding: 24px;--vertical-padding-SCOPED-IN-auto-layout-SvM5: var(--vertical-padding)}:host{display:flex;width:100%;height:100%;justify-content:center;gap:var(--gap-SCOPED-IN-auto-layout-SvM5);box-sizing:border-box;padding:var(--vertical-padding-SCOPED-IN-auto-layout-SvM5) 0}:host[horizontal]{flex-direction:row}:host[vertical]{flex-direction:column}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8
8
|
}
|
|
9
9
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: AutoLayoutFrame, decorators: [{
|
|
10
10
|
type: Component,
|
|
11
11
|
args: [{ selector: 'frames-auto-layout', standalone: true, imports: [
|
|
12
12
|
CommonModule,
|
|
13
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [":host{--gap: 24px;--gap-SCOPED-IN-auto-layout-
|
|
13
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [":host{--gap: 24px;--gap-SCOPED-IN-auto-layout-SvM5: var(--gap);--vertical-padding: 24px;--vertical-padding-SCOPED-IN-auto-layout-SvM5: var(--vertical-padding)}:host{display:flex;width:100%;height:100%;justify-content:center;gap:var(--gap-SCOPED-IN-auto-layout-SvM5);box-sizing:border-box;padding:var(--vertical-padding-SCOPED-IN-auto-layout-SvM5) 0}:host[horizontal]{flex-direction:row}:host[vertical]{flex-direction:column}\n"] }]
|
|
14
14
|
}] });
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -13,7 +13,7 @@ let ColumnsFrameStore = class ColumnsFrameStore extends InjectableComponent {
|
|
|
13
13
|
this.type = input(_computed(() => this.config().type));
|
|
14
14
|
}
|
|
15
15
|
static { ColumnsFrameStore_1 = this; }
|
|
16
|
-
static { this.Config = makeConfig(() => (
|
|
16
|
+
static { this.Config = makeConfig(() => (context) => {
|
|
17
17
|
const getType = () => {
|
|
18
18
|
switch (context.breakpoint) {
|
|
19
19
|
case 'xSmall':
|
|
@@ -103,7 +103,7 @@ class ColumnsFrame extends NgAtomicComponent {
|
|
|
103
103
|
<ng-container [ngTemplateOutlet]="right()?.templateRef" />
|
|
104
104
|
</div>
|
|
105
105
|
}
|
|
106
|
-
`, isInline: true, styles: [":host{display:block;--side-width: 360px;--side-width-SCOPED-IN-columns-
|
|
106
|
+
`, isInline: true, styles: [":host{display:block;--side-width: 360px;--side-width-SCOPED-IN-columns-Wc6c: var(--side-width)}:host{display:flex;flex-direction:row;justify-content:space-between;width:100%;height:100%}:host[type=row]{flex-direction:row;justify-content:space-between}:host[type=row] .container{width:100%}:host[type=row] .container.left{max-width:var(--side-width-SCOPED-IN-columns-Wc6c)}:host[type=row] .container.right{max-width:var(--side-width-SCOPED-IN-columns-Wc6c)}:host[type=column]{flex-direction:column;justify-content:flex-start}:host[type=column] .container.main{width:100%}:host[type=column] .container.left{width:100%}:host[type=column] .container.right{width:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
107
107
|
}
|
|
108
108
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ColumnsFrame, decorators: [{
|
|
109
109
|
type: Component,
|
|
@@ -134,7 +134,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
134
134
|
}
|
|
135
135
|
], host: {
|
|
136
136
|
'[attr.type]': 'store.type()',
|
|
137
|
-
}, styles: [":host{display:block;--side-width: 360px;--side-width-SCOPED-IN-columns-
|
|
137
|
+
}, styles: [":host{display:block;--side-width: 360px;--side-width-SCOPED-IN-columns-Wc6c: var(--side-width)}:host{display:flex;flex-direction:row;justify-content:space-between;width:100%;height:100%}:host[type=row]{flex-direction:row;justify-content:space-between}:host[type=row] .container{width:100%}:host[type=row] .container.left{max-width:var(--side-width-SCOPED-IN-columns-Wc6c)}:host[type=row] .container.right{max-width:var(--side-width-SCOPED-IN-columns-Wc6c)}:host[type=column]{flex-direction:column;justify-content:flex-start}:host[type=column] .container.main{width:100%}:host[type=column] .container.left{width:100%}:host[type=column] .container.right{width:100%}\n"] }]
|
|
138
138
|
}] });
|
|
139
139
|
class ColumnsFrameModule {
|
|
140
140
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ColumnsFrameModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-frames-columns.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/frames/columns/columns.frame.ts","../../../../../packages/@ng-atomic/components/src/lib/frames/columns/ng-atomic-components-frames-columns.ts"],"sourcesContent":["import { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Directive, NgModule, PLATFORM_ID, TemplateRef, contentChild, inject, input } from '@angular/core';\nimport { makeConfig } from '@ng-atomic/common/services/ui';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType, _computed } from '@ng-atomic/core';\n\n@TokenizedType()\n@Directive({standalone: true, selector: 'frames-columns'})\nexport class ColumnsFrameStore extends InjectableComponent {\n static readonly Config = makeConfig(() => (
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-frames-columns.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/frames/columns/columns.frame.ts","../../../../../packages/@ng-atomic/components/src/lib/frames/columns/ng-atomic-components-frames-columns.ts"],"sourcesContent":["import { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Directive, NgModule, PLATFORM_ID, TemplateRef, contentChild, inject, input } from '@angular/core';\nimport { makeConfig } from '@ng-atomic/common/services/ui';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType, _computed } from '@ng-atomic/core';\n\n@TokenizedType()\n@Directive({standalone: true, selector: 'frames-columns'})\nexport class ColumnsFrameStore extends InjectableComponent {\n static readonly Config = makeConfig(() => (context) => {\n const getType = (): 'row' | 'column' => {\n switch (context.breakpoint) {\n case 'xSmall':\n case 'small': return 'column';\n default: return 'row';\n }\n }\n return { type: getType() };\n }, ['components', 'frames', 'columns']);\n readonly config = ColumnsFrameStore.Config.inject();\n readonly type = input<'row' | 'column'>(_computed(() => this.config().type));\n}\n\n@Directive({standalone: true, selector: '[left], [leftColumn]'})\nexport class LeftColumn {\n readonly platformId = inject(PLATFORM_ID);\n readonly isPlatformBrowser = isPlatformBrowser(this.platformId);\n readonly templateRef = inject(TemplateRef<unknown>)\n}\n\n@Directive({\n standalone: true,\n selector: '[main], [mainColumn]',\n})\nexport class MainColumn {\n readonly platformId = inject(PLATFORM_ID);\n readonly isPlatformBrowser = isPlatformBrowser(this.platformId);\n readonly templateRef = inject(TemplateRef<unknown>)\n}\n\n@Directive({standalone: true, selector: '[right], [rightColumn]'})\nexport class RightColumn {\n readonly platformId = inject(PLATFORM_ID);\n readonly isPlatformBrowser = isPlatformBrowser(this.platformId);\n readonly templateRef = inject(TemplateRef<unknown>)\n}\n\n@Component({\n selector: 'frames-columns',\n standalone: true,\n imports: [\n NgTemplateOutlet,\n ],\n template: `\n @if(left()?.templateRef && left()?.isPlatformBrowser) {\n <div class=\"left container\">\n <ng-container [ngTemplateOutlet]=\"left()?.templateRef\" />\n </div>\n }\n\n @if (main()?.templateRef && main()?.isPlatformBrowser) {\n <main class=\"main container\">\n <ng-container [ngTemplateOutlet]=\"main()?.templateRef\" />\n </main>\n }\n \n @if (right()?.templateRef && right()?.isPlatformBrowser) {\n <div class=\"right container\">\n <ng-container [ngTemplateOutlet]=\"right()?.templateRef\" />\n </div>\n }\n `,\n styleUrl: './columns.frame.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: ColumnsFrameStore,\n inputs: ['type'],\n }\n ],\n host: {\n '[attr.type]': 'store.type()',\n },\n})\nexport class ColumnsFrame extends NgAtomicComponent {\n protected readonly platformId = inject(PLATFORM_ID);\n protected readonly store = inject(ColumnsFrameStore);\n protected readonly left = contentChild(LeftColumn);\n protected readonly main = contentChild(MainColumn);\n protected readonly right = contentChild(RightColumn);\n}\n\n@NgModule({\n imports: [\n // ColumnsFrameStore,\n ColumnsFrame,\n LeftColumn,\n MainColumn,\n RightColumn,\n ],\n exports: [\n // ColumnsFrameStore,\n ColumnsFrame,\n LeftColumn,\n MainColumn,\n RightColumn,\n ]\n})\nexport class ColumnsFrameModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAOO,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,mBAAmB,CAAA;AAAnD,IAAA,WAAA,GAAA;;AAWI,QAAA,IAAA,CAAA,MAAM,GAAG,mBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;AAC3C,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC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a,EAAE,cAAc;AAC9B,qBAAA,EAAA,MAAA,EAAA,CAAA,2pBAAA,CAAA,EAAA,CAAA;;MA0BU,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAxBlB,OAAA,EAAA,CAAA,YAAY,EA5DZ,UAAU,EAUV,UAAU,EAOV,WAAW,CAAA,EAAA,OAAA,EAAA,CA2CX,YAAY,EA5DZ,UAAU,EAUV,UAAU,EAOV,WAAW,CAAA,EAAA,CAAA,CAAA,EAAA;+GAmEX,kBAAkB,EAAA,CAAA,CAAA,EAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;;wBAEP,YAAY;wBACZ,UAAU;wBACV,UAAU;wBACV,WAAW;AACZ,qBAAA;AACD,oBAAA,OAAO,EAAE;;wBAEP,YAAY;wBACZ,UAAU;wBACV,UAAU;wBACV,WAAW;AACZ,qBAAA;AACF,iBAAA,CAAA;;;AC1GD;;AAEG;;;;"}
|
|
@@ -59,7 +59,7 @@ class DividerFrame extends NgAtomicComponent {
|
|
|
59
59
|
<div class="second">
|
|
60
60
|
<ng-content select="[second]"></ng-content>
|
|
61
61
|
</div>
|
|
62
|
-
`, isInline: true, styles: [":host{--first-content-height: 0px;--first-content-height-SCOPED-IN-divider-
|
|
62
|
+
`, isInline: true, styles: [":host{--first-content-height: 0px;--first-content-height-SCOPED-IN-divider-qS5H: var(--first-content-height);--min-first-content-height: 0px;--min-first-content-height-SCOPED-IN-divider-qS5H: var(--min-first-content-height);--max-first-content-height: calc(100% - 80px) ;--max-first-content-height-SCOPED-IN-divider-qS5H: var(--max-first-content-height)}:host{position:relative;display:flex;flex-direction:column;height:100%;width:100%}:host div.first{height:min(max(var(--first-content-height-SCOPED-IN-divider-qS5H),var(--min-first-content-height-SCOPED-IN-divider-qS5H)),var(--max-first-content-height-SCOPED-IN-divider-qS5H));overflow:hidden;display:flex;flex-direction:column}:host mat-divider{z-index:1000;width:100%;cursor:row-resize}:host div.second{display:flex;flex-direction:column;height:calc(100% - min(max(var(--first-content-height-SCOPED-IN-divider-qS5H),var(--min-first-content-height-SCOPED-IN-divider-qS5H)),var(--max-first-content-height-SCOPED-IN-divider-qS5H)));overflow:hidden}\n"], dependencies: [{ kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
63
63
|
}
|
|
64
64
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: DividerFrame, decorators: [{
|
|
65
65
|
type: Component,
|
|
@@ -83,7 +83,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
83
83
|
<div class="second">
|
|
84
84
|
<ng-content select="[second]"></ng-content>
|
|
85
85
|
</div>
|
|
86
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--first-content-height: 0px;--first-content-height-SCOPED-IN-divider-
|
|
86
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--first-content-height: 0px;--first-content-height-SCOPED-IN-divider-qS5H: var(--first-content-height);--min-first-content-height: 0px;--min-first-content-height-SCOPED-IN-divider-qS5H: var(--min-first-content-height);--max-first-content-height: calc(100% - 80px) ;--max-first-content-height-SCOPED-IN-divider-qS5H: var(--max-first-content-height)}:host{position:relative;display:flex;flex-direction:column;height:100%;width:100%}:host div.first{height:min(max(var(--first-content-height-SCOPED-IN-divider-qS5H),var(--min-first-content-height-SCOPED-IN-divider-qS5H)),var(--max-first-content-height-SCOPED-IN-divider-qS5H));overflow:hidden;display:flex;flex-direction:column}:host mat-divider{z-index:1000;width:100%;cursor:row-resize}:host div.second{display:flex;flex-direction:column;height:calc(100% - min(max(var(--first-content-height-SCOPED-IN-divider-qS5H),var(--min-first-content-height-SCOPED-IN-divider-qS5H)),var(--max-first-content-height-SCOPED-IN-divider-qS5H)));overflow:hidden}\n"] }]
|
|
87
87
|
}] });
|
|
88
88
|
|
|
89
89
|
/**
|
|
@@ -37,7 +37,7 @@ class DrawerFrame extends NgAtomicComponent {
|
|
|
37
37
|
<mat-drawer-content>
|
|
38
38
|
<ng-content select=[contents] />
|
|
39
39
|
</mat-drawer-content>
|
|
40
|
-
</mat-drawer-container>`, isInline: true, styles: [":host{--content-width: 360px;--content-width-SCOPED-IN-drawer-
|
|
40
|
+
</mat-drawer-container>`, isInline: true, styles: [":host{--content-width: 360px;--content-width-SCOPED-IN-drawer-P2mS: var(--content-width);--height: 100%;--height-SCOPED-IN-drawer-P2mS: var(--height);--background-color: #f0f0f0;--background-color-SCOPED-IN-drawer-P2mS: var(--background-color);--surface-color: transparent;--surface-color-SCOPED-IN-drawer-P2mS: var(--surface-color)}:host{display:contents;height:var(--height-SCOPED-IN-drawer-P2mS)}:host mat-drawer{background-color:var(--background-color-SCOPED-IN-drawer-P2mS)}:host mat-drawer-container{--mat-sidenav-content-background-color: transparent;width:100%;height:100%}:host mat-drawer-content{width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i1.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: i1.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: i1.MatDrawerContent, selector: "mat-drawer-content" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
41
41
|
}
|
|
42
42
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: DrawerFrame, decorators: [{
|
|
43
43
|
type: Component,
|
|
@@ -56,7 +56,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
56
56
|
directive: DrawerFrameStore,
|
|
57
57
|
inputs: ['opened', 'mode', 'hasBackdrop', 'position'],
|
|
58
58
|
}
|
|
59
|
-
], styles: [":host{--content-width: 360px;--content-width-SCOPED-IN-drawer-
|
|
59
|
+
], styles: [":host{--content-width: 360px;--content-width-SCOPED-IN-drawer-P2mS: var(--content-width);--height: 100%;--height-SCOPED-IN-drawer-P2mS: var(--height);--background-color: #f0f0f0;--background-color-SCOPED-IN-drawer-P2mS: var(--background-color);--surface-color: transparent;--surface-color-SCOPED-IN-drawer-P2mS: var(--surface-color)}:host{display:contents;height:var(--height-SCOPED-IN-drawer-P2mS)}:host mat-drawer{background-color:var(--background-color-SCOPED-IN-drawer-P2mS)}:host mat-drawer-container{--mat-sidenav-content-background-color: transparent;width:100%;height:100%}:host mat-drawer-content{width:100%;height:100%}\n"] }]
|
|
60
60
|
}] });
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -43,7 +43,7 @@ class EntranceFrame extends NgAtomicComponent {
|
|
|
43
43
|
(action)="dispatch($event)"
|
|
44
44
|
/>
|
|
45
45
|
</frames-overlay>
|
|
46
|
-
`, isInline: true, styles: [":host{display:block;--primary-color: inherit;--primary-color-SCOPED-IN-entrance-
|
|
46
|
+
`, isInline: true, styles: [":host{display:block;--primary-color: inherit;--primary-color-SCOPED-IN-entrance-66K5: var(--primary-color);--on-primary-color: inherit;--on-primary-color-SCOPED-IN-entrance-66K5: var(--on-primary-color);--surface-color: inherit;--surface-color-SCOPED-IN-entrance-66K5: var(--surface-color);--on-surface-color: inherit;--on-surface-color-SCOPED-IN-entrance-66K5: var(--on-surface-color);--background-color: inherit;--background-color-SCOPED-IN-entrance-66K5: var(--background-color);--on-background-color: inherit;--on-background-color-SCOPED-IN-entrance-66K5: var(--on-background-color);--menu-width: inherit;--menu-width-SCOPED-IN-entrance-66K5: var(--menu-width);--menu-background-color: inherit;--menu-background-color-SCOPED-IN-entrance-66K5: var(--menu-background-color);--menu-on-background-color: inherit;--menu-on-background-color-SCOPED-IN-entrance-66K5: var(--menu-on-background-color);--background-primary-color: inherit;--background-primary-color-SCOPED-IN-entrance-66K5: var(--background-primary-color);--background-on-primary-color: inherit;--background-on-primary-color-SCOPED-IN-entrance-66K5: var(--background-on-primary-color);--background-background-color: inherit;--background-background-color-SCOPED-IN-entrance-66K5: var(--background-background-color)}:host{display:block;width:100%;height:100%}:host templates-entrance{position:relative;width:100%;height:100%}:host *{--primary-color: var(--primary-color-SCOPED-IN-entrance-66K5);--on-primary-color: var(--on-primary-color-SCOPED-IN-entrance-66K5);--surface-color: var(--surface-color-SCOPED-IN-entrance-66K5);--on-surface-color: var(--on-surface-color-SCOPED-IN-entrance-66K5);--background-color: var(--background-color-SCOPED-IN-entrance-66K5);--on-background-color: var(--on-background-color-SCOPED-IN-entrance-66K5);--menu-background-color: var(--menu-background-color-SCOPED-IN-entrance-66K5);--menu-on-background-color: var(--menu-on-background-color-SCOPED-IN-entrance-66K5)}\n"], dependencies: [{ kind: "component", type: OverlayFrame, selector: "frames-overlay" }, { kind: "directive", type: EntranceTemplateStore, selector: "templates-entrance", inputs: ["form", "actions", "fieldMap", "title"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
47
47
|
}
|
|
48
48
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: EntranceFrame, decorators: [{
|
|
49
49
|
type: Component,
|
|
@@ -69,7 +69,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImpor
|
|
|
69
69
|
directive: EntranceFrameStore,
|
|
70
70
|
inputs: ['isEntrance', 'actions', 'form', 'title'],
|
|
71
71
|
},
|
|
72
|
-
], styles: [":host{display:block;--primary-color: inherit;--primary-color-SCOPED-IN-entrance-
|
|
72
|
+
], styles: [":host{display:block;--primary-color: inherit;--primary-color-SCOPED-IN-entrance-66K5: var(--primary-color);--on-primary-color: inherit;--on-primary-color-SCOPED-IN-entrance-66K5: var(--on-primary-color);--surface-color: inherit;--surface-color-SCOPED-IN-entrance-66K5: var(--surface-color);--on-surface-color: inherit;--on-surface-color-SCOPED-IN-entrance-66K5: var(--on-surface-color);--background-color: inherit;--background-color-SCOPED-IN-entrance-66K5: var(--background-color);--on-background-color: inherit;--on-background-color-SCOPED-IN-entrance-66K5: var(--on-background-color);--menu-width: inherit;--menu-width-SCOPED-IN-entrance-66K5: var(--menu-width);--menu-background-color: inherit;--menu-background-color-SCOPED-IN-entrance-66K5: var(--menu-background-color);--menu-on-background-color: inherit;--menu-on-background-color-SCOPED-IN-entrance-66K5: var(--menu-on-background-color);--background-primary-color: inherit;--background-primary-color-SCOPED-IN-entrance-66K5: var(--background-primary-color);--background-on-primary-color: inherit;--background-on-primary-color-SCOPED-IN-entrance-66K5: var(--background-on-primary-color);--background-background-color: inherit;--background-background-color-SCOPED-IN-entrance-66K5: var(--background-background-color)}:host{display:block;width:100%;height:100%}:host templates-entrance{position:relative;width:100%;height:100%}:host *{--primary-color: var(--primary-color-SCOPED-IN-entrance-66K5);--on-primary-color: var(--on-primary-color-SCOPED-IN-entrance-66K5);--surface-color: var(--surface-color-SCOPED-IN-entrance-66K5);--on-surface-color: var(--on-surface-color-SCOPED-IN-entrance-66K5);--background-color: var(--background-color-SCOPED-IN-entrance-66K5);--on-background-color: var(--on-background-color-SCOPED-IN-entrance-66K5);--menu-background-color: var(--menu-background-color-SCOPED-IN-entrance-66K5);--menu-on-background-color: var(--menu-on-background-color-SCOPED-IN-entrance-66K5)}\n"] }]
|
|
73
73
|
}] });
|
|
74
74
|
|
|
75
75
|
/**
|