@net7/boilerplate-arianna 3.7.3 → 3.8.1

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.
Files changed (27) hide show
  1. package/esm2020/lib/components/index.mjs +2 -1
  2. package/esm2020/lib/components/scheda-image-navigator/scheda-image-navigator.mjs +22 -0
  3. package/esm2020/lib/config-types/arianna/layouts.mjs +1 -1
  4. package/esm2020/lib/data-sources/index.mjs +2 -1
  5. package/esm2020/lib/data-sources/scheda-image-navigator.ds.mjs +82 -0
  6. package/esm2020/lib/data-sources/scheda-image.ds.mjs +11 -2
  7. package/esm2020/lib/event-handlers/index.mjs +2 -1
  8. package/esm2020/lib/event-handlers/scheda-image-navigator.eh.mjs +18 -0
  9. package/esm2020/lib/layouts/scheda-layout/scheda-layout.config.mjs +2 -1
  10. package/esm2020/lib/layouts/scheda-layout/scheda-layout.ds.mjs +11 -3
  11. package/esm2020/lib/layouts/scheda-layout/scheda-layout.mjs +7 -6
  12. package/esm2020/lib/n7-boilerplate-arianna.module.mjs +7 -3
  13. package/fesm2015/net7-boilerplate-arianna.mjs +148 -7
  14. package/fesm2015/net7-boilerplate-arianna.mjs.map +1 -1
  15. package/fesm2020/net7-boilerplate-arianna.mjs +146 -7
  16. package/fesm2020/net7-boilerplate-arianna.mjs.map +1 -1
  17. package/lib/components/index.d.ts +1 -0
  18. package/lib/components/scheda-image-navigator/scheda-image-navigator.d.ts +17 -0
  19. package/lib/config-types/arianna/layouts.d.ts +6 -0
  20. package/lib/data-sources/index.d.ts +1 -0
  21. package/lib/data-sources/scheda-image-navigator.ds.d.ts +16 -0
  22. package/lib/data-sources/scheda-image.ds.d.ts +2 -0
  23. package/lib/event-handlers/index.d.ts +1 -0
  24. package/lib/event-handlers/scheda-image-navigator.eh.d.ts +6 -0
  25. package/lib/n7-boilerplate-arianna.module.d.ts +7 -6
  26. package/package.json +1 -1
  27. package/src/lib/styles/arianna/components/_scheda-image-navigator.scss +51 -0
@@ -5,3 +5,4 @@ export * from './aw-facets-wrapper/aw-facets-wrapper';
5
5
  export * from './pdf-viewer/pdf-viewer';
6
6
  export * from './scheda-dropdown/scheda-dropdown';
7
7
  export * from './extended-tree/extended-tree';
8
+ export * from './scheda-image-navigator/scheda-image-navigator';
@@ -0,0 +1,17 @@
1
+ import { InputTextData } from '@net7/components';
2
+ import * as i0 from "@angular/core";
3
+ export declare type SchedaImageNavigatorData = {
4
+ input: InputTextData;
5
+ button: {
6
+ label: string;
7
+ disabled?: boolean;
8
+ };
9
+ classes?: string;
10
+ };
11
+ export declare class SchedaImageNavigatorComponent {
12
+ data: SchedaImageNavigatorData;
13
+ emit: (type: string, payload?: unknown) => void;
14
+ onSubmit(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SchedaImageNavigatorComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SchedaImageNavigatorComponent, "aw-scheda-image-navigator", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
17
+ }
@@ -104,6 +104,12 @@ export interface ConfigAriannaSchedaLayout {
104
104
  /** extended tree lite version? */
105
105
  lite?: boolean;
106
106
  };
107
+ /** image viewer navigation */
108
+ 'image-viewer-nav'?: {
109
+ enabled: boolean;
110
+ label: string;
111
+ buttonText: string;
112
+ };
107
113
  /** title prev/next navigation */
108
114
  'title-nav'?: {
109
115
  enabled: boolean;
@@ -21,6 +21,7 @@ export * from './scheda-metadata.ds';
21
21
  export * from './scheda-pdf.ds';
22
22
  export * from './tree.ds';
23
23
  export * from './extended-tree.ds';
24
+ export * from './scheda-image-navigator.ds';
24
25
  export * from './search-layout-tabs.ds';
25
26
  export * from './aw-facets-wrapper.ds';
26
27
  export * from './gallery-results.ds';
@@ -0,0 +1,16 @@
1
+ import { DataSource } from '@net7/core';
2
+ import { SchedaImageNavigatorData } from '../components/scheda-image-navigator/scheda-image-navigator';
3
+ export declare class AwSchedaImageNavigatorDS extends DataSource {
4
+ private instance;
5
+ private current;
6
+ private total;
7
+ protected transform(instance: any): SchedaImageNavigatorData;
8
+ onChange({ inputPayload, value }: {
9
+ inputPayload: any;
10
+ value: any;
11
+ }): void;
12
+ onSubmit(): void;
13
+ private updateLabel;
14
+ private getLabel;
15
+ private listenViewer;
16
+ }
@@ -1,7 +1,9 @@
1
1
  import { DataSource } from '@net7/core';
2
2
  import { ImageViewerData } from '@net7/components';
3
+ import { Subject } from 'rxjs';
3
4
  export declare class AwSchedaImageDS extends DataSource {
4
5
  private instance;
6
+ instanceLoaded$: Subject<any>;
5
7
  protected transform(data: any): ImageViewerData;
6
8
  hasInstance(): boolean;
7
9
  updateImages(data: any): void;
@@ -10,6 +10,7 @@ export * from './tree.eh';
10
10
  export * from './scheda-dropdown.eh';
11
11
  export * from './scheda-pdf.eh';
12
12
  export * from './extended-tree.eh';
13
+ export * from './scheda-image-navigator.eh';
13
14
  export * from './search-layout-tabs.eh';
14
15
  export * from './aw-facets-wrapper.eh';
15
16
  export * from './gallery-results.eh';
@@ -0,0 +1,6 @@
1
+ import { EventHandler } from '@net7/core';
2
+ import { AwSchedaImageNavigatorDS } from '../data-sources';
3
+ export declare class AwSchedaImageNavigatorEH extends EventHandler {
4
+ dataSource: AwSchedaImageNavigatorDS;
5
+ listen(): void;
6
+ }
@@ -16,14 +16,15 @@ import * as i12 from "./components/pdf-viewer/pdf-viewer";
16
16
  import * as i13 from "./components/scheda-dropdown/scheda-dropdown";
17
17
  import * as i14 from "./components/smart-breadcrumbs/smart-breadcrumbs";
18
18
  import * as i15 from "./components/extended-tree/extended-tree";
19
- import * as i16 from "@angular/common";
20
- import * as i17 from "@angular/router";
21
- import * as i18 from "@net7/components";
22
- import * as i19 from "@net7/boilerplate-common";
23
- import * as i20 from "ngx-extended-pdf-viewer";
19
+ import * as i16 from "./components/scheda-image-navigator/scheda-image-navigator";
20
+ import * as i17 from "@angular/common";
21
+ import * as i18 from "@angular/router";
22
+ import * as i19 from "@net7/components";
23
+ import * as i20 from "@net7/boilerplate-common";
24
+ import * as i21 from "ngx-extended-pdf-viewer";
24
25
  export declare class N7BoilerplateAriannaModule {
25
26
  constructor(initStatus: ApplicationInitStatus, config: ConfigurationService);
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<N7BoilerplateAriannaModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<N7BoilerplateAriannaModule, [typeof i1.AwCollectionLayoutComponent, typeof i2.AwEntitaLayoutComponent, typeof i3.AwFacetsWrapperComponent, typeof i4.AwGalleryLayoutComponent, typeof i5.AwHomeLayoutComponent, typeof i6.AwMapLayoutComponent, typeof i7.AwSchedaLayoutComponent, typeof i8.AwSearchLayoutComponent, typeof i9.AwTimelineLayoutComponent, typeof i10.BubbleChartWrapperComponent, typeof i11.ChartTippyComponent, typeof i12.PdfViewerComponent, typeof i13.SchedaDropdownComponent, typeof i14.SmartBreadcrumbsComponent, typeof i15.ExtendedTreeComponent], [typeof i16.CommonModule, typeof i17.RouterModule, typeof i18.DvComponentsLibModule, typeof i19.N7BoilerplateCommonModule, typeof i20.NgxExtendedPdfViewerModule], [typeof i1.AwCollectionLayoutComponent, typeof i2.AwEntitaLayoutComponent, typeof i3.AwFacetsWrapperComponent, typeof i4.AwGalleryLayoutComponent, typeof i5.AwHomeLayoutComponent, typeof i6.AwMapLayoutComponent, typeof i7.AwSchedaLayoutComponent, typeof i8.AwSearchLayoutComponent, typeof i9.AwTimelineLayoutComponent, typeof i10.BubbleChartWrapperComponent, typeof i11.ChartTippyComponent, typeof i12.PdfViewerComponent, typeof i13.SchedaDropdownComponent, typeof i14.SmartBreadcrumbsComponent, typeof i15.ExtendedTreeComponent]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<N7BoilerplateAriannaModule, [typeof i1.AwCollectionLayoutComponent, typeof i2.AwEntitaLayoutComponent, typeof i3.AwFacetsWrapperComponent, typeof i4.AwGalleryLayoutComponent, typeof i5.AwHomeLayoutComponent, typeof i6.AwMapLayoutComponent, typeof i7.AwSchedaLayoutComponent, typeof i8.AwSearchLayoutComponent, typeof i9.AwTimelineLayoutComponent, typeof i10.BubbleChartWrapperComponent, typeof i11.ChartTippyComponent, typeof i12.PdfViewerComponent, typeof i13.SchedaDropdownComponent, typeof i14.SmartBreadcrumbsComponent, typeof i15.ExtendedTreeComponent, typeof i16.SchedaImageNavigatorComponent], [typeof i17.CommonModule, typeof i18.RouterModule, typeof i19.DvComponentsLibModule, typeof i20.N7BoilerplateCommonModule, typeof i21.NgxExtendedPdfViewerModule], [typeof i1.AwCollectionLayoutComponent, typeof i2.AwEntitaLayoutComponent, typeof i3.AwFacetsWrapperComponent, typeof i4.AwGalleryLayoutComponent, typeof i5.AwHomeLayoutComponent, typeof i6.AwMapLayoutComponent, typeof i7.AwSchedaLayoutComponent, typeof i8.AwSearchLayoutComponent, typeof i9.AwTimelineLayoutComponent, typeof i10.BubbleChartWrapperComponent, typeof i11.ChartTippyComponent, typeof i12.PdfViewerComponent, typeof i13.SchedaDropdownComponent, typeof i14.SmartBreadcrumbsComponent, typeof i15.ExtendedTreeComponent, typeof i16.SchedaImageNavigatorComponent]>;
28
29
  static ɵinj: i0.ɵɵInjectorDeclaration<N7BoilerplateAriannaModule>;
29
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/boilerplate-arianna",
3
- "version": "3.7.3",
3
+ "version": "3.8.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~13.2.0",
6
6
  "@angular/core": "~13.2.0"
@@ -0,0 +1,51 @@
1
+ /**
2
+ * SCHEDA IMAGE NAVIGATOR
3
+ */
4
+
5
+ .aw-scheda-image-navigator {
6
+ display: flex;
7
+ align-items: center;
8
+ margin: $space;
9
+ justify-content: end;
10
+
11
+ .n7-input-text {
12
+ display: flex;
13
+ align-items: center;
14
+
15
+ .n7-input-text__label {
16
+ margin-bottom: 0;
17
+ }
18
+
19
+ input.n7-input-text__text[type=number] {
20
+ width: 60px;
21
+ margin-left: $space;
22
+ height: $pagination-item-height;
23
+ }
24
+ }
25
+
26
+ &__button {
27
+ button.n7-btn {
28
+ margin-left: $space;
29
+ width: $pagination-item-width;
30
+ height: $pagination-item-height;
31
+ }
32
+ }
33
+
34
+ }
35
+
36
+
37
+ /* ------------------------------------ *\
38
+ #MEDIA-QUERIES
39
+ \* ------------------------------------ */
40
+ @media all and (max-width: $breakpoint-laptop) {
41
+ }
42
+
43
+ @media all and (max-width: $breakpoint-ipad-portrait) {
44
+ }
45
+
46
+ @media all and (max-width: $breakpoint-smartphone-landscape) {
47
+ }
48
+
49
+ /* Retina */
50
+ @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
51
+ }