@ng-atomic/components 16.1.0 → 16.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/atoms/icon/icon.atom.mjs +2 -2
- package/esm2022/components.module.mjs +9 -1
- package/esm2022/frames/auto-layout/auto-layout.frame.mjs +2 -2
- package/esm2022/frames/divider/divider.frame.mjs +2 -2
- package/esm2022/frames/drawer/drawer.frame.mjs +2 -2
- package/esm2022/frames/fab/fab.frame.mjs +2 -2
- package/esm2022/frames/frames.module.mjs +7 -7
- package/esm2022/frames/line-up/line-up.frame.mjs +2 -2
- package/esm2022/frames/overlay/overlay.frame.mjs +2 -2
- package/esm2022/frames/scroll/scroll.frame.mjs +2 -2
- package/esm2022/frames/scroll-v2/scroll.frame.mjs +2 -2
- package/esm2022/frames/side-nav/side-nav.frame.mjs +2 -2
- package/esm2022/frames/smart-menu/smart-menu.frame.mjs +2 -2
- package/esm2022/frames/vertical-hide/vertical-hide.frame.mjs +2 -2
- package/esm2022/molecules/date-input-field/date-input-field.molecule.mjs +2 -2
- package/esm2022/molecules/select-input-field/select-input-field.molecule.mjs +2 -2
- package/esm2022/organisms/action-buttons-section/action-buttons-section.organism.mjs +2 -2
- package/esm2022/organisms/action-input-section/action-input-section.organism.mjs +2 -2
- package/esm2022/organisms/card-input-section/card-input-section.organism.mjs +2 -2
- package/esm2022/organisms/cvc-and-exp-input-section/cvc-and-exp-input-section.organism.mjs +2 -2
- package/esm2022/organisms/date-input-section/date-input-section.organism.mjs +2 -2
- package/esm2022/organisms/file-input-section/file-input-section.organism.mjs +2 -2
- package/esm2022/organisms/heading/heading.organism.mjs +2 -2
- package/esm2022/organisms/messages-section/messages-section.organism.mjs +2 -2
- package/esm2022/organisms/navigation-list/navigation-list.organism.mjs +2 -2
- package/esm2022/organisms/navigator/navigator.organism.mjs +2 -2
- package/esm2022/organisms/select-input-section/select-input-section.organism.mjs +2 -2
- package/esm2022/organisms/smart-list/smart-list.organism.mjs +72 -51
- package/esm2022/organisms/smart-table/smart-table.organism.mjs +2 -2
- package/esm2022/organisms/social-login-section/social-login-section.organism.mjs +2 -2
- package/esm2022/organisms/text-input-section/text-input-section.organism.mjs +2 -2
- package/esm2022/organisms/textarea-section/textarea-section.organism.mjs +2 -2
- package/esm2022/sheets/actions/actions.sheet.mjs +45 -0
- package/esm2022/sheets/actions/index.mjs +2 -0
- package/esm2022/sheets/actions/ng-atomic-components-sheets-actions.mjs +5 -0
- package/esm2022/sheets/index.mjs +3 -0
- package/esm2022/sheets/ng-atomic-components-sheets.mjs +5 -0
- package/esm2022/sheets/sheets.module.mjs +25 -0
- package/esm2022/sheets/sheets.service.mjs +20 -0
- package/esm2022/templates/entrance/entrance.template.mjs +2 -2
- package/esm2022/templates/icon-button-menu/icon-button-menu.template.mjs +2 -2
- package/esm2022/templates/menu/menu.template.mjs +2 -2
- package/esm2022/templates/smart-crud/smart-crud.template.mjs +2 -2
- package/esm2022/templates/smart-index/smart-index.template.mjs +20 -8
- package/fesm2022/ng-atomic-components-atoms-icon.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-auto-layout.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-divider.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-drawer.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-fab.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-line-up.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-overlay.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-scroll-v2.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-scroll.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-side-nav.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-smart-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames-vertical-hide.mjs +2 -2
- package/fesm2022/ng-atomic-components-frames.mjs +7 -7
- package/fesm2022/ng-atomic-components-frames.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-molecules-date-input-field.mjs +2 -2
- package/fesm2022/ng-atomic-components-molecules-select-input-field.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-action-buttons-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-action-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-card-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-date-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-file-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-heading.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-messages-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-navigator.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-smart-list.mjs +71 -50
- package/fesm2022/ng-atomic-components-organisms-smart-list.mjs.map +1 -1
- package/fesm2022/ng-atomic-components-organisms-smart-table.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-text-input-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2022/ng-atomic-components-sheets-actions.mjs +52 -0
- package/fesm2022/ng-atomic-components-sheets-actions.mjs.map +1 -0
- package/fesm2022/ng-atomic-components-sheets.mjs +48 -0
- package/fesm2022/ng-atomic-components-sheets.mjs.map +1 -0
- package/fesm2022/ng-atomic-components-templates-entrance.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-menu.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-smart-crud.mjs +2 -2
- package/fesm2022/ng-atomic-components-templates-smart-index.mjs +19 -7
- package/fesm2022/ng-atomic-components-templates-smart-index.mjs.map +1 -1
- package/fesm2022/ng-atomic-components.mjs +8 -0
- package/fesm2022/ng-atomic-components.mjs.map +1 -1
- package/frames/frames.module.d.ts +5 -5
- package/organisms/smart-list/smart-list.organism.d.ts +7 -4
- package/package.json +15 -3
- package/sheets/actions/actions.sheet.d.ts +9 -0
- package/sheets/actions/index.d.ts +1 -0
- package/sheets/index.d.ts +2 -0
- package/sheets/sheets.module.d.ts +11 -0
- package/sheets/sheets.service.d.ts +10 -0
- package/templates/smart-index/smart-index.template.d.ts +4 -2
|
@@ -17,7 +17,7 @@ export class DateInputSectionOrganism {
|
|
|
17
17
|
[label]="label"
|
|
18
18
|
[placeholder]="placeholder"
|
|
19
19
|
></molecules-date-input-field>
|
|
20
|
-
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-
|
|
20
|
+
`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-ryDp: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-date-input-section-ryDp);box-sizing:border-box}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DateInputFieldMolecule, selector: "molecules-date-input-field", inputs: ["control", "label", "placeholder", "hint"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
21
21
|
}
|
|
22
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputSectionOrganism, decorators: [{
|
|
23
23
|
type: Component,
|
|
@@ -30,7 +30,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
30
30
|
[label]="label"
|
|
31
31
|
[placeholder]="placeholder"
|
|
32
32
|
></molecules-date-input-field>
|
|
33
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-
|
|
33
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-ryDp: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-date-input-section-ryDp);box-sizing:border-box}:host mat-form-field{width:100%}\n"] }]
|
|
34
34
|
}], propDecorators: { control: [{
|
|
35
35
|
type: Input
|
|
36
36
|
}], label: [{
|
|
@@ -34,7 +34,7 @@ export class FileInputSectionOrganism extends NgAtomicComponent {
|
|
|
34
34
|
[placeholder]="placeholder"
|
|
35
35
|
(action)="dispatch($event)"
|
|
36
36
|
></molecules-file-input-field>
|
|
37
|
-
`, isInline: true, styles: [":host{display:block;--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-file-input-section-
|
|
37
|
+
`, isInline: true, styles: [":host{display:block;--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-file-input-section-mbFx: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-file-input-section-mbFx);box-sizing:border-box}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FileInputFieldMolecule, selector: "molecules-file-input-field", inputs: ["appearance", "name", "label", "control", "placeholder", "hint", "progress"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
38
38
|
}
|
|
39
39
|
__decorate([
|
|
40
40
|
Effect(FileInputFieldMolecule.ActionId.FILE_SELECTED),
|
|
@@ -62,7 +62,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
62
62
|
[placeholder]="placeholder"
|
|
63
63
|
(action)="dispatch($event)"
|
|
64
64
|
></molecules-file-input-field>
|
|
65
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-file-input-section-
|
|
65
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-file-input-section-mbFx: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-file-input-section-mbFx);box-sizing:border-box}:host mat-form-field{width:100%}\n"] }]
|
|
66
66
|
}], propDecorators: { control: [{
|
|
67
67
|
type: Input
|
|
68
68
|
}], label: [{
|
|
@@ -7,13 +7,13 @@ export class HeadingOrganism {
|
|
|
7
7
|
this.level = 1;
|
|
8
8
|
}
|
|
9
9
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeadingOrganism, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HeadingOrganism, isStandalone: true, selector: "organisms-heading", inputs: { level: "level" }, ngImport: i0, template: "<ng-template #temp><ng-content></ng-content></ng-template>\n\n<ng-container [ngSwitch]=\"level\">\n <h1 *ngSwitchDefault><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h1>\n <h2 *ngSwitchCase=\"2\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h2>\n <h3 *ngSwitchCase=\"3\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h3>\n <h4 *ngSwitchCase=\"4\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h4>\n <h5 *ngSwitchCase=\"5\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h5>\n <h6 *ngSwitchCase=\"6\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h6>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-
|
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HeadingOrganism, isStandalone: true, selector: "organisms-heading", inputs: { level: "level" }, ngImport: i0, template: "<ng-template #temp><ng-content></ng-content></ng-template>\n\n<ng-container [ngSwitch]=\"level\">\n <h1 *ngSwitchDefault><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h1>\n <h2 *ngSwitchCase=\"2\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h2>\n <h3 *ngSwitchCase=\"3\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h3>\n <h4 *ngSwitchCase=\"4\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h4>\n <h5 *ngSwitchCase=\"5\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h5>\n <h6 *ngSwitchCase=\"6\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h6>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-azAD: var(--horizontal-padding)}:host{display:block;width:100%;box-sizing:border-box;padding:0 var(--horizontal-padding-SCOPED-IN-heading-azAD)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11
11
|
}
|
|
12
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeadingOrganism, decorators: [{
|
|
13
13
|
type: Component,
|
|
14
14
|
args: [{ selector: 'organisms-heading', standalone: true, imports: [
|
|
15
15
|
CommonModule,
|
|
16
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #temp><ng-content></ng-content></ng-template>\n\n<ng-container [ngSwitch]=\"level\">\n <h1 *ngSwitchDefault><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h1>\n <h2 *ngSwitchCase=\"2\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h2>\n <h3 *ngSwitchCase=\"3\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h3>\n <h4 *ngSwitchCase=\"4\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h4>\n <h5 *ngSwitchCase=\"5\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h5>\n <h6 *ngSwitchCase=\"6\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h6>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-
|
|
16
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #temp><ng-content></ng-content></ng-template>\n\n<ng-container [ngSwitch]=\"level\">\n <h1 *ngSwitchDefault><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h1>\n <h2 *ngSwitchCase=\"2\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h2>\n <h3 *ngSwitchCase=\"3\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h3>\n <h4 *ngSwitchCase=\"4\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h4>\n <h5 *ngSwitchCase=\"5\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h5>\n <h6 *ngSwitchCase=\"6\"><ng-container *ngTemplateOutlet=\"temp;\"></ng-container></h6>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-azAD: var(--horizontal-padding)}:host{display:block;width:100%;box-sizing:border-box;padding:0 var(--horizontal-padding-SCOPED-IN-heading-azAD)}\n"] }]
|
|
17
17
|
}], propDecorators: { level: [{
|
|
18
18
|
type: Input
|
|
19
19
|
}] } });
|
|
@@ -7,13 +7,13 @@ export class MessagesSectionOrganism {
|
|
|
7
7
|
this.messages = [];
|
|
8
8
|
}
|
|
9
9
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessagesSectionOrganism, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessagesSectionOrganism, isStandalone: true, selector: "organisms-messages-section", inputs: { messages: "messages" }, ngImport: i0, template: "<ng-container *ngFor=\"let message of messages\">\n <ng-container [ngSwitch]=\"message.role\">\n <div class=\"user message\" *ngSwitchCase=\"'user'\">\n <div class=\"balloon\">\n <span> {{ message.content }}</span>\n </div>\n </div>\n <div class=\"opponent message\" *ngSwitchDefault>\n <div class=\"opponent\">\n \n </div>\n <div class=\"balloon\">\n <span> {{ message.content }}</span>\n </div>\n </div>\n </ng-container>\n</ng-container>", styles: [":host{display:block;--vertical-padding: 8px;--vertical-padding-SCOPED-IN-messages-section-
|
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MessagesSectionOrganism, isStandalone: true, selector: "organisms-messages-section", inputs: { messages: "messages" }, ngImport: i0, template: "<ng-container *ngFor=\"let message of messages\">\n <ng-container [ngSwitch]=\"message.role\">\n <div class=\"user message\" *ngSwitchCase=\"'user'\">\n <div class=\"balloon\">\n <span> {{ message.content }}</span>\n </div>\n </div>\n <div class=\"opponent message\" *ngSwitchDefault>\n <div class=\"opponent\">\n \n </div>\n <div class=\"balloon\">\n <span> {{ message.content }}</span>\n </div>\n </div>\n </ng-container>\n</ng-container>", styles: [":host{display:block;--vertical-padding: 8px;--vertical-padding-SCOPED-IN-messages-section-zwQ8: var(--vertical-padding)}:host{padding:0 var(--vertical-padding-SCOPED-IN-messages-section-zwQ8)}:host .message{display:flex;flex-direction:row;margin-top:8px}:host .message.user{justify-content:flex-end}:host .message.user .balloon{outline:#3f51b5 solid 1px;background-color:#fff;color:#3f51b5}:host .message.opponent{justify-content:flex-start}:host .message.opponent .balloon{background-color:#3f51b5;color:#fff}:host .message .balloon{padding:4px;border-radius:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11
11
|
}
|
|
12
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessagesSectionOrganism, decorators: [{
|
|
13
13
|
type: Component,
|
|
14
14
|
args: [{ standalone: true, selector: 'organisms-messages-section', imports: [
|
|
15
15
|
CommonModule,
|
|
16
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngFor=\"let message of messages\">\n <ng-container [ngSwitch]=\"message.role\">\n <div class=\"user message\" *ngSwitchCase=\"'user'\">\n <div class=\"balloon\">\n <span> {{ message.content }}</span>\n </div>\n </div>\n <div class=\"opponent message\" *ngSwitchDefault>\n <div class=\"opponent\">\n \n </div>\n <div class=\"balloon\">\n <span> {{ message.content }}</span>\n </div>\n </div>\n </ng-container>\n</ng-container>", styles: [":host{display:block;--vertical-padding: 8px;--vertical-padding-SCOPED-IN-messages-section-
|
|
16
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngFor=\"let message of messages\">\n <ng-container [ngSwitch]=\"message.role\">\n <div class=\"user message\" *ngSwitchCase=\"'user'\">\n <div class=\"balloon\">\n <span> {{ message.content }}</span>\n </div>\n </div>\n <div class=\"opponent message\" *ngSwitchDefault>\n <div class=\"opponent\">\n \n </div>\n <div class=\"balloon\">\n <span> {{ message.content }}</span>\n </div>\n </div>\n </ng-container>\n</ng-container>", styles: [":host{display:block;--vertical-padding: 8px;--vertical-padding-SCOPED-IN-messages-section-zwQ8: var(--vertical-padding)}:host{padding:0 var(--vertical-padding-SCOPED-IN-messages-section-zwQ8)}:host .message{display:flex;flex-direction:row;margin-top:8px}:host .message.user{justify-content:flex-end}:host .message.user .balloon{outline:#3f51b5 solid 1px;background-color:#fff;color:#3f51b5}:host .message.opponent{justify-content:flex-start}:host .message.opponent .balloon{background-color:#3f51b5;color:#fff}:host .message .balloon{padding:4px;border-radius:8px}\n"] }]
|
|
17
17
|
}], propDecorators: { messages: [{
|
|
18
18
|
type: Input
|
|
19
19
|
}] } });
|
|
@@ -42,7 +42,7 @@ export class NavigationListOrganism extends NgAtomicComponent {
|
|
|
42
42
|
(click)="dispatch(action)"
|
|
43
43
|
></molecules-navigation-list-item>
|
|
44
44
|
</mat-selection-list>
|
|
45
|
-
`, isInline: true, styles: [":host{--primary-color: #3f51b5;--primary-color-SCOPED-IN-navigation-list-
|
|
45
|
+
`, isInline: true, styles: [":host{--primary-color: #3f51b5;--primary-color-SCOPED-IN-navigation-list-dVRS: var(--primary-color);--secondary-color: #3f51b5;--secondary-color-SCOPED-IN-navigation-list-dVRS: var(--secondary-color);--color: white;--color-SCOPED-IN-navigation-list-dVRS: var(--color)}:host{display:block;width:100%;height:100%;background:var(--primary-color-SCOPED-IN-navigation-list-dVRS);color:var(--color-SCOPED-IN-navigation-list-dVRS);box-sizing:border-box}:host .mat-list-item{height:3rem!important}:host ::ng-deep .mat-list-item .mat-list-item-content{display:flex;align-items:center;grid-gap:8px;padding-top:8px;padding-bottom:8px;cursor:pointer;color:var(--color-SCOPED-IN-navigation-list-dVRS);font-size:12px}:host ::ng-deep .mat-list-item .mat-list-text{padding-left:8px!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2.MatSelectionList, selector: "mat-selection-list", inputs: ["color", "compareWith", "multiple", "hideSingleSelectionIndicator", "disabled"], outputs: ["selectionChange"], exportAs: ["matSelectionList"] }, { kind: "component", type: NavigationListItemMolecule, selector: "molecules-navigation-list-item" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
46
46
|
}
|
|
47
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationListOrganism, decorators: [{
|
|
48
48
|
type: Component,
|
|
@@ -64,6 +64,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
64
64
|
directive: NavigationListOrganismStore,
|
|
65
65
|
inputs: ['actions'],
|
|
66
66
|
},
|
|
67
|
-
], styles: [":host{--primary-color: #3f51b5;--primary-color-SCOPED-IN-navigation-list-
|
|
67
|
+
], styles: [":host{--primary-color: #3f51b5;--primary-color-SCOPED-IN-navigation-list-dVRS: var(--primary-color);--secondary-color: #3f51b5;--secondary-color-SCOPED-IN-navigation-list-dVRS: var(--secondary-color);--color: white;--color-SCOPED-IN-navigation-list-dVRS: var(--color)}:host{display:block;width:100%;height:100%;background:var(--primary-color-SCOPED-IN-navigation-list-dVRS);color:var(--color-SCOPED-IN-navigation-list-dVRS);box-sizing:border-box}:host .mat-list-item{height:3rem!important}:host ::ng-deep .mat-list-item .mat-list-item-content{display:flex;align-items:center;grid-gap:8px;padding-top:8px;padding-bottom:8px;cursor:pointer;color:var(--color-SCOPED-IN-navigation-list-dVRS);font-size:12px}:host ::ng-deep .mat-list-item .mat-list-text{padding-left:8px!important}\n"] }]
|
|
68
68
|
}] });
|
|
69
69
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2aWdhdGlvbi1saXN0Lm9yZ2FuaXNtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdX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OOBpuOBhOOBquOBhCAtLT5cbiAgICA8bW9sZWN1bGVzLW5hdmlnYXRpb24tbGlzdC1pdGVtIGluamVjdGFibGVcbiAgICAgICpuZ0Zvcj1cImxldCBhY3Rpb24gb2Ygc3RvcmUuYWN0aW9uc1wiIFxuICAgICAgW2FjdGlvbl09XCJhY3Rpb25cIlxuICAgICAgKGNsaWNrKT1cImRpc3BhdGNoKGFjdGlvbilcIlxuICAgID48L21vbGVjdWxlcy1uYXZpZ2F0aW9uLWxpc3QtaXRlbT5cbiAgPC9tYXQtc2VsZWN0aW9uLWxpc3Q+XG4gIGAsXG4gIHN0eWxlVXJsczogWycuL25hdmlnYXRpb24tbGlzdC5vcmdhbmlzbS5zY3NzJ10sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICBob3N0RGlyZWN0aXZlczogW1xuICAgIHtcbiAgICAgIGRpcmVjdGl2ZTogTmF2aWdhdGlvbkxpc3RPcmdhbmlzbVN0b3JlLFxuICAgICAgaW5wdXRzOiBbJ2FjdGlvbnMnXSxcbiAgICB9LFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIE5hdmlnYXRpb25MaXN0T3JnYW5pc20gZXh0ZW5kcyBOZ0F0b21pY0NvbXBvbmVudCB7XG4gIHByb3RlY3RlZCBzdG9yZSA9IGluamVjdChOYXZpZ2F0aW9uTGlzdE9yZ2FuaXNtU3RvcmUpO1xufVxuIl19
|
|
@@ -33,7 +33,7 @@ export class NavigatorOrganism extends NgAtomicComponent {
|
|
|
33
33
|
></atoms-smart-menu-button>
|
|
34
34
|
</div>
|
|
35
35
|
</mat-toolbar>
|
|
36
|
-
`, isInline: true, styles: [":host{--height: 64px;--height-SCOPED-IN-navigator-
|
|
36
|
+
`, isInline: true, styles: [":host{--height: 64px;--height-SCOPED-IN-navigator-jcD5: var(--height);--primary-color: #012148;--primary-color-SCOPED-IN-navigator-jcD5: var(--primary-color)}:host{display:block;width:100%;height:var(--height-SCOPED-IN-navigator-jcD5)}:host mat-toolbar{display:flex;width:100%;height:100%;background-color:var(--primary-color-SCOPED-IN-navigator-jcD5);justify-content:space-between;align-items:center}:host div{display:flex;justify-content:center;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: SmartMenuButtonAtom, selector: "atoms-smart-menu-button", inputs: ["actions"], outputs: ["action"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
37
37
|
}
|
|
38
38
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigatorOrganism, decorators: [{
|
|
39
39
|
type: Component,
|
|
@@ -61,7 +61,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
61
61
|
></atoms-smart-menu-button>
|
|
62
62
|
</div>
|
|
63
63
|
</mat-toolbar>
|
|
64
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--height: 64px;--height-SCOPED-IN-navigator-
|
|
64
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--height: 64px;--height-SCOPED-IN-navigator-jcD5: var(--height);--primary-color: #012148;--primary-color-SCOPED-IN-navigator-jcD5: var(--primary-color)}:host{display:block;width:100%;height:var(--height-SCOPED-IN-navigator-jcD5)}:host mat-toolbar{display:flex;width:100%;height:100%;background-color:var(--primary-color-SCOPED-IN-navigator-jcD5);justify-content:space-between;align-items:center}:host div{display:flex;justify-content:center;align-items:center}\n"] }]
|
|
65
65
|
}], propDecorators: { startActions: [{
|
|
66
66
|
type: Input
|
|
67
67
|
}], endActions: [{
|
|
@@ -10,14 +10,14 @@ export class SelectInputSectionOrganism {
|
|
|
10
10
|
this.options = [];
|
|
11
11
|
}
|
|
12
12
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectInputSectionOrganism, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SelectInputSectionOrganism, isStandalone: true, selector: "organisms-select-input-section", inputs: { label: "label", control: "control", options: "options" }, ngImport: i0, template: "<molecules-select-input-field\n [label]=\"label\"\n [control]=\"control\"\n [options]=\"options\"\n></molecules-select-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-section-
|
|
13
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SelectInputSectionOrganism, isStandalone: true, selector: "organisms-select-input-section", inputs: { label: "label", control: "control", options: "options" }, ngImport: i0, template: "<molecules-select-input-field\n [label]=\"label\"\n [control]=\"control\"\n [options]=\"options\"\n></molecules-select-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-section-H3rS: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-select-input-section-H3rS);box-sizing:border-box}:host .molecule.input-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: SelectInputFieldMolecule, selector: "molecules-select-input-field", inputs: ["label", "appearance", "control", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14
14
|
}
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectInputSectionOrganism, decorators: [{
|
|
16
16
|
type: Component,
|
|
17
17
|
args: [{ selector: 'organisms-select-input-section', standalone: true, imports: [
|
|
18
18
|
CommonModule,
|
|
19
19
|
SelectInputFieldMolecule,
|
|
20
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-select-input-field\n [label]=\"label\"\n [control]=\"control\"\n [options]=\"options\"\n></molecules-select-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-section-
|
|
20
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-select-input-field\n [label]=\"label\"\n [control]=\"control\"\n [options]=\"options\"\n></molecules-select-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-section-H3rS: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-select-input-section-H3rS);box-sizing:border-box}:host .molecule.input-field{width:100%}\n"] }]
|
|
21
21
|
}], propDecorators: { label: [{
|
|
22
22
|
type: Input
|
|
23
23
|
}], control: [{
|
|
@@ -9,28 +9,36 @@ import { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';
|
|
|
9
9
|
import { NgAtomicComponent } from '@ng-atomic/core';
|
|
10
10
|
import { KeysPipe } from '@ng-atomic/common/pipes/keys';
|
|
11
11
|
import { GroupedByPipe } from '@ng-atomic/common/pipes/grouped-by';
|
|
12
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
13
|
+
import { ActionsPipe } from '@ng-atomic/common/pipes/actions';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
13
15
|
import * as i1 from "@angular/common";
|
|
14
16
|
import * as i2 from "@angular/material/list";
|
|
15
17
|
import * as i3 from "@angular/material/divider";
|
|
16
|
-
import * as i4 from "@angular/material/
|
|
17
|
-
import * as i5 from "@angular/material/
|
|
18
|
+
import * as i4 from "@angular/material/icon";
|
|
19
|
+
import * as i5 from "@angular/material/button";
|
|
20
|
+
import * as i6 from "@angular/material/tooltip";
|
|
21
|
+
import * as i7 from "@angular/material/core";
|
|
18
22
|
export var ActionId;
|
|
19
23
|
(function (ActionId) {
|
|
20
24
|
ActionId["CLICK_ITEM"] = "[@ng-atomic/components/organisms/smart-list] Click Item";
|
|
25
|
+
ActionId["ITEM_BUTTON_CLICK"] = "[@ng-atomic/components/organisms/smart-list] Item Button Click";
|
|
21
26
|
})(ActionId || (ActionId = {}));
|
|
22
27
|
export class SmartListOrganismStore {
|
|
23
28
|
constructor() {
|
|
24
29
|
this.items = [];
|
|
30
|
+
this.itemActions = [];
|
|
25
31
|
}
|
|
26
32
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartListOrganismStore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
27
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SmartListOrganismStore, isStandalone: true, inputs: { items: "items", groupedBy: "groupedBy", groupKeys: "groupKeys" }, ngImport: i0 }); }
|
|
33
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SmartListOrganismStore, isStandalone: true, inputs: { items: "items", itemActions: "itemActions", groupedBy: "groupedBy", groupKeys: "groupKeys" }, ngImport: i0 }); }
|
|
28
34
|
}
|
|
29
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartListOrganismStore, decorators: [{
|
|
30
36
|
type: Directive,
|
|
31
37
|
args: [{ standalone: true }]
|
|
32
38
|
}], propDecorators: { items: [{
|
|
33
39
|
type: Input
|
|
40
|
+
}], itemActions: [{
|
|
41
|
+
type: Input
|
|
34
42
|
}], groupedBy: [{
|
|
35
43
|
type: Input
|
|
36
44
|
}], groupKeys: [{
|
|
@@ -48,44 +56,52 @@ export class SmartListOrganism extends NgAtomicComponent {
|
|
|
48
56
|
onItemClick(item) {
|
|
49
57
|
this.dispatch({ id: ActionId.CLICK_ITEM, payload: item });
|
|
50
58
|
}
|
|
59
|
+
onItemActionsClick(item, $event) {
|
|
60
|
+
$event.stopPropagation();
|
|
61
|
+
$event.preventDefault();
|
|
62
|
+
this.dispatch({ id: ActionId.ITEM_BUTTON_CLICK, payload: item });
|
|
63
|
+
}
|
|
51
64
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartListOrganism, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
52
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SmartListOrganism, isStandalone: true, selector: "organisms-smart-list", usesInheritance: true, hostDirectives: [{ directive: SmartListOrganismStore, inputs: ["items", "items", "groupedBy", "groupedBy", "groupKeys", "groupKeys"] }], ngImport: i0, template: `
|
|
65
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SmartListOrganism, isStandalone: true, selector: "organisms-smart-list", usesInheritance: true, hostDirectives: [{ directive: SmartListOrganismStore, inputs: ["items", "items", "itemActions", "itemActions", "groupedBy", "groupedBy", "groupKeys", "groupKeys"] }], ngImport: i0, template: `
|
|
53
66
|
<mat-list *ngIf="store.groupedBy">
|
|
54
67
|
<ng-container *ngFor="let key of store.groupKeys ?? (store.items | groupedBy:store.groupedBy | keys); trackBy: trackByItem;">
|
|
55
68
|
<div mat-subheader>{{ key }}</div>
|
|
56
69
|
<ng-container *ngFor="let item of (store.items | groupedBy:store.groupedBy)[key]; trackBy: trackById">
|
|
57
|
-
<
|
|
58
|
-
<span
|
|
59
|
-
matListItemTitle
|
|
60
|
-
[matTooltip]="item | dataAccessor:'title'"
|
|
61
|
-
>
|
|
62
|
-
{{ item | dataAccessor:'title' }}
|
|
63
|
-
</span>
|
|
64
|
-
<span matListItemLine>
|
|
65
|
-
{{ item | dataAccessor:'description' }}
|
|
66
|
-
</span>
|
|
67
|
-
</mat-list-item>
|
|
70
|
+
<ng-container *ngTemplateOutlet="listItem; context: {$implicit: item}"></ng-container>
|
|
68
71
|
</ng-container>
|
|
69
72
|
<mat-divider></mat-divider>
|
|
70
73
|
</ng-container>
|
|
71
74
|
</mat-list>
|
|
72
75
|
<mat-list *ngIf="!store.groupedBy">
|
|
73
76
|
<ng-container *ngFor="let item of store.items; trackBy: trackById">
|
|
74
|
-
<
|
|
75
|
-
<span
|
|
76
|
-
matListItemTitle
|
|
77
|
-
[matTooltip]="item | dataAccessor:'title'"
|
|
78
|
-
>
|
|
79
|
-
{{ item | dataAccessor:'title' }}
|
|
80
|
-
</span>
|
|
81
|
-
<span matListItemLine>
|
|
82
|
-
{{ item | dataAccessor:'description' }}
|
|
83
|
-
</span>
|
|
84
|
-
</mat-list-item>
|
|
77
|
+
<ng-container *ngTemplateOutlet="listItem; context: {$implicit: item}"></ng-container>
|
|
85
78
|
<mat-divider></mat-divider>
|
|
86
79
|
</ng-container>
|
|
87
80
|
</mat-list>
|
|
88
|
-
|
|
81
|
+
|
|
82
|
+
<ng-template #listItem let-item>
|
|
83
|
+
<mat-list-item lines="2" matRipple (click)="onItemClick(item)">
|
|
84
|
+
<span
|
|
85
|
+
matListItemTitle
|
|
86
|
+
[matTooltip]="item | dataAccessor:'title'"
|
|
87
|
+
>
|
|
88
|
+
{{ item | dataAccessor:'title' }}
|
|
89
|
+
</span>
|
|
90
|
+
<span matListItemLine>
|
|
91
|
+
{{ item | dataAccessor:'description' }}
|
|
92
|
+
</span>
|
|
93
|
+
<ng-container *ngIf="(store.itemActions | resolveActions:item) as actions" matListItemMeta>
|
|
94
|
+
<button
|
|
95
|
+
*ngIf="actions.length"
|
|
96
|
+
mat-icon-button
|
|
97
|
+
(click)="onItemActionsClick(item, $event)"
|
|
98
|
+
>
|
|
99
|
+
<mat-icon>menu</mat-icon>
|
|
100
|
+
</button>
|
|
101
|
+
</ng-container>
|
|
102
|
+
</mat-list-item>
|
|
103
|
+
</ng-template>
|
|
104
|
+
`, isInline: true, styles: [":host{display:block}:host{display:block;flex-direction:unset;font-size:14px;height:100%}:host mat-list-item{cursor:pointer}:host mat-list .mdc-list-group__subheader{font-size:14px;line-height:1em;margin:.75rem 16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i2.MatListSubheaderCssMatStyler, selector: "[mat-subheader], [matSubheader]" }, { kind: "component", type: i3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: i2.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i2.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i2.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatRippleModule }, { kind: "directive", type: i7.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "pipe", type: DataAccessorPipe, name: "dataAccessor" }, { kind: "pipe", type: ActionsPipe, name: "resolveActions" }, { kind: "pipe", type: GroupedByPipe, name: "groupedBy" }, { kind: "pipe", type: KeysPipe, name: "keys" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
89
105
|
}
|
|
90
106
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartListOrganism, decorators: [{
|
|
91
107
|
type: Component,
|
|
@@ -93,9 +109,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
93
109
|
CommonModule,
|
|
94
110
|
MatListModule,
|
|
95
111
|
MatIconModule,
|
|
112
|
+
MatButtonModule,
|
|
96
113
|
MatTooltipModule,
|
|
97
114
|
MatRippleModule,
|
|
98
115
|
DataAccessorPipe,
|
|
116
|
+
ActionsPipe,
|
|
99
117
|
GroupedByPipe,
|
|
100
118
|
KeysPipe,
|
|
101
119
|
], template: `
|
|
@@ -103,42 +121,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
103
121
|
<ng-container *ngFor="let key of store.groupKeys ?? (store.items | groupedBy:store.groupedBy | keys); trackBy: trackByItem;">
|
|
104
122
|
<div mat-subheader>{{ key }}</div>
|
|
105
123
|
<ng-container *ngFor="let item of (store.items | groupedBy:store.groupedBy)[key]; trackBy: trackById">
|
|
106
|
-
<
|
|
107
|
-
<span
|
|
108
|
-
matListItemTitle
|
|
109
|
-
[matTooltip]="item | dataAccessor:'title'"
|
|
110
|
-
>
|
|
111
|
-
{{ item | dataAccessor:'title' }}
|
|
112
|
-
</span>
|
|
113
|
-
<span matListItemLine>
|
|
114
|
-
{{ item | dataAccessor:'description' }}
|
|
115
|
-
</span>
|
|
116
|
-
</mat-list-item>
|
|
124
|
+
<ng-container *ngTemplateOutlet="listItem; context: {$implicit: item}"></ng-container>
|
|
117
125
|
</ng-container>
|
|
118
126
|
<mat-divider></mat-divider>
|
|
119
127
|
</ng-container>
|
|
120
128
|
</mat-list>
|
|
121
129
|
<mat-list *ngIf="!store.groupedBy">
|
|
122
130
|
<ng-container *ngFor="let item of store.items; trackBy: trackById">
|
|
123
|
-
<
|
|
124
|
-
<span
|
|
125
|
-
matListItemTitle
|
|
126
|
-
[matTooltip]="item | dataAccessor:'title'"
|
|
127
|
-
>
|
|
128
|
-
{{ item | dataAccessor:'title' }}
|
|
129
|
-
</span>
|
|
130
|
-
<span matListItemLine>
|
|
131
|
-
{{ item | dataAccessor:'description' }}
|
|
132
|
-
</span>
|
|
133
|
-
</mat-list-item>
|
|
131
|
+
<ng-container *ngTemplateOutlet="listItem; context: {$implicit: item}"></ng-container>
|
|
134
132
|
<mat-divider></mat-divider>
|
|
135
133
|
</ng-container>
|
|
136
134
|
</mat-list>
|
|
135
|
+
|
|
136
|
+
<ng-template #listItem let-item>
|
|
137
|
+
<mat-list-item lines="2" matRipple (click)="onItemClick(item)">
|
|
138
|
+
<span
|
|
139
|
+
matListItemTitle
|
|
140
|
+
[matTooltip]="item | dataAccessor:'title'"
|
|
141
|
+
>
|
|
142
|
+
{{ item | dataAccessor:'title' }}
|
|
143
|
+
</span>
|
|
144
|
+
<span matListItemLine>
|
|
145
|
+
{{ item | dataAccessor:'description' }}
|
|
146
|
+
</span>
|
|
147
|
+
<ng-container *ngIf="(store.itemActions | resolveActions:item) as actions" matListItemMeta>
|
|
148
|
+
<button
|
|
149
|
+
*ngIf="actions.length"
|
|
150
|
+
mat-icon-button
|
|
151
|
+
(click)="onItemActionsClick(item, $event)"
|
|
152
|
+
>
|
|
153
|
+
<mat-icon>menu</mat-icon>
|
|
154
|
+
</button>
|
|
155
|
+
</ng-container>
|
|
156
|
+
</mat-list-item>
|
|
157
|
+
</ng-template>
|
|
137
158
|
`, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
|
|
138
159
|
{
|
|
139
160
|
directive: SmartListOrganismStore,
|
|
140
|
-
inputs: ['items', 'groupedBy', 'groupKeys'],
|
|
161
|
+
inputs: ['items', 'itemActions', 'groupedBy', 'groupKeys'],
|
|
141
162
|
},
|
|
142
163
|
], styles: [":host{display:block}:host{display:block;flex-direction:unset;font-size:14px;height:100%}:host mat-list-item{cursor:pointer}:host mat-list .mdc-list-group__subheader{font-size:14px;line-height:1em;margin:.75rem 16px}\n"] }]
|
|
143
164
|
}] });
|
|
144
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
165
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtbGlzdC5vcmdhbmlzbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BuZy1hdG9taWMvY29tcG9uZW50cy9zcmMvbGliL29yZ2FuaXNtcy9zbWFydC1saXN0L3NtYXJ0LWxpc3Qub3JnYW5pc20udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RixPQUFPLEVBQUUsYUFBYSxFQUFFLG1CQUFtQixFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDM0YsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUN2RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUM3RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0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jdGVkIHJlYWRvbmx5IHRyYWNrQnlJdGVtID0gKF86IG51bWJlciwgaXRlbTogVCkgPT4gaXRlbTtcbiAgcHJvdGVjdGVkIHJlYWRvbmx5IHRyYWNrQnlJZCA9IChfOiBudW1iZXIsIGl0ZW06IFQpID0+IHRoaXMuZGF0YUFjY2Vzc29yKGl0ZW0sICdpZCcpO1xuXG4gIHByb3RlY3RlZCBvbkl0ZW1DbGljayhpdGVtOiBUKSB7XG4gICAgdGhpcy5kaXNwYXRjaCh7aWQ6IEFjdGlvbklkLkNMSUNLX0lURU0sIHBheWxvYWQ6IGl0ZW19KTtcbiAgfVxuXG4gIHByb3RlY3RlZCBvbkl0ZW1BY3Rpb25zQ2xpY2soaXRlbTogVCwgJGV2ZW50OiBFdmVudCkge1xuICAgICRldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICAkZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICB0aGlzLmRpc3BhdGNoKHtpZDogQWN0aW9uSWQuSVRFTV9CVVRUT05fQ0xJQ0ssIHBheWxvYWQ6IGl0ZW19KTtcbiAgfVxufVxuIl19
|
|
@@ -124,7 +124,7 @@ export class SmartTableOrganism {
|
|
|
124
124
|
<tr mat-row *matRowDef="let item; columns: (columns | resolveColumns | get:'name');"></tr>
|
|
125
125
|
<div class="mat-row" *matNoDataRow>No Data</div>
|
|
126
126
|
</table>
|
|
127
|
-
`, isInline: true, styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-
|
|
127
|
+
`, isInline: true, styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-FU0w: var(--width);--cell: 8px;--cell-SCOPED-IN-smart-table-FU0w: var(--cell);--column-vertical-padding: 4px;--column-vertical-padding-SCOPED-IN-smart-table-FU0w: var(--column-vertical-padding)}:host{position:relative;display:block;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-FU0w)}:host .no-data-message{display:flex;justify-content:flex-start;align-items:center;width:calc(var(--width-SCOPED-IN-smart-table-FU0w) - var(--cell-SCOPED-IN-smart-table-FU0w) * 4);height:3em;padding-left:calc(var(--cell-SCOPED-IN-smart-table-FU0w) * 2);padding-right:calc(var(--cell-SCOPED-IN-smart-table-FU0w) * 2)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: DomainPipe, name: "domain" }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i2.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "component", type: i2.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i2.MatNoDataRow, selector: "ng-template[matNoDataRow]" }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "ngmodule", type: MatMenuModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: ActionsColumnMolecule, selector: "molecules-actions-column", inputs: ["name", "itemActions"], outputs: ["action"] }, { kind: "component", type: CheckboxColumnMolecule, selector: "molecules-checkbox-column", inputs: ["name", "selection"], outputs: ["checkboxClick"] }, { kind: "component", type: SmartColumnMolecule, selector: "molecules-smart-column", inputs: ["sort"], outputs: ["headerClick"] }, { kind: "component", type: TreeColumnMolecule, selector: "molecules-tree-column", inputs: ["sort", "treeControl"], outputs: ["headerClick"] }, { kind: "pipe", type: ResolveColumnsPipe, name: "resolveColumns" }, { kind: "pipe", type: GetPipe, name: "get" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
128
128
|
}
|
|
129
129
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartTableOrganism, decorators: [{
|
|
130
130
|
type: Component,
|
|
@@ -182,7 +182,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
182
182
|
<tr mat-row *matRowDef="let item; columns: (columns | resolveColumns | get:'name');"></tr>
|
|
183
183
|
<div class="mat-row" *matNoDataRow>No Data</div>
|
|
184
184
|
</table>
|
|
185
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism' }, styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-
|
|
185
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism' }, styles: [":host{--width: 100%;--width-SCOPED-IN-smart-table-FU0w: var(--width);--cell: 8px;--cell-SCOPED-IN-smart-table-FU0w: var(--cell);--column-vertical-padding: 4px;--column-vertical-padding-SCOPED-IN-smart-table-FU0w: var(--column-vertical-padding)}:host{position:relative;display:block;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-FU0w)}:host .no-data-message{display:flex;justify-content:flex-start;align-items:center;width:calc(var(--width-SCOPED-IN-smart-table-FU0w) - var(--cell-SCOPED-IN-smart-table-FU0w) * 4);height:3em;padding-left:calc(var(--cell-SCOPED-IN-smart-table-FU0w) * 2);padding-right:calc(var(--cell-SCOPED-IN-smart-table-FU0w) * 2)}\n"] }]
|
|
186
186
|
}], propDecorators: { _columns: [{
|
|
187
187
|
type: Input,
|
|
188
188
|
args: ['columns']
|
|
@@ -8,14 +8,14 @@ export class SocialLoginSectionOrganism {
|
|
|
8
8
|
this.signInWithGoogleButtonClick = new EventEmitter();
|
|
9
9
|
}
|
|
10
10
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SocialLoginSectionOrganism, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SocialLoginSectionOrganism, isStandalone: true, selector: "organisms-social-login-section", outputs: { signInWithGoogleButtonClick: "signInWithGoogleButtonClick" }, ngImport: i0, 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-
|
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SocialLoginSectionOrganism, isStandalone: true, selector: "organisms-social-login-section", outputs: { signInWithGoogleButtonClick: "signInWithGoogleButtonClick" }, ngImport: i0, 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-wWdY: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-heading-wWdY);box-sizing:border-box}:host button{width:100%;height:56px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12
12
|
}
|
|
13
13
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SocialLoginSectionOrganism, decorators: [{
|
|
14
14
|
type: Component,
|
|
15
15
|
args: [{ selector: 'organisms-social-login-section', standalone: true, imports: [
|
|
16
16
|
CommonModule,
|
|
17
17
|
MatButtonModule,
|
|
18
|
-
], 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-
|
|
18
|
+
], 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-wWdY: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-heading-wWdY);box-sizing:border-box}:host button{width:100%;height:56px}\n"] }]
|
|
19
19
|
}], propDecorators: { signInWithGoogleButtonClick: [{
|
|
20
20
|
type: Output
|
|
21
21
|
}] } });
|
|
@@ -20,7 +20,7 @@ export class TextInputSectionOrganism {
|
|
|
20
20
|
[placeholder]="placeholder"
|
|
21
21
|
[hint]="hint"
|
|
22
22
|
[autoComplete]="autoComplete"
|
|
23
|
-
></molecules-text-input-field>`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-
|
|
23
|
+
></molecules-text-input-field>`, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-v4M0: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-v4M0);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: TextInputFieldMolecule, selector: "molecules-text-input-field" }] }); }
|
|
24
24
|
}
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextInputSectionOrganism, decorators: [{
|
|
26
26
|
type: Component,
|
|
@@ -35,7 +35,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
35
35
|
[placeholder]="placeholder"
|
|
36
36
|
[hint]="hint"
|
|
37
37
|
[autoComplete]="autoComplete"
|
|
38
|
-
></molecules-text-input-field>`, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-
|
|
38
|
+
></molecules-text-input-field>`, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-v4M0: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-v4M0);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"] }]
|
|
39
39
|
}], propDecorators: { label: [{
|
|
40
40
|
type: Input
|
|
41
41
|
}], placeholder: [{
|
|
@@ -20,7 +20,7 @@ export class TextareaSectionOrganism {
|
|
|
20
20
|
[rows]="rows"
|
|
21
21
|
[placeholder]="placeholder"
|
|
22
22
|
(action)="action.emit($event)"
|
|
23
|
-
></molecules-textarea-field>`, isInline: true, styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-textarea-section-
|
|
23
|
+
></molecules-textarea-field>`, isInline: true, styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-textarea-section-iqaL: var(--vertical-padding)}:host{display:block;padding:0 var(--vertical-padding-SCOPED-IN-textarea-section-iqaL);box-sizing:border-box}:host molecules-textarea-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: TextareaFieldMolecule, selector: "molecules-textarea-field", inputs: ["label", "hint", "placeholder", "control", "rows"], outputs: ["action"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
24
24
|
}
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextareaSectionOrganism, decorators: [{
|
|
26
26
|
type: Component,
|
|
@@ -35,7 +35,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
35
35
|
[rows]="rows"
|
|
36
36
|
[placeholder]="placeholder"
|
|
37
37
|
(action)="action.emit($event)"
|
|
38
|
-
></molecules-textarea-field>`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-textarea-section-
|
|
38
|
+
></molecules-textarea-field>`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--vertical-padding: 16px;--vertical-padding-SCOPED-IN-textarea-section-iqaL: var(--vertical-padding)}:host{display:block;padding:0 var(--vertical-padding-SCOPED-IN-textarea-section-iqaL);box-sizing:border-box}:host molecules-textarea-field{width:100%}\n"] }]
|
|
39
39
|
}], propDecorators: { label: [{
|
|
40
40
|
type: Input
|
|
41
41
|
}], rows: [{
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
3
|
+
import { MatBottomSheetRef, MAT_BOTTOM_SHEET_DATA } from '@angular/material/bottom-sheet';
|
|
4
|
+
import { MatListModule } from '@angular/material/list';
|
|
5
|
+
import { NgAtomicComponent } from '@ng-atomic/core';
|
|
6
|
+
import { IconAtom } from '@ng-atomic/components/atoms/icon';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@angular/common";
|
|
9
|
+
import * as i2 from "@angular/material/list";
|
|
10
|
+
export class ActionsSheet extends NgAtomicComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.actions = inject(MAT_BOTTOM_SHEET_DATA);
|
|
14
|
+
this.sheetRef = inject((MatBottomSheetRef));
|
|
15
|
+
}
|
|
16
|
+
onItemClick(action) {
|
|
17
|
+
this.dispatch(action, 'root');
|
|
18
|
+
this.sheetRef.dismiss(action);
|
|
19
|
+
}
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsSheet, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionsSheet, isStandalone: true, selector: "sheets-actions", usesInheritance: true, ngImport: i0, template: `
|
|
22
|
+
<mat-action-list>
|
|
23
|
+
<button mat-list-item *ngFor="let action of actions" (click)="onItemClick(action)">
|
|
24
|
+
<atoms-icon matListItemIcon [name]="action.icon" [color]="action.color"></atoms-icon>
|
|
25
|
+
<div matListItemTitle [style.color]="action.color">{{ action.name }}</div>
|
|
26
|
+
</button>
|
|
27
|
+
</mat-action-list>
|
|
28
|
+
`, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2.MatActionList, selector: "mat-action-list", exportAs: ["matActionList"] }, { kind: "component", type: i2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i2.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i2.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "component", type: IconAtom, selector: "atoms-icon", inputs: ["name", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsSheet, decorators: [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{ selector: 'sheets-actions', standalone: true, imports: [
|
|
33
|
+
CommonModule,
|
|
34
|
+
MatListModule,
|
|
35
|
+
IconAtom,
|
|
36
|
+
], template: `
|
|
37
|
+
<mat-action-list>
|
|
38
|
+
<button mat-list-item *ngFor="let action of actions" (click)="onItemClick(action)">
|
|
39
|
+
<atoms-icon matListItemIcon [name]="action.icon" [color]="action.color"></atoms-icon>
|
|
40
|
+
<div matListItemTitle [style.color]="action.color">{{ action.name }}</div>
|
|
41
|
+
</button>
|
|
42
|
+
</mat-action-list>
|
|
43
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush }]
|
|
44
|
+
}] });
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9ucy5zaGVldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BuZy1hdG9taWMvY29tcG9uZW50cy9zcmMvbGliL3NoZWV0cy9hY3Rpb25zL2FjdGlvbnMuc2hlZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FB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