@ng-atomic/components 4.13.0 → 4.15.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/frames/auto-layout/auto-layout.frame.mjs +2 -2
- package/esm2020/frames/drawer/drawer.frame.mjs +2 -2
- 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/text-input-field/text-input-field.molecule.mjs +80 -16
- package/esm2020/organisms/action-buttons-section/action-buttons-section.organism.mjs +14 -12
- 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 +4 -4
- package/esm2020/organisms/navigator/navigator.organism.mjs +2 -2
- package/esm2020/organisms/select-input-section/select-input-section.organism.mjs +2 -2
- package/esm2020/organisms/smart-table/smart-table.organism.mjs +2 -2
- package/esm2020/organisms/social-login-section/social-login-section.organism.mjs +2 -2
- package/esm2020/organisms/text-input-section/text-input-section.organism.mjs +5 -5
- 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 +38 -19
- package/esm2020/templates/menu/menu.template.mjs +3 -3
- package/esm2020/templates/smart-crud/smart-crud.template.mjs +8 -8
- package/esm2020/templates/smart-index/smart-index.template.mjs +8 -10
- package/fesm2015/ng-atomic-components-atoms-icon.mjs +2 -2
- package/fesm2015/ng-atomic-components-frames-auto-layout.mjs +2 -2
- package/fesm2015/ng-atomic-components-frames-drawer.mjs +2 -2
- 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-text-input-field.mjs +94 -15
- package/fesm2015/ng-atomic-components-molecules-text-input-field.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-action-buttons-section.mjs +13 -11
- package/fesm2015/ng-atomic-components-organisms-action-buttons-section.mjs.map +1 -1
- 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 +3 -3
- package/fesm2015/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-navigator.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-smart-table.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-text-input-section.mjs +4 -4
- package/fesm2015/ng-atomic-components-organisms-text-input-section.mjs.map +1 -1
- 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 +38 -19
- package/fesm2015/ng-atomic-components-templates-entrance.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-templates-menu.mjs +2 -2
- package/fesm2015/ng-atomic-components-templates-menu.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-templates-smart-crud.mjs +7 -7
- package/fesm2015/ng-atomic-components-templates-smart-crud.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-templates-smart-index.mjs +7 -9
- 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-frames-auto-layout.mjs +2 -2
- package/fesm2020/ng-atomic-components-frames-drawer.mjs +2 -2
- 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-text-input-field.mjs +79 -15
- package/fesm2020/ng-atomic-components-molecules-text-input-field.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-action-buttons-section.mjs +13 -11
- package/fesm2020/ng-atomic-components-organisms-action-buttons-section.mjs.map +1 -1
- 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 +3 -3
- package/fesm2020/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-navigator.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-smart-table.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-text-input-section.mjs +4 -4
- package/fesm2020/ng-atomic-components-organisms-text-input-section.mjs.map +1 -1
- 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 +38 -19
- package/fesm2020/ng-atomic-components-templates-entrance.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-templates-menu.mjs +2 -2
- package/fesm2020/ng-atomic-components-templates-menu.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-templates-smart-crud.mjs +7 -7
- package/fesm2020/ng-atomic-components-templates-smart-crud.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-templates-smart-index.mjs +7 -9
- package/fesm2020/ng-atomic-components-templates-smart-index.mjs.map +1 -1
- package/organisms/action-buttons-section/action-buttons-section.organism.d.ts +2 -2
- package/organisms/action-buttons-section/action-buttons-section.organism.d.ts.map +1 -1
- package/organisms/navigation-list/navigation-list.organism.d.ts +2 -2
- package/organisms/navigation-list/navigation-list.organism.d.ts.map +1 -1
- package/package.json +3 -3
- package/templates/entrance/entrance.template.d.ts +11 -4
- package/templates/entrance/entrance.template.d.ts.map +1 -1
- package/templates/menu/menu.template.d.ts +2 -2
- package/templates/menu/menu.template.d.ts.map +1 -1
- package/templates/smart-crud/smart-crud.template.d.ts +1 -1
- package/templates/smart-crud/smart-crud.template.d.ts.map +1 -1
- package/templates/smart-index/smart-index.template.d.ts +4 -3
- package/templates/smart-index/smart-index.template.d.ts.map +1 -1
|
@@ -130,11 +130,11 @@ SmartTableOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartTab
|
|
|
130
130
|
i0.ɵɵadvance(1);
|
|
131
131
|
i0.ɵɵproperty("ngIf", !(ctx.items == null ? null : ctx.items.length));
|
|
132
132
|
}
|
|
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-
|
|
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-7DvK: var(--width);--cell: 8px;--cell-SCOPED-IN-smart-table-7DvK: var(--cell);--column-vertical-padding: 4px;--column-vertical-padding-SCOPED-IN-smart-table-7DvK: 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-7DvK)}[_nghost-%COMP%] .no-data-message[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;width:calc(var(--width-SCOPED-IN-smart-table-7DvK) - var(--cell-SCOPED-IN-smart-table-7DvK) * 4);height:3em;padding-left:calc(var(--cell-SCOPED-IN-smart-table-7DvK) * 2);padding-right:calc(var(--cell-SCOPED-IN-smart-table-7DvK) * 2)}"], changeDetection: 0 });
|
|
134
134
|
(function () {
|
|
135
135
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartTableOrganism, [{
|
|
136
136
|
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 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\">\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093\u3002</div>", styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-
|
|
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 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\">\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093\u3002</div>", styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-7DvK: var(--width);--cell: 8px;--cell-SCOPED-IN-smart-table-7DvK: var(--cell);--column-vertical-padding: 4px;--column-vertical-padding-SCOPED-IN-smart-table-7DvK: 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-7DvK)}:host .no-data-message{display:flex;justify-content:flex-start;align-items:center;width:calc(var(--width-SCOPED-IN-smart-table-7DvK) - var(--cell-SCOPED-IN-smart-table-7DvK) * 4);height:3em;padding-left:calc(var(--cell-SCOPED-IN-smart-table-7DvK) * 2);padding-right:calc(var(--cell-SCOPED-IN-smart-table-7DvK) * 2)}\n"] }]
|
|
138
138
|
}], null, { columns: [{
|
|
139
139
|
type: Input
|
|
140
140
|
}], items: [{
|
|
@@ -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-U116: var(--horizontal-padding)}[_nghost-%COMP%]{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-heading-U116);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-U116: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-heading-U116);box-sizing:border-box}:host button{width:100%;height:56px}\n"] }]
|
|
25
25
|
}], null, { signInWithGoogleButtonClick: [{
|
|
26
26
|
type: Output
|
|
27
27
|
}] });
|
|
@@ -14,18 +14,18 @@ class TextInputSectionOrganism {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
TextInputSectionOrganism.ɵfac = function TextInputSectionOrganism_Factory(t) { return new (t || TextInputSectionOrganism)(); };
|
|
17
|
-
TextInputSectionOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextInputSectionOrganism, selectors: [["organisms-text-input-section"]], inputs: { label: "label", placeholder: "placeholder", type: "type", hint: "hint", control: "control" }, decls: 1, vars:
|
|
17
|
+
TextInputSectionOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextInputSectionOrganism, selectors: [["organisms-text-input-section"]], inputs: { label: "label", placeholder: "placeholder", type: "type", hint: "hint", control: "control" }, decls: 1, vars: 4, consts: [[3, "type", "control", "label", "placeholder"]], template: function TextInputSectionOrganism_Template(rf, ctx) {
|
|
18
18
|
if (rf & 1) {
|
|
19
19
|
i0.ɵɵelement(0, "molecules-text-input-field", 0);
|
|
20
20
|
}
|
|
21
21
|
if (rf & 2) {
|
|
22
|
-
i0.ɵɵproperty("control", ctx.control)("label", ctx.label)("placeholder", ctx.placeholder);
|
|
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-PdfY: var(--horizontal-padding)}[_nghost-%COMP%]{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-PdfY);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=\"
|
|
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-PdfY: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-PdfY);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: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-organisms-text-input-section.mjs","sources":["../../../../libs/components/src/organisms/text-input-section/text-input-section.organism.ts","../../../../libs/components/src/organisms/text-input-section/text-input-section.organism.html","../../../../libs/components/src/organisms/text-input-section/text-input-section.module.ts","../../../../libs/components/src/organisms/text-input-section/ng-atomic-components-organisms-text-input-section.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { FormControl } from '@ngneat/reactive-forms';\n\n@Component({\n selector: 'organisms-text-input-section',\n templateUrl: './text-input-section.organism.html',\n styleUrls: ['./text-input-section.organism.scss']\n})\nexport class TextInputSectionOrganism {\n \n @Input()\n label = 'label';\n\n @Input()\n placeholder = 'placeholder';\n\n @Input()\n type: 'text' | 'number' | 'password' = 'text';\n\n @Input()\n hint?: string;\n\n @Input()\n control = new FormControl('');\n\n}\n","<molecules-text-input-field\n type=\"
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-organisms-text-input-section.mjs","sources":["../../../../libs/components/src/organisms/text-input-section/text-input-section.organism.ts","../../../../libs/components/src/organisms/text-input-section/text-input-section.organism.html","../../../../libs/components/src/organisms/text-input-section/text-input-section.module.ts","../../../../libs/components/src/organisms/text-input-section/ng-atomic-components-organisms-text-input-section.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { FormControl } from '@ngneat/reactive-forms';\n\n@Component({\n selector: 'organisms-text-input-section',\n templateUrl: './text-input-section.organism.html',\n styleUrls: ['./text-input-section.organism.scss']\n})\nexport class TextInputSectionOrganism {\n \n @Input()\n label = 'label';\n\n @Input()\n placeholder = 'placeholder';\n\n @Input()\n type: 'text' | 'number' | 'password' = 'text';\n\n @Input()\n hint?: string;\n\n @Input()\n control = new FormControl('');\n\n}\n","<molecules-text-input-field\n [type]=\"type\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-text-input-field>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TextInputFieldModule } from '@ng-atomic/components/molecules/text-input-field';\nimport { TextInputSectionOrganism } from './text-input-section.organism';\n\n\n@NgModule({\n declarations: [\n TextInputSectionOrganism\n ],\n imports: [\n CommonModule,\n // Molecules\n TextInputFieldModule,\n ],\n exports: [\n TextInputSectionOrganism\n ]\n})\nexport class TextInputSectionModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAQa,wBAAwB,CAAA;AALrC,IAAA,WAAA,GAAA;AAQE,QAAA,IAAK,CAAA,KAAA,GAAG,OAAO,CAAC;AAGhB,QAAA,IAAW,CAAA,WAAA,GAAG,aAAa,CAAC;AAG5B,QAAA,IAAI,CAAA,IAAA,GAAmC,MAAM,CAAC;Q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AA,CAAA;4EAR/B,YAAY;;QAEZ,oBAAoB,CAAA,EAAA,CAAA,CAAA;;4EAMX,sBAAsB,EAAA,CAAA;kBAblC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;;wBAEZ,oBAAoB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;AACzB,qBAAA;iBACF,CAAA;;;;6EACY,sBAAsB,EAAA,EAAA,YAAA,EAAA,CAX/B,wBAAwB,CAAA,EAAA,OAAA,EAAA,CAGxB,YAAY;;YAEZ,oBAAoB,aAGpB,wBAAwB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;AChB5B;;AAEG;;;;"}
|
|
@@ -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-dXm7: var(--vertical-padding)}[_nghost-%COMP%]{display:block;padding:0 var(--vertical-padding-SCOPED-IN-textarea-section-dXm7);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-dXm7: var(--vertical-padding)}:host{display:block;padding:0 var(--vertical-padding-SCOPED-IN-textarea-section-dXm7);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-guf4: 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-guf4);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-guf4: 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-guf4);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: [{
|
|
@@ -6,9 +6,8 @@ import * as i4 from '@ng-atomic/components/organisms/action-buttons-section';
|
|
|
6
6
|
import { ActionButtonsSectionModule } from '@ng-atomic/components/organisms/action-buttons-section';
|
|
7
7
|
import * as i5 from '@ng-atomic/components/organisms/heading';
|
|
8
8
|
import { HeadingModule } from '@ng-atomic/components/organisms/heading';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i6 from '@ng-atomic/components/organisms/text-input-section';
|
|
10
10
|
import { TextInputSectionModule } from '@ng-atomic/components/organisms/text-input-section';
|
|
11
|
-
import * as i6 from '@ng-atomic/components/organisms/social-login-section';
|
|
12
11
|
import { SocialLoginSectionModule } from '@ng-atomic/components/organisms/social-login-section';
|
|
13
12
|
import * as i2 from '@ng-atomic/components/frames/auto-layout';
|
|
14
13
|
import { AutoLayoutModule } from '@ng-atomic/components/frames/auto-layout';
|
|
@@ -18,7 +17,7 @@ import { FormGroup, FormControl } from '@ngneat/reactive-forms';
|
|
|
18
17
|
|
|
19
18
|
function EntranceTemplate_organisms_text_input_section_4_Template(rf, ctx) {
|
|
20
19
|
if (rf & 1) {
|
|
21
|
-
i0.ɵɵelement(0, "organisms-text-input-section",
|
|
20
|
+
i0.ɵɵelement(0, "organisms-text-input-section", 4);
|
|
22
21
|
}
|
|
23
22
|
if (rf & 2) {
|
|
24
23
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -27,37 +26,59 @@ function EntranceTemplate_organisms_text_input_section_4_Template(rf, ctx) {
|
|
|
27
26
|
}
|
|
28
27
|
function EntranceTemplate_organisms_text_input_section_5_Template(rf, ctx) {
|
|
29
28
|
if (rf & 1) {
|
|
30
|
-
i0.ɵɵelement(0, "organisms-text-input-section",
|
|
29
|
+
i0.ɵɵelement(0, "organisms-text-input-section", 5);
|
|
31
30
|
}
|
|
32
31
|
if (rf & 2) {
|
|
33
32
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
34
33
|
i0.ɵɵproperty("control", ctx_r1.form.get("password"));
|
|
35
34
|
}
|
|
36
35
|
}
|
|
36
|
+
var ActionId;
|
|
37
|
+
(function (ActionId) {
|
|
38
|
+
ActionId["SIGN_IN"] = "[@ng-atomic/components] Sign In";
|
|
39
|
+
ActionId["SIGN_IN_WITH_GOOGLE"] = "[@ng-atomic/components] Sign In With Google";
|
|
40
|
+
ActionId["SIGN_IN_WITH_TWITTER"] = "[@ng-atomic/components] Sign In With Twitter";
|
|
41
|
+
})(ActionId || (ActionId = {}));
|
|
42
|
+
const Actions = [
|
|
43
|
+
{
|
|
44
|
+
id: ActionId.SIGN_IN,
|
|
45
|
+
name: 'Sign In',
|
|
46
|
+
icon: 'login',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: ActionId.SIGN_IN_WITH_GOOGLE,
|
|
50
|
+
name: 'Sign In With Google',
|
|
51
|
+
icon: 'google',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: ActionId.SIGN_IN_WITH_TWITTER,
|
|
55
|
+
name: 'Sign In With Twitter',
|
|
56
|
+
icon: 'twitter',
|
|
57
|
+
},
|
|
58
|
+
];
|
|
37
59
|
class EntranceTemplate {
|
|
38
60
|
constructor() {
|
|
61
|
+
this.ActionId = ActionId;
|
|
39
62
|
this.form = new FormGroup({
|
|
40
63
|
email: new FormControl(''),
|
|
41
64
|
password: new FormControl(''),
|
|
42
65
|
});
|
|
43
66
|
this.isEmailSectionShown = true;
|
|
44
67
|
this.isPasswordSectionShown = true;
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this.signInWithGoogleButtonClick = new EventEmitter();
|
|
68
|
+
this.actions = Actions;
|
|
69
|
+
this.action = new EventEmitter();
|
|
48
70
|
}
|
|
49
71
|
}
|
|
50
72
|
EntranceTemplate.ɵfac = function EntranceTemplate_Factory(t) { return new (t || EntranceTemplate)(); };
|
|
51
|
-
EntranceTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntranceTemplate, selectors: [["templates-entrance"]], hostAttrs: [1, "template"], inputs: { form: "form", isEmailSectionShown: "isEmailSectionShown", isPasswordSectionShown: "isPasswordSectionShown",
|
|
73
|
+
EntranceTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntranceTemplate, selectors: [["templates-entrance"]], hostAttrs: [1, "template"], inputs: { form: "form", isEmailSectionShown: "isEmailSectionShown", isPasswordSectionShown: "isPasswordSectionShown", actions: "actions" }, outputs: { action: "action" }, decls: 7, vars: 3, consts: [["vertical", ""], ["label", "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9", 3, "control", 4, "ngIf"], ["label", "\u30D1\u30B9\u30EF\u30FC\u30C9", 3, "control", 4, "ngIf"], [3, "actions", "action"], ["label", "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9", 3, "control"], ["label", "\u30D1\u30B9\u30EF\u30FC\u30C9", 3, "control"]], template: function EntranceTemplate_Template(rf, ctx) {
|
|
52
74
|
if (rf & 1) {
|
|
53
75
|
i0.ɵɵelementStart(0, "frames-card")(1, "frames-auto-layout", 0)(2, "organisms-heading");
|
|
54
76
|
i0.ɵɵtext(3, "\u30ED\u30B0\u30A4\u30F3");
|
|
55
77
|
i0.ɵɵelementEnd();
|
|
56
78
|
i0.ɵɵtemplate(4, EntranceTemplate_organisms_text_input_section_4_Template, 1, 1, "organisms-text-input-section", 1);
|
|
57
79
|
i0.ɵɵtemplate(5, EntranceTemplate_organisms_text_input_section_5_Template, 1, 1, "organisms-text-input-section", 2);
|
|
58
|
-
i0.ɵɵ
|
|
59
|
-
i0.ɵɵ
|
|
60
|
-
i0.ɵɵlistener("signInWithGoogleButtonClick", function EntranceTemplate_Template_organisms_social_login_section_signInWithGoogleButtonClick_7_listener() { return ctx.signInWithGoogleButtonClick.emit(); });
|
|
80
|
+
i0.ɵɵelementStart(6, "organisms-action-buttons-section", 3);
|
|
81
|
+
i0.ɵɵlistener("action", function EntranceTemplate_Template_organisms_action_buttons_section_action_6_listener($event) { return ctx.action.emit($event); });
|
|
61
82
|
i0.ɵɵelementEnd()()();
|
|
62
83
|
}
|
|
63
84
|
if (rf & 2) {
|
|
@@ -66,24 +87,22 @@ EntranceTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntranceTe
|
|
|
66
87
|
i0.ɵɵadvance(1);
|
|
67
88
|
i0.ɵɵproperty("ngIf", ctx.isPasswordSectionShown);
|
|
68
89
|
i0.ɵɵadvance(1);
|
|
69
|
-
i0.ɵɵproperty("
|
|
90
|
+
i0.ɵɵproperty("actions", ctx.actions);
|
|
70
91
|
}
|
|
71
|
-
}, dependencies: [i1.NgIf, i2.AutoLayoutFrame, i3.CardFrame, i4.ActionButtonsSectionOrganism, i5.HeadingOrganism, i6.
|
|
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-xxO8: var(--horizontal-padding);--background-color: #eee;--background-color-SCOPED-IN-entrance-xxO8: var(--background-color)}[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;background-color:var(--background-color-SCOPED-IN-entrance-xxO8);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-xxO8)}"], changeDetection: 0 });
|
|
72
93
|
(function () {
|
|
73
94
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntranceTemplate, [{
|
|
74
95
|
type: Component,
|
|
75
|
-
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
|
|
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-xxO8: var(--horizontal-padding);--background-color: #eee;--background-color-SCOPED-IN-entrance-xxO8: var(--background-color)}:host{display:flex;justify-content:center;align-items:center;background-color:var(--background-color-SCOPED-IN-entrance-xxO8);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-xxO8)}\n"] }]
|
|
76
97
|
}], null, { form: [{
|
|
77
98
|
type: Input
|
|
78
99
|
}], isEmailSectionShown: [{
|
|
79
100
|
type: Input
|
|
80
101
|
}], isPasswordSectionShown: [{
|
|
81
102
|
type: Input
|
|
82
|
-
}],
|
|
103
|
+
}], actions: [{
|
|
83
104
|
type: Input
|
|
84
|
-
}],
|
|
85
|
-
type: Output
|
|
86
|
-
}], signInWithGoogleButtonClick: [{
|
|
105
|
+
}], action: [{
|
|
87
106
|
type: Output
|
|
88
107
|
}] });
|
|
89
108
|
})();
|
|
@@ -144,5 +163,5 @@ EntranceModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMod
|
|
|
144
163
|
* Generated bundle index. Do not edit.
|
|
145
164
|
*/
|
|
146
165
|
|
|
147
|
-
export { EntranceModule, EntranceTemplate };
|
|
166
|
+
export { ActionId, Actions, EntranceModule, EntranceTemplate };
|
|
148
167
|
//# sourceMappingURL=ng-atomic-components-templates-entrance.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-templates-entrance.mjs","sources":["../../../../libs/components/src/templates/entrance/entrance.template.html","../../../../libs/components/src/templates/entrance/entrance.template.ts","../../../../libs/components/src/templates/entrance/entrance.module.ts","../../../../libs/components/src/templates/entrance/ng-atomic-components-templates-entrance.ts"],"sourcesContent":["<frames-card>\n <frames-auto-layout vertical>\n <organisms-heading>ログイン</organisms-heading>\n <organisms-text-input-section\n *ngIf=\"isEmailSectionShown\"\n label=\"メールアドレス\"\n [control]=\"form.get('email')\"\n ></organisms-text-input-section>\n <organisms-text-input-section\n *ngIf=\"isPasswordSectionShown\"\n label=\"パスワード\"\n [control]=\"form.get('password')\"\n ></organisms-text-input-section>\n <organisms-action-buttons-section
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-templates-entrance.mjs","sources":["../../../../libs/components/src/templates/entrance/entrance.template.html","../../../../libs/components/src/templates/entrance/entrance.template.ts","../../../../libs/components/src/templates/entrance/entrance.module.ts","../../../../libs/components/src/templates/entrance/ng-atomic-components-templates-entrance.ts"],"sourcesContent":["<frames-card>\n <frames-auto-layout vertical>\n <organisms-heading>ログイン</organisms-heading>\n <organisms-text-input-section\n *ngIf=\"isEmailSectionShown\"\n label=\"メールアドレス\"\n [control]=\"form.get('email')\"\n ></organisms-text-input-section>\n <organisms-text-input-section\n *ngIf=\"isPasswordSectionShown\"\n label=\"パスワード\"\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","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Action } from '@ng-atomic/common/models';\nimport { FormGroup, FormControl} from '@ngneat/reactive-forms';\n\nexport enum ActionId {\n SIGN_IN = '[@ng-atomic/components] Sign In',\n SIGN_IN_WITH_GOOGLE = '[@ng-atomic/components] Sign In With Google',\n SIGN_IN_WITH_TWITTER = '[@ng-atomic/components] Sign In With Twitter',\n}\n\nexport const Actions: Action[] = [\n {\n id: ActionId.SIGN_IN,\n name: 'Sign In',\n icon: 'login',\n },\n {\n id: ActionId.SIGN_IN_WITH_GOOGLE,\n name: 'Sign In With Google',\n icon: 'google',\n },\n {\n id: ActionId.SIGN_IN_WITH_TWITTER,\n name: 'Sign In With Twitter',\n icon: 'twitter',\n },\n];\n\n@Component({\n selector: 'templates-entrance',\n templateUrl: './entrance.template.html',\n styleUrls: ['./entrance.template.scss'],\n host: {class: 'template'},\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class EntranceTemplate {\n protected ActionId = ActionId\n\n @Input()\n form = new FormGroup({\n email: new FormControl(''),\n password: new FormControl(''),\n });\n\n @Input()\n isEmailSectionShown = true;\n\n @Input()\n isPasswordSectionShown = true;\n\n @Input()\n actions = Actions;\n\n @Output()\n action = new EventEmitter<Action>()\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ActionButtonsSectionModule } from '@ng-atomic/components/organisms/action-buttons-section';\nimport { HeadingModule } from '@ng-atomic/components/organisms/heading';\nimport { TextInputSectionModule } from '@ng-atomic/components/organisms/text-input-section';\nimport { SocialLoginSectionModule } from '@ng-atomic/components/organisms/social-login-section';\nimport { AutoLayoutModule } from '@ng-atomic/components/frames/auto-layout';\nimport { CardModule } from '@ng-atomic/components/frames/card';\nimport { EntranceTemplate } from './entrance.template';\n\n\n@NgModule({\n declarations: [\n EntranceTemplate\n ],\n imports: [\n CommonModule,\n // Frames\n AutoLayoutModule,\n CardModule,\n // Organisms\n ActionButtonsSectionModule,\n HeadingModule,\n SocialLoginSectionModule,\n TextInputSectionModule,\n ],\n exports: [\n EntranceTemplate\n ],\n bootstrap: [\n EntranceTemplate,\n ]\n})\nexport class EntranceModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;QAGI,EAIgC,CAAA,SAAA,CAAA,CAAA,EAAA,8BAAA,EAAA,CAAA,CAAA,CAAA;;;;AAD9B,QAAA,EAA6B,CAAA,UAAA,CAAA,SAAA,EAAA,MAAA,CAAA,IAAA,CAAA,GAAA,CAAA,OAAA,CAAA,CAAA,CAAA;;;;;QAE/B,EAIgC,CAAA,SAAA,CAAA,CAAA,EAAA,8BAAA,EAAA,CAAA,CAAA,CAAA;;;;AAD9B,QAAA,EAAgC,CAAA,UAAA,CAAA,SAAA,EAAA,MAAA,CAAA,IAAA,CAAA,GAAA,CAAA,UAAA,CAAA,CAAA,CAAA;;;ACP1B,IAAA,SAIX;AAJD,CAAA,UAAY,QAAQ,EAAA;AAClB,IAAA,QAAA,CAAA,SAAA,CAAA,GAAA,iCAA2C,CAAA;AAC3C,IAAA,QAAA,CAAA,qBAAA,CAAA,GAAA,6CAAmE,CAAA;AACnE,IAAA,QAAA,CAAA,sBAAA,CAAA,GAAA,8CAAqE,CAAA;AACvE,CAAC,EAJW,QAAQ,KAAR,QAAQ,GAInB,EAAA,CAAA,CAAA,CAAA;AAEY,MAAA,OAAO,GAAa;AAC/B,IAAA;QACE,EAAE,EAAE,QAAQ,CAAC,OAAO;AACpB,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACD,IAAA;QACE,EAAE,EAAE,QAAQ,CAAC,mBAAmB;AAChC,QAAA,IAAI,EAAE,qBAAqB;AAC3B,QAAA,IAAI,EAAE,QAAQ;AACf,KAAA;AACD,IAAA;QACE,EAAE,EAAE,QAAQ,CAAC,oBAAoB;AACjC,QA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ApBvB,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAGhB,YAAY;;YAEZ,gBAAgB;YAChB,UAAU;;YAEV,0BAA0B;YAC1B,aAAa;YACb,wBAAwB;YACxB,sBAAsB,aAGtB,gBAAgB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;AC3BpB;;AAEG;;;;"}
|
|
@@ -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-w232: var(--primary-color);--secondary-color: #3f51b5;--secondary-color-SCOPED-IN-menu-w232: var(--secondary-color);--width: 100%;--width-SCOPED-IN-menu-w232: var(--width);--height: 100%;--height-SCOPED-IN-menu-w232: var(--height)}[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;width:var(--width-SCOPED-IN-menu-w232);height:var(--height-SCOPED-IN-menu-w232);color:#fff;background-color:var(--primary-color-SCOPED-IN-menu-w232)}[_nghost-%COMP%] organisms-navigation-list[_ngcontent-%COMP%]{transition:width .5s;--primary-color: var(--primary-color-SCOPED-IN-menu-w232);--secondary-color: var(--secondary-color-SCOPED-IN-menu-w232)}"], 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-w232: var(--primary-color);--secondary-color: #3f51b5;--secondary-color-SCOPED-IN-menu-w232: var(--secondary-color);--width: 100%;--width-SCOPED-IN-menu-w232: var(--width);--height: 100%;--height-SCOPED-IN-menu-w232: var(--height)}:host{display:flex;flex-direction:column;justify-content:space-between;width:var(--width-SCOPED-IN-menu-w232);height:var(--height-SCOPED-IN-menu-w232);color:#fff;background-color:var(--primary-color-SCOPED-IN-menu-w232)}:host organisms-navigation-list{transition:width .5s;--primary-color: var(--primary-color-SCOPED-IN-menu-w232);--secondary-color: var(--secondary-color-SCOPED-IN-menu-w232)}\n"] }]
|
|
37
37
|
}], null, { items: [{
|
|
38
38
|
type: Input
|
|
39
39
|
}], action: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-templates-menu.mjs","sources":["../../../../libs/components/src/templates/menu/menu.template.ts","../../../../libs/components/src/templates/menu/menu.template.html","../../../../libs/components/src/templates/menu/menu.module.ts","../../../../libs/components/src/templates/menu/ng-atomic-components-templates-menu.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { ActionItem } from '@ng-atomic/common/models';\n\n@Component({\n selector: 'templates-menu',\n templateUrl: './menu.template.html',\n styleUrls: ['./menu.template.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MenuTemplate {\n\n @Input()\n items: ActionItem<string>[] = [];\n\n @Output()\n action = new EventEmitter<
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-templates-menu.mjs","sources":["../../../../libs/components/src/templates/menu/menu.template.ts","../../../../libs/components/src/templates/menu/menu.template.html","../../../../libs/components/src/templates/menu/menu.module.ts","../../../../libs/components/src/templates/menu/ng-atomic-components-templates-menu.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Action, ActionItem } from '@ng-atomic/common/models';\n\n@Component({\n selector: 'templates-menu',\n templateUrl: './menu.template.html',\n styleUrls: ['./menu.template.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MenuTemplate {\n\n @Input()\n items: ActionItem<string>[] = [];\n\n @Output()\n action = new EventEmitter<Action>();\n\n}\n","<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>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NavigationListModule } from '@ng-atomic/components/organisms/navigation-list';\n\nimport { MenuTemplate } from './menu.template';\n\n\n@NgModule({\n declarations: [MenuTemplate],\n imports: [\n CommonModule,\n // Organisms\n NavigationListModule,\n ],\n exports: [MenuTemplate],\n bootstrap: [MenuTemplate],\n})\nexport class MenuModule { }\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MASa,YAAY,CAAA;AANzB,IAAA,WAAA,GAAA;AASE,QAAA,IAAK,CAAA,KAAA,GAAyB,EAAE,CAAC;AAGjC,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAU,CAAC;KAErC;;wEARY,YAAY,GAAA,CAAA,EAAA,CAAA;+DAAZ,YAAY,EAAA,SAAA,EAAA,CAAA,CAAA,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A,MAAA,EAAA,CAAA,krBAAA,CAAA,EAAA,CAAA;oBAK/C,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,MAAM,EAAA,CAAA;sBADL,MAAM;;;;MEGI,UAAU,CAAA;;oEAAV,UAAU,GAAA,CAAA,EAAA,CAAA;AAAV,UAAA,CAAA,IAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,IAAA,EAAA,UAAU,cAFT,YAAY,CAAA,EAAA,CAAA,CAAA;gEALtB,YAAY;;QAEZ,oBAAoB,CAAA,EAAA,CAAA,CAAA;;4EAKX,UAAU,EAAA,CAAA;kBAVtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,YAAY,CAAC;AAC5B,oBAAA,OAAO,EAAE;wBACP,YAAY;;wBAEZ,oBAAoB;AACrB,qBAAA;oBACD,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,SAAS,EAAE,CAAC,YAAY,CAAC;iBAC1B,CAAA;;;;6EACY,UAAU,EAAA,EAAA,YAAA,EAAA,CATN,YAAY,CAAA,EAAA,OAAA,EAAA,CAEzB,YAAY;;YAEZ,oBAAoB,aAEZ,YAAY,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACdxB;;AAEG;;;;"}
|
|
@@ -110,10 +110,10 @@ class SmartCrudTemplate {
|
|
|
110
110
|
this.navigatorLeftItems = [{ id: ActionId.BACK, icon: 'arrow_back' }];
|
|
111
111
|
this.trackByIndex = (index) => index;
|
|
112
112
|
}
|
|
113
|
-
get
|
|
113
|
+
get actions() {
|
|
114
114
|
switch (this.mode) {
|
|
115
|
-
case 'create': return [{ id: ActionId.CREATE, name: '作成' }];
|
|
116
|
-
case 'update': return [{ id: ActionId.UPDATE, name: '更新' }];
|
|
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
117
|
}
|
|
118
118
|
}
|
|
119
119
|
get controls() {
|
|
@@ -129,7 +129,7 @@ class SmartCrudTemplate {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
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: { canBack: "canBack", name: "name", form: "form", mode: "mode", navigatorMenuItems: "navigatorMenuItems", title: "title" }, outputs: { action: "action", backButtonClick: "backButtonClick", createButtonClick: "createButtonClick", updateButtonClick: "updateButtonClick" }, decls: 6, vars: 7, consts: [["navigator", "", 3, "leftItems", "rightItems", "action"], [3, "title"], ["vertical", "", "contents", ""], [3, "ngSwitch", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "
|
|
132
|
+
SmartCrudTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartCrudTemplate, selectors: [["templates-smart-crud"]], hostAttrs: [1, "template"], inputs: { canBack: "canBack", name: "name", form: "form", mode: "mode", navigatorMenuItems: "navigatorMenuItems", title: "title" }, outputs: { action: "action", backButtonClick: "backButtonClick", createButtonClick: "createButtonClick", updateButtonClick: "updateButtonClick" }, decls: 6, vars: 7, consts: [["navigator", "", 3, "leftItems", "rightItems", "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
133
|
if (rf & 1) {
|
|
134
134
|
i0.ɵɵelementStart(0, "frames-scroll")(1, "organisms-navigator", 0);
|
|
135
135
|
i0.ɵɵlistener("action", function SmartCrudTemplate_Template_organisms_navigator_action_1_listener($event) { return ctx.onAction($event); });
|
|
@@ -149,13 +149,13 @@ SmartCrudTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartCrud
|
|
|
149
149
|
i0.ɵɵadvance(2);
|
|
150
150
|
i0.ɵɵproperty("ngForOf", ctx.controls)("ngForTrackBy", ctx.trackByIndex);
|
|
151
151
|
i0.ɵɵadvance(1);
|
|
152
|
-
i0.ɵɵproperty("
|
|
152
|
+
i0.ɵɵproperty("actions", ctx.actions);
|
|
153
153
|
}
|
|
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-
|
|
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-Io5O: var(--horizontal-padding);--vertical-padding: 24px;--vertical-padding-SCOPED-IN-smart-crud-Io5O: var(--vertical-padding);--gap: 16px;--gap-SCOPED-IN-smart-crud-Io5O: 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-Io5O);--vertical-padding: var(--vertical-padding-SCOPED-IN-smart-crud-Io5O)}[_nghost-%COMP%] frames-auto-layout[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{--horizontal-padding: var(--horizontal-padding-SCOPED-IN-smart-crud-Io5O)}"], changeDetection: 0 });
|
|
155
155
|
(function () {
|
|
156
156
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartCrudTemplate, [{
|
|
157
157
|
type: Component,
|
|
158
|
-
args: [{ selector: 'templates-smart-crud', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'template' }, template: "<frames-scroll>\n <organisms-navigator \n [leftItems]=\"canBack ? navigatorLeftItems : []\"\n [rightItems]=\"navigatorMenuItems\"\n (action)=\"onAction($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 [
|
|
158
|
+
args: [{ selector: 'templates-smart-crud', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'template' }, template: "<frames-scroll>\n <organisms-navigator \n [leftItems]=\"canBack ? navigatorLeftItems : []\"\n [rightItems]=\"navigatorMenuItems\"\n (action)=\"onAction($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)=\"onAction($event)\"\n ></organisms-action-buttons-section>\n </frames-auto-layout>\n</frames-scroll>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-smart-crud-Io5O: var(--horizontal-padding);--vertical-padding: 24px;--vertical-padding-SCOPED-IN-smart-crud-Io5O: var(--vertical-padding);--gap: 16px;--gap-SCOPED-IN-smart-crud-Io5O: 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-Io5O);--vertical-padding: var(--vertical-padding-SCOPED-IN-smart-crud-Io5O)}:host frames-auto-layout *{--horizontal-padding: var(--horizontal-padding-SCOPED-IN-smart-crud-Io5O)}\n"] }]
|
|
159
159
|
}], null, { canBack: [{
|
|
160
160
|
type: Input
|
|
161
161
|
}], name: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-templates-smart-crud.mjs","sources":["../../../../libs/components/src/templates/smart-crud/smart-crud.template.html","../../../../libs/components/src/templates/smart-crud/smart-crud.template.ts","../../../../libs/components/src/templates/smart-crud/smart-crud.module.ts","../../../../libs/components/src/templates/smart-crud/ng-atomic-components-templates-smart-crud.ts"],"sourcesContent":["<frames-scroll>\n <organisms-navigator \n [leftItems]=\"canBack ? navigatorLeftItems : []\"\n [rightItems]=\"navigatorMenuItems\"\n (action)=\"onAction($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 [items]=\"actionItems\"\n (action)=\"onAction($event)\"\n ></organisms-action-buttons-section>\n </frames-auto-layout>\n</frames-scroll>","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Action, ActionItem } from '@ng-atomic/common/models';\nimport { FormGroup } from '@ngneat/reactive-forms';\n\nexport enum ActionId {\n BACK = '[@ng-atomic/components/templates/smart-crud] Back',\n CREATE = '[@ng-atomic/components/templates/smart-crud] Create',\n UPDATE = '[@ng-atomic/components/templates/smart-crud] Update',\n DELETE = '[@ng-atomic/components/templates/smart-crud] Delete',\n}\n\n@Component({\n selector: 'templates-smart-crud',\n templateUrl: './smart-crud.template.html',\n styleUrls: ['./smart-crud.template.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'template'},\n})\nexport class SmartCrudTemplate {\n\n @Input()\n canBack = false;\n\n @Input()\n name: string = '';\n\n @Input()\n form!: FormGroup<any>;\n\n @Input()\n mode: 'create' | 'update' = 'create';\n\n @Input()\n navigatorMenuItems: ActionItem[] = [{id: ActionId.DELETE, name: '削除'}];\n\n @Input()\n title: string = 'title';\n\n @Output()\n action = new EventEmitter<Action>();\n\n @Output()\n backButtonClick = new EventEmitter();\n\n @Output()\n createButtonClick = new EventEmitter<void>();\n\n @Output()\n updateButtonClick = new EventEmitter<void>();\n\n navigatorLeftItems = [{ id: ActionId.BACK, icon: 'arrow_back' }];\n\n get actionItems(): ActionItem[] {\n switch (this.mode) {\n case 'create': return [{id: ActionId.CREATE, name: '作成'}];\n case 'update': return [{id: ActionId.UPDATE, name: '更新'}];\n }\n }\n\n get controls() {\n return Object.entries(this.form.controls);\n }\n\n trackByIndex = (index: number) => index;\n\n onAction(action: Action): void {\n switch(action.id) {\n case ActionId.BACK: return this.backButtonClick.emit();\n case ActionId.CREATE: return this.createButtonClick.emit();\n case ActionId.UPDATE: return this.updateButtonClick.emit();\n default: return this.action.emit(action);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { ScrollModule } from '@ng-atomic/components/frames/scroll';\nimport { AutoLayoutModule } from '@ng-atomic/components/frames/auto-layout';\nimport { HeaderModule } from '@ng-atomic/components/molecules/header';\nimport { ActionButtonsSectionModule } from '@ng-atomic/components/organisms/action-buttons-section';\nimport { NavigatorModule } from '@ng-atomic/components/organisms/navigator';\nimport { TextInputSectionModule } from '@ng-atomic/components/organisms/text-input-section';\nimport { DateInputSectionModule } from '@ng-atomic/components/organisms/date-input-section';\nimport { SelectInputSectionModule } from '@ng-atomic/components/organisms/select-input-section';\nimport { SmartFieldModule } from '@ng-atomic/common/pipes/smart-field';\nimport { DomainModule } from '@ng-atomic/common/pipes/domain';\n\nimport { SmartCrudTemplate } from './smart-crud.template';\n\n\n@NgModule({\n declarations: [\n SmartCrudTemplate\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n // Pipes\n DomainModule,\n SmartFieldModule,\n // Frames\n AutoLayoutModule,\n ScrollModule,\n // Organisms\n ActionButtonsSectionModule,\n NavigatorModule,\n DateInputSectionModule,\n TextInputSectionModule,\n SelectInputSectionModule,\n // Molecules\n HeaderModule,\n ],\n exports: [\n SmartCrudTemplate\n ],\n providers: [],\n bootstrap: [SmartCrudTemplate],\n})\nexport class SmartCrudModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;QAWM,EAKkC,CAAA,SAAA,CAAA,CAAA,EAAA,gCAAA,EAAA,EAAA,CAAA,CAAA;;;;;;;AAHhC,QAAA,EAAA,CAAA,UAAA,CAAA,OAAA,EAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAsB,wBAAA,CAAA,SAAA,EAAA,CAAA,OAAA,GAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,QAAA,CAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,IAAA,GAAA,OAAA,CAAA,OAAA,CAAA,CAAA;;;;;QAIxB,EAIgC,CAAA,SAAA,CAAA,CAAA,EAAA,8BAAA,EAAA,EAAA,CAAA,CAAA;;;;;QAF9B,EAAA,CAAA,UAAA,CAAA,OAAA,EAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAsB,CAAA,SAAA,EAAA,QAAA,CAAA,CAAA,CAAA,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A,EAAA,CAAA,CAAA;qEArB3B,YAAY;QACZ,mBAAmB;;QAEnB,YAAY;QACZ,gBAAgB;;QAEhB,gBAAgB;QAChB,YAAY;;QAEZ,0BAA0B;QAC1B,eAAe;QACf,sBAAsB;QACtB,sBAAsB;QACtB,wBAAwB;;QAExB,YAAY,CAAA,EAAA,CAAA,CAAA;;4EAQH,eAAe,EAAA,CAAA;kBA5B3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;;wBAEnB,YAAY;wBACZ,gBAAgB;;wBAEhB,gBAAgB;wBAChB,YAAY;;wBAEZ,0BAA0B;wBAC1B,eAAe;wBACf,sBAAsB;wBACtB,sBAAsB;wBACtB,wBAAwB;;wBAExB,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;AAClB,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;oBACb,SAAS,EAAE,CAAC,iBAAiB,CAAC;iBAC/B,CAAA;;;;6EACY,eAAe,EAAA,EAAA,YAAA,EAAA,CA1BxB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAGjB,YAAY;YACZ,mBAAmB;;YAEnB,YAAY;YACZ,gBAAgB;;YAEhB,gBAAgB;YAChB,YAAY;;YAEZ,0BAA0B;YAC1B,eAAe;YACf,sBAAsB;YACtB,sBAAsB;YACtB,wBAAwB;;YAExB,YAAY,aAGZ,iBAAiB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACxCrB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-templates-smart-crud.mjs","sources":["../../../../libs/components/src/templates/smart-crud/smart-crud.template.html","../../../../libs/components/src/templates/smart-crud/smart-crud.template.ts","../../../../libs/components/src/templates/smart-crud/smart-crud.module.ts","../../../../libs/components/src/templates/smart-crud/ng-atomic-components-templates-smart-crud.ts"],"sourcesContent":["<frames-scroll>\n <organisms-navigator \n [leftItems]=\"canBack ? navigatorLeftItems : []\"\n [rightItems]=\"navigatorMenuItems\"\n (action)=\"onAction($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)=\"onAction($event)\"\n ></organisms-action-buttons-section>\n </frames-auto-layout>\n</frames-scroll>","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Action, ActionItem } from '@ng-atomic/common/models';\nimport { FormGroup } from '@ngneat/reactive-forms';\n\nexport enum ActionId {\n BACK = '[@ng-atomic/components/templates/smart-crud] Back',\n CREATE = '[@ng-atomic/components/templates/smart-crud] Create',\n UPDATE = '[@ng-atomic/components/templates/smart-crud] Update',\n DELETE = '[@ng-atomic/components/templates/smart-crud] Delete',\n}\n\n@Component({\n selector: 'templates-smart-crud',\n templateUrl: './smart-crud.template.html',\n styleUrls: ['./smart-crud.template.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'template'},\n})\nexport class SmartCrudTemplate {\n\n @Input()\n canBack = false;\n\n @Input()\n name: string = '';\n\n @Input()\n form!: FormGroup<any>;\n\n @Input()\n mode: 'create' | 'update' = 'create';\n\n @Input()\n navigatorMenuItems: ActionItem[] = [{id: ActionId.DELETE, name: '削除'}];\n\n @Input()\n title: string = 'title';\n\n @Output()\n action = new EventEmitter<Action>();\n\n @Output()\n backButtonClick = new EventEmitter();\n\n @Output()\n createButtonClick = new EventEmitter<void>();\n\n @Output()\n updateButtonClick = new EventEmitter<void>();\n\n navigatorLeftItems = [{ id: ActionId.BACK, icon: 'arrow_back' }];\n\n get actions(): Action[] {\n switch (this.mode) {\n case 'create': return [{id: ActionId.CREATE, name: '作成', disabled: this.form.invalid}];\n case 'update': return [{id: ActionId.UPDATE, name: '更新', disabled: this.form.invalid}];\n }\n }\n\n get controls() {\n return Object.entries(this.form.controls);\n }\n\n trackByIndex = (index: number) => index;\n\n onAction(action: Action): void {\n switch(action.id) {\n case ActionId.BACK: return this.backButtonClick.emit();\n case ActionId.CREATE: return this.createButtonClick.emit();\n case ActionId.UPDATE: return this.updateButtonClick.emit();\n default: return this.action.emit(action);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { ScrollModule } from '@ng-atomic/components/frames/scroll';\nimport { AutoLayoutModule } from '@ng-atomic/components/frames/auto-layout';\nimport { HeaderModule } from '@ng-atomic/components/molecules/header';\nimport { ActionButtonsSectionModule } from '@ng-atomic/components/organisms/action-buttons-section';\nimport { NavigatorModule } from '@ng-atomic/components/organisms/navigator';\nimport { TextInputSectionModule } from '@ng-atomic/components/organisms/text-input-section';\nimport { DateInputSectionModule } from '@ng-atomic/components/organisms/date-input-section';\nimport { SelectInputSectionModule } from '@ng-atomic/components/organisms/select-input-section';\nimport { SmartFieldModule } from '@ng-atomic/common/pipes/smart-field';\nimport { DomainModule } from '@ng-atomic/common/pipes/domain';\n\nimport { SmartCrudTemplate } from './smart-crud.template';\n\n\n@NgModule({\n declarations: [\n SmartCrudTemplate\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n // Pipes\n DomainModule,\n SmartFieldModule,\n // Frames\n AutoLayoutModule,\n ScrollModule,\n // Organisms\n ActionButtonsSectionModule,\n NavigatorModule,\n DateInputSectionModule,\n TextInputSectionModule,\n SelectInputSectionModule,\n // Molecules\n HeaderModule,\n ],\n exports: [\n SmartCrudTemplate\n ],\n providers: [],\n bootstrap: [SmartCrudTemplate],\n})\nexport class SmartCrudModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;QAWM,EAKkC,CAAA,SAAA,CAAA,CAAA,EAAA,gCAAA,EAAA,EAAA,CAAA,CAAA;;;;;;;AAHhC,QAAA,EAAA,CAAA,UAAA,CAAA,OAAA,EAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAsB,wBAAA,CAAA,SAAA,EAAA,CAAA,OAAA,GAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,QAAA,CAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,IAAA,GAAA,OAAA,CAAA,OAAA,CAAA,CAAA;;;;;QAIxB,EAIgC,CAAA,SAAA,CAAA,CAAA,EAAA,8BAAA,EAAA,EAAA,CAAA,CAAA;;;;;QAF9B,EAAA,CAAA,UAAA,CAAA,OAAA,EAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAsB,CAAA,SAAA,EAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;QAGxB,EAKgC,CAAA,SAAA,CAAA,CAAA,EAAA,8BAAA,EAAA,EAAA,CAAA,CAAA;;;;;AAH9B,QAAA,EAAA,CAAA,UAAA,CAAA,MAAA,EAAA,QAAA,CAAiB,4CAAA,CAAA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,gBAAgB;QAChB,YAAY;;QAEZ,0BAA0B;QAC1B,eAAe;QACf,sBAAsB;QACtB,sBAAsB;QACtB,wBAAwB;;QAExB,YAAY,CAAA,EAAA,CAAA,CAAA;;4EAQH,eAAe,EAAA,CAAA;kBA5B3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;;wBAEnB,YAAY;wBACZ,gBAAgB;;wBAEhB,gBAAgB;wBAChB,YAAY;;wBAEZ,0BAA0B;wBAC1B,eAAe;wBACf,sBAAsB;wBACtB,sBAAsB;wBACtB,wBAAwB;;wBAExB,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;AAClB,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;oBACb,SAAS,EAAE,CAAC,iBAAiB,CAAC;iBAC/B,CAAA;;;;6EACY,eAAe,EAAA,EAAA,YAAA,EAAA,CA1BxB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAGjB,YAAY;YACZ,mBAAmB;;YAEnB,YAAY;YACZ,gBAAgB;;YAEhB,gBAAgB;YAChB,YAAY;;YAEZ,0BAA0B;YAC1B,eAAe;YACf,sBAAsB;YACtB,sBAAsB;YACtB,wBAAwB;;YAExB,YAAY,aAGZ,iBAAiB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACxCrB;;AAEG;;;;"}
|
|
@@ -31,10 +31,12 @@ function SmartIndexTemplate_organisms_paginator_5_Template(rf, ctx) {
|
|
|
31
31
|
const _c0 = function () { return []; };
|
|
32
32
|
var ActionId;
|
|
33
33
|
(function (ActionId) {
|
|
34
|
-
ActionId["BACK"] = "[@ng-atomic/components/templates/smart-
|
|
34
|
+
ActionId["BACK"] = "[@ng-atomic/components/templates/smart-index] Back";
|
|
35
|
+
ActionId["TABLE_HEADER_CLICK"] = "[@ng-atomic/components/templates/smart-index] Table Header Click";
|
|
35
36
|
})(ActionId || (ActionId = {}));
|
|
36
37
|
class SmartIndexTemplate {
|
|
37
38
|
constructor() {
|
|
39
|
+
this.ActionId = ActionId;
|
|
38
40
|
this.canBack = false;
|
|
39
41
|
this.queryControl = new FormControl('');
|
|
40
42
|
this.title = '';
|
|
@@ -55,25 +57,23 @@ class SmartIndexTemplate {
|
|
|
55
57
|
this.backButtonClick = new EventEmitter();
|
|
56
58
|
this.checkboxClick = new EventEmitter();
|
|
57
59
|
this.pageChange = new EventEmitter();
|
|
58
|
-
this.tableHeaderClick = new EventEmitter();
|
|
59
60
|
this.navigatorLeftItems = [{ id: ActionId.BACK, icon: 'arrow_back' }];
|
|
60
61
|
}
|
|
61
62
|
onAction(action) {
|
|
62
63
|
switch (action.id) {
|
|
63
|
-
case ActionId.BACK: return this.backButtonClick.emit();
|
|
64
64
|
default: return this.action.emit(action);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
SmartIndexTemplate.ɵfac = function SmartIndexTemplate_Factory(t) { return new (t || SmartIndexTemplate)(); };
|
|
69
|
-
SmartIndexTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartIndexTemplate, selectors: [["templates-smart-index"]], hostAttrs: [1, "template"], inputs: { canBack: "canBack", queryControl: "queryControl", title: "title", description: "description", items: "items", rowMenuItems: "rowMenuItems", itemActions: "itemActions", navigatorMenuItems: "navigatorMenuItems", properties: "properties", selectedIdSet: "selectedIdSet", sortKey: "sortKey", sortOrder: "sortOrder", page: "page", pageSizeOptions: "pageSizeOptions", queryPlaceholder: "queryPlaceholder" }, outputs: { action: "action", backButtonClick: "backButtonClick", checkboxClick: "checkboxClick", pageChange: "pageChange"
|
|
69
|
+
SmartIndexTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartIndexTemplate, selectors: [["templates-smart-index"]], hostAttrs: [1, "template"], inputs: { canBack: "canBack", queryControl: "queryControl", title: "title", description: "description", items: "items", rowMenuItems: "rowMenuItems", itemActions: "itemActions", navigatorMenuItems: "navigatorMenuItems", properties: "properties", selectedIdSet: "selectedIdSet", sortKey: "sortKey", sortOrder: "sortOrder", page: "page", pageSizeOptions: "pageSizeOptions", queryPlaceholder: "queryPlaceholder" }, outputs: { action: "action", backButtonClick: "backButtonClick", checkboxClick: "checkboxClick", pageChange: "pageChange" }, decls: 6, vars: 13, consts: [["navigator", "", 3, "leftItems", "rightItems", "action"], [3, "title", "description"], ["vertical", "", "contents", ""], [3, "items", "menuItems", "itemActions", "columns", "selectedIdSet", "sortKey", "sortOrder", "action", "checkboxClick", "headerClick"], [3, "control", "page", "pageSizeOptions", "placeholder", "pageChange", 4, "ngIf"], [3, "control", "page", "pageSizeOptions", "placeholder", "pageChange"]], template: function SmartIndexTemplate_Template(rf, ctx) {
|
|
70
70
|
if (rf & 1) {
|
|
71
71
|
i0.ɵɵelementStart(0, "frames-scroll")(1, "organisms-navigator", 0);
|
|
72
72
|
i0.ɵɵlistener("action", function SmartIndexTemplate_Template_organisms_navigator_action_1_listener($event) { return ctx.onAction($event); });
|
|
73
73
|
i0.ɵɵelement(2, "molecules-header", 1);
|
|
74
74
|
i0.ɵɵelementEnd();
|
|
75
75
|
i0.ɵɵelementStart(3, "frames-auto-layout", 2)(4, "organisms-smart-table", 3);
|
|
76
|
-
i0.ɵɵlistener("action", function SmartIndexTemplate_Template_organisms_smart_table_action_4_listener($event) { return ctx.action.emit($event); })("checkboxClick", function SmartIndexTemplate_Template_organisms_smart_table_checkboxClick_4_listener($event) { return ctx.checkboxClick.emit($event); })("headerClick", function SmartIndexTemplate_Template_organisms_smart_table_headerClick_4_listener($event) { return ctx.
|
|
76
|
+
i0.ɵɵlistener("action", function SmartIndexTemplate_Template_organisms_smart_table_action_4_listener($event) { return ctx.action.emit($event); })("checkboxClick", function SmartIndexTemplate_Template_organisms_smart_table_checkboxClick_4_listener($event) { return ctx.checkboxClick.emit($event); })("headerClick", function SmartIndexTemplate_Template_organisms_smart_table_headerClick_4_listener($event) { return ctx.action.emit({ id: ctx.ActionId.TABLE_HEADER_CLICK, payload: $event }); });
|
|
77
77
|
i0.ɵɵelementEnd();
|
|
78
78
|
i0.ɵɵtemplate(5, SmartIndexTemplate_organisms_paginator_5_Template, 1, 4, "organisms-paginator", 4);
|
|
79
79
|
i0.ɵɵelementEnd()();
|
|
@@ -88,11 +88,11 @@ SmartIndexTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartInd
|
|
|
88
88
|
i0.ɵɵadvance(1);
|
|
89
89
|
i0.ɵɵproperty("ngIf", ctx.page);
|
|
90
90
|
}
|
|
91
|
-
}, dependencies: [i1.NgIf, i2.AutoLayoutFrame, i3.ScrollFrame, i4.PaginatorOrganism, i5.SmartTableOrganism, i6.NavigatorOrganism, i7.HeaderMolecule], styles: ["[_nghost-%COMP%]{--navigator-height: 56px;--navigator-height-SCOPED-IN-smart-index-
|
|
91
|
+
}, dependencies: [i1.NgIf, i2.AutoLayoutFrame, i3.ScrollFrame, i4.PaginatorOrganism, i5.SmartTableOrganism, i6.NavigatorOrganism, i7.HeaderMolecule], styles: ["[_nghost-%COMP%]{--navigator-height: 56px;--navigator-height-SCOPED-IN-smart-index-Qc9c: var(--navigator-height)}[_nghost-%COMP%]{width:100%;height:100%;background:white;display:block}[_nghost-%COMP%] frames-auto-layout[_ngcontent-%COMP%]{--gap: 0;--vertical-padding: 0}"], changeDetection: 0 });
|
|
92
92
|
(function () {
|
|
93
93
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartIndexTemplate, [{
|
|
94
94
|
type: Component,
|
|
95
|
-
args: [{ selector: 'templates-smart-index', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'template' }, template: "<frames-scroll>\n <organisms-navigator\n [leftItems]=\"canBack ? navigatorLeftItems : []\"\n [rightItems]=\"navigatorMenuItems\"\n (action)=\"onAction($event)\"\n navigator\n >\n <molecules-header [title]=\"title\" [description]=\"description\"></molecules-header>\n </organisms-navigator>\n <frames-auto-layout vertical contents>\n <organisms-smart-table\n [items]=\"items\"\n [menuItems]=\"rowMenuItems\"\n [itemActions]=\"itemActions\"\n [columns]=\"properties\"\n [selectedIdSet]=\"selectedIdSet\"\n [sortKey]=\"sortKey\"\n [sortOrder]=\"sortOrder\"\n (action)=\"action.emit($event)\"\n (checkboxClick)=\"checkboxClick.emit($event)\"\n (headerClick)=\"
|
|
95
|
+
args: [{ selector: 'templates-smart-index', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'template' }, template: "<frames-scroll>\n <organisms-navigator\n [leftItems]=\"canBack ? navigatorLeftItems : []\"\n [rightItems]=\"navigatorMenuItems\"\n (action)=\"onAction($event)\"\n navigator\n >\n <molecules-header [title]=\"title\" [description]=\"description\"></molecules-header>\n </organisms-navigator>\n <frames-auto-layout vertical contents>\n <organisms-smart-table\n [items]=\"items\"\n [menuItems]=\"rowMenuItems\"\n [itemActions]=\"itemActions\"\n [columns]=\"properties\"\n [selectedIdSet]=\"selectedIdSet\"\n [sortKey]=\"sortKey\"\n [sortOrder]=\"sortOrder\"\n (action)=\"action.emit($event)\"\n (checkboxClick)=\"checkboxClick.emit($event)\"\n (headerClick)=\"action.emit({id: ActionId.TABLE_HEADER_CLICK, payload: $event})\"\n ></organisms-smart-table>\n <organisms-paginator\n *ngIf=\"page\"\n [control]=\"queryControl\"\n [page]=\"page\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [placeholder]=\"queryPlaceholder\"\n (pageChange)=\"pageChange.emit($event)\"\n ></organisms-paginator>\n </frames-auto-layout>\n</frames-scroll>", styles: [":host{--navigator-height: 56px;--navigator-height-SCOPED-IN-smart-index-Qc9c: var(--navigator-height)}:host{width:100%;height:100%;background:white;display:block}:host frames-auto-layout{--gap: 0;--vertical-padding: 0}\n"] }]
|
|
96
96
|
}], null, { canBack: [{
|
|
97
97
|
type: Input
|
|
98
98
|
}], queryControl: [{
|
|
@@ -131,8 +131,6 @@ SmartIndexTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartInd
|
|
|
131
131
|
type: Output
|
|
132
132
|
}], pageChange: [{
|
|
133
133
|
type: Output
|
|
134
|
-
}], tableHeaderClick: [{
|
|
135
|
-
type: Output
|
|
136
134
|
}] });
|
|
137
135
|
})();
|
|
138
136
|
|