@ng-atomic/components 4.15.0 → 4.16.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/esm2020/atoms/icon/icon.atom.mjs +2 -2
- package/esm2020/atoms/smart-menu-button/smart-menu-button.atom.mjs +3 -3
- package/esm2020/frames/auto-layout/auto-layout.frame.mjs +2 -2
- package/esm2020/frames/drawer/drawer.frame.mjs +12 -4
- package/esm2020/frames/line-up/line-up.frame.mjs +2 -2
- package/esm2020/frames/overlay/overlay.frame.mjs +2 -2
- package/esm2020/frames/scroll/scroll.frame.mjs +2 -2
- package/esm2020/frames/smart-menu/smart-menu.frame.mjs +2 -2
- package/esm2020/molecules/date-input-field/date-input-field.molecule.mjs +2 -2
- package/esm2020/molecules/select-input-field/select-input-field.molecule.mjs +2 -2
- package/esm2020/molecules/smart-column/smart-column.module.mjs +6 -23
- package/esm2020/molecules/smart-column/smart-column.molecule.mjs +13 -10
- package/esm2020/organisms/action-buttons-section/action-buttons-section.organism.mjs +2 -2
- package/esm2020/organisms/back-navigator/back-navigator.organism.mjs +2 -2
- package/esm2020/organisms/card-input-section/card-input-section.organism.mjs +2 -2
- package/esm2020/organisms/cvc-and-exp-input-section/cvc-and-exp-input-section.organism.mjs +2 -2
- package/esm2020/organisms/date-input-section/date-input-section.organism.mjs +2 -2
- package/esm2020/organisms/heading/heading.organism.mjs +2 -2
- package/esm2020/organisms/navigation-list/navigation-list.organism.mjs +2 -2
- package/esm2020/organisms/navigator/navigator.organism.mjs +12 -12
- package/esm2020/organisms/select-input-section/select-input-section.organism.mjs +2 -2
- package/esm2020/organisms/smart-list/index.mjs +3 -0
- package/esm2020/organisms/smart-list/ng-atomic-components-organisms-smart-list.mjs +5 -0
- package/esm2020/organisms/smart-list/smart-list.module.mjs +40 -0
- package/esm2020/organisms/smart-list/smart-list.organism.mjs +98 -0
- package/esm2020/organisms/smart-table/smart-table.organism.mjs +18 -24
- package/esm2020/organisms/social-login-section/social-login-section.organism.mjs +2 -2
- package/esm2020/organisms/text-input-section/text-input-section.organism.mjs +2 -2
- package/esm2020/organisms/textarea-section/textarea-section.organism.mjs +2 -2
- package/esm2020/organisms/top-navigator/top-navigator.organism.mjs +2 -2
- package/esm2020/templates/entrance/entrance.template.mjs +2 -2
- package/esm2020/templates/menu/menu.template.mjs +2 -2
- package/esm2020/templates/smart-crud/smart-crud.template.mjs +15 -43
- package/esm2020/templates/smart-index/smart-index.module.mjs +5 -1
- package/esm2020/templates/smart-index/smart-index.template.mjs +54 -29
- package/fesm2015/ng-atomic-components-atoms-icon.mjs +2 -2
- package/fesm2015/ng-atomic-components-atoms-smart-menu-button.mjs +2 -2
- package/fesm2015/ng-atomic-components-atoms-smart-menu-button.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-frames-auto-layout.mjs +2 -2
- package/fesm2015/ng-atomic-components-frames-drawer.mjs +12 -3
- package/fesm2015/ng-atomic-components-frames-drawer.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-frames-line-up.mjs +2 -2
- package/fesm2015/ng-atomic-components-frames-overlay.mjs +2 -2
- package/fesm2015/ng-atomic-components-frames-scroll.mjs +2 -2
- package/fesm2015/ng-atomic-components-frames-smart-menu.mjs +2 -2
- package/fesm2015/ng-atomic-components-molecules-date-input-field.mjs +2 -2
- package/fesm2015/ng-atomic-components-molecules-select-input-field.mjs +2 -2
- package/fesm2015/ng-atomic-components-molecules-smart-column.mjs +11 -27
- package/fesm2015/ng-atomic-components-molecules-smart-column.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-action-buttons-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-back-navigator.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-card-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-date-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-heading.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-navigation-list.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-navigator.mjs +11 -11
- package/fesm2015/ng-atomic-components-organisms-navigator.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-smart-list.mjs +160 -0
- package/fesm2015/ng-atomic-components-organisms-smart-list.mjs.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-smart-table.mjs +17 -23
- package/fesm2015/ng-atomic-components-organisms-smart-table.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-text-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-top-navigator.mjs +2 -2
- package/fesm2015/ng-atomic-components-templates-entrance.mjs +2 -2
- package/fesm2015/ng-atomic-components-templates-menu.mjs +2 -2
- package/fesm2015/ng-atomic-components-templates-smart-crud.mjs +14 -42
- package/fesm2015/ng-atomic-components-templates-smart-crud.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-templates-smart-index.mjs +63 -28
- package/fesm2015/ng-atomic-components-templates-smart-index.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-atoms-icon.mjs +2 -2
- package/fesm2020/ng-atomic-components-atoms-smart-menu-button.mjs +2 -2
- package/fesm2020/ng-atomic-components-atoms-smart-menu-button.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-frames-auto-layout.mjs +2 -2
- package/fesm2020/ng-atomic-components-frames-drawer.mjs +11 -3
- package/fesm2020/ng-atomic-components-frames-drawer.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-frames-line-up.mjs +2 -2
- package/fesm2020/ng-atomic-components-frames-overlay.mjs +2 -2
- package/fesm2020/ng-atomic-components-frames-scroll.mjs +2 -2
- package/fesm2020/ng-atomic-components-frames-smart-menu.mjs +2 -2
- package/fesm2020/ng-atomic-components-molecules-date-input-field.mjs +2 -2
- package/fesm2020/ng-atomic-components-molecules-select-input-field.mjs +2 -2
- package/fesm2020/ng-atomic-components-molecules-smart-column.mjs +11 -25
- package/fesm2020/ng-atomic-components-molecules-smart-column.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-action-buttons-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-back-navigator.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-card-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-date-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-heading.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-navigation-list.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-navigator.mjs +11 -11
- package/fesm2020/ng-atomic-components-organisms-navigator.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-smart-list.mjs +141 -0
- package/fesm2020/ng-atomic-components-organisms-smart-list.mjs.map +1 -0
- package/fesm2020/ng-atomic-components-organisms-smart-table.mjs +17 -23
- package/fesm2020/ng-atomic-components-organisms-smart-table.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-text-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-top-navigator.mjs +2 -2
- package/fesm2020/ng-atomic-components-templates-entrance.mjs +2 -2
- package/fesm2020/ng-atomic-components-templates-menu.mjs +2 -2
- package/fesm2020/ng-atomic-components-templates-smart-crud.mjs +14 -42
- package/fesm2020/ng-atomic-components-templates-smart-crud.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-templates-smart-index.mjs +57 -28
- package/fesm2020/ng-atomic-components-templates-smart-index.mjs.map +1 -1
- package/frames/drawer/drawer.frame.d.ts +3 -1
- package/frames/drawer/drawer.frame.d.ts.map +1 -1
- package/molecules/smart-column/smart-column.module.d.ts +6 -10
- package/molecules/smart-column/smart-column.module.d.ts.map +1 -1
- package/molecules/smart-column/smart-column.molecule.d.ts +0 -1
- package/molecules/smart-column/smart-column.molecule.d.ts.map +1 -1
- package/organisms/navigator/navigator.organism.d.ts +4 -4
- package/organisms/navigator/navigator.organism.d.ts.map +1 -1
- package/organisms/smart-list/index.d.ts +3 -0
- package/organisms/smart-list/index.d.ts.map +1 -0
- package/organisms/smart-list/ng-atomic-components-organisms-smart-list.d.ts.map +1 -0
- package/organisms/smart-list/smart-list.module.d.ts +13 -0
- package/organisms/smart-list/smart-list.module.d.ts.map +1 -0
- package/organisms/smart-list/smart-list.organism.d.ts +22 -0
- package/organisms/smart-list/smart-list.organism.d.ts.map +1 -0
- package/organisms/smart-table/smart-table.organism.d.ts +12 -10
- package/organisms/smart-table/smart-table.organism.d.ts.map +1 -1
- package/package.json +12 -3
- package/templates/smart-crud/smart-crud.template.d.ts +6 -16
- package/templates/smart-crud/smart-crud.template.d.ts.map +1 -1
- package/templates/smart-index/smart-index.module.d.ts +4 -3
- package/templates/smart-index/smart-index.module.d.ts.map +1 -1
- package/templates/smart-index/smart-index.template.d.ts +6 -10
- package/templates/smart-index/smart-index.template.d.ts.map +1 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, ChangeDetectionStrategy, Optional, Inject, Input, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i5 from '@ng-atomic/common/pipes/data-accessor';
|
|
4
|
+
import { defaultDataAccessor, DATA_ACCESSOR, DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';
|
|
5
|
+
import * as i1 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i2 from '@angular/material/list';
|
|
8
|
+
import { MatListModule } from '@angular/material/list';
|
|
9
|
+
import * as i3 from '@angular/material/core';
|
|
10
|
+
import { MatRippleModule } from '@angular/material/core';
|
|
11
|
+
import * as i4 from '@angular/material/divider';
|
|
12
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
13
|
+
|
|
14
|
+
function SmartListOrganism_ng_container_1_ng_container_3_Template(rf, ctx) {
|
|
15
|
+
if (rf & 1) {
|
|
16
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
17
|
+
i0.ɵɵelementContainerStart(0);
|
|
18
|
+
i0.ɵɵelementStart(1, "mat-list-item", 2);
|
|
19
|
+
i0.ɵɵlistener("click", function SmartListOrganism_ng_container_1_ng_container_3_Template_mat_list_item_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const item_r3 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r4.onItemClick(item_r3)); });
|
|
20
|
+
i0.ɵɵelementStart(2, "span", 3);
|
|
21
|
+
i0.ɵɵtext(3);
|
|
22
|
+
i0.ɵɵpipe(4, "dataAccessor");
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
i0.ɵɵelementStart(5, "span", 3);
|
|
25
|
+
i0.ɵɵtext(6);
|
|
26
|
+
i0.ɵɵpipe(7, "dataAccessor");
|
|
27
|
+
i0.ɵɵelementEnd()();
|
|
28
|
+
i0.ɵɵelementContainerEnd();
|
|
29
|
+
}
|
|
30
|
+
if (rf & 2) {
|
|
31
|
+
const item_r3 = ctx.$implicit;
|
|
32
|
+
i0.ɵɵadvance(3);
|
|
33
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(4, 2, item_r3, "__title"));
|
|
34
|
+
i0.ɵɵadvance(3);
|
|
35
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 5, item_r3, "__desc"));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function SmartListOrganism_ng_container_1_Template(rf, ctx) {
|
|
39
|
+
if (rf & 1) {
|
|
40
|
+
i0.ɵɵelementContainerStart(0);
|
|
41
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
42
|
+
i0.ɵɵtext(2);
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵtemplate(3, SmartListOrganism_ng_container_1_ng_container_3_Template, 8, 8, "ng-container", 0);
|
|
45
|
+
i0.ɵɵelement(4, "mat-divider");
|
|
46
|
+
i0.ɵɵelementContainerEnd();
|
|
47
|
+
}
|
|
48
|
+
if (rf & 2) {
|
|
49
|
+
const status_r1 = ctx.$implicit;
|
|
50
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
51
|
+
i0.ɵɵadvance(2);
|
|
52
|
+
i0.ɵɵtextInterpolate1(" ", status_r1, "");
|
|
53
|
+
i0.ɵɵadvance(1);
|
|
54
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.statusMap[status_r1]);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
var ActionId;
|
|
58
|
+
(function (ActionId) {
|
|
59
|
+
ActionId["CLICK_ITEM"] = "[@ng-atomic/components/organisms/smart-list] Click Item";
|
|
60
|
+
})(ActionId || (ActionId = {}));
|
|
61
|
+
class SmartListOrganism {
|
|
62
|
+
constructor(dataAccessor) {
|
|
63
|
+
var _a;
|
|
64
|
+
this.dataAccessor = dataAccessor;
|
|
65
|
+
this.statusAccessor = (data) => data['status'];
|
|
66
|
+
this.items = [];
|
|
67
|
+
this.action = new EventEmitter();
|
|
68
|
+
(_a = this.dataAccessor) !== null && _a !== void 0 ? _a : (this.dataAccessor = defaultDataAccessor);
|
|
69
|
+
}
|
|
70
|
+
get statusMap() {
|
|
71
|
+
return this.items.reduce((acc, item) => {
|
|
72
|
+
var _a;
|
|
73
|
+
const key = this.dataAccessor(item, '__status');
|
|
74
|
+
(_a = acc[key]) !== null && _a !== void 0 ? _a : (acc[key] = []),
|
|
75
|
+
acc[key].push(item);
|
|
76
|
+
return acc;
|
|
77
|
+
}, {});
|
|
78
|
+
}
|
|
79
|
+
get statuses() {
|
|
80
|
+
return Object.keys(this.statusMap);
|
|
81
|
+
}
|
|
82
|
+
onItemClick(item) {
|
|
83
|
+
this.action.emit({
|
|
84
|
+
id: ActionId.CLICK_ITEM,
|
|
85
|
+
payload: item,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
SmartListOrganism.ɵfac = function SmartListOrganism_Factory(t) { return new (t || SmartListOrganism)(i0.ɵɵdirectiveInject(DATA_ACCESSOR, 8)); };
|
|
90
|
+
SmartListOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartListOrganism, selectors: [["organisms-smart-list"]], inputs: { items: "items" }, outputs: { action: "action" }, decls: 2, vars: 1, consts: [[4, "ngFor", "ngForOf"], ["mat-subheader", ""], ["lines", "2", "matRipple", "", 3, "click"], ["mat-line", ""]], template: function SmartListOrganism_Template(rf, ctx) {
|
|
91
|
+
if (rf & 1) {
|
|
92
|
+
i0.ɵɵelementStart(0, "mat-list");
|
|
93
|
+
i0.ɵɵtemplate(1, SmartListOrganism_ng_container_1_Template, 5, 2, "ng-container", 0);
|
|
94
|
+
i0.ɵɵelementEnd();
|
|
95
|
+
}
|
|
96
|
+
if (rf & 2) {
|
|
97
|
+
i0.ɵɵadvance(1);
|
|
98
|
+
i0.ɵɵproperty("ngForOf", ctx.statuses);
|
|
99
|
+
}
|
|
100
|
+
}, dependencies: [i1.NgForOf, i2.MatList, i2.MatListItem, i3.MatLine, i2.MatListSubheaderCssMatStyler, i4.MatDivider, i3.MatRipple, i5.DataAccessorPipe], styles: ["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]{display:block;flex-direction:unset;font-size:14px;height:100%}"], changeDetection: 0 });
|
|
101
|
+
(function () {
|
|
102
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartListOrganism, [{
|
|
103
|
+
type: Component,
|
|
104
|
+
args: [{ selector: 'organisms-smart-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-list>\n <ng-container *ngFor=\"let status of statuses\">\n <div mat-subheader> {{ status }}</div>\n <ng-container *ngFor=\"let item of statusMap[status]\">\n <mat-list-item lines=\"2\" matRipple (click)=\"onItemClick(item)\">\n <span mat-line>{{ item | dataAccessor:'__title' }}</span>\n <span mat-line>{{ item | dataAccessor:'__desc' }}</span>\n </mat-list-item>\n </ng-container>\n <mat-divider></mat-divider>\n </ng-container>\n</mat-list>\n", styles: [":host{display:block}:host{display:block;flex-direction:unset;font-size:14px;height:100%}\n"] }]
|
|
105
|
+
}], function () {
|
|
106
|
+
return [{ type: undefined, decorators: [{
|
|
107
|
+
type: Optional
|
|
108
|
+
}, {
|
|
109
|
+
type: Inject,
|
|
110
|
+
args: [DATA_ACCESSOR]
|
|
111
|
+
}] }];
|
|
112
|
+
}, { items: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], action: [{
|
|
115
|
+
type: Output
|
|
116
|
+
}] });
|
|
117
|
+
})();
|
|
118
|
+
|
|
119
|
+
class SmartListModule {
|
|
120
|
+
}
|
|
121
|
+
SmartListModule.ɵfac = function SmartListModule_Factory(t) { return new (t || SmartListModule)(); };
|
|
122
|
+
SmartListModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SmartListModule });
|
|
123
|
+
SmartListModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
124
|
+
MatListModule,
|
|
125
|
+
MatIconModule,
|
|
126
|
+
MatRippleModule] });
|
|
127
|
+
(function () {
|
|
128
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartListModule, [{
|
|
129
|
+
type: NgModule,
|
|
130
|
+
args: [{
|
|
131
|
+
declarations: [
|
|
132
|
+
SmartListOrganism,
|
|
133
|
+
],
|
|
134
|
+
imports: [
|
|
135
|
+
CommonModule,
|
|
136
|
+
MatListModule,
|
|
137
|
+
MatIconModule,
|
|
138
|
+
MatRippleModule,
|
|
139
|
+
DataAccessorPipe,
|
|
140
|
+
],
|
|
141
|
+
exports: [
|
|
142
|
+
SmartListOrganism
|
|
143
|
+
]
|
|
144
|
+
}]
|
|
145
|
+
}], null, null);
|
|
146
|
+
})();
|
|
147
|
+
(function () {
|
|
148
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartListModule, { declarations: [SmartListOrganism], imports: [CommonModule,
|
|
149
|
+
MatListModule,
|
|
150
|
+
MatIconModule,
|
|
151
|
+
MatRippleModule,
|
|
152
|
+
DataAccessorPipe], exports: [SmartListOrganism] });
|
|
153
|
+
})();
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Generated bundle index. Do not edit.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
export { ActionId, SmartListModule, SmartListOrganism };
|
|
160
|
+
//# sourceMappingURL=ng-atomic-components-organisms-smart-list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-organisms-smart-list.mjs","sources":["../../../../libs/components/src/organisms/smart-list/smart-list.organism.html","../../../../libs/components/src/organisms/smart-list/smart-list.organism.ts","../../../../libs/components/src/organisms/smart-list/smart-list.module.ts","../../../../libs/components/src/organisms/smart-list/ng-atomic-components-organisms-smart-list.ts"],"sourcesContent":["<mat-list>\n <ng-container *ngFor=\"let status of statuses\">\n <div mat-subheader> {{ status }}</div>\n <ng-container *ngFor=\"let item of statusMap[status]\">\n <mat-list-item lines=\"2\" matRipple (click)=\"onItemClick(item)\">\n <span mat-line>{{ item | dataAccessor:'__title' }}</span>\n <span mat-line>{{ item | dataAccessor:'__desc' }}</span>\n </mat-list-item>\n </ng-container>\n <mat-divider></mat-divider>\n </ng-container>\n</mat-list>\n","import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, Optional, Output } from '@angular/core';\nimport { Action } from '@ng-atomic/common/models';\nimport { DataAccessor, DATA_ACCESSOR, defaultDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\n\nexport enum ActionId {\n CLICK_ITEM = '[@ng-atomic/components/organisms/smart-list] Click Item',\n}\n\n@Component({\n selector: 'organisms-smart-list',\n templateUrl: './smart-list.organism.html',\n styleUrls: ['./smart-list.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SmartListOrganism<T> {\n\n constructor(\n @Optional() @Inject(DATA_ACCESSOR) private dataAccessor: DataAccessor<T>\n ) {\n this.dataAccessor ??= defaultDataAccessor;\n }\n\n statusAccessor = (data) => data['status'];\n\n @Input()\n items: T[] = [];\n\n @Output()\n action = new EventEmitter<Action>();\n\n get statusMap() {\n return this.items.reduce((acc, item) => {\n const key = this.dataAccessor(item, '__status');\n acc[key] ??= [],\n acc[key].push(item);\n return acc;\n }, {} as { [id: string]: any[] });\n }\n\n get statuses() {\n return Object.keys(this.statusMap);\n }\n\n protected onItemClick(item: T) {\n this.action.emit({\n id: ActionId.CLICK_ITEM,\n payload: item,\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartListOrganism } from './smart-list.organism';\nimport { MatListModule } from '@angular/material/list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatRippleModule } from '@angular/material/core';\nimport { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';\n\n@NgModule({\n declarations: [\n SmartListOrganism,\n ],\n imports: [\n CommonModule,\n MatListModule,\n MatIconModule,\n MatRippleModule,\n DataAccessorPipe,\n ],\n exports: [\n SmartListOrganism\n ]\n})\nexport class SmartListModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGI,QAAA,EAAqD,CAAA,uBAAA,CAAA,CAAA,CAAA,CAAA;QACnD,EAA+D,CAAA,cAAA,CAAA,CAAA,EAAA,eAAA,EAAA,CAAA,CAAA,CAAA;QAA5B,EAAS,CAAA,UAAA,CAAA,OAAA,EAAA,SAAA,uFAAA,GAAA,EAAA,MA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A;iBACF,CAAA;;;;6EACY,eAAe,EAAA,EAAA,YAAA,EAAA,CAbxB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAGjB,YAAY;YACZ,aAAa;YACb,aAAa;YACb,eAAe;YACf,gBAAgB,aAGhB,iBAAiB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACpBrB;;AAEG;;;;"}
|
|
@@ -38,7 +38,7 @@ function SmartTableOrganism_ng_container_1_molecules_actions_column_2_Template(r
|
|
|
38
38
|
}
|
|
39
39
|
if (rf & 2) {
|
|
40
40
|
const ctx_r6 = i0.ɵɵnextContext(2);
|
|
41
|
-
i0.ɵɵproperty("
|
|
41
|
+
i0.ɵɵproperty("itemActions", ctx_r6.itemActions);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
function SmartTableOrganism_ng_container_1_molecules_smart_column_3_Template(rf, ctx) {
|
|
@@ -52,14 +52,14 @@ function SmartTableOrganism_ng_container_1_molecules_smart_column_3_Template(rf,
|
|
|
52
52
|
if (rf & 2) {
|
|
53
53
|
const name_r4 = i0.ɵɵnextContext().$implicit;
|
|
54
54
|
const ctx_r7 = i0.ɵɵnextContext();
|
|
55
|
-
i0.ɵɵproperty("name", name_r4)("headerText", i0.ɵɵpipeBind1(1, 3, name_r4))("sort", ctx_r7.
|
|
55
|
+
i0.ɵɵproperty("name", name_r4)("headerText", i0.ɵɵpipeBind1(1, 3, name_r4))("sort", (ctx_r7.sort == null ? null : ctx_r7.sort.key) === name_r4 ? ctx_r7.sort == null ? null : ctx_r7.sort.order : "none");
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function SmartTableOrganism_ng_container_1_Template(rf, ctx) {
|
|
59
59
|
if (rf & 1) {
|
|
60
60
|
i0.ɵɵelementContainerStart(0, 5);
|
|
61
61
|
i0.ɵɵtemplate(1, SmartTableOrganism_ng_container_1_molecules_checkbox_column_1_Template, 1, 1, "molecules-checkbox-column", 6);
|
|
62
|
-
i0.ɵɵtemplate(2, SmartTableOrganism_ng_container_1_molecules_actions_column_2_Template, 1,
|
|
62
|
+
i0.ɵɵtemplate(2, SmartTableOrganism_ng_container_1_molecules_actions_column_2_Template, 1, 1, "molecules-actions-column", 7);
|
|
63
63
|
i0.ɵɵtemplate(3, SmartTableOrganism_ng_container_1_molecules_smart_column_3_Template, 2, 5, "molecules-smart-column", 8);
|
|
64
64
|
i0.ɵɵelementContainerEnd();
|
|
65
65
|
}
|
|
@@ -91,13 +91,12 @@ function SmartTableOrganism_div_4_Template(rf, ctx) {
|
|
|
91
91
|
}
|
|
92
92
|
class SmartTableOrganism {
|
|
93
93
|
constructor() {
|
|
94
|
-
this.
|
|
94
|
+
this._columns = [];
|
|
95
95
|
this.items = [];
|
|
96
96
|
this.itemActions = () => [];
|
|
97
|
-
this.patientsSize = 0;
|
|
98
97
|
this.pageSize = 0;
|
|
99
|
-
this.menuItems = [];
|
|
100
98
|
this.selectedIdSet = new Set();
|
|
99
|
+
this.sort = {};
|
|
101
100
|
this.action = new EventEmitter();
|
|
102
101
|
this.headerClick = new EventEmitter();
|
|
103
102
|
this.checkboxClick = new EventEmitter();
|
|
@@ -105,12 +104,12 @@ class SmartTableOrganism {
|
|
|
105
104
|
this.itemCheck = new EventEmitter();
|
|
106
105
|
this.trackByColumnName = (columnName) => columnName;
|
|
107
106
|
}
|
|
108
|
-
get
|
|
109
|
-
return [...this.
|
|
107
|
+
get columns() {
|
|
108
|
+
return [...this._columns];
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
SmartTableOrganism.ɵfac = function SmartTableOrganism_Factory(t) { return new (t || SmartTableOrganism)(); };
|
|
113
|
-
SmartTableOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartTableOrganism, selectors: [["organisms-smart-table"]], hostAttrs: [1, "organism"], inputs: {
|
|
112
|
+
SmartTableOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartTableOrganism, selectors: [["organisms-smart-table"]], hostAttrs: [1, "organism"], inputs: { _columns: ["columns", "_columns"], items: "items", itemActions: "itemActions", pageSize: "pageSize", selectedIdSet: "selectedIdSet", sort: "sort" }, outputs: { action: "action", headerClick: "headerClick", checkboxClick: "checkboxClick", pageChange: "pageChange", itemCheck: "itemCheck" }, decls: 5, vars: 7, consts: [["mat-table", "", "matSort", "", "matSortDisableClear", "", "matSortDirection", "desc", 3, "dataSource"], [3, "ngSwitch", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["mat-header-row", "", 4, "matHeaderRowDef", "matHeaderRowDefSticky"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], ["class", "no-data-message", 4, "ngIf"], [3, "ngSwitch"], ["name", "__checkbox", 3, "selectedIdSet", "checkboxClick", 4, "ngSwitchCase"], ["name", "__actions", 3, "itemActions", "action", 4, "ngSwitchCase"], [3, "name", "headerText", "sort", "headerClick", 4, "ngSwitchDefault"], ["name", "__checkbox", 3, "selectedIdSet", "checkboxClick"], ["name", "__actions", 3, "itemActions", "action"], [3, "name", "headerText", "sort", "headerClick"], ["mat-header-row", ""], ["mat-row", ""], [1, "no-data-message"]], template: function SmartTableOrganism_Template(rf, ctx) {
|
|
114
113
|
if (rf & 1) {
|
|
115
114
|
i0.ɵɵelementStart(0, "table", 0);
|
|
116
115
|
i0.ɵɵtemplate(1, SmartTableOrganism_ng_container_1_Template, 4, 3, "ng-container", 1);
|
|
@@ -122,36 +121,31 @@ SmartTableOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartTab
|
|
|
122
121
|
if (rf & 2) {
|
|
123
122
|
i0.ɵɵproperty("dataSource", ctx.items);
|
|
124
123
|
i0.ɵɵadvance(1);
|
|
125
|
-
i0.ɵɵproperty("ngForOf", ctx.
|
|
124
|
+
i0.ɵɵproperty("ngForOf", ctx.columns)("ngForTrackBy", ctx.trackByColumnName);
|
|
126
125
|
i0.ɵɵadvance(1);
|
|
127
|
-
i0.ɵɵproperty("matHeaderRowDef", ctx.
|
|
126
|
+
i0.ɵɵproperty("matHeaderRowDef", ctx.columns)("matHeaderRowDefSticky", true);
|
|
128
127
|
i0.ɵɵadvance(1);
|
|
129
|
-
i0.ɵɵproperty("matRowDefColumns", ctx.
|
|
128
|
+
i0.ɵɵproperty("matRowDefColumns", ctx.columns);
|
|
130
129
|
i0.ɵɵadvance(1);
|
|
131
130
|
i0.ɵɵproperty("ngIf", !(ctx.items == null ? null : ctx.items.length));
|
|
132
131
|
}
|
|
133
|
-
}, dependencies: [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i2.MatTable, i2.MatHeaderRowDef, i2.MatRowDef, i2.MatHeaderRow, i2.MatRow, i3.ActionsColumnMolecule, i4.CheckboxColumnMolecule, i5.SmartColumnMolecule, i6.DomainPipe], styles: ["[_nghost-%COMP%]{--width: 100%;--width-SCOPED-IN-smart-table-
|
|
132
|
+
}, dependencies: [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i2.MatTable, i2.MatHeaderRowDef, i2.MatRowDef, i2.MatHeaderRow, i2.MatRow, i3.ActionsColumnMolecule, i4.CheckboxColumnMolecule, i5.SmartColumnMolecule, i6.DomainPipe], styles: ["[_nghost-%COMP%]{--width: 100%;--width-SCOPED-IN-smart-table-Pc6U: var(--width);--cell: 8px;--cell-SCOPED-IN-smart-table-Pc6U: var(--cell);--column-vertical-padding: 4px;--column-vertical-padding-SCOPED-IN-smart-table-Pc6U: var(--column-vertical-padding)}[_nghost-%COMP%]{position:relative;width:100%;height:100%;overflow:scroll}[_nghost-%COMP%]::-webkit-scrollbar{display:none}[_nghost-%COMP%] table[_ngcontent-%COMP%]{width:100%;max-height:100%}[_nghost-%COMP%] table[_ngcontent-%COMP%] .nowrap[_ngcontent-%COMP%]{width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] table[_ngcontent-%COMP%] th, [_nghost-%COMP%] table[_ngcontent-%COMP%] td{padding:0 var(--column-vertical-padding-SCOPED-IN-smart-table-Pc6U)}[_nghost-%COMP%] .no-data-message[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;width:calc(var(--width-SCOPED-IN-smart-table-Pc6U) - var(--cell-SCOPED-IN-smart-table-Pc6U) * 4);height:3em;padding-left:calc(var(--cell-SCOPED-IN-smart-table-Pc6U) * 2);padding-right:calc(var(--cell-SCOPED-IN-smart-table-Pc6U) * 2)}"], changeDetection: 0 });
|
|
134
133
|
(function () {
|
|
135
134
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartTableOrganism, [{
|
|
136
135
|
type: Component,
|
|
137
|
-
args: [{ selector: 'organisms-smart-table', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism' }, template: "<table mat-table [dataSource]=\"items\" matSort matSortDisableClear matSortDirection=\"desc\">\n <ng-container *ngFor=\"let name of
|
|
138
|
-
}], null, {
|
|
139
|
-
type: Input
|
|
136
|
+
args: [{ selector: 'organisms-smart-table', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism' }, template: "<table mat-table [dataSource]=\"items\" matSort matSortDisableClear matSortDirection=\"desc\">\n <ng-container *ngFor=\"let name of columns; trackBy: trackByColumnName\" [ngSwitch]=\"name\">\n <molecules-checkbox-column\n *ngSwitchCase=\"'__checkbox'\"\n name=\"__checkbox\"\n [selectedIdSet]=\"selectedIdSet\"\n (checkboxClick)=\"checkboxClick.emit($event)\"\n ></molecules-checkbox-column>\n <molecules-actions-column \n *ngSwitchCase=\"'__actions'\" \n name=\"__actions\"\n [itemActions]=\"itemActions\"\n (action)=\"action.emit($event)\"\n ></molecules-actions-column>\n <molecules-smart-column\n *ngSwitchDefault\n [name]=\"name\"\n [headerText]=\"name | D\"\n [sort]=\"sort?.key === name ? sort?.order : 'none'\"\n (headerClick)=\"headerClick.emit(name)\"\n ></molecules-smart-column>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"columns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let item; columns: columns;\"></tr>\n</table>\n<div *ngIf=\"!items?.length\" class=\"no-data-message\">\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093\u3002</div>", styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-Pc6U: var(--width);--cell: 8px;--cell-SCOPED-IN-smart-table-Pc6U: var(--cell);--column-vertical-padding: 4px;--column-vertical-padding-SCOPED-IN-smart-table-Pc6U: var(--column-vertical-padding)}:host{position:relative;width:100%;height:100%;overflow:scroll}:host::-webkit-scrollbar{display:none}:host table{width:100%;max-height:100%}:host table .nowrap{width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host table ::ng-deep th,:host table ::ng-deep td{padding:0 var(--column-vertical-padding-SCOPED-IN-smart-table-Pc6U)}:host .no-data-message{display:flex;justify-content:flex-start;align-items:center;width:calc(var(--width-SCOPED-IN-smart-table-Pc6U) - var(--cell-SCOPED-IN-smart-table-Pc6U) * 4);height:3em;padding-left:calc(var(--cell-SCOPED-IN-smart-table-Pc6U) * 2);padding-right:calc(var(--cell-SCOPED-IN-smart-table-Pc6U) * 2)}\n"] }]
|
|
137
|
+
}], null, { _columns: [{
|
|
138
|
+
type: Input,
|
|
139
|
+
args: ['columns']
|
|
140
140
|
}], items: [{
|
|
141
141
|
type: Input
|
|
142
142
|
}], itemActions: [{
|
|
143
143
|
type: Input
|
|
144
|
-
}], patientsSize: [{
|
|
145
|
-
type: Input
|
|
146
144
|
}], pageSize: [{
|
|
147
145
|
type: Input
|
|
148
|
-
}], menuItems: [{
|
|
149
|
-
type: Input
|
|
150
146
|
}], selectedIdSet: [{
|
|
151
147
|
type: Input
|
|
152
|
-
}],
|
|
153
|
-
type: Input
|
|
154
|
-
}], sortOrder: [{
|
|
148
|
+
}], sort: [{
|
|
155
149
|
type: Input
|
|
156
150
|
}], action: [{
|
|
157
151
|
type: Output
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-organisms-smart-table.mjs","sources":["../../../../libs/components/src/organisms/smart-table/smart-table.organism.html","../../../../libs/components/src/organisms/smart-table/smart-table.organism.ts","../../../../libs/components/src/organisms/smart-table/smart-table.module.ts","../../../../libs/components/src/organisms/smart-table/ng-atomic-components-organisms-smart-table.ts"],"sourcesContent":["<table mat-table [dataSource]=\"items\" matSort matSortDisableClear matSortDirection=\"desc\">\n <ng-container *ngFor=\"let name of displayedColumns; trackBy: trackByColumnName\" [ngSwitch]=\"name\">\n <molecules-checkbox-column\n *ngSwitchCase=\"'__checkbox'\"\n name=\"__checkbox\"\n [selectedIdSet]=\"selectedIdSet\"\n (checkboxClick)=\"checkboxClick.emit($event)\"\n ></molecules-checkbox-column>\n <molecules-actions-column \n *ngSwitchCase=\"'__actions'\" \n name=\"__actions\" \n [items]=\"menuItems\"\n [itemActions]=\"itemActions\"\n (action)=\"action.emit($event)\"\n ></molecules-actions-column>\n <molecules-smart-column\n *ngSwitchDefault\n [name]=\"name\"\n [headerText]=\"name | D\"\n [sort]=\"sortKey === name ? sortOrder : 'none'\"\n (headerClick)=\"headerClick.emit(name)\"\n ></molecules-smart-column>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let item; columns: displayedColumns;\"></tr>\n</table>\n<div *ngIf=\"!items?.length\" class=\"no-data-message\">データがありません。</div>","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Action, ActionItem } from '@ng-atomic/common/models';\n\n\n@Component({\n selector: 'organisms-smart-table',\n templateUrl: './smart-table.organism.html',\n styleUrls: ['./smart-table.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'organism'}\n})\nexport class SmartTableOrganism<Item extends object> {\n\n @Input()\n columns: (keyof Item)[] = [];\n\n get displayedColumns(): (keyof Item | string)[] {\n return [...this.columns];\n }\n\n @Input()\n items: Item[] = [];\n\n @Input()\n itemActions: (item: Item) => ActionItem[] = () => [];\n\n @Input()\n patientsSize: number = 0;\n\n @Input()\n pageSize: number = 0;\n\n @Input()\n menuItems: ActionItem[] = [];\n\n @Input()\n selectedIdSet = new Set<string>();\n\n @Input()\n sortKey?: string;\n\n @Input()\n sortOrder?: 'asc' | 'desc';\n\n @Output()\n action = new EventEmitter<Action>();\n\n @Output()\n headerClick = new EventEmitter<string>();\n \n @Output()\n checkboxClick = new EventEmitter<[Item, boolean]>();\n\n @Output()\n pageChange = new EventEmitter();\n\n @Output()\n itemCheck = new EventEmitter<[Item, boolean]>();\n \n trackByColumnName = (columnName: string) => columnName;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { DomainModule } from '@ng-atomic/common/pipes/domain';\nimport { ActionsColumnModule } from '@ng-atomic/components/molecules/actions-column';\nimport { CheckboxColumnModule } from '@ng-atomic/components/molecules/checkbox-column';\nimport { SmartColumnModule } from '@ng-atomic/components/molecules/smart-column';\n\nimport { SmartTableOrganism } from './smart-table.organism';\n\n@NgModule({\n declarations: [\n SmartTableOrganism,\n ],\n imports: [\n CommonModule,\n // Pipes\n DomainModule,\n // Material\n MatTableModule,\n MatCheckboxModule,\n MatMenuModule,\n MatButtonModule,\n MatIconModule,\n // Molecules\n ActionsColumnModule,\n CheckboxColumnModule,\n SmartColumnModule,\n ],\n exports: [\n SmartTableOrganism\n ]\n})\nexport class SmartTableModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;QAEI,EAKC,CAAA,cAAA,CAAA,CAAA,EAAA,2BAAA,EAAA,CAAA,CAAA,CAAA;QADC,EAAiB,CAAA,UAAA,CAAA,eAAA,EAAA,SAAA,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sBADZ,MAAM;gBAIP,UAAU,EAAA,CAAA;sBADT,MAAM;gBAIP,SAAS,EAAA,CAAA;sBADR,MAAM;;;;MCnBI,gBAAgB,CAAA;;gFAAhB,gBAAgB,GAAA,CAAA,EAAA,CAAA;kEAAhB,gBAAgB,EAAA,CAAA,CAAA;sEAlBzB,YAAY;;QAEZ,YAAY;;QAEZ,cAAc;QACd,iBAAiB;QACjB,aAAa;QACb,eAAe;QACf,aAAa;;QAEb,mBAAmB;QACnB,oBAAoB;QACpB,iBAAiB,CAAA,EAAA,CAAA,CAAA;;4EAMR,gBAAgB,EAAA,CAAA;kBAvB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,kBAAkB;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;;wBAEZ,YAAY;;wBAEZ,cAAc;wBACd,iBAAiB;wBACjB,aAAa;wBACb,eAAe;wBACf,aAAa;;wBAEb,mBAAmB;wBACnB,oBAAoB;wBACpB,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,kBAAkB;AACnB,qBAAA;iBACF,CAAA;;;;6EACY,gBAAgB,EAAA,EAAA,YAAA,EAAA,CArBzB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAGlB,YAAY;;YAEZ,YAAY;;YAEZ,cAAc;YACd,iBAAiB;YACjB,aAAa;YACb,eAAe;YACf,aAAa;;YAEb,mBAAmB;YACnB,oBAAoB;YACpB,iBAAiB,aAGjB,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;AClCtB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-organisms-smart-table.mjs","sources":["../../../../libs/components/src/organisms/smart-table/smart-table.organism.html","../../../../libs/components/src/organisms/smart-table/smart-table.organism.ts","../../../../libs/components/src/organisms/smart-table/smart-table.module.ts","../../../../libs/components/src/organisms/smart-table/ng-atomic-components-organisms-smart-table.ts"],"sourcesContent":["<table mat-table [dataSource]=\"items\" matSort matSortDisableClear matSortDirection=\"desc\">\n <ng-container *ngFor=\"let name of columns; trackBy: trackByColumnName\" [ngSwitch]=\"name\">\n <molecules-checkbox-column\n *ngSwitchCase=\"'__checkbox'\"\n name=\"__checkbox\"\n [selectedIdSet]=\"selectedIdSet\"\n (checkboxClick)=\"checkboxClick.emit($event)\"\n ></molecules-checkbox-column>\n <molecules-actions-column \n *ngSwitchCase=\"'__actions'\" \n name=\"__actions\"\n [itemActions]=\"itemActions\"\n (action)=\"action.emit($event)\"\n ></molecules-actions-column>\n <molecules-smart-column\n *ngSwitchDefault\n [name]=\"name\"\n [headerText]=\"name | D\"\n [sort]=\"sort?.key === name ? sort?.order : 'none'\"\n (headerClick)=\"headerClick.emit(name)\"\n ></molecules-smart-column>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"columns; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let item; columns: columns;\"></tr>\n</table>\n<div *ngIf=\"!items?.length\" class=\"no-data-message\">データがありません。</div>","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Actions, Action } from '@ng-atomic/common/models';\n\ninterface Sort {\n key?: string;\n order?: 'desc' | 'asc';\n}\n\n@Component({\n selector: 'organisms-smart-table',\n templateUrl: './smart-table.organism.html',\n styleUrls: ['./smart-table.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'organism'}\n})\nexport class SmartTableOrganism<Item extends object> {\n\n @Input('columns')\n _columns: (keyof Item)[] = [];\n\n get columns(): (keyof Item | string)[] {\n return [...this._columns];\n }\n\n @Input()\n items: Item[] = [];\n\n @Input()\n itemActions: Actions = () => [];\n\n @Input()\n pageSize: number = 0;\n\n @Input()\n selectedIdSet = new Set<string>();\n\n @Input()\n sort: Sort = {};\n\n @Output()\n action = new EventEmitter<Action>();\n\n @Output()\n headerClick = new EventEmitter<string>();\n \n @Output()\n checkboxClick = new EventEmitter<[Item, boolean]>();\n\n @Output()\n pageChange = new EventEmitter();\n\n @Output()\n itemCheck = new EventEmitter<[Item, boolean]>();\n \n protected trackByColumnName = (columnName: string) => columnName;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { DomainModule } from '@ng-atomic/common/pipes/domain';\nimport { ActionsColumnModule } from '@ng-atomic/components/molecules/actions-column';\nimport { CheckboxColumnModule } from '@ng-atomic/components/molecules/checkbox-column';\nimport { SmartColumnModule } from '@ng-atomic/components/molecules/smart-column';\n\nimport { SmartTableOrganism } from './smart-table.organism';\n\n@NgModule({\n declarations: [\n SmartTableOrganism,\n ],\n imports: [\n CommonModule,\n // Pipes\n DomainModule,\n // Material\n MatTableModule,\n MatCheckboxModule,\n MatMenuModule,\n MatButtonModule,\n MatIconModule,\n // Molecules\n ActionsColumnModule,\n CheckboxColumnModule,\n SmartColumnModule,\n ],\n exports: [\n SmartTableOrganism\n ]\n})\nexport class SmartTableModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;QAEI,EAKC,CAAA,cAAA,CAAA,CAAA,EAAA,2BAAA,EAAA,CAAA,CAAA,CAAA;QADC,EAAiB,CAAA,UAAA,CAAA,eAAA,EAAA,SAAA,yHAAA,CAAA,MAAA,EAAA,EAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,CAAA,CAAA,CAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CAAA,MAA0B,CAAA,aAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA,CAAC,EAAA,CAAA,CAAA;QAC7C,EAA4B,CAAA,YAAA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AA;AACR,oBAAA,YAAY,EAAE;wBACZ,kBAAkB;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;;wBAEZ,YAAY;;wBAEZ,cAAc;wBACd,iBAAiB;wBACjB,aAAa;wBACb,eAAe;wBACf,aAAa;;wBAEb,mBAAmB;wBACnB,oBAAoB;wBACpB,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,kBAAkB;AACnB,qBAAA;iBACF,CAAA;;;;6EACY,gBAAgB,EAAA,EAAA,YAAA,EAAA,CArBzB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAGlB,YAAY;;YAEZ,YAAY;;YAEZ,cAAc;YACd,iBAAiB;YACjB,aAAa;YACb,eAAe;YACf,aAAa;;YAEb,mBAAmB;YACnB,oBAAoB;YACpB,iBAAiB,aAGjB,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;AClCtB;;AAEG;;;;"}
|
|
@@ -17,11 +17,11 @@ SocialLoginSectionOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
17
17
|
i0.ɵɵtext(1, "Google\u30A2\u30AB\u30A6\u30F3\u30C8\u3067\u30ED\u30B0\u30A4\u30F3");
|
|
18
18
|
i0.ɵɵelementEnd();
|
|
19
19
|
}
|
|
20
|
-
}, dependencies: [i1.MatButton], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-
|
|
20
|
+
}, dependencies: [i1.MatButton], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-57wP: var(--horizontal-padding)}[_nghost-%COMP%]{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-heading-57wP);box-sizing:border-box}[_nghost-%COMP%] button[_ngcontent-%COMP%]{width:100%;height:56px}"], changeDetection: 0 });
|
|
21
21
|
(function () {
|
|
22
22
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SocialLoginSectionOrganism, [{
|
|
23
23
|
type: Component,
|
|
24
|
-
args: [{ selector: 'organisms-social-login-section', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n mat-raised-button \n color=\"primary\" \n (click)=\"signInWithGoogleButtonClick.emit()\"\n>Google\u30A2\u30AB\u30A6\u30F3\u30C8\u3067\u30ED\u30B0\u30A4\u30F3</button>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-
|
|
24
|
+
args: [{ selector: 'organisms-social-login-section', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n mat-raised-button \n color=\"primary\" \n (click)=\"signInWithGoogleButtonClick.emit()\"\n>Google\u30A2\u30AB\u30A6\u30F3\u30C8\u3067\u30ED\u30B0\u30A4\u30F3</button>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-57wP: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-heading-57wP);box-sizing:border-box}:host button{width:100%;height:56px}\n"] }]
|
|
25
25
|
}], null, { signInWithGoogleButtonClick: [{
|
|
26
26
|
type: Output
|
|
27
27
|
}] });
|
|
@@ -21,11 +21,11 @@ TextInputSectionOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Te
|
|
|
21
21
|
if (rf & 2) {
|
|
22
22
|
i0.ɵɵproperty("type", ctx.type)("control", ctx.control)("label", ctx.label)("placeholder", ctx.placeholder);
|
|
23
23
|
}
|
|
24
|
-
}, dependencies: [i1.TextInputFieldMolecule], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-
|
|
24
|
+
}, dependencies: [i1.TextInputFieldMolecule], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-0AGU: var(--horizontal-padding)}[_nghost-%COMP%]{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-0AGU);box-sizing:border-box}[_nghost-%COMP%] .molecule.input-field[_ngcontent-%COMP%], [_nghost-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}"] });
|
|
25
25
|
(function () {
|
|
26
26
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextInputSectionOrganism, [{
|
|
27
27
|
type: Component,
|
|
28
|
-
args: [{ selector: 'organisms-text-input-section', template: "<molecules-text-input-field\n [type]=\"type\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-
|
|
28
|
+
args: [{ selector: 'organisms-text-input-section', template: "<molecules-text-input-field\n [type]=\"type\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-0AGU: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-0AGU);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"] }]
|
|
29
29
|
}], null, { label: [{
|
|
30
30
|
type: Input
|
|
31
31
|
}], placeholder: [{
|
|
@@ -17,11 +17,11 @@ TextareaSectionOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Tex
|
|
|
17
17
|
if (rf & 2) {
|
|
18
18
|
i0.ɵɵproperty("label", ctx.label);
|
|
19
19
|
}
|
|
20
|
-
}, dependencies: [i1.TextareaFieldMolecule], styles: ["[_nghost-%COMP%]{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-textarea-section-
|
|
20
|
+
}, dependencies: [i1.TextareaFieldMolecule], styles: ["[_nghost-%COMP%]{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-textarea-section-zARL: var(--vertical-padding)}[_nghost-%COMP%]{display:block;padding:0 var(--vertical-padding-SCOPED-IN-textarea-section-zARL);box-sizing:border-box}[_nghost-%COMP%] molecules-textarea-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
21
21
|
(function () {
|
|
22
22
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextareaSectionOrganism, [{
|
|
23
23
|
type: Component,
|
|
24
|
-
args: [{ selector: 'organisms-textarea-section', changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-textarea-field\n [label]=\"label\"\n></molecules-textarea-field>", styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-textarea-section-
|
|
24
|
+
args: [{ selector: 'organisms-textarea-section', changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-textarea-field\n [label]=\"label\"\n></molecules-textarea-field>", styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-textarea-section-zARL: var(--vertical-padding)}:host{display:block;padding:0 var(--vertical-padding-SCOPED-IN-textarea-section-zARL);box-sizing:border-box}:host molecules-textarea-field{width:100%}\n"] }]
|
|
25
25
|
}], null, { label: [{
|
|
26
26
|
type: Input
|
|
27
27
|
}] });
|
|
@@ -30,11 +30,11 @@ TopNavigatorOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TopNav
|
|
|
30
30
|
i0.ɵɵadvance(2);
|
|
31
31
|
i0.ɵɵproperty("items", ctx.items);
|
|
32
32
|
}
|
|
33
|
-
}, dependencies: [i1.MatToolbar, i2.SmartMenuButtonAtom], styles: ["[_nghost-%COMP%]{--primary-500-SCOPED-IN-top-navigator-
|
|
33
|
+
}, dependencies: [i1.MatToolbar, i2.SmartMenuButtonAtom], styles: ["[_nghost-%COMP%]{--primary-500-SCOPED-IN-top-navigator-WTa9: var(--primary-500)}[_nghost-%COMP%]{width:100%;height:56px}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;padding:0 24px}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%]{color:var(--primary-500-SCOPED-IN-top-navigator-WTa9);font-size:1.25rem;line-height:21px}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%] atoms-kurakatsu-logo[_ngcontent-%COMP%]{width:auto}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%] atoms-user-icon[_ngcontent-%COMP%]{width:32px;height:32px}"], changeDetection: 0 });
|
|
34
34
|
(function () {
|
|
35
35
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TopNavigatorOrganism, [{
|
|
36
36
|
type: Component,
|
|
37
|
-
args: [{ selector: 'organisms-top-navigator', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-toolbar color=\"primary\">\n <div class=\"title-container\">\n {{ title || '' }}\n </div>\n <div>\n <atoms-smart-menu-button\n [items]=\"items\"\n (action)=\"action.emit($event)\"\n ></atoms-smart-menu-button>\n </div>\n</mat-toolbar>\n", styles: [":host{--primary-500-SCOPED-IN-top-navigator-
|
|
37
|
+
args: [{ selector: 'organisms-top-navigator', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-toolbar color=\"primary\">\n <div class=\"title-container\">\n {{ title || '' }}\n </div>\n <div>\n <atoms-smart-menu-button\n [items]=\"items\"\n (action)=\"action.emit($event)\"\n ></atoms-smart-menu-button>\n </div>\n</mat-toolbar>\n", styles: [":host{--primary-500-SCOPED-IN-top-navigator-WTa9: var(--primary-500)}:host{width:100%;height:56px}:host mat-toolbar{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;padding:0 24px}:host mat-toolbar .title-container{color:var(--primary-500-SCOPED-IN-top-navigator-WTa9);font-size:1.25rem;line-height:21px}:host mat-toolbar .title-container atoms-kurakatsu-logo{width:auto}:host mat-toolbar atoms-user-icon{width:32px;height:32px}\n"] }]
|
|
38
38
|
}], null, { title: [{
|
|
39
39
|
type: Input
|
|
40
40
|
}], items: [{
|
|
@@ -89,11 +89,11 @@ EntranceTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntranceTe
|
|
|
89
89
|
i0.ɵɵadvance(1);
|
|
90
90
|
i0.ɵɵproperty("actions", ctx.actions);
|
|
91
91
|
}
|
|
92
|
-
}, dependencies: [i1.NgIf, i2.AutoLayoutFrame, i3.CardFrame, i4.ActionButtonsSectionOrganism, i5.HeadingOrganism, i6.TextInputSectionOrganism], styles: ["[_nghost-%COMP%]{--horizontal-padding: 64px;--horizontal-padding-SCOPED-IN-entrance-
|
|
92
|
+
}, dependencies: [i1.NgIf, i2.AutoLayoutFrame, i3.CardFrame, i4.ActionButtonsSectionOrganism, i5.HeadingOrganism, i6.TextInputSectionOrganism], styles: ["[_nghost-%COMP%]{--horizontal-padding: 64px;--horizontal-padding-SCOPED-IN-entrance-E6c8: var(--horizontal-padding);--background-color: #eee;--background-color-SCOPED-IN-entrance-E6c8: var(--background-color)}[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;background-color:var(--background-color-SCOPED-IN-entrance-E6c8);width:100%;height:100%}[_nghost-%COMP%] frames-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:600px;max-width:calc(100% - 32px);height:-moz-fit-content;height:fit-content}[_nghost-%COMP%] frames-card[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{max-width:calc(100% - 32px);--horizontal-padding: var(--horizontal-padding-SCOPED-IN-entrance-E6c8)}"], changeDetection: 0 });
|
|
93
93
|
(function () {
|
|
94
94
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntranceTemplate, [{
|
|
95
95
|
type: Component,
|
|
96
|
-
args: [{ selector: 'templates-entrance', host: { class: 'template' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<frames-card>\n <frames-auto-layout vertical>\n <organisms-heading>\u30ED\u30B0\u30A4\u30F3</organisms-heading>\n <organisms-text-input-section\n *ngIf=\"isEmailSectionShown\"\n label=\"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\"\n [control]=\"form.get('email')\"\n ></organisms-text-input-section>\n <organisms-text-input-section\n *ngIf=\"isPasswordSectionShown\"\n label=\"\u30D1\u30B9\u30EF\u30FC\u30C9\"\n [control]=\"form.get('password')\"\n ></organisms-text-input-section>\n <organisms-action-buttons-section\n [actions]=\"actions\"\n (action)=\"action.emit($event)\"\n ></organisms-action-buttons-section>\n </frames-auto-layout>\n</frames-card>\n", styles: [":host{--horizontal-padding: 64px;--horizontal-padding-SCOPED-IN-entrance-
|
|
96
|
+
args: [{ selector: 'templates-entrance', host: { class: 'template' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<frames-card>\n <frames-auto-layout vertical>\n <organisms-heading>\u30ED\u30B0\u30A4\u30F3</organisms-heading>\n <organisms-text-input-section\n *ngIf=\"isEmailSectionShown\"\n label=\"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\"\n [control]=\"form.get('email')\"\n ></organisms-text-input-section>\n <organisms-text-input-section\n *ngIf=\"isPasswordSectionShown\"\n label=\"\u30D1\u30B9\u30EF\u30FC\u30C9\"\n [control]=\"form.get('password')\"\n ></organisms-text-input-section>\n <organisms-action-buttons-section\n [actions]=\"actions\"\n (action)=\"action.emit($event)\"\n ></organisms-action-buttons-section>\n </frames-auto-layout>\n</frames-card>\n", styles: [":host{--horizontal-padding: 64px;--horizontal-padding-SCOPED-IN-entrance-E6c8: var(--horizontal-padding);--background-color: #eee;--background-color-SCOPED-IN-entrance-E6c8: var(--background-color)}:host{display:flex;justify-content:center;align-items:center;background-color:var(--background-color-SCOPED-IN-entrance-E6c8);width:100%;height:100%}:host frames-card{display:flex;flex-direction:column;width:600px;max-width:calc(100% - 32px);height:-moz-fit-content;height:fit-content}:host frames-card *{max-width:calc(100% - 32px);--horizontal-padding: var(--horizontal-padding-SCOPED-IN-entrance-E6c8)}\n"] }]
|
|
97
97
|
}], null, { form: [{
|
|
98
98
|
type: Input
|
|
99
99
|
}], isEmailSectionShown: [{
|
|
@@ -29,11 +29,11 @@ MenuTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuTemplate,
|
|
|
29
29
|
i0.ɵɵadvance(2);
|
|
30
30
|
i0.ɵɵproperty("items", ctx.items);
|
|
31
31
|
}
|
|
32
|
-
}, dependencies: [i1.NavigationListOrganism], styles: ["[_nghost-%COMP%]{--primary-color: #3f51b5;--primary-color-SCOPED-IN-menu-
|
|
32
|
+
}, dependencies: [i1.NavigationListOrganism], styles: ["[_nghost-%COMP%]{--primary-color: #3f51b5;--primary-color-SCOPED-IN-menu-NZXY: var(--primary-color);--secondary-color: #3f51b5;--secondary-color-SCOPED-IN-menu-NZXY: var(--secondary-color);--width: 100%;--width-SCOPED-IN-menu-NZXY: var(--width);--height: 100%;--height-SCOPED-IN-menu-NZXY: var(--height)}[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;width:var(--width-SCOPED-IN-menu-NZXY);height:var(--height-SCOPED-IN-menu-NZXY);color:#fff;background-color:var(--primary-color-SCOPED-IN-menu-NZXY)}[_nghost-%COMP%] organisms-navigation-list[_ngcontent-%COMP%]{transition:width .5s;--primary-color: var(--primary-color-SCOPED-IN-menu-NZXY);--secondary-color: var(--secondary-color-SCOPED-IN-menu-NZXY)}"], changeDetection: 0 });
|
|
33
33
|
(function () {
|
|
34
34
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuTemplate, [{
|
|
35
35
|
type: Component,
|
|
36
|
-
args: [{ selector: 'templates-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"top\">\n <ng-content select=[header]></ng-content>\n <organisms-navigation-list\n [items]=\"items\"\n (action)=\"action.emit($event)\"\n ></organisms-navigation-list>\n</div>\n<div class=\"bottom\">\n <ng-content select=[footer]></ng-content>\n</div>", styles: [":host{--primary-color: #3f51b5;--primary-color-SCOPED-IN-menu-
|
|
36
|
+
args: [{ selector: 'templates-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"top\">\n <ng-content select=[header]></ng-content>\n <organisms-navigation-list\n [items]=\"items\"\n (action)=\"action.emit($event)\"\n ></organisms-navigation-list>\n</div>\n<div class=\"bottom\">\n <ng-content select=[footer]></ng-content>\n</div>", styles: [":host{--primary-color: #3f51b5;--primary-color-SCOPED-IN-menu-NZXY: var(--primary-color);--secondary-color: #3f51b5;--secondary-color-SCOPED-IN-menu-NZXY: var(--secondary-color);--width: 100%;--width-SCOPED-IN-menu-NZXY: var(--width);--height: 100%;--height-SCOPED-IN-menu-NZXY: var(--height)}:host{display:flex;flex-direction:column;justify-content:space-between;width:var(--width-SCOPED-IN-menu-NZXY);height:var(--height-SCOPED-IN-menu-NZXY);color:#fff;background-color:var(--primary-color-SCOPED-IN-menu-NZXY)}:host organisms-navigation-list{transition:width .5s;--primary-color: var(--primary-color-SCOPED-IN-menu-NZXY);--secondary-color: var(--secondary-color-SCOPED-IN-menu-NZXY)}\n"] }]
|
|
37
37
|
}], null, { items: [{
|
|
38
38
|
type: Input
|
|
39
39
|
}], action: [{
|
|
@@ -88,7 +88,6 @@ function SmartCrudTemplate_ng_container_4_Template(rf, ctx) {
|
|
|
88
88
|
i0.ɵɵproperty("ngSwitchCase", "number");
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
const _c0 = function () { return []; };
|
|
92
91
|
var ActionId;
|
|
93
92
|
(function (ActionId) {
|
|
94
93
|
ActionId["BACK"] = "[@ng-atomic/components/templates/smart-crud] Back";
|
|
@@ -98,52 +97,33 @@ var ActionId;
|
|
|
98
97
|
})(ActionId || (ActionId = {}));
|
|
99
98
|
class SmartCrudTemplate {
|
|
100
99
|
constructor() {
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
104
|
-
this.
|
|
105
|
-
this.title = 'title';
|
|
100
|
+
this.title = '';
|
|
101
|
+
this.navStartActions = [{ id: ActionId.BACK, icon: 'arrow_back' }];
|
|
102
|
+
this.navEndActions = [{ id: ActionId.DELETE, name: '削除' }];
|
|
103
|
+
this.actions = [{ id: ActionId.CREATE, name: '作成' }];
|
|
106
104
|
this.action = new EventEmitter();
|
|
107
|
-
this.backButtonClick = new EventEmitter();
|
|
108
|
-
this.createButtonClick = new EventEmitter();
|
|
109
|
-
this.updateButtonClick = new EventEmitter();
|
|
110
|
-
this.navigatorLeftItems = [{ id: ActionId.BACK, icon: 'arrow_back' }];
|
|
111
105
|
this.trackByIndex = (index) => index;
|
|
112
106
|
}
|
|
113
|
-
get actions() {
|
|
114
|
-
switch (this.mode) {
|
|
115
|
-
case 'create': return [{ id: ActionId.CREATE, name: '作成', disabled: this.form.invalid }];
|
|
116
|
-
case 'update': return [{ id: ActionId.UPDATE, name: '更新', disabled: this.form.invalid }];
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
107
|
get controls() {
|
|
120
108
|
return Object.entries(this.form.controls);
|
|
121
109
|
}
|
|
122
|
-
onAction(action) {
|
|
123
|
-
switch (action.id) {
|
|
124
|
-
case ActionId.BACK: return this.backButtonClick.emit();
|
|
125
|
-
case ActionId.CREATE: return this.createButtonClick.emit();
|
|
126
|
-
case ActionId.UPDATE: return this.updateButtonClick.emit();
|
|
127
|
-
default: return this.action.emit(action);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
110
|
}
|
|
131
111
|
SmartCrudTemplate.ɵfac = function SmartCrudTemplate_Factory(t) { return new (t || SmartCrudTemplate)(); };
|
|
132
|
-
SmartCrudTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartCrudTemplate, selectors: [["templates-smart-crud"]], hostAttrs: [1, "template"], inputs: {
|
|
112
|
+
SmartCrudTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartCrudTemplate, selectors: [["templates-smart-crud"]], hostAttrs: [1, "template"], inputs: { title: "title", form: "form", navStartActions: "navStartActions", navEndActions: "navEndActions", actions: "actions" }, outputs: { action: "action" }, decls: 6, vars: 6, consts: [["navigator", "", 3, "startActions", "endActions", "action"], [3, "title"], ["vertical", "", "contents", ""], [3, "ngSwitch", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "actions", "action"], [3, "ngSwitch"], [3, "label", "control", "options", 4, "ngSwitchCase"], [3, "label", "control", 4, "ngSwitchCase"], [3, "type", "label", "control", 4, "ngSwitchCase"], [3, "label", "control", 4, "ngSwitchDefault"], [3, "label", "control", "options"], [3, "label", "control"], [3, "type", "label", "control"]], template: function SmartCrudTemplate_Template(rf, ctx) {
|
|
133
113
|
if (rf & 1) {
|
|
134
114
|
i0.ɵɵelementStart(0, "frames-scroll")(1, "organisms-navigator", 0);
|
|
135
|
-
i0.ɵɵlistener("action", function SmartCrudTemplate_Template_organisms_navigator_action_1_listener($event) { return ctx.
|
|
115
|
+
i0.ɵɵlistener("action", function SmartCrudTemplate_Template_organisms_navigator_action_1_listener($event) { return ctx.action.emit($event); });
|
|
136
116
|
i0.ɵɵelement(2, "molecules-header", 1);
|
|
137
117
|
i0.ɵɵelementEnd();
|
|
138
118
|
i0.ɵɵelementStart(3, "frames-auto-layout", 2);
|
|
139
119
|
i0.ɵɵtemplate(4, SmartCrudTemplate_ng_container_4_Template, 6, 6, "ng-container", 3);
|
|
140
120
|
i0.ɵɵelementStart(5, "organisms-action-buttons-section", 4);
|
|
141
|
-
i0.ɵɵlistener("action", function SmartCrudTemplate_Template_organisms_action_buttons_section_action_5_listener($event) { return ctx.
|
|
121
|
+
i0.ɵɵlistener("action", function SmartCrudTemplate_Template_organisms_action_buttons_section_action_5_listener($event) { return ctx.action.emit($event); });
|
|
142
122
|
i0.ɵɵelementEnd()()();
|
|
143
123
|
}
|
|
144
124
|
if (rf & 2) {
|
|
145
125
|
i0.ɵɵadvance(1);
|
|
146
|
-
i0.ɵɵproperty("
|
|
126
|
+
i0.ɵɵproperty("startActions", ctx.navStartActions)("endActions", ctx.navEndActions);
|
|
147
127
|
i0.ɵɵadvance(1);
|
|
148
128
|
i0.ɵɵproperty("title", ctx.title);
|
|
149
129
|
i0.ɵɵadvance(2);
|
|
@@ -151,31 +131,23 @@ SmartCrudTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartCrud
|
|
|
151
131
|
i0.ɵɵadvance(1);
|
|
152
132
|
i0.ɵɵproperty("actions", ctx.actions);
|
|
153
133
|
}
|
|
154
|
-
}, dependencies: [i1.NgForOf, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i2.AutoLayoutFrame, i3.ScrollFrame, i4.ActionButtonsSectionOrganism, i5.NavigatorOrganism, i6.DateInputSectionOrganism, i7.TextInputSectionOrganism, i8.SelectInputSectionOrganism, i9.HeaderMolecule, i10.DomainPipe, i11.SmartFieldPipe], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-smart-crud-
|
|
134
|
+
}, dependencies: [i1.NgForOf, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i2.AutoLayoutFrame, i3.ScrollFrame, i4.ActionButtonsSectionOrganism, i5.NavigatorOrganism, i6.DateInputSectionOrganism, i7.TextInputSectionOrganism, i8.SelectInputSectionOrganism, i9.HeaderMolecule, i10.DomainPipe, i11.SmartFieldPipe], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-smart-crud-qpeh: var(--horizontal-padding);--vertical-padding: 24px;--vertical-padding-SCOPED-IN-smart-crud-qpeh: var(--vertical-padding);--gap: 16px;--gap-SCOPED-IN-smart-crud-qpeh: var(--gap)}[_nghost-%COMP%]{display:block;width:100%;height:100%;background:white}[_nghost-%COMP%] frames-auto-layout[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;--gap: var(--gap-SCOPED-IN-smart-crud-qpeh);--vertical-padding: var(--vertical-padding-SCOPED-IN-smart-crud-qpeh)}[_nghost-%COMP%] frames-auto-layout[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{--horizontal-padding: var(--horizontal-padding-SCOPED-IN-smart-crud-qpeh)}"], changeDetection: 0 });
|
|
155
135
|
(function () {
|
|
156
136
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartCrudTemplate, [{
|
|
157
137
|
type: Component,
|
|
158
|
-
args: [{ selector: 'templates-smart-crud', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'template' }, template: "<frames-scroll>\n <organisms-navigator \n [
|
|
159
|
-
}], null, {
|
|
160
|
-
type: Input
|
|
161
|
-
}], name: [{
|
|
138
|
+
args: [{ selector: 'templates-smart-crud', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'template' }, template: "<frames-scroll>\n <organisms-navigator \n [startActions]=\"navStartActions\"\n [endActions]=\"navEndActions\"\n (action)=\"action.emit($event)\"\n navigator\n >\n <molecules-header [title]=\"title\"></molecules-header>\n </organisms-navigator>\n <frames-auto-layout vertical contents>\n <ng-container *ngFor=\"let entry of controls; trackBy:trackByIndex\" [ngSwitch]=\"(entry[0] | smartField)?.type\">\n <organisms-select-input-section\n *ngSwitchCase=\"'select'\"\n [label]=\"entry[0] | D\"\n [control]=\"entry[1]\"\n [options]=\"(entry[0] | smartField)?.options\"\n ></organisms-select-input-section>\n <organisms-date-input-section\n *ngSwitchCase=\"'date'\"\n [label]=\"entry[0] | D\"\n [control]=\"entry[1]\"\n ></organisms-date-input-section>\n <organisms-text-input-section\n *ngSwitchCase=\"'number'\"\n [type]=\"'number'\"\n [label]=\"entry[0] | D\"\n [control]=\"entry[1]\"\n ></organisms-text-input-section>\n <organisms-text-input-section\n *ngSwitchDefault\n [label]=\"entry[0] | D\"\n [control]=\"entry[1]\"\n ></organisms-text-input-section>\n </ng-container>\n <organisms-action-buttons-section\n [actions]=\"actions\"\n (action)=\"action.emit($event)\"\n ></organisms-action-buttons-section>\n </frames-auto-layout>\n</frames-scroll>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-smart-crud-qpeh: var(--horizontal-padding);--vertical-padding: 24px;--vertical-padding-SCOPED-IN-smart-crud-qpeh: var(--vertical-padding);--gap: 16px;--gap-SCOPED-IN-smart-crud-qpeh: var(--gap)}:host{display:block;width:100%;height:100%;background:white}:host frames-auto-layout{height:-moz-fit-content;height:fit-content;--gap: var(--gap-SCOPED-IN-smart-crud-qpeh);--vertical-padding: var(--vertical-padding-SCOPED-IN-smart-crud-qpeh)}:host frames-auto-layout *{--horizontal-padding: var(--horizontal-padding-SCOPED-IN-smart-crud-qpeh)}\n"] }]
|
|
139
|
+
}], null, { title: [{
|
|
162
140
|
type: Input
|
|
163
141
|
}], form: [{
|
|
164
142
|
type: Input
|
|
165
|
-
}],
|
|
143
|
+
}], navStartActions: [{
|
|
166
144
|
type: Input
|
|
167
|
-
}],
|
|
145
|
+
}], navEndActions: [{
|
|
168
146
|
type: Input
|
|
169
|
-
}],
|
|
147
|
+
}], actions: [{
|
|
170
148
|
type: Input
|
|
171
149
|
}], action: [{
|
|
172
150
|
type: Output
|
|
173
|
-
}], backButtonClick: [{
|
|
174
|
-
type: Output
|
|
175
|
-
}], createButtonClick: [{
|
|
176
|
-
type: Output
|
|
177
|
-
}], updateButtonClick: [{
|
|
178
|
-
type: Output
|
|
179
151
|
}] });
|
|
180
152
|
})();
|
|
181
153
|
|