@ng-atomic/components 3.2.9 → 3.4.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/icon/icon.atom.d.ts +14 -0
- package/atoms/icon/icon.atom.d.ts.map +1 -0
- package/atoms/icon/icon.module.d.ts +10 -0
- package/atoms/icon/icon.module.d.ts.map +1 -0
- package/atoms/icon/index.d.ts +3 -0
- package/atoms/icon/index.d.ts.map +1 -0
- package/atoms/icon/ng-atomic-components-atoms-icon.d.ts +6 -0
- package/atoms/icon/ng-atomic-components-atoms-icon.d.ts.map +1 -0
- package/atoms/icon/package.json +10 -0
- package/esm2020/atoms/icon/icon.atom.mjs +59 -0
- package/esm2020/atoms/icon/icon.module.mjs +34 -0
- package/esm2020/atoms/icon/index.mjs +3 -0
- package/esm2020/atoms/icon/ng-atomic-components-atoms-icon.mjs +5 -0
- 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/date-input-field/date-input-field.molecule.mjs +2 -2
- package/esm2020/molecules/navigation-list-item/index.mjs +3 -0
- package/esm2020/molecules/navigation-list-item/navigation-list-item.module.mjs +41 -0
- package/esm2020/molecules/navigation-list-item/navigation-list-item.molecule.mjs +33 -0
- package/esm2020/molecules/navigation-list-item/ng-atomic-components-molecules-navigation-list-item.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 +2 -2
- package/esm2020/organisms/back-navigator/back-navigator.organism.mjs +2 -2
- package/esm2020/organisms/card-input-section/card-input-section.organism.mjs +2 -2
- package/esm2020/organisms/cvc-and-exp-input-section/cvc-and-exp-input-section.organism.mjs +2 -2
- package/esm2020/organisms/date-input-section/date-input-section.organism.mjs +2 -2
- package/esm2020/organisms/heading/heading.organism.mjs +2 -2
- package/esm2020/organisms/navigation-list/index.mjs +3 -0
- package/esm2020/organisms/navigation-list/navigation-list.module.mjs +37 -0
- package/esm2020/organisms/navigation-list/navigation-list.organism.mjs +39 -0
- package/esm2020/organisms/navigation-list/ng-atomic-components-organisms-navigation-list.mjs +5 -0
- package/esm2020/organisms/navigator/navigator.organism.mjs +2 -2
- package/esm2020/organisms/select-input-section/select-input-section.organism.mjs +2 -2
- package/esm2020/organisms/smart-table/smart-table.organism.mjs +2 -2
- package/esm2020/organisms/social-login-section/social-login-section.organism.mjs +2 -2
- package/esm2020/organisms/text-input-section/text-input-section.organism.mjs +2 -2
- package/esm2020/organisms/textarea-section/textarea-section.organism.mjs +2 -2
- package/esm2020/organisms/top-navigator/top-navigator.organism.mjs +2 -2
- package/esm2020/templates/entrance/entrance.template.mjs +2 -2
- package/esm2020/templates/menu/menu.module.mjs +5 -5
- package/esm2020/templates/menu/menu.template.mjs +12 -12
- package/esm2020/templates/smart-crud/smart-crud.template.mjs +2 -2
- package/esm2020/templates/smart-index/smart-index.template.mjs +2 -2
- package/fesm2015/ng-atomic-components-atoms-icon.mjs +113 -0
- package/fesm2015/ng-atomic-components-atoms-icon.mjs.map +1 -0
- 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-date-input-field.mjs +2 -2
- package/fesm2015/ng-atomic-components-molecules-navigation-list-item.mjs +87 -0
- package/fesm2015/ng-atomic-components-molecules-navigation-list-item.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 +2 -2
- package/fesm2015/ng-atomic-components-organisms-back-navigator.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-card-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-date-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-heading.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-navigation-list.mjs +92 -0
- package/fesm2015/ng-atomic-components-organisms-navigation-list.mjs.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-navigator.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-smart-table.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-text-input-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2015/ng-atomic-components-organisms-top-navigator.mjs +2 -2
- package/fesm2015/ng-atomic-components-templates-entrance.mjs +2 -2
- package/fesm2015/ng-atomic-components-templates-menu.mjs +15 -15
- package/fesm2015/ng-atomic-components-templates-menu.mjs.map +1 -1
- package/fesm2015/ng-atomic-components-templates-smart-crud.mjs +2 -2
- package/fesm2015/ng-atomic-components-templates-smart-index.mjs +2 -2
- package/fesm2020/ng-atomic-components-atoms-icon.mjs +96 -0
- package/fesm2020/ng-atomic-components-atoms-icon.mjs.map +1 -0
- 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-date-input-field.mjs +2 -2
- package/fesm2020/ng-atomic-components-molecules-navigation-list-item.mjs +78 -0
- package/fesm2020/ng-atomic-components-molecules-navigation-list-item.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 +2 -2
- package/fesm2020/ng-atomic-components-organisms-back-navigator.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-card-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-date-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-heading.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-navigation-list.mjs +80 -0
- package/fesm2020/ng-atomic-components-organisms-navigation-list.mjs.map +1 -0
- package/fesm2020/ng-atomic-components-organisms-navigator.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-select-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-smart-table.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-social-login-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-text-input-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-textarea-section.mjs +2 -2
- package/fesm2020/ng-atomic-components-organisms-top-navigator.mjs +2 -2
- package/fesm2020/ng-atomic-components-templates-entrance.mjs +2 -2
- package/fesm2020/ng-atomic-components-templates-menu.mjs +15 -15
- package/fesm2020/ng-atomic-components-templates-menu.mjs.map +1 -1
- package/fesm2020/ng-atomic-components-templates-smart-crud.mjs +2 -2
- package/fesm2020/ng-atomic-components-templates-smart-index.mjs +2 -2
- 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/navigation-list-item/index.d.ts +3 -0
- package/molecules/navigation-list-item/index.d.ts.map +1 -0
- package/molecules/navigation-list-item/navigation-list-item.module.d.ts +11 -0
- package/molecules/navigation-list-item/navigation-list-item.module.d.ts.map +1 -0
- package/molecules/navigation-list-item/navigation-list-item.molecule.d.ts +9 -0
- package/molecules/navigation-list-item/navigation-list-item.molecule.d.ts.map +1 -0
- package/molecules/navigation-list-item/ng-atomic-components-molecules-navigation-list-item.d.ts +6 -0
- package/molecules/navigation-list-item/ng-atomic-components-molecules-navigation-list-item.d.ts.map +1 -0
- package/molecules/navigation-list-item/package.json +10 -0
- package/organisms/navigation-list/index.d.ts +3 -0
- package/organisms/navigation-list/index.d.ts.map +1 -0
- package/organisms/navigation-list/navigation-list.module.d.ts +11 -0
- package/organisms/navigation-list/navigation-list.module.d.ts.map +1 -0
- package/organisms/navigation-list/navigation-list.organism.d.ts +10 -0
- package/organisms/navigation-list/navigation-list.organism.d.ts.map +1 -0
- package/organisms/navigation-list/ng-atomic-components-organisms-navigation-list.d.ts +6 -0
- package/organisms/navigation-list/ng-atomic-components-organisms-navigation-list.d.ts.map +1 -0
- package/organisms/navigation-list/package.json +10 -0
- package/package.json +28 -27
- package/templates/menu/menu.module.d.ts +2 -2
- package/templates/menu/menu.template.d.ts +3 -3
- package/templates/menu/menu.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/esm2020/organisms/menu/index.mjs +0 -3
- package/esm2020/organisms/menu/menu.module.mjs +0 -31
- package/esm2020/organisms/menu/menu.organism.mjs +0 -49
- package/esm2020/organisms/menu/ng-atomic-components-organisms-menu.mjs +0 -5
- 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/fesm2015/ng-atomic-components-organisms-menu.mjs +0 -96
- package/fesm2015/ng-atomic-components-organisms-menu.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/fesm2020/ng-atomic-components-organisms-menu.mjs +0 -84
- package/fesm2020/ng-atomic-components-organisms-menu.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
- package/organisms/menu/index.d.ts +0 -3
- package/organisms/menu/index.d.ts.map +0 -1
- package/organisms/menu/menu.module.d.ts +0 -11
- package/organisms/menu/menu.module.d.ts.map +0 -1
- package/organisms/menu/menu.organism.d.ts +0 -10
- package/organisms/menu/menu.organism.d.ts.map +0 -1
- package/organisms/menu/ng-atomic-components-organisms-menu.d.ts +0 -6
- package/organisms/menu/ng-atomic-components-organisms-menu.d.ts.map +0 -1
- package/organisms/menu/package.json +0 -10
|
@@ -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;KACz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CAAA,CAAA;AANd,YAAA,CAAA,IAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,wBAAwB;AACzB,SAAA,CAAA,EAAA,CAAA,CAAA;uFAGU,YAAY,EAAA,CAAA;cARxB,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;gBACR,YAAY,EAAE,CAAC,WAAW,CAAC;AAC3B,gBAAA,OAAO,EAAE;oBACP,YAAY;oBACZ,wBAAwB;AACzB,iBAAA;gBACD,OAAO,EAAE,CAAC,WAAW,CAAC;AACvB,aAAA,CAAA;;wFACY,YAAY,EAAA,EAAA,YAAA,EAAA,CAPR,WAAW,CAAA,EAAA,OAAA,EAAA,CAExB,YAAY;AACZ,QAAA,wBAAwB,aAEhB,WAAW,CAAA,EAAA,CAAA,CAAA,EAAA,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,CAAC;SAC1C,CAAC;KACH,CAAC;AACH,CAAA,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,OAAO,CAAC,mBAAmB,EAAE;AAClD,IAAA,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC;AAClB,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,KA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CAAC,WAAW,CAAC;AAC3B,gBAAA,OAAO,EAAE;oBACP,YAAY;oBACZ,wBAAwB;AACzB,iBAAA;gBACD,OAAO,EAAE,CAAC,WAAW,CAAC;AACvB,aAAA,CAAA;;wFACY,YAAY,EAAA,EAAA,YAAA,EAAA,CAPR,WAAW,CAAA,EAAA,OAAA,EAAA,CAExB,YAAY;AACZ,QAAA,wBAAwB,aAEhB,WAAW,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACbvB;;AAEG;;;;"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, NgModule } from '@angular/core';
|
|
3
|
-
import '@angular/router';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
4
3
|
import { trigger, transition, query, style, animate, animateChild } from '@angular/animations';
|
|
5
|
-
import * as i1 from '@angular/common';
|
|
6
4
|
import { CommonModule } from '@angular/common';
|
|
7
|
-
import * as i2 from '@angular/material/progress-spinner';
|
|
8
5
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
9
6
|
|
|
10
|
-
const
|
|
11
|
-
transition('
|
|
7
|
+
const OVERLAY_ANIMATION = trigger('hasNext', [
|
|
8
|
+
transition('false => true', [
|
|
12
9
|
query(':enter', [
|
|
13
10
|
style({
|
|
14
11
|
position: 'absolute',
|
|
@@ -20,7 +17,7 @@ const slideInAnimation = trigger('routeAnimations', [
|
|
|
20
17
|
query(':enter', [animate('300ms ease-out', style({ left: '0%' }))]),
|
|
21
18
|
query(':enter', animateChild()),
|
|
22
19
|
]),
|
|
23
|
-
transition('
|
|
20
|
+
transition('true => false', [
|
|
24
21
|
query(':leave', [
|
|
25
22
|
style({
|
|
26
23
|
position: 'absolute',
|
|
@@ -34,43 +31,30 @@ const slideInAnimation = trigger('routeAnimations', [
|
|
|
34
31
|
])
|
|
35
32
|
]);
|
|
36
33
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
i0.ɵɵelement(1, "mat-spinner");
|
|
40
|
-
i0.ɵɵelementEnd();
|
|
41
|
-
} }
|
|
42
|
-
const _c0 = [[["", "mainPage", ""]], [["", "nextPage", ""]]];
|
|
43
|
-
const _c1 = ["[mainPage]", "[nextPage]"];
|
|
34
|
+
const _c0 = [[["", "main", ""]], [["", "next", ""]]];
|
|
35
|
+
const _c1 = ["[main]", "[next]"];
|
|
44
36
|
class OverlayFrame {
|
|
45
37
|
constructor() {
|
|
46
|
-
this.
|
|
47
|
-
this.isLoading = false;
|
|
48
|
-
}
|
|
49
|
-
prepareRoute(outlet) {
|
|
50
|
-
return outlet?.activatedRouteData?.['page'];
|
|
38
|
+
this.hasNext = false;
|
|
51
39
|
}
|
|
52
40
|
}
|
|
53
41
|
OverlayFrame.ɵfac = function OverlayFrame_Factory(t) { return new (t || OverlayFrame)(); };
|
|
54
|
-
OverlayFrame.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayFrame, selectors: [["frames-overlay"]], inputs: {
|
|
42
|
+
OverlayFrame.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayFrame, selectors: [["frames-overlay"]], inputs: { hasNext: "hasNext" }, ngContentSelectors: _c1, decls: 4, vars: 1, consts: [[1, "main"], [1, "next"]], template: function OverlayFrame_Template(rf, ctx) { if (rf & 1) {
|
|
55
43
|
i0.ɵɵprojectionDef(_c0);
|
|
56
|
-
i0.ɵɵ
|
|
57
|
-
i0.ɵɵ
|
|
58
|
-
i0.ɵɵprojection(2);
|
|
44
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
45
|
+
i0.ɵɵprojection(1);
|
|
59
46
|
i0.ɵɵelementEnd();
|
|
60
|
-
i0.ɵɵelementStart(
|
|
61
|
-
i0.ɵɵprojection(
|
|
47
|
+
i0.ɵɵelementStart(2, "div", 1);
|
|
48
|
+
i0.ɵɵprojection(3, 1);
|
|
62
49
|
i0.ɵɵelementEnd();
|
|
63
50
|
} if (rf & 2) {
|
|
64
|
-
i0.ɵɵ
|
|
65
|
-
i0.ɵɵ
|
|
66
|
-
|
|
67
|
-
} }, directives: [i1.NgIf, i2.MatProgressSpinner], styles: ["[_nghost-%COMP%]{--cell: 8px;--cell-SCOPED-IN-line-overlay-odU4: var(--cell);--width: 100%;--width-SCOPED-IN-line-overlay-odU4: var(--width);--height: 100%;--height-SCOPED-IN-line-overlay-odU4: var(--height)}[_nghost-%COMP%]{position:relative;display:block;width:var(--width-SCOPED-IN-line-overlay-odU4);height:var(--height-SCOPED-IN-line-overlay-odU4)}[_nghost-%COMP%] .loading[_ngcontent-%COMP%]{position:absolute;z-index:1000;top:0;left:0;display:flex;width:var(--width-SCOPED-IN-line-overlay-odU4);height:var(--height-SCOPED-IN-line-overlay-odU4);justify-content:center;align-items:center;background-color:#0006}[_nghost-%COMP%] .main.page[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:1;width:var(--width-SCOPED-IN-line-overlay-odU4);height:var(--height-SCOPED-IN-line-overlay-odU4);overflow:hidden}[_nghost-%COMP%] .main.page[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{--cell: var(--cell-SCOPED-IN-line-overlay-odU4);--width: var(--width-SCOPED-IN-line-overlay-odU4);--height: var(--height-SCOPED-IN-line-overlay-odU4)}[_nghost-%COMP%] .next.page[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:2;width:var(--width-SCOPED-IN-line-overlay-odU4);height:auto}[_nghost-%COMP%] .next.page[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{--cell: var(--cell-SCOPED-IN-line-overlay-odU4);--width: var(--width-SCOPED-IN-line-overlay-odU4);--height: var(--height-SCOPED-IN-line-overlay-odU4)}"], data: { animation: [slideInAnimation] } });
|
|
51
|
+
i0.ɵɵadvance(2);
|
|
52
|
+
i0.ɵɵproperty("@hasNext", ctx.hasNext);
|
|
53
|
+
} }, styles: ["[_nghost-%COMP%]{--cell: 8px;--cell-SCOPED-IN-line-overlay-j6MO: var(--cell);--width: 100%;--width-SCOPED-IN-line-overlay-j6MO: var(--width);--height: 100%;--height-SCOPED-IN-line-overlay-j6MO: var(--height)}[_nghost-%COMP%]{position:relative;display:block;width:var(--width-SCOPED-IN-line-overlay-j6MO);height:var(--height-SCOPED-IN-line-overlay-j6MO)}[_nghost-%COMP%] .loading[_ngcontent-%COMP%]{position:absolute;z-index:1000;top:0;left:0;display:flex;width:var(--width-SCOPED-IN-line-overlay-j6MO);height:var(--height-SCOPED-IN-line-overlay-j6MO);justify-content:center;align-items:center;background-color:#0006}[_nghost-%COMP%] .main[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:1;width:var(--width-SCOPED-IN-line-overlay-j6MO);height:var(--height-SCOPED-IN-line-overlay-j6MO);overflow:hidden}[_nghost-%COMP%] .main[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{--cell: var(--cell-SCOPED-IN-line-overlay-j6MO);--width: var(--width-SCOPED-IN-line-overlay-j6MO);--height: var(--height-SCOPED-IN-line-overlay-j6MO)}[_nghost-%COMP%] .next[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:2;width:var(--width-SCOPED-IN-line-overlay-j6MO);height:auto}[_nghost-%COMP%] .next[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{--cell: var(--cell-SCOPED-IN-line-overlay-j6MO);--width: var(--width-SCOPED-IN-line-overlay-j6MO);--height: var(--height-SCOPED-IN-line-overlay-j6MO)}"], data: { animation: [OVERLAY_ANIMATION] }, changeDetection: 0 });
|
|
68
54
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayFrame, [{
|
|
69
55
|
type: Component,
|
|
70
|
-
args: [{ selector: 'frames-overlay', animations: [
|
|
71
|
-
}], null, {
|
|
72
|
-
type: Input
|
|
73
|
-
}], isLoading: [{
|
|
56
|
+
args: [{ selector: 'frames-overlay', animations: [OVERLAY_ANIMATION], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"main\">\n <ng-content select=[main]></ng-content>\n</div>\n<div class=\"next\" [@hasNext]=\"hasNext\">\n <ng-content select=[next]></ng-content>\n</div>", styles: [":host{--cell: 8px;--cell-SCOPED-IN-line-overlay-j6MO: var(--cell);--width: 100%;--width-SCOPED-IN-line-overlay-j6MO: var(--width);--height: 100%;--height-SCOPED-IN-line-overlay-j6MO: var(--height)}:host{position:relative;display:block;width:var(--width-SCOPED-IN-line-overlay-j6MO);height:var(--height-SCOPED-IN-line-overlay-j6MO)}:host .loading{position:absolute;z-index:1000;top:0;left:0;display:flex;width:var(--width-SCOPED-IN-line-overlay-j6MO);height:var(--height-SCOPED-IN-line-overlay-j6MO);justify-content:center;align-items:center;background-color:#0006}:host .main{position:absolute;top:0;left:0;z-index:1;width:var(--width-SCOPED-IN-line-overlay-j6MO);height:var(--height-SCOPED-IN-line-overlay-j6MO);overflow:hidden}:host .main *{--cell: var(--cell-SCOPED-IN-line-overlay-j6MO);--width: var(--width-SCOPED-IN-line-overlay-j6MO);--height: var(--height-SCOPED-IN-line-overlay-j6MO)}:host .next{position:absolute;top:0;left:0;z-index:2;width:var(--width-SCOPED-IN-line-overlay-j6MO);height:auto}:host .next *{--cell: var(--cell-SCOPED-IN-line-overlay-j6MO);--width: var(--width-SCOPED-IN-line-overlay-j6MO);--height: var(--height-SCOPED-IN-line-overlay-j6MO)}\n"] }]
|
|
57
|
+
}], null, { hasNext: [{
|
|
74
58
|
type: Input
|
|
75
59
|
}] }); })();
|
|
76
60
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-components-frames-overlay.mjs","sources":["../../../../libs/components/src/frames/overlay/overlay.animations.ts","../../../../libs/components/src/frames/overlay/overlay.frame.
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-frames-overlay.mjs","sources":["../../../../libs/components/src/frames/overlay/overlay.animations.ts","../../../../libs/components/src/frames/overlay/overlay.frame.ts","../../../../libs/components/src/frames/overlay/overlay.frame.html","../../../../libs/components/src/frames/overlay/overlay.module.ts","../../../../libs/components/src/frames/overlay/ng-atomic-components-frames-overlay.ts"],"sourcesContent":["import { trigger, transition, style, query, animateChild, animate } from '@angular/animations';\n\nexport const OVERLAY_ANIMATION = trigger('hasNext', [\n transition('false => true', [\n query(':enter', [\n style({\n position: 'absolute',\n top: '0px',\n left: '0px'\n })\n ]),\n query(':enter', [style({ left: '100%' })]),\n query(':enter', [animate('300ms ease-out', style({ left: '0%' }))]),\n query(':enter', animateChild()),\n ]),\n transition('true => false', [\n query(':leave', [\n style({\n position: 'absolute',\n top: '0px',\n left: '0px'\n })\n ]),\n query(':leave', [style({ left: '0%' })]),\n query(':leave', [animate('300ms ease-in', style({ left: '100%' }))]),\n query(':leave', animateChild()),\n ])\n]);\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { OVERLAY_ANIMATION } from './overlay.animations';\n\n@Component({\n selector: 'frames-overlay',\n templateUrl: './overlay.frame.html',\n styleUrls: ['./overlay.frame.scss'],\n animations: [OVERLAY_ANIMATION],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OverlayFrame {\n @Input()\n hasNext = false;\n}\n","<div class=\"main\">\n <ng-content select=[main]></ng-content>\n</div>\n<div class=\"next\" [@hasNext]=\"hasNext\">\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';\nimport { OverlayFrame } from './overlay.frame';\n\n@NgModule({\n declarations: [OverlayFrame],\n imports: [\n CommonModule,\n MatProgressSpinnerModule\n ],\n exports: [\n OverlayFrame\n ]\n})\nexport class OverlayModule { }\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEO,MAAM,iBAAiB,GAAG,OAAO,CAAC,SAAS,EAAE;IAClD,UAAU,CAAC,eAAe,EAAE;QAC1B,KAAK,CAAC,QAAQ,EAAE;AACd,YAAA,KAAK,CAAC;AACJ,gB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,EAAA,CAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,wBAAwB;AACzB,SAAA,CAAA,EAAA,CAAA,CAAA;uFAKU,aAAa,EAAA,CAAA;cAVzB,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;gBACR,YAAY,EAAE,CAAC,YAAY,CAAC;AAC5B,gBAAA,OAAO,EAAE;oBACP,YAAY;oBACZ,wBAAwB;AACzB,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,YAAY;AACb,iBAAA;AACF,aAAA,CAAA;;wFACY,aAAa,EAAA,EAAA,YAAA,EAAA,CATT,YAAY,CAAA,EAAA,OAAA,EAAA,CAEzB,YAAY;AACZ,QAAA,wBAAwB,aAGxB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACZhB;;AAEG;;;;"}
|
|
@@ -17,10 +17,10 @@ ScrollFrame.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ScrollFrame, se
|
|
|
17
17
|
i0.ɵɵelementStart(2, "div", 1);
|
|
18
18
|
i0.ɵɵprojection(3, 1);
|
|
19
19
|
i0.ɵɵelementEnd();
|
|
20
|
-
} }, directives: [i1.IosSafariScrollBuggyfillDirective], styles: ["[_nghost-%COMP%]{--height: 100%;--height-SCOPED-IN-scroll-
|
|
20
|
+
} }, directives: [i1.IosSafariScrollBuggyfillDirective], styles: ["[_nghost-%COMP%]{--height: 100%;--height-SCOPED-IN-scroll-o87U: var(--height);--navigator-height: 56px;--navigator-height-SCOPED-IN-scroll-o87U: var(--navigator-height)}[_nghost-%COMP%]{height:var(--height-SCOPED-IN-scroll-o87U);overflow:hidden}[_nghost-%COMP%] .navigator-container[_ngcontent-%COMP%]{height:var(--navigator-height-SCOPED-IN-scroll-o87U);overflow:hidden;touch-action:none}[_nghost-%COMP%] .contents-container[_ngcontent-%COMP%]{height:calc(var(--height-SCOPED-IN-scroll-o87U) - var(--navigator-height-SCOPED-IN-scroll-o87U));overflow:scroll;-webkit-overflow-scrolling:touch}"], changeDetection: 0 });
|
|
21
21
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ScrollFrame, [{
|
|
22
22
|
type: Component,
|
|
23
|
-
args: [{ selector: 'frames-scroll', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"navigator-container\" iosSafariScrollBuggyfill>\n <ng-content select=[navigator]></ng-content>\n</div>\n<div class=\"contents-container\">\n <ng-content select=[contents]></ng-content>\n</div>", styles: [":host{--height: 100%;--height-SCOPED-IN-scroll-
|
|
23
|
+
args: [{ selector: 'frames-scroll', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"navigator-container\" iosSafariScrollBuggyfill>\n <ng-content select=[navigator]></ng-content>\n</div>\n<div class=\"contents-container\">\n <ng-content select=[contents]></ng-content>\n</div>", styles: [":host{--height: 100%;--height-SCOPED-IN-scroll-o87U: var(--height);--navigator-height: 56px;--navigator-height-SCOPED-IN-scroll-o87U: var(--navigator-height)}:host{height:var(--height-SCOPED-IN-scroll-o87U);overflow:hidden}:host .navigator-container{height:var(--navigator-height-SCOPED-IN-scroll-o87U);overflow:hidden;touch-action:none}:host .contents-container{height:calc(var(--height-SCOPED-IN-scroll-o87U) - var(--navigator-height-SCOPED-IN-scroll-o87U));overflow:scroll;-webkit-overflow-scrolling:touch}\n"] }]
|
|
24
24
|
}], null, null); })();
|
|
25
25
|
|
|
26
26
|
class ScrollModule {
|
|
@@ -33,10 +33,10 @@ SmartMenuFrame.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartMenuFra
|
|
|
33
33
|
i0.ɵɵelementStart(3, "div", 2, 3);
|
|
34
34
|
i0.ɵɵprojection(5, 1);
|
|
35
35
|
i0.ɵɵelementEnd();
|
|
36
|
-
} }, styles: ["[_nghost-%COMP%]{--gap: 1px;--gap-SCOPED-IN-smart-menu-
|
|
36
|
+
} }, styles: ["[_nghost-%COMP%]{--gap: 1px;--gap-SCOPED-IN-smart-menu-Dyrk: var(--gap);--background: #ccc;--background-SCOPED-IN-smart-menu-Dyrk: var(--background);--contents-background: transparent;--contents-background-SCOPED-IN-smart-menu-Dyrk: var(--contents-background)}[_nghost-%COMP%]{position:relative;display:flex;justify-content:flex-start;grid-gap:var(--gap-SCOPED-IN-smart-menu-Dyrk);gap:var(--gap-SCOPED-IN-smart-menu-Dyrk);width:-moz-fit-content;width:fit-content;height:100%;background:var(--background-SCOPED-IN-smart-menu-Dyrk)}[_nghost-%COMP%] .contents[_ngcontent-%COMP%]{display:flex;max-width:-moz-fit-content;max-width:fit-content;height:100%;background:var(--contents-background-SCOPED-IN-smart-menu-Dyrk)}[_nghost-%COMP%] .contents.menu[_ngcontent-%COMP%]{overflow:hidden;justify-content:flex-end}[_nghost-%COMP%] .contents.contents[_ngcontent-%COMP%]{overflow:visible;justify-content:flex-start}"], changeDetection: 0 });
|
|
37
37
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartMenuFrame, [{
|
|
38
38
|
type: Component,
|
|
39
|
-
args: [{ selector: 'frames-smart-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"menu\" #menu>\n <ng-content select=\"[menu]\"></ng-content>\n</div>\n<div class=\"contents\" #contents>\n <ng-content select=\"[contents]\"></ng-content>\n</div>", styles: [":host{--gap: 1px;--gap-SCOPED-IN-smart-menu-
|
|
39
|
+
args: [{ selector: 'frames-smart-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"menu\" #menu>\n <ng-content select=\"[menu]\"></ng-content>\n</div>\n<div class=\"contents\" #contents>\n <ng-content select=\"[contents]\"></ng-content>\n</div>", styles: [":host{--gap: 1px;--gap-SCOPED-IN-smart-menu-Dyrk: var(--gap);--background: #ccc;--background-SCOPED-IN-smart-menu-Dyrk: var(--background);--contents-background: transparent;--contents-background-SCOPED-IN-smart-menu-Dyrk: var(--contents-background)}:host{position:relative;display:flex;justify-content:flex-start;grid-gap:var(--gap-SCOPED-IN-smart-menu-Dyrk);gap:var(--gap-SCOPED-IN-smart-menu-Dyrk);width:-moz-fit-content;width:fit-content;height:100%;background:var(--background-SCOPED-IN-smart-menu-Dyrk)}:host .contents{display:flex;max-width:-moz-fit-content;max-width:fit-content;height:100%;background:var(--contents-background-SCOPED-IN-smart-menu-Dyrk)}:host .contents.menu{overflow:hidden;justify-content:flex-end}:host .contents.contents{overflow:visible;justify-content:flex-start}\n"] }]
|
|
40
40
|
}], null, { isMainHidden: [{
|
|
41
41
|
type: HostBinding,
|
|
42
42
|
args: ['attr.is-main-hidden']
|
|
@@ -53,10 +53,10 @@ DateInputFieldMolecule.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Date
|
|
|
53
53
|
i0.ɵɵproperty("for", _r0);
|
|
54
54
|
i0.ɵɵadvance(3);
|
|
55
55
|
i0.ɵɵproperty("ngIf", ctx.hint);
|
|
56
|
-
} }, directives: [i1.MatFormField, i1.MatLabel, i2.MatInput, i3.DefaultValueAccessor, i4.MatDatepickerInput, i3.NgControlStatus, i3.FormControlDirective, i4.MatDatepickerToggle, i1.MatSuffix, i4.MatDatepicker, i5.NgIf, i1.MatHint], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-
|
|
56
|
+
} }, directives: [i1.MatFormField, i1.MatLabel, i2.MatInput, i3.DefaultValueAccessor, i4.MatDatepickerInput, i3.NgControlStatus, i3.FormControlDirective, i4.MatDatepickerToggle, i1.MatSuffix, i4.MatDatepicker, i5.NgIf, i1.MatHint], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-Z4x2: var(--horizontal-padding)}[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
57
57
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateInputFieldMolecule, [{
|
|
58
58
|
type: Component,
|
|
59
|
-
args: [{ selector: 'molecules-date-input-field', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule field' }, template: "<mat-form-field appearance=\"outline\">\n <mat-label>{{ label }}</mat-label>\n <input matInput [formControl]=\"control\" [placeholder]=\"placeholder\" [matDatepicker]=\"picker\">\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n <mat-hint *ngIf=\"hint\">{{ hint }}</mat-hint>\n</mat-form-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-
|
|
59
|
+
args: [{ selector: 'molecules-date-input-field', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule field' }, template: "<mat-form-field appearance=\"outline\">\n <mat-label>{{ label }}</mat-label>\n <input matInput [formControl]=\"control\" [placeholder]=\"placeholder\" [matDatepicker]=\"picker\">\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n <mat-hint *ngIf=\"hint\">{{ hint }}</mat-hint>\n</mat-form-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-field-Z4x2: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
|
|
60
60
|
}], null, { _control: [{
|
|
61
61
|
type: Input,
|
|
62
62
|
args: ['control']
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/list';
|
|
4
|
+
import { MatListModule } from '@angular/material/list';
|
|
5
|
+
import * as i2 from '@ng-atomic/components/atoms/icon';
|
|
6
|
+
import { IconModule } from '@ng-atomic/components/atoms/icon';
|
|
7
|
+
import * as i3 from '@angular/material/core';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
|
|
10
|
+
class NavigationListItemMolecule {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.selected = false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
NavigationListItemMolecule.ɵfac = function NavigationListItemMolecule_Factory(t) { return new (t || NavigationListItemMolecule)(); };
|
|
16
|
+
NavigationListItemMolecule.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationListItemMolecule, selectors: [["molecules-navigation-list-item"]], inputs: { item: "item", selected: "selected" }, decls: 4, vars: 5, consts: [[3, "value", "selected"], ["mat-list-icon", "", 3, "name", "color"], ["mat-line", ""]], template: function NavigationListItemMolecule_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
i0.ɵɵelementStart(0, "mat-list-option", 0);
|
|
18
|
+
i0.ɵɵelement(1, "atoms-icon", 1);
|
|
19
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
20
|
+
i0.ɵɵtext(3);
|
|
21
|
+
i0.ɵɵelementEnd()();
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
i0.ɵɵproperty("value", ctx.item.id)("selected", ctx.selected);
|
|
24
|
+
i0.ɵɵadvance(1);
|
|
25
|
+
i0.ɵɵproperty("name", ctx.item == null ? null : ctx.item.icon)("color", ctx.item == null ? null : ctx.item.color);
|
|
26
|
+
i0.ɵɵadvance(2);
|
|
27
|
+
i0.ɵɵtextInterpolate(ctx.item.name);
|
|
28
|
+
} }, directives: [i1.MatListOption, i2.IconAtom, i1.MatListIconCssMatStyler, i3.MatLine], styles: [":host{display:block}\n"], encapsulation: 2, changeDetection: 0 });
|
|
29
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationListItemMolecule, [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'molecules-navigation-list-item', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-list-option [value]=\"item.id\" [selected]=\"selected\">\n <atoms-icon mat-list-icon [name]=\"item?.icon\" [color]=\"item?.color\"></atoms-icon>\n <div mat-line>{{item.name}}</div>\n</mat-list-option>", styles: [":host{display:block}\n"] }]
|
|
32
|
+
}], null, { item: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], selected: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}] }); })();
|
|
37
|
+
|
|
38
|
+
class NavigationListItemModule {
|
|
39
|
+
}
|
|
40
|
+
NavigationListItemModule.ɵfac = function NavigationListItemModule_Factory(t) { return new (t || NavigationListItemModule)(); };
|
|
41
|
+
NavigationListItemModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: NavigationListItemModule });
|
|
42
|
+
NavigationListItemModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
43
|
+
CommonModule,
|
|
44
|
+
// Materials
|
|
45
|
+
MatListModule,
|
|
46
|
+
// Atoms
|
|
47
|
+
IconModule,
|
|
48
|
+
]] });
|
|
49
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationListItemModule, [{
|
|
50
|
+
type: NgModule,
|
|
51
|
+
args: [{
|
|
52
|
+
declarations: [
|
|
53
|
+
NavigationListItemMolecule
|
|
54
|
+
],
|
|
55
|
+
imports: [
|
|
56
|
+
CommonModule,
|
|
57
|
+
// Materials
|
|
58
|
+
MatListModule,
|
|
59
|
+
// Atoms
|
|
60
|
+
IconModule,
|
|
61
|
+
],
|
|
62
|
+
exports: [
|
|
63
|
+
NavigationListItemMolecule
|
|
64
|
+
]
|
|
65
|
+
}]
|
|
66
|
+
}], null, null); })();
|
|
67
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NavigationListItemModule, { declarations: [NavigationListItemMolecule], imports: [CommonModule,
|
|
68
|
+
// Materials
|
|
69
|
+
MatListModule,
|
|
70
|
+
// Atoms
|
|
71
|
+
IconModule], exports: [NavigationListItemMolecule] }); })();
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Generated bundle index. Do not edit.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
export { NavigationListItemModule, NavigationListItemMolecule };
|
|
78
|
+
//# sourceMappingURL=ng-atomic-components-molecules-navigation-list-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-molecules-navigation-list-item.mjs","sources":["../../../../libs/components/src/molecules/navigation-list-item/navigation-list-item.molecule.ts","../../../../libs/components/src/molecules/navigation-list-item/navigation-list-item.molecule.html","../../../../libs/components/src/molecules/navigation-list-item/navigation-list-item.module.ts","../../../../libs/components/src/molecules/navigation-list-item/ng-atomic-components-molecules-navigation-list-item.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input } from '@angular/core';\nimport { ActionItem } from '@ng-atomic/common/models';\n\n@Component({\n selector: 'molecules-navigation-list-item',\n templateUrl: './navigation-list-item.molecule.html',\n styleUrls: ['./navigation-list-item.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NavigationListItemMolecule {\n\n @Input()\n item!: ActionItem;\n\n @Input()\n selected = false;\n\n}\n","<mat-list-option [value]=\"item.id\" [selected]=\"selected\">\n <atoms-icon mat-list-icon [name]=\"item?.icon\" [color]=\"item?.color\"></atoms-icon>\n <div mat-line>{{item.name}}</div>\n</mat-list-option>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatListModule } from '@angular/material/list';\nimport { IconModule } from '@ng-atomic/components/atoms/icon';\n\nimport { NavigationListItemMolecule } from './navigation-list-item.molecule';\n\n\n\n@NgModule({\n declarations: [\n NavigationListItemMolecule\n ],\n imports: [\n CommonModule,\n // Materials\n MatListModule,\n // Atoms\n IconModule,\n ],\n exports: [\n NavigationListItemMolecule\n ]\n})\nexport class NavigationListItemModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\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;;AAEb,QAAA,UAAU,aAGV,0BAA0B,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACrB9B;;AAEG;;;;"}
|
|
@@ -43,10 +43,10 @@ SelectInputFieldMolecule.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Se
|
|
|
43
43
|
i0.ɵɵproperty("formControl", ctx.control);
|
|
44
44
|
i0.ɵɵadvance(1);
|
|
45
45
|
i0.ɵɵproperty("ngForOf", ctx.options)("ngForTrackBy", ctx.value);
|
|
46
|
-
} }, directives: [i1.MatFormField, i1.MatLabel, i2.MatSelect, i3.NgControlStatus, i3.FormControlDirective, i4.NgForOf, i5.MatOption], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-
|
|
46
|
+
} }, directives: [i1.MatFormField, i1.MatLabel, i2.MatSelect, i3.NgControlStatus, i3.FormControlDirective, i4.NgForOf, i5.MatOption], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-MtlZ: var(--horizontal-padding)}[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
47
47
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectInputFieldMolecule, [{
|
|
48
48
|
type: Component,
|
|
49
|
-
args: [{ selector: 'molecules-select-input-field', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule input-field field' }, template: "<mat-form-field appearance=\"outline\">\n <mat-label>{{ label }}</mat-label>\n <mat-select [formControl]=\"control\">\n <mat-option *ngFor=\"let option of options; trackBy value;\" [value]=\"option.value\">\n {{ option.name }}\n </mat-option>\n </mat-select>\n</mat-form-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-
|
|
49
|
+
args: [{ selector: 'molecules-select-input-field', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule input-field field' }, template: "<mat-form-field appearance=\"outline\">\n <mat-label>{{ label }}</mat-label>\n <mat-select [formControl]=\"control\">\n <mat-option *ngFor=\"let option of options; trackBy value;\" [value]=\"option.value\">\n {{ option.name }}\n </mat-option>\n </mat-select>\n</mat-form-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-MtlZ: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
|
|
50
50
|
}], null, { label: [{
|
|
51
51
|
type: Input
|
|
52
52
|
}], control: [{
|
|
@@ -30,10 +30,10 @@ ActionButtonsSectionOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
30
30
|
i0.ɵɵtemplate(0, ActionButtonsSectionOrganism_ng_container_0_Template, 3, 1, "ng-container", 0);
|
|
31
31
|
} if (rf & 2) {
|
|
32
32
|
i0.ɵɵproperty("ngForOf", ctx.actionItems)("ngForTrackBy", ctx.trackById);
|
|
33
|
-
} }, directives: [i1.NgForOf, i2.MatButton], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-
|
|
33
|
+
} }, directives: [i1.NgForOf, i2.MatButton], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-k6Nl: var(--horizontal-padding)}[_nghost-%COMP%]{display:flex;flex-direction:row;grid-gap:8px;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-k6Nl);box-sizing:border-box}[_nghost-%COMP%] button[_ngcontent-%COMP%]{width:100%;height:48px}"], changeDetection: 0 });
|
|
34
34
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionButtonsSectionOrganism, [{
|
|
35
35
|
type: Component,
|
|
36
|
-
args: [{ selector: 'organisms-action-buttons-section', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, template: "<ng-container *ngFor=\"let item of actionItems; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" (click)=\"actionItemClick.emit([item])\">{{ item?.name }}</button>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-
|
|
36
|
+
args: [{ selector: 'organisms-action-buttons-section', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, template: "<ng-container *ngFor=\"let item of actionItems; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" (click)=\"actionItemClick.emit([item])\">{{ item?.name }}</button>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-k6Nl: var(--horizontal-padding)}:host{display:flex;flex-direction:row;grid-gap:8px;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-k6Nl);box-sizing:border-box}:host button{width:100%;height:48px}\n"] }]
|
|
37
37
|
}], null, { actionItems: [{
|
|
38
38
|
type: Input
|
|
39
39
|
}], actionItemClick: [{
|
|
@@ -49,10 +49,10 @@ BackNavigatorOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BackN
|
|
|
49
49
|
i0.ɵɵtextInterpolate(ctx.description || "");
|
|
50
50
|
i0.ɵɵadvance(2);
|
|
51
51
|
i0.ɵɵproperty("actionItems", ctx.actionItems);
|
|
52
|
-
} }, directives: [i1.MatToolbar, i2.NgIf, i3.MatButton, i4.MatIcon, i5.SmartMenuButtonAtom], styles: ["[_nghost-%COMP%]{--height: 64px;--height-SCOPED-IN-back-navigator-
|
|
52
|
+
} }, directives: [i1.MatToolbar, i2.NgIf, i3.MatButton, i4.MatIcon, i5.SmartMenuButtonAtom], styles: ["[_nghost-%COMP%]{--height: 64px;--height-SCOPED-IN-back-navigator-4Yh7: var(--height)}[_nghost-%COMP%]{display:block;width:100%;height:var(--height-SCOPED-IN-back-navigator-4Yh7)}[_nghost-%COMP%] div.text[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}[_nghost-%COMP%] div.text[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{line-height:1em;font-size:12px;margin-bottom:8px;margin-left:4px}[_nghost-%COMP%] mat-toolbar[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;justify-content:space-between;align-items:center}[_nghost-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"], changeDetection: 0 });
|
|
53
53
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BackNavigatorOrganism, [{
|
|
54
54
|
type: Component,
|
|
55
|
-
args: [{ selector: 'organisms-back-navigator', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-toolbar color=\"primary\">\n <div>\n <button mat-icon-button *ngIf=\"canBack\" (click)=\"backButtonClick.emit()\">\n <mat-icon>arrow_back</mat-icon>\n </button>\n <div class=\"text\">\n <span class=\"title\">{{ title || '' }}</span>\n <span class=\"description\">{{ description || '' }}</span>\n </div>\n </div>\n <div>\n <atoms-smart-menu-button\n [actionItems]=\"actionItems\"\n (actionItemClick)=\"actionItemClick.emit($event)\"\n ></atoms-smart-menu-button>\n </div>\n</mat-toolbar>\n", styles: [":host{--height: 64px;--height-SCOPED-IN-back-navigator-
|
|
55
|
+
args: [{ selector: 'organisms-back-navigator', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-toolbar color=\"primary\">\n <div>\n <button mat-icon-button *ngIf=\"canBack\" (click)=\"backButtonClick.emit()\">\n <mat-icon>arrow_back</mat-icon>\n </button>\n <div class=\"text\">\n <span class=\"title\">{{ title || '' }}</span>\n <span class=\"description\">{{ description || '' }}</span>\n </div>\n </div>\n <div>\n <atoms-smart-menu-button\n [actionItems]=\"actionItems\"\n (actionItemClick)=\"actionItemClick.emit($event)\"\n ></atoms-smart-menu-button>\n </div>\n</mat-toolbar>\n", styles: [":host{--height: 64px;--height-SCOPED-IN-back-navigator-4Yh7: var(--height)}:host{display:block;width:100%;height:var(--height-SCOPED-IN-back-navigator-4Yh7)}:host div.text{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}:host div.text .description{line-height:1em;font-size:12px;margin-bottom:8px;margin-left:4px}:host mat-toolbar{display:flex;width:100%;height:100%;justify-content:space-between;align-items:center}:host div{display:flex;justify-content:center;align-items:center}\n"] }]
|
|
56
56
|
}], null, { canBack: [{
|
|
57
57
|
type: Input
|
|
58
58
|
}], title: [{
|
|
@@ -17,10 +17,10 @@ CardInputSectionOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Ca
|
|
|
17
17
|
i0.ɵɵelement(0, "molecules-text-input-field", 0);
|
|
18
18
|
} if (rf & 2) {
|
|
19
19
|
i0.ɵɵproperty("control", ctx.control)("label", ctx.label)("placeholder", ctx.placeholder);
|
|
20
|
-
} }, directives: [i1.TextInputFieldMolecule], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-
|
|
20
|
+
} }, directives: [i1.TextInputFieldMolecule], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-N0Qv: var(--horizontal-padding)}[_nghost-%COMP%]{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-N0Qv);box-sizing:border-box}[_nghost-%COMP%] .molecule.input-field[_ngcontent-%COMP%], [_nghost-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
21
21
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardInputSectionOrganism, [{
|
|
22
22
|
type: Component,
|
|
23
|
-
args: [{ selector: 'organisms-card-input-section', changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-text-input-field\n type=\"text\"\n name=\"cardNumber\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-
|
|
23
|
+
args: [{ selector: 'organisms-card-input-section', changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-text-input-field\n type=\"text\"\n name=\"cardNumber\"\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-N0Qv: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-N0Qv);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"] }]
|
|
24
24
|
}], null, { control: [{
|
|
25
25
|
type: Input
|
|
26
26
|
}], label: [{
|
|
@@ -31,10 +31,10 @@ CvcAndExpInputSectionOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
31
31
|
i0.ɵɵproperty("control", ctx.form.get("expMonth"))("options", ctx.monthOptions);
|
|
32
32
|
i0.ɵɵadvance(1);
|
|
33
33
|
i0.ɵɵproperty("control", ctx.form.get("cvc"));
|
|
34
|
-
} }, directives: [i1.SelectInputFieldMolecule, i2.TextInputFieldMolecule], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-
|
|
34
|
+
} }, directives: [i1.SelectInputFieldMolecule, i2.TextInputFieldMolecule], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-kZiq: var(--horizontal-padding)}[_nghost-%COMP%]{display:flex;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-kZiq);box-sizing:border-box}[_nghost-%COMP%] .field[_ngcontent-%COMP%]:not(:first-child){margin-left:8px}[_nghost-%COMP%] .year.field[_ngcontent-%COMP%], [_nghost-%COMP%] .month.field[_ngcontent-%COMP%]{width:auto}[_nghost-%COMP%] .cvc.field[_ngcontent-%COMP%]{width:100px}"], changeDetection: 0 });
|
|
35
35
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CvcAndExpInputSectionOrganism, [{
|
|
36
36
|
type: Component,
|
|
37
|
-
args: [{ selector: 'organisms-cvc-and-exp-input-section', changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-select-input-field\n class=\"year field\"\n label=\"\u6709\u52B9\u671F\u9650(\u5E74)\"\n [control]=\"form.get('expYear')\"\n [options]=\"yearOptions\"\n></molecules-select-input-field>\n<molecules-select-input-field\n class=\"month field\"\n label=\"\u6709\u52B9\u671F\u9650(\u6708)\"\n [control]=\"form.get('expMonth')\"\n [options]=\"monthOptions\"\n></molecules-select-input-field>\n<molecules-text-input-field\n class=\"cvc field\"\n type=\"text\"\n name=\"cardNumber\"\n label=\"CVC\"\n placeholder=\"4\u6841\u306E\u756A\u53F7\"\n [control]=\"form.get('cvc')\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-
|
|
37
|
+
args: [{ selector: 'organisms-cvc-and-exp-input-section', changeDetection: ChangeDetectionStrategy.OnPush, template: "<molecules-select-input-field\n class=\"year field\"\n label=\"\u6709\u52B9\u671F\u9650(\u5E74)\"\n [control]=\"form.get('expYear')\"\n [options]=\"yearOptions\"\n></molecules-select-input-field>\n<molecules-select-input-field\n class=\"month field\"\n label=\"\u6709\u52B9\u671F\u9650(\u6708)\"\n [control]=\"form.get('expMonth')\"\n [options]=\"monthOptions\"\n></molecules-select-input-field>\n<molecules-text-input-field\n class=\"cvc field\"\n type=\"text\"\n name=\"cardNumber\"\n label=\"CVC\"\n placeholder=\"4\u6841\u306E\u756A\u53F7\"\n [control]=\"form.get('cvc')\"\n></molecules-text-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-text-input-section-kZiq: var(--horizontal-padding)}:host{display:flex;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-text-input-section-kZiq);box-sizing:border-box}:host .field:not(:first-child){margin-left:8px}:host .year.field,:host .month.field{width:auto}:host .cvc.field{width:100px}\n"] }]
|
|
38
38
|
}], null, { form: [{
|
|
39
39
|
type: Input
|
|
40
40
|
}] }); })();
|
|
@@ -17,10 +17,10 @@ DateInputSectionOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Da
|
|
|
17
17
|
i0.ɵɵelement(0, "molecules-date-input-field", 0);
|
|
18
18
|
} if (rf & 2) {
|
|
19
19
|
i0.ɵɵproperty("control", ctx.control)("label", ctx.label)("placeholder", ctx.placeholder);
|
|
20
|
-
} }, directives: [i1.DateInputFieldMolecule], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-
|
|
20
|
+
} }, directives: [i1.DateInputFieldMolecule], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-2VRh: var(--horizontal-padding)}[_nghost-%COMP%]{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-date-input-section-2VRh);box-sizing:border-box}[_nghost-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
21
21
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateInputSectionOrganism, [{
|
|
22
22
|
type: Component,
|
|
23
|
-
args: [{ selector: 'organisms-date-input-section', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, template: "<molecules-date-input-field\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-date-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-
|
|
23
|
+
args: [{ selector: 'organisms-date-input-section', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, template: "<molecules-date-input-field\n [control]=\"control\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n></molecules-date-input-field>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-date-input-section-2VRh: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-date-input-section-2VRh);box-sizing:border-box}:host mat-form-field{width:100%}\n"] }]
|
|
24
24
|
}], null, { control: [{
|
|
25
25
|
type: Input
|
|
26
26
|
}], label: [{
|
|
@@ -115,10 +115,10 @@ HeadingOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeadingOrga
|
|
|
115
115
|
i0.ɵɵproperty("ngSwitchCase", 5);
|
|
116
116
|
i0.ɵɵadvance(1);
|
|
117
117
|
i0.ɵɵproperty("ngSwitchCase", 6);
|
|
118
|
-
} }, directives: [i1.NgSwitch, i1.NgSwitchDefault, i1.NgTemplateOutlet, i1.NgSwitchCase], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-
|
|
118
|
+
} }, directives: [i1.NgSwitch, i1.NgSwitchDefault, i1.NgTemplateOutlet, i1.NgSwitchCase], styles: ["[_nghost-%COMP%]{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-heading-r5Fz: var(--horizontal-padding)}[_nghost-%COMP%]{display:block;width:100%;box-sizing:border-box;padding:0 var(--horizontal-padding-SCOPED-IN-heading-r5Fz)}"], changeDetection: 0 });
|
|
119
119
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HeadingOrganism, [{
|
|
120
120
|
type: Component,
|
|
121
|
-
args: [{ selector: 'organisms-heading', 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-
|
|
121
|
+
args: [{ selector: 'organisms-heading', 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-r5Fz: var(--horizontal-padding)}:host{display:block;width:100%;box-sizing:border-box;padding:0 var(--horizontal-padding-SCOPED-IN-heading-r5Fz)}\n"] }]
|
|
122
122
|
}], null, { level: [{
|
|
123
123
|
type: Input
|
|
124
124
|
}] }); })();
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/list';
|
|
4
|
+
import { MatListModule } from '@angular/material/list';
|
|
5
|
+
import * as i2 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i3 from '@ng-atomic/components/molecules/navigation-list-item';
|
|
8
|
+
import { NavigationListItemModule } from '@ng-atomic/components/molecules/navigation-list-item';
|
|
9
|
+
|
|
10
|
+
function NavigationListOrganism_molecules_navigation_list_item_1_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
12
|
+
i0.ɵɵelementStart(0, "molecules-navigation-list-item", 2);
|
|
13
|
+
i0.ɵɵlistener("click", function NavigationListOrganism_molecules_navigation_list_item_1_Template_molecules_navigation_list_item_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const item_r1 = restoredCtx.$implicit; const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.action.emit(item_r1.id); });
|
|
14
|
+
i0.ɵɵelementEnd();
|
|
15
|
+
} if (rf & 2) {
|
|
16
|
+
const item_r1 = ctx.$implicit;
|
|
17
|
+
i0.ɵɵproperty("item", item_r1);
|
|
18
|
+
} }
|
|
19
|
+
class NavigationListOrganism {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.items = [];
|
|
22
|
+
this.action = new EventEmitter();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
NavigationListOrganism.ɵfac = function NavigationListOrganism_Factory(t) { return new (t || NavigationListOrganism)(); };
|
|
26
|
+
NavigationListOrganism.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationListOrganism, selectors: [["organisms-navigation-list"]], inputs: { items: "items" }, outputs: { action: "action" }, decls: 2, vars: 2, consts: [[3, "multiple"], [3, "item", "click", 4, "ngFor", "ngForOf"], [3, "item", "click"]], template: function NavigationListOrganism_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
+
i0.ɵɵelementStart(0, "mat-selection-list", 0);
|
|
28
|
+
i0.ɵɵtemplate(1, NavigationListOrganism_molecules_navigation_list_item_1_Template, 1, 1, "molecules-navigation-list-item", 1);
|
|
29
|
+
i0.ɵɵelementEnd();
|
|
30
|
+
} if (rf & 2) {
|
|
31
|
+
i0.ɵɵproperty("multiple", false);
|
|
32
|
+
i0.ɵɵadvance(1);
|
|
33
|
+
i0.ɵɵproperty("ngForOf", ctx.items);
|
|
34
|
+
} }, directives: [i1.MatSelectionList, i2.NgForOf, i3.NavigationListItemMolecule], styles: ["[_nghost-%COMP%]{--primary-color: #3f51b5;--primary-color-SCOPED-IN-navigation-list-QgMr: var(--primary-color);--secondary-color: #3f51b5;--secondary-color-SCOPED-IN-navigation-list-QgMr: var(--secondary-color);--color: white;--color-SCOPED-IN-navigation-list-QgMr: var(--color)}[_nghost-%COMP%]{display:block;width:100%;height:100%;background:var(--primary-color-SCOPED-IN-navigation-list-QgMr);color:var(--color-SCOPED-IN-navigation-list-QgMr);box-sizing:border-box}[_nghost-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:3rem!important}[_nghost-%COMP%] .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-QgMr);font-size:12px}[_nghost-%COMP%] .mat-list-item .mat-list-text{padding-left:8px!important}"], changeDetection: 0 });
|
|
35
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationListOrganism, [{
|
|
36
|
+
type: Component,
|
|
37
|
+
args: [{ selector: 'organisms-navigation-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-selection-list [multiple]=\"false\">\n <molecules-navigation-list-item\n *ngFor=\"let item of items\" \n [item]=\"item\"\n (click)=\"action.emit(item.id)\"\n ></molecules-navigation-list-item>\n</mat-selection-list>", styles: [":host{--primary-color: #3f51b5;--primary-color-SCOPED-IN-navigation-list-QgMr: var(--primary-color);--secondary-color: #3f51b5;--secondary-color-SCOPED-IN-navigation-list-QgMr: var(--secondary-color);--color: white;--color-SCOPED-IN-navigation-list-QgMr: var(--color)}:host{display:block;width:100%;height:100%;background:var(--primary-color-SCOPED-IN-navigation-list-QgMr);color:var(--color-SCOPED-IN-navigation-list-QgMr);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-QgMr);font-size:12px}:host ::ng-deep .mat-list-item .mat-list-text{padding-left:8px!important}\n"] }]
|
|
38
|
+
}], null, { items: [{
|
|
39
|
+
type: Input
|
|
40
|
+
}], action: [{
|
|
41
|
+
type: Output
|
|
42
|
+
}] }); })();
|
|
43
|
+
|
|
44
|
+
class NavigationListModule {
|
|
45
|
+
}
|
|
46
|
+
NavigationListModule.ɵfac = function NavigationListModule_Factory(t) { return new (t || NavigationListModule)(); };
|
|
47
|
+
NavigationListModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: NavigationListModule });
|
|
48
|
+
NavigationListModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
49
|
+
CommonModule,
|
|
50
|
+
// Materials
|
|
51
|
+
MatListModule,
|
|
52
|
+
// Molecules
|
|
53
|
+
NavigationListItemModule,
|
|
54
|
+
]] });
|
|
55
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationListModule, [{
|
|
56
|
+
type: NgModule,
|
|
57
|
+
args: [{
|
|
58
|
+
declarations: [NavigationListOrganism],
|
|
59
|
+
imports: [
|
|
60
|
+
CommonModule,
|
|
61
|
+
// Materials
|
|
62
|
+
MatListModule,
|
|
63
|
+
// Molecules
|
|
64
|
+
NavigationListItemModule,
|
|
65
|
+
],
|
|
66
|
+
exports: [NavigationListOrganism]
|
|
67
|
+
}]
|
|
68
|
+
}], null, null); })();
|
|
69
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NavigationListModule, { declarations: [NavigationListOrganism], imports: [CommonModule,
|
|
70
|
+
// Materials
|
|
71
|
+
MatListModule,
|
|
72
|
+
// Molecules
|
|
73
|
+
NavigationListItemModule], exports: [NavigationListOrganism] }); })();
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Generated bundle index. Do not edit.
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
export { NavigationListModule, NavigationListOrganism };
|
|
80
|
+
//# sourceMappingURL=ng-atomic-components-organisms-navigation-list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-organisms-navigation-list.mjs","sources":["../../../../libs/components/src/organisms/navigation-list/navigation-list.organism.html","../../../../libs/components/src/organisms/navigation-list/navigation-list.organism.ts","../../../../libs/components/src/organisms/navigation-list/navigation-list.module.ts","../../../../libs/components/src/organisms/navigation-list/ng-atomic-components-organisms-navigation-list.ts"],"sourcesContent":["<mat-selection-list [multiple]=\"false\">\n <molecules-navigation-list-item\n *ngFor=\"let item of items\" \n [item]=\"item\"\n (click)=\"action.emit(item.id)\"\n ></molecules-navigation-list-item>\n</mat-selection-list>","import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter } from '@angular/core';\nimport { ActionItem } from '@ng-atomic/common/models';\n\n@Component({\n selector: 'organisms-navigation-list',\n templateUrl: './navigation-list.organism.html',\n styleUrls: ['./navigation-list.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NavigationListOrganism {\n @Input()\n items: ActionItem[] = [];\n\n @Output()\n action = new EventEmitter<string>();\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatListModule } from '@angular/material/list';\nimport { NavigationListItemModule } from '@ng-atomic/components/molecules/navigation-list-item';\n\nimport { NavigationListOrganism } from './navigation-list.organism';\n\n@NgModule({\n declarations: [NavigationListOrganism],\n imports: [\n CommonModule,\n // Materials\n MatListModule,\n // Molecules\n NavigationListItemModule,\n ],\n exports: [NavigationListOrganism]\n})\nexport class NavigationListModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IACE,EAIC,CAAA,cAA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