@ng-atomic/components 3.3.0 → 3.6.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/atoms/smart-menu-button/smart-menu-button.atom.d.ts +4 -4
- package/atoms/smart-menu-button/smart-menu-button.atom.d.ts.map +1 -1
- package/esm2020/atoms/icon/icon.atom.mjs +2 -2
- package/esm2020/atoms/smart-menu-button/smart-menu-button.atom.mjs +16 -15
- 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.animations.mjs +14 -17
- package/esm2020/frames/line-up/line-up.frame.mjs +76 -39
- package/esm2020/frames/line-up/line-up.module.mjs +1 -1
- package/esm2020/frames/line-up/resize-observer.mjs +7 -21
- package/esm2020/frames/overlay/overlay.animations.mjs +4 -4
- package/esm2020/frames/overlay/overlay.frame.mjs +16 -32
- package/esm2020/frames/scroll/scroll.frame.mjs +2 -2
- package/esm2020/frames/smart-menu/smart-menu.frame.mjs +2 -2
- package/esm2020/molecules/actions-column/actions-column.molecule.mjs +9 -9
- package/esm2020/molecules/chips-input-field/chips-input-field.molecule.mjs +7 -4
- package/esm2020/molecules/date-input-field/date-input-field.molecule.mjs +2 -2
- package/esm2020/molecules/header/header.module.mjs +27 -0
- package/esm2020/molecules/header/header.molecule.mjs +32 -0
- package/esm2020/molecules/header/index.mjs +3 -0
- package/esm2020/molecules/header/ng-atomic-components-molecules-header.mjs +5 -0
- package/esm2020/molecules/select-input-field/select-input-field.molecule.mjs +2 -2
- package/esm2020/organisms/action-buttons-section/action-buttons-section.organism.mjs +10 -10
- package/esm2020/organisms/back-navigator/back-navigator.organism.mjs +10 -10
- 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 +3 -3
- package/esm2020/organisms/navigator/navigator.organism.mjs +37 -42
- package/esm2020/organisms/paginator/paginator.organism.mjs +5 -5
- package/esm2020/organisms/select-input-section/select-input-section.organism.mjs +2 -2
- package/esm2020/organisms/smart-table/smart-table.organism.mjs +11 -10
- package/esm2020/organisms/social-login-section/social-login-section.organism.mjs +2 -2
- package/esm2020/organisms/text-input-section/text-input-section.organism.mjs +2 -2
- package/esm2020/organisms/textarea-section/textarea-section.organism.mjs +2 -2
- package/esm2020/organisms/top-navigator/top-navigator.organism.mjs +10 -10
- package/esm2020/templates/entrance/entrance.template.mjs +5 -5
- package/esm2020/templates/menu/menu.template.mjs +3 -3
- package/esm2020/templates/smart-crud/smart-crud.module.mjs +13 -6
- package/esm2020/templates/smart-crud/smart-crud.template.mjs +63 -51
- package/esm2020/templates/smart-index/smart-index.module.mjs +12 -5
- package/esm2020/templates/smart-index/smart-index.template.mjs +42 -26
- package/fesm2015/ng-atomic-components-atoms-icon.mjs +2 -2
- package/fesm2015/ng-atomic-components-atoms-icon.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-atoms-smart-menu-button.mjs +15 -14
- package/fesm2015/ng-atomic-components-atoms-smart-menu-button.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-frames-auto-layout.mjs +2 -2
- package/fesm2015/ng-atomic-components-frames-drawer.mjs +2 -2
- package/fesm2015/ng-atomic-components-frames-line-up.mjs +94 -74
- package/fesm2015/ng-atomic-components-frames-line-up.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-frames-overlay.mjs +17 -35
- package/fesm2015/ng-atomic-components-frames-overlay.mjs.map +1 -1
- 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-actions-column.mjs +8 -8
- package/fesm2015/ng-atomic-components-molecules-actions-column.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-molecules-chips-input-field.mjs +6 -3
- package/fesm2015/ng-atomic-components-molecules-chips-input-field.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-molecules-date-input-field.mjs +2 -2
- package/fesm2015/ng-atomic-components-molecules-header.mjs +70 -0
- package/fesm2015/ng-atomic-components-molecules-header.mjs.map +1 -0
- package/fesm2015/ng-atomic-components-molecules-select-input-field.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-action-buttons-section.mjs +9 -9
- package/fesm2015/ng-atomic-components-organisms-action-buttons-section.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-back-navigator.mjs +9 -9
- package/fesm2015/ng-atomic-components-organisms-back-navigator.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-card-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-date-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-heading.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-navigation-list.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-navigator.mjs +41 -42
- package/fesm2015/ng-atomic-components-organisms-navigator.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-paginator.mjs +4 -4
- package/fesm2015/ng-atomic-components-organisms-paginator.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-smart-table.mjs +10 -9
- package/fesm2015/ng-atomic-components-organisms-smart-table.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-text-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-top-navigator.mjs +9 -9
- package/fesm2015/ng-atomic-components-organisms-top-navigator.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-templates-entrance.mjs +4 -4
- 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 +75 -56
- package/fesm2015/ng-atomic-components-templates-smart-crud.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-templates-smart-index.mjs +53 -30
- package/fesm2015/ng-atomic-components-templates-smart-index.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-atoms-icon.mjs +2 -2
- package/fesm2020/ng-atomic-components-atoms-icon.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-atoms-smart-menu-button.mjs +15 -14
- package/fesm2020/ng-atomic-components-atoms-smart-menu-button.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-frames-auto-layout.mjs +2 -2
- package/fesm2020/ng-atomic-components-frames-drawer.mjs +2 -2
- package/fesm2020/ng-atomic-components-frames-line-up.mjs +93 -74
- package/fesm2020/ng-atomic-components-frames-line-up.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-frames-overlay.mjs +17 -33
- package/fesm2020/ng-atomic-components-frames-overlay.mjs.map +1 -1
- 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-actions-column.mjs +8 -8
- package/fesm2020/ng-atomic-components-molecules-actions-column.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-molecules-chips-input-field.mjs +6 -3
- package/fesm2020/ng-atomic-components-molecules-chips-input-field.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-molecules-date-input-field.mjs +2 -2
- package/fesm2020/ng-atomic-components-molecules-header.mjs +63 -0
- package/fesm2020/ng-atomic-components-molecules-header.mjs.map +1 -0
- package/fesm2020/ng-atomic-components-molecules-select-input-field.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-action-buttons-section.mjs +9 -9
- package/fesm2020/ng-atomic-components-organisms-action-buttons-section.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-back-navigator.mjs +9 -9
- package/fesm2020/ng-atomic-components-organisms-back-navigator.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-card-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-date-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-heading.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-navigation-list.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-navigator.mjs +37 -42
- package/fesm2020/ng-atomic-components-organisms-navigator.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-paginator.mjs +4 -4
- package/fesm2020/ng-atomic-components-organisms-paginator.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-smart-table.mjs +10 -9
- package/fesm2020/ng-atomic-components-organisms-smart-table.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-text-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-top-navigator.mjs +9 -9
- package/fesm2020/ng-atomic-components-organisms-top-navigator.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-templates-entrance.mjs +4 -4
- 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 +75 -56
- package/fesm2020/ng-atomic-components-templates-smart-crud.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-templates-smart-index.mjs +53 -30
- package/fesm2020/ng-atomic-components-templates-smart-index.mjs.map +1 -1
- package/frames/line-up/line-up.animations.d.ts.map +1 -1
- package/frames/line-up/line-up.frame.d.ts +30 -17
- package/frames/line-up/line-up.frame.d.ts.map +1 -1
- package/frames/line-up/resize-observer.d.ts +2 -15
- package/frames/line-up/resize-observer.d.ts.map +1 -1
- package/frames/overlay/overlay.animations.d.ts +1 -1
- package/frames/overlay/overlay.animations.d.ts.map +1 -1
- package/frames/overlay/overlay.frame.d.ts +2 -5
- package/frames/overlay/overlay.frame.d.ts.map +1 -1
- package/molecules/actions-column/actions-column.molecule.d.ts +4 -4
- package/molecules/actions-column/actions-column.molecule.d.ts.map +1 -1
- package/molecules/chips-input-field/chips-input-field.molecule.d.ts +2 -1
- package/molecules/chips-input-field/chips-input-field.molecule.d.ts.map +1 -1
- package/molecules/header/header.module.d.ts +9 -0
- package/molecules/header/header.module.d.ts.map +1 -0
- package/molecules/header/header.molecule.d.ts +8 -0
- package/molecules/header/header.molecule.d.ts.map +1 -0
- package/molecules/header/index.d.ts +3 -0
- package/molecules/header/index.d.ts.map +1 -0
- package/molecules/header/ng-atomic-components-molecules-header.d.ts +6 -0
- package/molecules/header/ng-atomic-components-molecules-header.d.ts.map +1 -0
- package/molecules/header/package.json +10 -0
- package/organisms/action-buttons-section/action-buttons-section.organism.d.ts +5 -5
- package/organisms/action-buttons-section/action-buttons-section.organism.d.ts.map +1 -1
- package/organisms/back-navigator/back-navigator.organism.d.ts +4 -4
- package/organisms/back-navigator/back-navigator.organism.d.ts.map +1 -1
- package/organisms/navigation-list/navigation-list.organism.d.ts +1 -1
- package/organisms/navigation-list/navigation-list.organism.d.ts.map +1 -1
- package/organisms/navigator/navigator.organism.d.ts +5 -8
- package/organisms/navigator/navigator.organism.d.ts.map +1 -1
- package/organisms/smart-table/smart-table.organism.d.ts +5 -4
- package/organisms/smart-table/smart-table.organism.d.ts.map +1 -1
- package/organisms/top-navigator/top-navigator.organism.d.ts +3 -3
- package/organisms/top-navigator/top-navigator.organism.d.ts.map +1 -1
- package/package.json +13 -20
- package/templates/menu/menu.template.d.ts +1 -1
- package/templates/menu/menu.template.d.ts.map +1 -1
- package/templates/smart-crud/smart-crud.module.d.ts +3 -2
- package/templates/smart-crud/smart-crud.module.d.ts.map +1 -1
- package/templates/smart-crud/smart-crud.template.d.ts +16 -6
- package/templates/smart-crud/smart-crud.template.d.ts.map +1 -1
- package/templates/smart-index/smart-index.module.d.ts +3 -2
- package/templates/smart-index/smart-index.module.d.ts.map +1 -1
- package/templates/smart-index/smart-index.template.d.ts +13 -5
- package/templates/smart-index/smart-index.template.d.ts.map +1 -1
- package/esm2020/frames/line-up-v2/index.mjs +0 -3
- package/esm2020/frames/line-up-v2/line-up.animations.mjs +0 -64
- package/esm2020/frames/line-up-v2/line-up.frame.mjs +0 -110
- package/esm2020/frames/line-up-v2/line-up.module.mjs +0 -27
- package/esm2020/frames/line-up-v2/ng-atomic-components-frames-line-up-v2.mjs +0 -5
- package/esm2020/frames/line-up-v2/resize-observer.mjs +0 -13
- package/esm2020/frames/overlay-v2/index.mjs +0 -3
- package/esm2020/frames/overlay-v2/ng-atomic-components-frames-overlay-v2.mjs +0 -5
- package/esm2020/frames/overlay-v2/overlay.animations.mjs +0 -28
- package/esm2020/frames/overlay-v2/overlay.frame.mjs +0 -30
- package/esm2020/frames/overlay-v2/overlay.module.mjs +0 -29
- package/fesm2015/ng-atomic-components-frames-line-up-v2.mjs +0 -228
- package/fesm2015/ng-atomic-components-frames-line-up-v2.mjs.map +0 -1
- package/fesm2015/ng-atomic-components-frames-overlay-v2.mjs +0 -99
- package/fesm2015/ng-atomic-components-frames-overlay-v2.mjs.map +0 -1
- package/fesm2020/ng-atomic-components-frames-line-up-v2.mjs +0 -213
- package/fesm2020/ng-atomic-components-frames-line-up-v2.mjs.map +0 -1
- package/fesm2020/ng-atomic-components-frames-overlay-v2.mjs +0 -90
- package/fesm2020/ng-atomic-components-frames-overlay-v2.mjs.map +0 -1
- package/frames/line-up-v2/index.d.ts +0 -3
- package/frames/line-up-v2/index.d.ts.map +0 -1
- package/frames/line-up-v2/line-up.animations.d.ts +0 -2
- package/frames/line-up-v2/line-up.animations.d.ts.map +0 -1
- package/frames/line-up-v2/line-up.frame.d.ts +0 -36
- package/frames/line-up-v2/line-up.frame.d.ts.map +0 -1
- package/frames/line-up-v2/line-up.module.d.ts +0 -10
- package/frames/line-up-v2/line-up.module.d.ts.map +0 -1
- package/frames/line-up-v2/ng-atomic-components-frames-line-up-v2.d.ts +0 -6
- package/frames/line-up-v2/ng-atomic-components-frames-line-up-v2.d.ts.map +0 -1
- package/frames/line-up-v2/package.json +0 -10
- package/frames/line-up-v2/resize-observer.d.ts +0 -4
- package/frames/line-up-v2/resize-observer.d.ts.map +0 -1
- package/frames/overlay-v2/index.d.ts +0 -3
- package/frames/overlay-v2/index.d.ts.map +0 -1
- package/frames/overlay-v2/ng-atomic-components-frames-overlay-v2.d.ts +0 -6
- package/frames/overlay-v2/ng-atomic-components-frames-overlay-v2.d.ts.map +0 -1
- package/frames/overlay-v2/overlay.animations.d.ts +0 -2
- package/frames/overlay-v2/overlay.animations.d.ts.map +0 -1
- package/frames/overlay-v2/overlay.frame.d.ts +0 -7
- package/frames/overlay-v2/overlay.frame.d.ts.map +0 -1
- package/frames/overlay-v2/overlay.module.d.ts +0 -10
- package/frames/overlay-v2/overlay.module.d.ts.map +0 -1
- package/frames/overlay-v2/package.json +0 -10
|
@@ -57,11 +57,11 @@ IconAtom.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IconAtom, selector
|
|
|
57
57
|
i0.ɵɵadvance(2);
|
|
58
58
|
i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(3, 4, ctx.hasSvgIcon$));
|
|
59
59
|
}
|
|
60
|
-
}, directives: [i2.NgIf, i1.MatIcon], pipes: [i2.AsyncPipe], styles: ["[_nghost-%COMP%]{display:block;--color: inherit;--color-SCOPED-IN-icon-
|
|
60
|
+
}, directives: [i2.NgIf, i1.MatIcon], pipes: [i2.AsyncPipe], styles: ["[_nghost-%COMP%]{display:block;--color: inherit;--color-SCOPED-IN-icon-uRvA: var(--color)}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--color-SCOPED-IN-icon-uRvA)}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%] svg .filled{transition:fill .5s;fill:var(--color-SCOPED-IN-icon-uRvA)}"], changeDetection: 0 });
|
|
61
61
|
(function () {
|
|
62
62
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IconAtom, [{
|
|
63
63
|
type: Component,
|
|
64
|
-
args: [{ selector: 'atoms-icon', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-icon\n *ngIf=\"hasSvgIcon$ | async\"\n [svgIcon]=\"name$ | async\"\n></mat-icon>\n<mat-icon\n *ngIf=\"!(hasSvgIcon$ | async)\"\n>{{ name$ | async }}</mat-icon>\n", styles: [":host{display:block;--color: inherit;--color-SCOPED-IN-icon-
|
|
64
|
+
args: [{ selector: 'atoms-icon', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-icon\n *ngIf=\"hasSvgIcon$ | async\"\n [svgIcon]=\"name$ | async\"\n></mat-icon>\n<mat-icon\n *ngIf=\"!(hasSvgIcon$ | async)\"\n>{{ name$ | async }}</mat-icon>\n", styles: [":host{display:block;--color: inherit;--color-SCOPED-IN-icon-uRvA: var(--color)}:host mat-icon{color:var(--color-SCOPED-IN-icon-uRvA)}:host mat-icon ::ng-deep svg .filled{transition:fill .5s;fill:var(--color-SCOPED-IN-icon-uRvA)}\n"] }]
|
|
65
65
|
}], function () { return [{ type: i1.MatIconRegistry }]; }, { name: [{
|
|
66
66
|
type: Input
|
|
67
67
|
}], color: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-atoms-icon.mjs","sources":["../../../../libs/components/src/atoms/icon/icon.atom.html","../../../../libs/components/src/atoms/icon/icon.atom.ts","../../../../libs/components/src/atoms/icon/icon.module.ts","../../../../libs/components/src/atoms/icon/ng-atomic-components-atoms-icon.ts"],"sourcesContent":["<mat-icon\n *ngIf=\"hasSvgIcon$ | async\"\n [svgIcon]=\"name$ | async\"\n></mat-icon>\n<mat-icon\n *ngIf=\"!(hasSvgIcon$ | async)\"\n>{{ name$ | async }}</mat-icon>\n","import { Component, ChangeDetectionStrategy, Input, HostBinding } from '@angular/core';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { catchError, map, Observable, of, ReplaySubject, switchMap } from 'rxjs';\n\n\n@Component({\n selector: 'atoms-icon',\n templateUrl: './icon.atom.html',\n styleUrls: ['./icon.atom.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class IconAtom {\n\n name$ = new ReplaySubject<string>(1);\n hasSvgIcon$: Observable<boolean> = this.name$.pipe(\n switchMap((name: string) => this.registry.getNamedSvgIcon(name)),\n map(svgIcon => !!svgIcon),\n catchError(() => of(false)),\n );\n\n @Input()\n set name(_name: string) {\n this.name$.next(_name)\n };\n\n @HostBinding('style.--color')\n @Input()\n color?: string;\n\n constructor(private registry: MatIconRegistry) { }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { IconAtom } from './icon.atom';\n\n\n\n@NgModule({\n declarations: [\n IconAtom\n ],\n imports: [\n CommonModule,\n // Material\n MatIconModule,\n ],\n exports: [\n IconAtom\n ]\n})\nexport class IconModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;QAAA,EAGY,CAAA,SAAA,CAAA,CAAA,EAAA,UAAA,EAAA,CAAA,CAAA,CAAA;;;;;AADV,QAAA,EAAyB,CAAA,UAAA,CAAA,SAAA,EAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CA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AA,CAAA,EAAA;;;;;ADXrB,YAAA,EAGY,CAAA,UAAA,CAAA,CAAA,EAAA,4BAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,CAAA,CAAA;;AACZ,YAAA,EAE+B,CAAA,UAAA,CAAA,CAAA,EAAA,4BAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,CAAA,CAAA;;;;AAL5B,YAAA,EAAyB,CAAA,UAAA,CAAA,MAAA,EAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,GAAA,CAAA,WAAA,CAAA,CAAA,CAAA;AAIzB,YAAA,EAA4B,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA;AAA5B,YAAA,EAA4B,CAAA,UAAA,CAAA,MAAA,EAAA,CAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,GAAA,CAAA,WAAA,CAAA,CAAA,CAAA;;;;4ECMlB,QAAQ,EAAA,CAAA;kBANpB,SAAS;+BACE,YAAY,EAAA,eAAA,EAGL,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2KAAA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-atoms-icon.mjs","sources":["../../../../libs/components/src/atoms/icon/icon.atom.html","../../../../libs/components/src/atoms/icon/icon.atom.ts","../../../../libs/components/src/atoms/icon/icon.module.ts","../../../../libs/components/src/atoms/icon/ng-atomic-components-atoms-icon.ts"],"sourcesContent":["<mat-icon\n *ngIf=\"hasSvgIcon$ | async\"\n [svgIcon]=\"name$ | async\"\n></mat-icon>\n<mat-icon\n *ngIf=\"!(hasSvgIcon$ | async)\"\n>{{ name$ | async }}</mat-icon>\n","import { Component, ChangeDetectionStrategy, Input, HostBinding } from '@angular/core';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { catchError, map, Observable, of, ReplaySubject, switchMap } from 'rxjs';\n\n\n@Component({\n selector: 'atoms-icon',\n templateUrl: './icon.atom.html',\n styleUrls: ['./icon.atom.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class IconAtom {\n\n name$ = new ReplaySubject<string>(1);\n hasSvgIcon$: Observable<boolean> = this.name$.pipe(\n switchMap((name: string) => this.registry.getNamedSvgIcon(name)),\n map(svgIcon => !!svgIcon),\n catchError(() => of(false)),\n );\n\n @Input()\n set name(_name: string) {\n this.name$.next(_name)\n };\n\n @HostBinding('style.--color')\n @Input()\n color?: string;\n\n constructor(private registry: MatIconRegistry) { }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { IconAtom } from './icon.atom';\n\n\n\n@NgModule({\n declarations: [\n IconAtom\n ],\n imports: [\n CommonModule,\n // Material\n MatIconModule,\n ],\n exports: [\n IconAtom\n ]\n})\nexport class IconModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;QAAA,EAGY,CAAA,SAAA,CAAA,CAAA,EAAA,UAAA,EAAA,CAAA,CAAA,CAAA;;;;;AADV,QAAA,EAAyB,CAAA,UAAA,CAAA,SAAA,EAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,MAAA,CAAA,KAAA,CAAA,CAAA,CAAA;;;;;AAE3B,QAAA,EAEC,CAAA,cAAA,CAAA,CAAA,EAAA,UAAA,CAAA,CAAA;AAAA,QAAA,EAAmB,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA;;QAAA,EAAW,CAAA,YAAA,EAAA,CAAA;;;;AAA9B,QAAA,EAAmB,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA;AAAnB,QAAA,EAAmB,CAAA,iBAAA,CAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,EAAA,MAAA,CAAA,KAAA,CAAA,CAAA,CAAA;;;MCKP,QAAQ,CAAA;AAkBnB,IAAA,WAAA,CAAoB,QAAy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|
i0.ɵɵelementStart(1, "button", 5);
|
|
22
|
-
i0.ɵɵlistener("click", function SmartMenuButtonAtom_ng_container_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.
|
|
22
|
+
i0.ɵɵlistener("click", function SmartMenuButtonAtom_ng_container_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.action.emit(ctx_r5.items[0]); });
|
|
23
23
|
i0.ɵɵelementStart(2, "mat-icon");
|
|
24
24
|
i0.ɵɵtext(3);
|
|
25
25
|
i0.ɵɵelementEnd()();
|
|
@@ -28,7 +28,7 @@ function SmartMenuButtonAtom_ng_container_2_Template(rf, ctx) {
|
|
|
28
28
|
if (rf & 2) {
|
|
29
29
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
30
30
|
i0.ɵɵadvance(3);
|
|
31
|
-
i0.ɵɵtextInterpolate(ctx_r1.
|
|
31
|
+
i0.ɵɵtextInterpolate(ctx_r1.items[0] == null ? null : ctx_r1.items[0].icon);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
function SmartMenuButtonAtom_ng_container_3_button_1_Template(rf, ctx) {
|
|
@@ -52,31 +52,31 @@ function SmartMenuButtonAtom_ng_container_3_Template(rf, ctx) {
|
|
|
52
52
|
if (rf & 2) {
|
|
53
53
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
54
54
|
i0.ɵɵadvance(1);
|
|
55
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
|
55
|
+
i0.ɵɵproperty("ngIf", ctx_r2.items.length);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function SmartMenuButtonAtom_button_6_Template(rf, ctx) {
|
|
59
59
|
if (rf & 1) {
|
|
60
60
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
61
61
|
i0.ɵɵelementStart(0, "button", 8);
|
|
62
|
-
i0.ɵɵlistener("click", function SmartMenuButtonAtom_button_6_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r10); const
|
|
62
|
+
i0.ɵɵlistener("click", function SmartMenuButtonAtom_button_6_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r10); const item_r8 = restoredCtx.$implicit; const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.action.emit(item_r8); });
|
|
63
63
|
i0.ɵɵtext(1);
|
|
64
64
|
i0.ɵɵelementEnd();
|
|
65
65
|
}
|
|
66
66
|
if (rf & 2) {
|
|
67
|
-
const
|
|
67
|
+
const item_r8 = ctx.$implicit;
|
|
68
68
|
i0.ɵɵadvance(1);
|
|
69
|
-
i0.ɵɵtextInterpolate(
|
|
69
|
+
i0.ɵɵtextInterpolate(item_r8.name);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
class SmartMenuButtonAtom {
|
|
73
73
|
constructor() {
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
74
|
+
this.items = [];
|
|
75
|
+
this.action = new EventEmitter();
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
SmartMenuButtonAtom.ɵfac = function SmartMenuButtonAtom_Factory(t) { return new (t || SmartMenuButtonAtom)(); };
|
|
79
|
-
SmartMenuButtonAtom.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartMenuButtonAtom, selectors: [["atoms-smart-menu-button"]], inputs: {
|
|
79
|
+
SmartMenuButtonAtom.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartMenuButtonAtom, selectors: [["atoms-smart-menu-button"]], inputs: { items: "items" }, outputs: { action: "action" }, decls: 7, vars: 4, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["menu", "matMenu"], ["mat-menu-item", "", 3, "click", 4, "ngFor", "ngForOf"], ["mat-icon-button", "", 3, "click"], ["mat-icon-button", "", 3, "matMenuTriggerFor", 4, "ngIf"], ["mat-icon-button", "", 3, "matMenuTriggerFor"], ["mat-menu-item", "", 3, "click"]], template: function SmartMenuButtonAtom_Template(rf, ctx) {
|
|
80
80
|
if (rf & 1) {
|
|
81
81
|
i0.ɵɵelementContainerStart(0, 0);
|
|
82
82
|
i0.ɵɵtemplate(1, SmartMenuButtonAtom_ng_container_1_Template, 1, 0, "ng-container", 1);
|
|
@@ -88,22 +88,23 @@ SmartMenuButtonAtom.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartMe
|
|
|
88
88
|
i0.ɵɵelementEnd();
|
|
89
89
|
}
|
|
90
90
|
if (rf & 2) {
|
|
91
|
-
|
|
91
|
+
let tmp_0_0;
|
|
92
|
+
i0.ɵɵproperty("ngSwitch", (tmp_0_0 = ctx.items == null ? null : ctx.items.length) !== null && tmp_0_0 !== undefined ? tmp_0_0 : 0);
|
|
92
93
|
i0.ɵɵadvance(1);
|
|
93
94
|
i0.ɵɵproperty("ngSwitchCase", 0);
|
|
94
95
|
i0.ɵɵadvance(1);
|
|
95
96
|
i0.ɵɵproperty("ngSwitchCase", 1);
|
|
96
97
|
i0.ɵɵadvance(4);
|
|
97
|
-
i0.ɵɵproperty("ngForOf", ctx.
|
|
98
|
+
i0.ɵɵproperty("ngForOf", ctx.items);
|
|
98
99
|
}
|
|
99
100
|
}, directives: [i1.NgSwitch, i1.NgSwitchCase, i2.MatButton, i3.MatIcon, i1.NgSwitchDefault, i1.NgIf, i4.MatMenuTrigger, i4.MatMenu, i1.NgForOf, i4.MatMenuItem], styles: ["[_nghost-%COMP%]{display:block;width:100%;height:100%}"], changeDetection: 0 });
|
|
100
101
|
(function () {
|
|
101
102
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartMenuButtonAtom, [{
|
|
102
103
|
type: Component,
|
|
103
|
-
args: [{ selector: 'atoms-smart-menu-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"
|
|
104
|
-
}], null, {
|
|
104
|
+
args: [{ selector: 'atoms-smart-menu-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"items?.length ?? 0\">\n <ng-container *ngSwitchCase=\"0\"></ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <button mat-icon-button (click)=\"action.emit(items[0])\">\n <mat-icon>{{ items[0]?.icon }}</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" *ngIf=\"items.length\">\n <mat-icon>menu</mat-icon>\n </button>\n </ng-container>\n</ng-container>\n\n<mat-menu #menu=\"matMenu\">\n <button \n *ngFor=\"let item of items\"\n mat-menu-item \n (click)=\"action.emit(item)\"\n >{{ item.name }}</button>\n</mat-menu>\n", styles: [":host{display:block;width:100%;height:100%}\n"] }]
|
|
105
|
+
}], null, { items: [{
|
|
105
106
|
type: Input
|
|
106
|
-
}],
|
|
107
|
+
}], action: [{
|
|
107
108
|
type: Output
|
|
108
109
|
}] });
|
|
109
110
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-atoms-smart-menu-button.mjs","sources":["../../../../libs/components/src/atoms/smart-menu-button/smart-menu-button.atom.html","../../../../libs/components/src/atoms/smart-menu-button/smart-menu-button.atom.ts","../../../../libs/components/src/atoms/smart-menu-button/smart-menu-button.module.ts","../../../../libs/components/src/atoms/smart-menu-button/ng-atomic-components-atoms-smart-menu-button.ts"],"sourcesContent":["<ng-container [ngSwitch]=\"
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-atoms-smart-menu-button.mjs","sources":["../../../../libs/components/src/atoms/smart-menu-button/smart-menu-button.atom.html","../../../../libs/components/src/atoms/smart-menu-button/smart-menu-button.atom.ts","../../../../libs/components/src/atoms/smart-menu-button/smart-menu-button.module.ts","../../../../libs/components/src/atoms/smart-menu-button/ng-atomic-components-atoms-smart-menu-button.ts"],"sourcesContent":["<ng-container [ngSwitch]=\"items?.length ?? 0\">\n <ng-container *ngSwitchCase=\"0\"></ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <button mat-icon-button (click)=\"action.emit(items[0])\">\n <mat-icon>{{ items[0]?.icon }}</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" *ngIf=\"items.length\">\n <mat-icon>menu</mat-icon>\n </button>\n </ng-container>\n</ng-container>\n\n<mat-menu #menu=\"matMenu\">\n <button \n *ngFor=\"let item of items\"\n mat-menu-item \n (click)=\"action.emit(item)\"\n >{{ item.name }}</button>\n</mat-menu>\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Action, ActionItem } from '@ng-atomic/common/models';\n\n@Component({\n selector: 'atoms-smart-menu-button',\n templateUrl: './smart-menu-button.atom.html',\n styleUrls: ['./smart-menu-button.atom.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SmartMenuButtonAtom {\n @Input()\n items: ActionItem[] = [];\n\n @Output()\n action = new EventEmitter<Action>();\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\n\nimport { SmartMenuButtonAtom } from './smart-menu-button.atom';\n\n\n@NgModule({\n declarations: [SmartMenuButtonAtom],\n imports: [\n CommonModule,\n // Material\n MatButtonModule,\n MatIconModule,\n MatMenuModule,\n ],\n exports: [SmartMenuButtonAtom]\n})\nexport class SmartMenuButtonModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AACE,QAAA,EAA+C,CAAA,kBAAA,CAAA,CAAA,CAAA,CAAA;;;;;;AAC/C,QAAA,EAAgC,CAAA,uBAAA,CAAA,CAAA,CAAA,CAAA;QAC9B,EAAwD,CAAA,cAAA,CAAA,CAAA,EAAA,QAAA,EAAA,CAAA,CAAA,CAAA;AAAhC,QA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;;wBAEZ,eAAe;wBACf,aAAa;wBACb,aAAa;AACd,qBAAA;oBACD,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBAC/B,CAAA;;;;6EACY,qBAAqB,EAAA,EAAA,YAAA,EAAA,CAVjB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAEhC,YAAY;;YAEZ,eAAe;YACf,aAAa;YACb,aAAa,aAEL,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;AClB/B;;AAEG;;;;"}
|
|
@@ -11,11 +11,11 @@ AutoLayoutFrame.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AutoLayoutF
|
|
|
11
11
|
i0.ɵɵprojectionDef();
|
|
12
12
|
i0.ɵɵprojection(0);
|
|
13
13
|
}
|
|
14
|
-
}, styles: ["[_nghost-%COMP%]{--gap: 24px;--gap-SCOPED-IN-auto-layout-
|
|
14
|
+
}, styles: ["[_nghost-%COMP%]{--gap: 24px;--gap-SCOPED-IN-auto-layout-ASco: var(--gap);--vertical-padding: 24px;--vertical-padding-SCOPED-IN-auto-layout-ASco: var(--vertical-padding)}[_nghost-%COMP%]{display:flex;width:100%;height:100%;justify-content:center;grid-gap:var(--gap-SCOPED-IN-auto-layout-ASco);gap:var(--gap-SCOPED-IN-auto-layout-ASco);box-sizing:border-box;padding:var(--vertical-padding-SCOPED-IN-auto-layout-ASco) 0}[horizontal][_nghost-%COMP%]{flex-direction:row}[vertical][_nghost-%COMP%]{flex-direction:column}"], changeDetection: 0 });
|
|
15
15
|
(function () {
|
|
16
16
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AutoLayoutFrame, [{
|
|
17
17
|
type: Component,
|
|
18
|
-
args: [{ selector: 'frames-auto-layout', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [":host{--gap: 24px;--gap-SCOPED-IN-auto-layout-
|
|
18
|
+
args: [{ selector: 'frames-auto-layout', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [":host{--gap: 24px;--gap-SCOPED-IN-auto-layout-ASco: var(--gap);--vertical-padding: 24px;--vertical-padding-SCOPED-IN-auto-layout-ASco: var(--vertical-padding)}:host{display:flex;width:100%;height:100%;justify-content:center;grid-gap:var(--gap-SCOPED-IN-auto-layout-ASco);gap:var(--gap-SCOPED-IN-auto-layout-ASco);box-sizing:border-box;padding:var(--vertical-padding-SCOPED-IN-auto-layout-ASco) 0}:host[horizontal]{flex-direction:row}:host[vertical]{flex-direction:column}\n"] }]
|
|
19
19
|
}], null, null);
|
|
20
20
|
})();
|
|
21
21
|
|
|
@@ -41,11 +41,11 @@ DrawerFrame.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DrawerFrame, se
|
|
|
41
41
|
if (rf & 2) {
|
|
42
42
|
i0.ɵɵproperty("autosize", false);
|
|
43
43
|
}
|
|
44
|
-
}, directives: [i1.MatDrawerContainer, i1.MatDrawer, i1.MatDrawerContent], styles: ["[_nghost-%COMP%]{--content-width: 360px;--content-width-SCOPED-IN-drawer-
|
|
44
|
+
}, directives: [i1.MatDrawerContainer, i1.MatDrawer, i1.MatDrawerContent], styles: ["[_nghost-%COMP%]{--content-width: 360px;--content-width-SCOPED-IN-drawer-3IK8: var(--content-width)}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
45
45
|
(function () {
|
|
46
46
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrawerFrame, [{
|
|
47
47
|
type: Component,
|
|
48
|
-
args: [{ selector: 'frames-drawer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-drawer-container [autosize]=\"false\">\n <mat-drawer #drawer mode=\"side\">\n <ng-content select=[drawer]></ng-content>\n </mat-drawer>\n\n <mat-drawer-content>\n <ng-content select=[contents]></ng-content>\n </mat-drawer-content>\n \n</mat-drawer-container>", styles: [":host{--content-width: 360px;--content-width-SCOPED-IN-drawer-
|
|
48
|
+
args: [{ selector: 'frames-drawer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-drawer-container [autosize]=\"false\">\n <mat-drawer #drawer mode=\"side\">\n <ng-content select=[drawer]></ng-content>\n </mat-drawer>\n\n <mat-drawer-content>\n <ng-content select=[contents]></ng-content>\n </mat-drawer-content>\n \n</mat-drawer-container>", styles: [":host{--content-width: 360px;--content-width-SCOPED-IN-drawer-3IK8: var(--content-width)}:host mat-drawer-content{width:100%}\n"] }]
|
|
49
49
|
}], null, { drawer: [{
|
|
50
50
|
type: ViewChild,
|
|
51
51
|
args: [MatDrawer]
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Component, ChangeDetectionStrategy, HostBinding, Input, ViewChild, NgModule } from '@angular/core';
|
|
3
|
-
import { Observable, ReplaySubject } from 'rxjs';
|
|
4
|
-
import {
|
|
3
|
+
import { Observable, ReplaySubject, BehaviorSubject, combineLatest } from 'rxjs';
|
|
4
|
+
import { map, startWith, distinctUntilChanged, takeUntil } from 'rxjs/operators';
|
|
5
5
|
import { trigger, state, style, transition, animate, sequence, query, group } from '@angular/animations';
|
|
6
6
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
8
8
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
9
9
|
|
|
10
|
-
const
|
|
11
|
-
state('
|
|
10
|
+
const MAIN_ANIMATION = trigger('modeChangeForMain', [
|
|
11
|
+
state('*', style({
|
|
12
12
|
width: '100%',
|
|
13
13
|
})),
|
|
14
|
-
state('
|
|
14
|
+
state('Next', style({
|
|
15
15
|
display: 'none',
|
|
16
16
|
width: '0%',
|
|
17
17
|
})),
|
|
18
|
-
transition('
|
|
18
|
+
transition('* => Next', [
|
|
19
19
|
animate('0.5s', style({ width: '0%' })),
|
|
20
20
|
style({ display: 'none' }),
|
|
21
21
|
]),
|
|
22
|
-
transition('
|
|
22
|
+
transition('Next => *', [
|
|
23
23
|
sequence([
|
|
24
24
|
style({ display: 'inherit' }),
|
|
25
25
|
animate('0.5s', style({ width: '100%' })),
|
|
26
26
|
]),
|
|
27
27
|
]),
|
|
28
28
|
]);
|
|
29
|
-
const
|
|
29
|
+
const NEXT_ANIMATION = trigger('modeChangeForNext', [
|
|
30
30
|
state('Next', style({
|
|
31
31
|
position: 'relative',
|
|
32
32
|
width: '100%',
|
|
33
33
|
})),
|
|
34
|
-
state('
|
|
34
|
+
state('Both', style({
|
|
35
35
|
position: 'relative',
|
|
36
36
|
width: '100%',
|
|
37
37
|
})),
|
|
38
|
-
state('
|
|
38
|
+
state('Main', style({
|
|
39
39
|
position: 'relative',
|
|
40
40
|
display: 'none',
|
|
41
41
|
})),
|
|
42
|
-
transition('
|
|
42
|
+
transition('Main => Next', [
|
|
43
43
|
query(':enter', [animate('0.5s')], { optional: true }),
|
|
44
44
|
sequence([
|
|
45
45
|
style({ display: 'inherit', width: '100%' }),
|
|
46
46
|
animate('0.5s'),
|
|
47
47
|
]),
|
|
48
48
|
]),
|
|
49
|
-
transition('
|
|
49
|
+
transition('Main => Both', [
|
|
50
50
|
query(':enter', [animate('0.5s')], { optional: true }),
|
|
51
51
|
sequence([
|
|
52
52
|
style({ display: 'inherit', width: '100%' }),
|
|
53
53
|
animate('0.5s'),
|
|
54
54
|
]),
|
|
55
55
|
]),
|
|
56
|
-
transition('Next =>
|
|
56
|
+
transition('Next => Main', group([
|
|
57
57
|
query(':leave', animate('0.5s', style({ width: '100%' })), { optional: true }),
|
|
58
58
|
sequence([
|
|
59
59
|
style({ position: 'absolute', display: 'block', left: '0%' }),
|
|
60
60
|
animate('0.5s', style({ left: '100%' })),
|
|
61
61
|
]),
|
|
62
62
|
])),
|
|
63
|
-
transition('
|
|
63
|
+
transition('Both => Main', group([
|
|
64
64
|
query(':leave', animate('0.5s', style({ width: '100%' })), { optional: true }),
|
|
65
65
|
sequence([
|
|
66
66
|
style({ position: 'absolute', display: 'block', left: '100%' }),
|
|
@@ -68,90 +68,112 @@ const routeAnimation = trigger('pageChange', [
|
|
|
68
68
|
]),
|
|
69
69
|
])),
|
|
70
70
|
]);
|
|
71
|
-
const LINE_UP_ANIMATIONS = [
|
|
72
|
-
visibleHiddenAnimation,
|
|
73
|
-
routeAnimation,
|
|
74
|
-
];
|
|
71
|
+
const LINE_UP_ANIMATIONS = [MAIN_ANIMATION, NEXT_ANIMATION];
|
|
75
72
|
|
|
76
|
-
function fromResize(
|
|
73
|
+
function fromResize({ nativeElement }) {
|
|
77
74
|
return Observable.create(function (observer) {
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
for (const el of elements) {
|
|
84
|
-
resizeObserver.observe(el);
|
|
85
|
-
}
|
|
86
|
-
// cancel resize observer on cancelation
|
|
75
|
+
const callback = (entries) => entries.forEach((e) => observer.next(e));
|
|
76
|
+
const resizeObserver = new ResizeObserver(callback);
|
|
77
|
+
resizeObserver.observe(nativeElement);
|
|
87
78
|
return () => resizeObserver.disconnect();
|
|
88
|
-
}).pipe(startWith(
|
|
89
|
-
x: 0,
|
|
90
|
-
y: 0,
|
|
91
|
-
width: 0,
|
|
92
|
-
height: 0,
|
|
93
|
-
top: 0,
|
|
94
|
-
right: 0,
|
|
95
|
-
bottom: 0,
|
|
96
|
-
left: 0,
|
|
97
|
-
}));
|
|
79
|
+
}).pipe(map(({ contentRect }) => { var _a; return (_a = contentRect === null || contentRect === void 0 ? void 0 : contentRect.width) !== null && _a !== void 0 ? _a : 0; }), startWith(0), distinctUntilChanged());
|
|
98
80
|
}
|
|
99
81
|
|
|
100
82
|
const _c0 = ["next"];
|
|
101
83
|
const _c1 = [[["", "main", ""]], [["", "next", ""]]];
|
|
102
84
|
const _c2 = ["[main]", "[next]"];
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
85
|
+
var Mode;
|
|
86
|
+
(function (Mode) {
|
|
87
|
+
Mode["MAIN"] = "Main";
|
|
88
|
+
Mode["BOTH"] = "Both";
|
|
89
|
+
Mode["NEXT"] = "Next";
|
|
90
|
+
})(Mode || (Mode = {}));
|
|
91
|
+
class LineUpFrameService {
|
|
107
92
|
constructor() {
|
|
108
|
-
this.
|
|
93
|
+
this.frames = [];
|
|
94
|
+
}
|
|
95
|
+
register(frame) {
|
|
96
|
+
this.frames.push(frame);
|
|
97
|
+
console.debug('this.frames:', this.frames);
|
|
98
|
+
}
|
|
99
|
+
unregister(frame) {
|
|
100
|
+
this.frames = this.frames.slice(0, this.findIndex(frame));
|
|
101
|
+
}
|
|
102
|
+
findIndex(frame) {
|
|
103
|
+
return this.frames.findIndex((value) => value === frame);
|
|
104
|
+
}
|
|
105
|
+
propagate(frame) {
|
|
106
|
+
var _a;
|
|
107
|
+
const target = (_a = this.frames) === null || _a === void 0 ? void 0 : _a[this.findIndex(frame) - 1];
|
|
108
|
+
target === null || target === void 0 ? void 0 : target.refresh();
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
LineUpFrameService.ɵfac = function LineUpFrameService_Factory(t) { return new (t || LineUpFrameService)(); };
|
|
112
|
+
LineUpFrameService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LineUpFrameService, factory: LineUpFrameService.ɵfac, providedIn: 'root' });
|
|
113
113
|
(function () {
|
|
114
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
114
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LineUpFrameService, [{
|
|
115
115
|
type: Injectable,
|
|
116
116
|
args: [{ providedIn: 'root' }]
|
|
117
117
|
}], null, null);
|
|
118
118
|
})();
|
|
119
119
|
class LineUpFrame {
|
|
120
|
-
constructor(service
|
|
120
|
+
constructor(service) {
|
|
121
121
|
this.service = service;
|
|
122
|
-
this.
|
|
123
|
-
this.
|
|
124
|
-
this.
|
|
122
|
+
this.Mode = Mode;
|
|
123
|
+
this.mode = Mode.MAIN;
|
|
124
|
+
this.refresh$ = new ReplaySubject(1);
|
|
125
|
+
this.destroy$ = new ReplaySubject(1);
|
|
126
|
+
this.hasNext$ = new BehaviorSubject(false);
|
|
127
|
+
this._hasNext = false;
|
|
125
128
|
this.minNextWidth = 360;
|
|
126
129
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
set hasNext(_hasNext) {
|
|
131
|
+
this.hasNext$.next(_hasNext);
|
|
132
|
+
this._hasNext = _hasNext;
|
|
133
|
+
}
|
|
134
|
+
;
|
|
135
|
+
get hasNext() {
|
|
136
|
+
return this._hasNext;
|
|
131
137
|
}
|
|
132
138
|
ngOnInit() {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
this.
|
|
137
|
-
this.
|
|
139
|
+
this.service.register(this);
|
|
140
|
+
this.refresh();
|
|
141
|
+
combineLatest([
|
|
142
|
+
this.hasNext$,
|
|
143
|
+
fromResize(this.nextElementRef),
|
|
144
|
+
this.refresh$,
|
|
145
|
+
]).pipe(takeUntil(this.destroy$)).subscribe(([hasNext, width]) => {
|
|
146
|
+
this.mode = this.resolveMode(hasNext, width);
|
|
147
|
+
setTimeout(() => this.service.propagate(this), 0);
|
|
138
148
|
});
|
|
139
149
|
}
|
|
150
|
+
ngOnDestroy() {
|
|
151
|
+
this.service.unregister(this);
|
|
152
|
+
this.destroy$.next();
|
|
153
|
+
}
|
|
154
|
+
refresh() {
|
|
155
|
+
this.refresh$.next();
|
|
156
|
+
}
|
|
157
|
+
resolveMode(hasNext, width) {
|
|
158
|
+
if (hasNext && width <= this.minNextWidth)
|
|
159
|
+
return Mode.BOTH;
|
|
160
|
+
return hasNext ? Mode.NEXT : Mode.MAIN;
|
|
161
|
+
}
|
|
140
162
|
}
|
|
141
|
-
LineUpFrame.ɵfac = function LineUpFrame_Factory(t) { return new (t || LineUpFrame)(i0.ɵɵdirectiveInject(
|
|
163
|
+
LineUpFrame.ɵfac = function LineUpFrame_Factory(t) { return new (t || LineUpFrame)(i0.ɵɵdirectiveInject(LineUpFrameService)); };
|
|
142
164
|
LineUpFrame.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LineUpFrame, selectors: [["frames-line-up"]], viewQuery: function LineUpFrame_Query(rf, ctx) {
|
|
143
165
|
if (rf & 1) {
|
|
144
166
|
i0.ɵɵviewQuery(_c0, 7);
|
|
145
167
|
}
|
|
146
168
|
if (rf & 2) {
|
|
147
169
|
let _t;
|
|
148
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
|
170
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nextElementRef = _t.first);
|
|
149
171
|
}
|
|
150
172
|
}, hostVars: 1, hostBindings: function LineUpFrame_HostBindings(rf, ctx) {
|
|
151
173
|
if (rf & 2) {
|
|
152
|
-
i0.ɵɵattribute("
|
|
174
|
+
i0.ɵɵattribute("has-next", ctx.hasNext);
|
|
153
175
|
}
|
|
154
|
-
}, inputs: {
|
|
176
|
+
}, inputs: { hasNext: "hasNext", minNextWidth: "minNextWidth" }, ngContentSelectors: _c2, decls: 6, vars: 2, consts: [[1, "main"], ["main", ""], [1, "next"], ["next", ""]], template: function LineUpFrame_Template(rf, ctx) {
|
|
155
177
|
if (rf & 1) {
|
|
156
178
|
i0.ɵɵprojectionDef(_c1);
|
|
157
179
|
i0.ɵɵelementStart(0, "div", 0, 1);
|
|
@@ -162,25 +184,23 @@ LineUpFrame.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LineUpFrame, se
|
|
|
162
184
|
i0.ɵɵelementEnd();
|
|
163
185
|
}
|
|
164
186
|
if (rf & 2) {
|
|
165
|
-
i0.ɵɵproperty("@
|
|
187
|
+
i0.ɵɵproperty("@modeChangeForMain", ctx.mode);
|
|
166
188
|
i0.ɵɵadvance(3);
|
|
167
|
-
i0.ɵɵproperty("@
|
|
189
|
+
i0.ɵɵproperty("@modeChangeForNext", ctx.mode);
|
|
168
190
|
}
|
|
169
|
-
}, styles: ["[_nghost-%COMP%]{--gap: 1px;--gap-SCOPED-IN-line-up-
|
|
191
|
+
}, styles: ["[_nghost-%COMP%]{--gap: 1px;--gap-SCOPED-IN-line-up-BU7a: var(--gap);--background: #ccc;--background-SCOPED-IN-line-up-BU7a: var(--background);--contents-background: transparent;--contents-background-SCOPED-IN-line-up-BU7a: var(--contents-background)}[_nghost-%COMP%]{position:relative;display:flex;justify-content:flex-start;grid-gap:var(--gap-SCOPED-IN-line-up-BU7a);gap:var(--gap-SCOPED-IN-line-up-BU7a);width:-moz-fit-content;width:fit-content;height:100%;background:var(--background-SCOPED-IN-line-up-BU7a)}[_nghost-%COMP%] div[_ngcontent-%COMP%]{display:flex;max-width:-moz-fit-content;max-width:fit-content;height:100%;background:var(--contents-background-SCOPED-IN-line-up-BU7a)}[_nghost-%COMP%] div.main[_ngcontent-%COMP%]{overflow:hidden;justify-content:flex-end}[_nghost-%COMP%] div.next[_ngcontent-%COMP%]{overflow:visible;justify-content:flex-start}"], data: { animation: LINE_UP_ANIMATIONS } });
|
|
170
192
|
(function () {
|
|
171
193
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LineUpFrame, [{
|
|
172
194
|
type: Component,
|
|
173
|
-
args: [{ selector: 'frames-line-up', changeDetection: ChangeDetectionStrategy.Default, animations: LINE_UP_ANIMATIONS, template: "<div class=\"main
|
|
174
|
-
}], function () { return [{ type:
|
|
195
|
+
args: [{ selector: 'frames-line-up', changeDetection: ChangeDetectionStrategy.Default, animations: LINE_UP_ANIMATIONS, template: "<div class=\"main\" [@modeChangeForMain]=\"mode\" #main>\n <ng-content select=\"[main]\"></ng-content>\n</div>\n<div class=\"next\" [@modeChangeForNext]=\"mode\" #next>\n <ng-content select=\"[next]\"></ng-content>\n</div>", styles: [":host{--gap: 1px;--gap-SCOPED-IN-line-up-BU7a: var(--gap);--background: #ccc;--background-SCOPED-IN-line-up-BU7a: var(--background);--contents-background: transparent;--contents-background-SCOPED-IN-line-up-BU7a: var(--contents-background)}:host{position:relative;display:flex;justify-content:flex-start;grid-gap:var(--gap-SCOPED-IN-line-up-BU7a);gap:var(--gap-SCOPED-IN-line-up-BU7a);width:-moz-fit-content;width:fit-content;height:100%;background:var(--background-SCOPED-IN-line-up-BU7a)}:host div{display:flex;max-width:-moz-fit-content;max-width:fit-content;height:100%;background:var(--contents-background-SCOPED-IN-line-up-BU7a)}:host div.main{overflow:hidden;justify-content:flex-end}:host div.next{overflow:visible;justify-content:flex-start}\n"] }]
|
|
196
|
+
}], function () { return [{ type: LineUpFrameService }]; }, { hasNext: [{
|
|
175
197
|
type: HostBinding,
|
|
176
|
-
args: ['attr.
|
|
177
|
-
}
|
|
178
|
-
type: Input
|
|
179
|
-
}], outlet: [{
|
|
198
|
+
args: ['attr.has-next']
|
|
199
|
+
}, {
|
|
180
200
|
type: Input
|
|
181
201
|
}], minNextWidth: [{
|
|
182
202
|
type: Input
|
|
183
|
-
}],
|
|
203
|
+
}], nextElementRef: [{
|
|
184
204
|
type: ViewChild,
|
|
185
205
|
args: ['next', { static: true }]
|
|
186
206
|
}] });
|
|
@@ -216,5 +236,5 @@ LineUpModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
|
216
236
|
* Generated bundle index. Do not edit.
|
|
217
237
|
*/
|
|
218
238
|
|
|
219
|
-
export { LineUpFrame, LineUpModule };
|
|
239
|
+
export { LineUpFrame, LineUpFrameService, LineUpModule };
|
|
220
240
|
//# sourceMappingURL=ng-atomic-components-frames-line-up.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-frames-line-up.mjs","sources":["../../../../libs/components/src/frames/line-up/line-up.animations.ts","../../../../libs/components/src/frames/line-up/resize-observer.ts","../../../../libs/components/src/frames/line-up/line-up.frame.ts","../../../../libs/components/src/frames/line-up/line-up.frame.html","../../../../libs/components/src/frames/line-up/line-up.module.ts","../../../../libs/components/src/frames/line-up/ng-atomic-components-frames-line-up.ts"],"sourcesContent":["import { animate, query, sequence, state, style, transition, trigger, group } from '@angular/animations';\n\nconst visibleHiddenAnimation = trigger('visibleHidden', [\n state('visible', style({\n width: '100%',\n })),\n state('hidden', style({\n display: 'none',\n width: '0%',\n })),\n transition('visible => hidden', [\n animate('0.5s', style({ width: '0%' })),\n style({display: 'none'}),\n ]),\n transition('hidden => visible', [\n sequence([\n style({ display: 'inherit' }),\n animate('0.5s', style({ width: '100%' })),\n ]),\n ]),\n]);\n\nconst routeAnimation = trigger('pageChange', [\n state('Next', style({\n position: 'relative',\n width: '100%',\n })),\n state('NextWithMainPage', style({\n position: 'relative',\n width: '100%',\n })),\n state('Blank', style({\n position: 'relative',\n display: 'none',\n })),\n transition('Blank => Next', [\n query(':enter', [animate('0.5s')], { optional: true }),\n sequence([\n style({ display: 'inherit', width: '100%' }),\n animate('0.5s'),\n ]),\n ]),\n transition('Blank => NextWithMainPage', [\n query(':enter', [animate('0.5s')], { optional: true }),\n sequence([\n style({ display: 'inherit', width: '100%' }),\n animate('0.5s'),\n ]),\n ]),\n transition('Next => Blank', group([\n query(':leave', animate('0.5s', style({width: '100%'})), { optional: true }),\n sequence([\n style({position: 'absolute', display: 'block', left: '0%'}),\n animate('0.5s', style({left: '100%'})),\n ]),\n ])),\n transition('NextWithMainPage => Blank', group([\n query(':leave', animate('0.5s', style({width: '100%'})), { optional: true }),\n sequence([\n style({position: 'absolute', display: 'block', left: '100%'}),\n animate('0.5s', style({})),\n ]),\n ])),\n]);\n\nexport const LINE_UP_ANIMATIONS = [\n visibleHiddenAnimation,\n routeAnimation,\n];","import { Observable } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport ResizeObserver from 'resize-observer-polyfill';\n\nexport interface DOMRectReadOnly {\n readonly x: number;\n readonly y: number;\n readonly width: number;\n readonly height: number;\n readonly top: number;\n readonly right: number;\n readonly bottom: number;\n readonly left: number;\n}\n\nexport interface ResizeObserverEntry {\n readonly target: Element;\n readonly contentRect: DOMRectReadOnly;\n}\n\nexport function fromResize(...elements: Element[]): Observable<ResizeObserverEntry> {\n return Observable.create(function(observer: any) {\n\n const resizeObserver = new ResizeObserver((observerEntries: any) => {\n for (const entry of observerEntries) {\n observer.next(entry);\n }\n });\n\n for (const el of elements) {\n resizeObserver.observe(el);\n }\n\n // cancel resize observer on cancelation\n return () => resizeObserver.disconnect();\n }).pipe(\n startWith({\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n }) \n );\n}\n","import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, HostBinding, Injectable, Input, ViewChild } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport { ReplaySubject } from 'rxjs';\nimport { distinctUntilChanged, map } from 'rxjs/operators';\nimport { LINE_UP_ANIMATIONS } from './line-up.animations';\nimport { fromResize } from './resize-observer';\n\nconst _fromResize = (el: ElementRef) => fromResize(el.nativeElement)\n .pipe(map(({contentRect}: {contentRect: {width: number}}) => contentRect?.width ?? 0))\n .pipe(distinctUntilChanged());\n\n@Injectable({providedIn: 'root'})\nclass LineUpService {\n pageAnimationDone$ = new ReplaySubject(1);\n}\n\n@Component({\n selector: 'frames-line-up',\n templateUrl: './line-up.frame.html',\n styleUrls: ['./line-up.frame.scss'],\n changeDetection: ChangeDetectionStrategy.Default,\n animations: LINE_UP_ANIMATIONS,\n})\nexport class LineUpFrame {\n @HostBinding('attr.is-main-hidden')\n isMainHidden = false;\n\n @Input()\n label = 'root';\n\n @Input()\n outlet?: RouterOutlet;\n\n @Input()\n minNextWidth: number = 360;\n\n @ViewChild('next', {static: true})\n next!: ElementRef;\n\n get page(): string {\n const page: string = this.outlet?.activatedRouteData?.['page'];\n return page === 'Blank' ? 'Blank' : this.isMainHidden ? `Next` : `NextWithMainPage`;\n }\n\n constructor(\n public service: LineUpService,\n private cd: ChangeDetectorRef,\n ) { }\n\n ngOnInit(): void {\n if (this.label === 'root') return; \n\n _fromResize(this.next).subscribe((width: number) => {\n this.isMainHidden = width > this.minNextWidth;\n this.cd.detectChanges();\n });\n }\n}\n","<div class=\"main contents\" [@visibleHidden]=\"isMainHidden ? 'hidden' : 'visible' \" #main>\n <ng-content select=\"[main]\"></ng-content>\n</div>\n<div class=\"next contents\" [@pageChange]=\"page\" #next>\n <ng-content select=\"[next]\"></ng-content>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\n\nimport { LineUpFrame } from './line-up.frame';\n\n\n@NgModule({\n declarations: [LineUpFrame],\n imports: [\n CommonModule,\n MatProgressSpinnerModule\n ],\n exports: [LineUpFrame]\n})\nexport class LineUpModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEA,MAAM,sBAAsB,GAAG,OAAO,CAAC,eAAe,EAAE;AACtD,IAAA,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC;AACrB,QAAA,KAAK,EAAE,MAAM;AACd,KAAA,CAAC,CAAC;AACH,IAAA,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC;AACpB,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,KAAK,EAAE,IAAI;AACZ,KAAA,CAAC,CAAC;IACH,UAAU,CAAC,mBAAmB,EAAE;QAC9B,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AACvC,QAAA,KAAK,CAAC,EAAC,OAAO,EAAE,MAAM,EAAC,CAAC;KACzB,CAAC;IACF,UAAU,CAAC,mBAAmB,EAAE;AAC9B,QAAA,QAAQ,CAAC;AACP,YAAA,KAAK,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;YAC7B,OAAO,CAAC,MAAM,EAAE,KAAK,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BADX,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,SAAS;gBAAC,IAAA,EAAA,CAAA,MAAM,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAA;;;;MErBtB,YAAY,CAAA;;wEAAZ,YAAY,GAAA,CAAA,EAAA,CAAA;8DAAZ,YAAY,EAAA,CAAA,CAAA;AANd,YAAA,CAAA,IAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,wBAAwB;SACzB,CAAA,EAAA,CAAA,CAAA;;4EAGU,YAAY,EAAA,CAAA;kBARxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,WAAW,CAAC;AAC3B,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,wBAAwB;AACzB,qBAAA;oBACD,OAAO,EAAE,CAAC,WAAW,CAAC;iBACvB,CAAA;;;;6EACY,YAAY,EAAA,EAAA,YAAA,EAAA,CAPR,WAAW,CAAA,EAAA,OAAA,EAAA,CAExB,YAAY;YACZ,wBAAwB,aAEhB,WAAW,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACbvB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-frames-line-up.mjs","sources":["../../../../libs/components/src/frames/line-up/line-up.animations.ts","../../../../libs/components/src/frames/line-up/resize-observer.ts","../../../../libs/components/src/frames/line-up/line-up.frame.ts","../../../../libs/components/src/frames/line-up/line-up.frame.html","../../../../libs/components/src/frames/line-up/line-up.module.ts","../../../../libs/components/src/frames/line-up/ng-atomic-components-frames-line-up.ts"],"sourcesContent":["import { animate, query, sequence, state, style, transition, trigger, group } from '@angular/animations';\n\nconst MAIN_ANIMATION = trigger('modeChangeForMain', [\n state('*', style({\n width: '100%',\n })),\n state('Next', style({\n display: 'none',\n width: '0%',\n })),\n transition('* => Next', [\n animate('0.5s', style({ width: '0%' })),\n style({display: 'none'}),\n ]),\n transition('Next => *', [\n sequence([\n style({ display: 'inherit' }),\n animate('0.5s', style({ width: '100%' })),\n ]),\n ]),\n]);\n\nconst NEXT_ANIMATION = trigger('modeChangeForNext', [\n state('Next', style({\n position: 'relative',\n width: '100%',\n })),\n state('Both', style({\n position: 'relative',\n width: '100%',\n })),\n state('Main', style({\n position: 'relative',\n display: 'none',\n })),\n transition('Main => Next', [\n query(':enter', [animate('0.5s')], { optional: true }),\n sequence([\n style({ display: 'inherit', width: '100%' }),\n animate('0.5s'),\n ]),\n ]),\n transition('Main => Both', [\n query(':enter', [animate('0.5s')], { optional: true }),\n sequence([\n style({ display: 'inherit', width: '100%' }),\n animate('0.5s'),\n ]),\n ]),\n transition('Next => Main', group([\n query(':leave', animate('0.5s', style({width: '100%'})), { optional: true }),\n sequence([\n style({position: 'absolute', display: 'block', left: '0%'}),\n animate('0.5s', style({left: '100%'})),\n ]),\n ])),\n transition('Both => Main', group([\n query(':leave', animate('0.5s', style({width: '100%'})), { optional: true }),\n sequence([\n style({position: 'absolute', display: 'block', left: '100%'}),\n animate('0.5s', style({})),\n ]),\n ])),\n]);\n\nexport const LINE_UP_ANIMATIONS = [MAIN_ANIMATION, NEXT_ANIMATION];\n","import { Observable } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport ResizeObserver from 'resize-observer-polyfill';\nimport { distinctUntilChanged, map } from 'rxjs/operators';\nimport { ElementRef } from '@angular/core';\n\nexport function fromResize({nativeElement}: ElementRef<Element>): Observable<number> {\n return Observable.create(function(observer: any) {\n const callback = (entries: any) => entries.forEach((e: any) => observer.next(e));\n const resizeObserver = new ResizeObserver(callback);\n resizeObserver.observe(nativeElement);\n return () => resizeObserver.disconnect();\n }).pipe(\n map(({contentRect}) => contentRect?.width ?? 0),\n startWith(0),\n distinctUntilChanged(),\n );\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, HostBinding, Injectable, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';\nimport { BehaviorSubject, combineLatest, ReplaySubject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { LINE_UP_ANIMATIONS } from './line-up.animations';\nimport { fromResize } from './resize-observer';\n\nenum Mode {\n MAIN = 'Main',\n BOTH = 'Both',\n NEXT = 'Next',\n}\n\n@Injectable({providedIn: 'root'})\nexport class LineUpFrameService {\n frames: LineUpFrame[] = [];\n\n register(frame: LineUpFrame) {\n this.frames.push(frame);\n console.debug('this.frames:', this.frames);\n }\n\n unregister(frame: LineUpFrame) {\n this.frames = this.frames.slice(0, this.findIndex(frame));\n }\n\n findIndex(frame: LineUpFrame): number {\n return this.frames.findIndex((value) => value === frame);\n }\n\n propagate(frame: LineUpFrame): void {\n const target = this.frames?.[this.findIndex(frame) - 1];\n target?.refresh();\n }\n}\n\n@Component({\n selector: 'frames-line-up',\n templateUrl: './line-up.frame.html',\n styleUrls: ['./line-up.frame.scss'],\n changeDetection: ChangeDetectionStrategy.Default,\n animations: LINE_UP_ANIMATIONS,\n})\nexport class LineUpFrame implements OnInit, OnDestroy {\n Mode = Mode;\n mode = Mode.MAIN;\n\n private readonly refresh$ = new ReplaySubject<void>(1);\n private readonly destroy$ = new ReplaySubject<void>(1);\n private readonly hasNext$ = new BehaviorSubject(false); \n\n\n private _hasNext = false;\n @HostBinding('attr.has-next')\n @Input()\n set hasNext(_hasNext: boolean) {\n this.hasNext$.next(_hasNext);\n this._hasNext = _hasNext;\n };\n get hasNext(): boolean {\n return this._hasNext;\n }\n\n @Input()\n minNextWidth: number = 360;\n\n @ViewChild('next', {static: true})\n nextElementRef!: ElementRef;\n\n constructor(private service: LineUpFrameService) { }\n\n ngOnInit(): void {\n this.service.register(this);\n this.refresh();\n \n combineLatest([\n this.hasNext$, \n fromResize(this.nextElementRef),\n this.refresh$,\n ]).pipe(takeUntil(this.destroy$)).subscribe(([hasNext, width]) => {\n this.mode = this.resolveMode(hasNext, width);\n setTimeout(() => this.service.propagate(this), 0);\n });\n }\n\n ngOnDestroy(): void {\n this.service.unregister(this);\n this.destroy$.next(); \n }\n\n refresh() {\n this.refresh$.next();\n }\n\n private resolveMode(hasNext: boolean, width: number): Mode {\n if (hasNext && width <= this.minNextWidth) return Mode.BOTH;\n return hasNext ? Mode.NEXT : Mode.MAIN;\n }\n}\n","<div class=\"main\" [@modeChangeForMain]=\"mode\" #main>\n <ng-content select=\"[main]\"></ng-content>\n</div>\n<div class=\"next\" [@modeChangeForNext]=\"mode\" #next>\n <ng-content select=\"[next]\"></ng-content>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\n\nimport { LineUpFrame } from './line-up.frame';\n\n\n@NgModule({\n declarations: [LineUpFrame],\n imports: [\n CommonModule,\n MatProgressSpinnerModule\n ],\n exports: [LineUpFrame]\n})\nexport class LineUpModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEA,MAAM,cAAc,GAAG,OAAO,CAAC,mBAAmB,EAAE;AAClD,IAAA,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC;AACf,QAAA,KAAK,EAAE,MAAM;AACd,KAAA,CAAC,CAAC;AACH,IAAA,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC;AAClB,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,KAAK,EAAE,IAAI;AACZ,KAAA,CAAC,CAAC;IACH,UAAU,CAAC,WAAW,EAAE;QACtB,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AACvC,QAAA,KAAK,CAAC,EAAC,OAAO,EAAE,MAAM,EAAC,CAAC;KACzB,CAAC;IACF,UAAU,CAAC,WAAW,EAAE;AACtB,QAAA,QAAQ,CAAC;AACP,YAAA,KAAK,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;YAC7B,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC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