@ks89/angular-modal-gallery 12.0.0 → 14.0.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.
Files changed (125) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/CONTRIBUTING.md +8 -11
  3. package/LICENSE +1 -1
  4. package/README.md +10 -6
  5. package/fesm2022/ks89-angular-modal-gallery.mjs +832 -909
  6. package/fesm2022/ks89-angular-modal-gallery.mjs.map +1 -1
  7. package/index.d.ts +2528 -3
  8. package/package.json +8 -10
  9. package/esm2022/ks89-angular-modal-gallery.mjs +0 -5
  10. package/esm2022/lib/components/accessibility-default.mjs +0 -41
  11. package/esm2022/lib/components/accessible.component.mjs +0 -130
  12. package/esm2022/lib/components/carousel/carousel-previews/carousel-previews.component.mjs +0 -456
  13. package/esm2022/lib/components/carousel/carousel.component.mjs +0 -738
  14. package/esm2022/lib/components/components.mjs +0 -50
  15. package/esm2022/lib/components/current-image/current-image.component.mjs +0 -607
  16. package/esm2022/lib/components/current-image/loading-spinner/loading-spinner.component.mjs +0 -80
  17. package/esm2022/lib/components/dots/dots.component.mjs +0 -124
  18. package/esm2022/lib/components/modal-gallery/attach-to-overlay.service.mjs +0 -42
  19. package/esm2022/lib/components/modal-gallery/modal-gallery-ref.mjs +0 -103
  20. package/esm2022/lib/components/modal-gallery/modal-gallery.component.mjs +0 -499
  21. package/esm2022/lib/components/modal-gallery/modal-gallery.service.mjs +0 -168
  22. package/esm2022/lib/components/modal-gallery/modal-gallery.tokens.mjs +0 -26
  23. package/esm2022/lib/components/plain-gallery/plain-gallery.component.mjs +0 -249
  24. package/esm2022/lib/components/previews/previews.component.mjs +0 -263
  25. package/esm2022/lib/components/upper-buttons/upper-buttons-default.mjs +0 -76
  26. package/esm2022/lib/components/upper-buttons/upper-buttons.component.mjs +0 -243
  27. package/esm2022/lib/directives/a-tag-bg-image.directive.mjs +0 -78
  28. package/esm2022/lib/directives/click-outside.directive.mjs +0 -91
  29. package/esm2022/lib/directives/description.directive.mjs +0 -98
  30. package/esm2022/lib/directives/direction.directive.mjs +0 -73
  31. package/esm2022/lib/directives/directives.mjs +0 -51
  32. package/esm2022/lib/directives/fallback-image.directive.mjs +0 -59
  33. package/esm2022/lib/directives/keyboard-navigation.directive.mjs +0 -64
  34. package/esm2022/lib/directives/margin.directive.mjs +0 -84
  35. package/esm2022/lib/directives/max-size.directive.mjs +0 -75
  36. package/esm2022/lib/directives/size.directive.mjs +0 -76
  37. package/esm2022/lib/directives/swipe.directive.mjs +0 -116
  38. package/esm2022/lib/directives/wrap.directive.mjs +0 -74
  39. package/esm2022/lib/modal-gallery.module.mjs +0 -88
  40. package/esm2022/lib/model/accessibility.interface.mjs +0 -25
  41. package/esm2022/lib/model/action.enum.mjs +0 -36
  42. package/esm2022/lib/model/buttons-config.interface.mjs +0 -62
  43. package/esm2022/lib/model/carousel-config.interface.mjs +0 -25
  44. package/esm2022/lib/model/carousel-image-config.interface.mjs +0 -25
  45. package/esm2022/lib/model/carousel-preview-config.interface.mjs +0 -25
  46. package/esm2022/lib/model/current-image-config.interface.mjs +0 -25
  47. package/esm2022/lib/model/description.interface.mjs +0 -33
  48. package/esm2022/lib/model/dots-config.interface.mjs +0 -25
  49. package/esm2022/lib/model/image-internal.class.mjs +0 -35
  50. package/esm2022/lib/model/image.class.mjs +0 -56
  51. package/esm2022/lib/model/interaction-event.interface.mjs +0 -2
  52. package/esm2022/lib/model/keyboard-config.interface.mjs +0 -25
  53. package/esm2022/lib/model/keyboard.enum.mjs +0 -35
  54. package/esm2022/lib/model/lib-config.interface.mjs +0 -25
  55. package/esm2022/lib/model/loading-config.interface.mjs +0 -37
  56. package/esm2022/lib/model/max-size.interface.mjs +0 -25
  57. package/esm2022/lib/model/modal-gallery-config.interface.mjs +0 -25
  58. package/esm2022/lib/model/plain-gallery-config.interface.mjs +0 -55
  59. package/esm2022/lib/model/play-config.interface.mjs +0 -25
  60. package/esm2022/lib/model/preview-config.interface.mjs +0 -25
  61. package/esm2022/lib/model/size.interface.mjs +0 -25
  62. package/esm2022/lib/model/slide-config.interface.mjs +0 -25
  63. package/esm2022/lib/services/config.service.mjs +0 -388
  64. package/esm2022/lib/services/id-validator.service.mjs +0 -71
  65. package/esm2022/lib/utils/image.util.mjs +0 -48
  66. package/esm2022/lib/utils/user-input.util.mjs +0 -104
  67. package/esm2022/public-api.mjs +0 -42
  68. package/lib/components/accessibility-default.d.ts +0 -5
  69. package/lib/components/accessible.component.d.ts +0 -50
  70. package/lib/components/carousel/carousel-previews/carousel-previews.component.d.ts +0 -195
  71. package/lib/components/carousel/carousel.component.d.ts +0 -276
  72. package/lib/components/components.d.ts +0 -15
  73. package/lib/components/current-image/current-image.component.d.ts +0 -282
  74. package/lib/components/current-image/loading-spinner/loading-spinner.component.d.ts +0 -55
  75. package/lib/components/dots/dots.component.d.ts +0 -81
  76. package/lib/components/modal-gallery/attach-to-overlay.service.d.ts +0 -20
  77. package/lib/components/modal-gallery/modal-gallery-ref.d.ts +0 -64
  78. package/lib/components/modal-gallery/modal-gallery.component.d.ts +0 -246
  79. package/lib/components/modal-gallery/modal-gallery.service.d.ts +0 -100
  80. package/lib/components/modal-gallery/modal-gallery.tokens.d.ts +0 -3
  81. package/lib/components/plain-gallery/plain-gallery.component.d.ts +0 -135
  82. package/lib/components/previews/previews.component.d.ts +0 -155
  83. package/lib/components/upper-buttons/upper-buttons-default.d.ts +0 -29
  84. package/lib/components/upper-buttons/upper-buttons.component.d.ts +0 -132
  85. package/lib/directives/a-tag-bg-image.directive.d.ts +0 -38
  86. package/lib/directives/click-outside.directive.d.ts +0 -24
  87. package/lib/directives/description.directive.d.ts +0 -33
  88. package/lib/directives/direction.directive.d.ts +0 -36
  89. package/lib/directives/directives.d.ts +0 -15
  90. package/lib/directives/fallback-image.directive.d.ts +0 -16
  91. package/lib/directives/keyboard-navigation.directive.d.ts +0 -24
  92. package/lib/directives/margin.directive.d.ts +0 -44
  93. package/lib/directives/max-size.directive.d.ts +0 -33
  94. package/lib/directives/size.directive.d.ts +0 -33
  95. package/lib/directives/swipe.directive.d.ts +0 -35
  96. package/lib/directives/wrap.directive.d.ts +0 -36
  97. package/lib/modal-gallery.module.d.ts +0 -32
  98. package/lib/model/accessibility.interface.d.ts +0 -40
  99. package/lib/model/action.enum.d.ts +0 -11
  100. package/lib/model/buttons-config.interface.d.ts +0 -57
  101. package/lib/model/carousel-config.interface.d.ts +0 -11
  102. package/lib/model/carousel-image-config.interface.d.ts +0 -8
  103. package/lib/model/carousel-preview-config.interface.d.ts +0 -22
  104. package/lib/model/current-image-config.interface.d.ts +0 -12
  105. package/lib/model/description.interface.d.ts +0 -39
  106. package/lib/model/dots-config.interface.d.ts +0 -6
  107. package/lib/model/image-internal.class.d.ts +0 -9
  108. package/lib/model/image.class.d.ts +0 -64
  109. package/lib/model/interaction-event.interface.d.ts +0 -6
  110. package/lib/model/keyboard-config.interface.d.ts +0 -8
  111. package/lib/model/keyboard.enum.d.ts +0 -13
  112. package/lib/model/lib-config.interface.d.ts +0 -39
  113. package/lib/model/loading-config.interface.d.ts +0 -19
  114. package/lib/model/max-size.interface.d.ts +0 -8
  115. package/lib/model/modal-gallery-config.interface.d.ts +0 -16
  116. package/lib/model/plain-gallery-config.interface.d.ts +0 -57
  117. package/lib/model/play-config.interface.d.ts +0 -8
  118. package/lib/model/preview-config.interface.d.ts +0 -12
  119. package/lib/model/size.interface.d.ts +0 -8
  120. package/lib/model/slide-config.interface.d.ts +0 -17
  121. package/lib/services/config.service.d.ts +0 -39
  122. package/lib/services/id-validator.service.d.ts +0 -25
  123. package/lib/utils/image.util.d.ts +0 -10
  124. package/lib/utils/user-input.util.d.ts +0 -80
  125. package/public-api.d.ts +0 -31
@@ -1,10 +0,0 @@
1
- import { Image } from '../model/image.class';
2
- /**
3
- * Utility function to get the index of the input `image` from `arrayOfImages`
4
- * @param image Image to get the index. The image 'id' must be a number >= 0
5
- * @param arrayOfImages Image[] to search the image within it
6
- * @returns number the index of the image. -1 if not found.
7
- * @throws an Error if either image or arrayOfImages are not valid,
8
- * or if the input image doesn't contain an 'id', or the 'id' is < 0
9
- */
10
- export declare function getIndex(image: Image, arrayOfImages: Image[]): number;
@@ -1,80 +0,0 @@
1
- /**
2
- * Key of the keyboard's key `enter`
3
- */
4
- export declare const ENTER_KEY: string;
5
- /**
6
- * Code of the keyboard's key `enter`
7
- */
8
- export declare const ENTER_CODE: string;
9
- /**
10
- * Key of the keyboard's key `esc`
11
- */
12
- export declare const ESC_KEY: string;
13
- /**
14
- * Code of the keyboard's key `esc`
15
- */
16
- export declare const ESC_CODE: string;
17
- /**
18
- * Key of the keyboard's key 'right arrow'
19
- */
20
- export declare const RIGHT_ARROW_KEY: string;
21
- /**
22
- * Code of the keyboard's key 'right arrow'
23
- */
24
- export declare const RIGHT_ARROW_CODE: string;
25
- /**
26
- * Key of the keyboard's key 'left arrow'
27
- */
28
- export declare const LEFT_ARROW_KEY: string;
29
- /**
30
- * Code of the keyboard's key 'left arrow'
31
- */
32
- export declare const LEFT_ARROW_CODE: string;
33
- /**
34
- * Key of the keyboard's key 'left arrow'
35
- */
36
- export declare const UP_ARROW_KEY: string;
37
- /**
38
- * Code of the keyboard's key 'left arrow'
39
- */
40
- export declare const UP_ARROW_CODE: string;
41
- /**
42
- * Key of the keyboard's key 'left arrow'
43
- */
44
- export declare const DOWN_ARROW_KEY: string;
45
- /**
46
- * Code of the keyboard's key 'left arrow'
47
- */
48
- export declare const DOWN_ARROW_CODE: string;
49
- /**
50
- * Key of the keyboard's key `space`
51
- */
52
- export declare const SPACE_KEY: string;
53
- /**
54
- * Code of the keyboard's key `space`
55
- */
56
- export declare const SPACE_CODE: string;
57
- /**
58
- * Const to represent the right direction
59
- */
60
- export declare const DIRECTION_RIGHT: string;
61
- /**
62
- * Const to represent the left direction
63
- */
64
- export declare const DIRECTION_LEFT: string;
65
- /**
66
- * Keycode of the main mouse button
67
- */
68
- export declare const MOUSE_MAIN_BUTTON_CLICK = 0;
69
- /**
70
- * Const NEXT
71
- */
72
- export declare const NEXT = 1;
73
- /**
74
- * Const PREV
75
- */
76
- export declare const PREV = -1;
77
- /**
78
- * Const NOTHING to represents a situation when it isn't both NEXT and PREV
79
- */
80
- export declare const NOTHING = 0;
package/public-api.d.ts DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * Index file to export all interfaces, enums, classes and so on.
3
- * This file represents the public apis.
4
- */
5
- export { GalleryModule } from './lib/modal-gallery.module';
6
- export { Action } from './lib/model/action.enum';
7
- export { Image, PlainImage, ModalImage, ImageEvent, ImageModalEvent } from './lib/model/image.class';
8
- export { Description, DescriptionStrategy } from './lib/model/description.interface';
9
- export { KeyboardConfig } from './lib/model/keyboard-config.interface';
10
- export { DotsConfig } from './lib/model/dots-config.interface';
11
- export { PreviewConfig } from './lib/model/preview-config.interface';
12
- export { AccessibilityConfig } from './lib/model/accessibility.interface';
13
- export { BreakpointsConfig, CarouselPreviewConfig } from './lib/model/carousel-preview-config.interface';
14
- export { CarouselConfig } from './lib/model/carousel-config.interface';
15
- export { PlayConfig } from './lib/model/play-config.interface';
16
- export { CarouselImageConfig } from './lib/model/carousel-image-config.interface';
17
- export { Size } from './lib/model/size.interface';
18
- export { ButtonsConfig, ButtonsStrategy, ButtonType, ButtonEvent } from './lib/model/buttons-config.interface';
19
- export { ModalLibConfig, PlainLibConfig, CarouselLibConfig } from './lib/model/lib-config.interface';
20
- export { ModalGalleryConfig } from './lib/model/modal-gallery-config.interface';
21
- export { CurrentImageConfig } from './lib/model/current-image-config.interface';
22
- export { LoadingConfig, LoadingType } from './lib/model/loading-config.interface';
23
- export { InteractionEvent } from './lib/model/interaction-event.interface';
24
- export { KS_DEFAULT_ACCESSIBILITY_CONFIG } from './lib/components/accessibility-default';
25
- export { KS_DEFAULT_BTN_FULL_SCREEN, KS_DEFAULT_BTN_CLOSE, KS_DEFAULT_BTN_DELETE, KS_DEFAULT_BTN_DOWNLOAD, KS_DEFAULT_BTN_EXTURL, KS_DEFAULT_SIZE } from './lib/components/upper-buttons/upper-buttons-default';
26
- export { PlainGalleryConfig, PlainGalleryLayout, LineLayout, GridLayout, PlainGalleryStrategy, BreakConfig } from './lib/model/plain-gallery-config.interface';
27
- export { ModalGalleryComponent } from './lib/components/modal-gallery/modal-gallery.component';
28
- export { PlainGalleryComponent } from './lib/components/plain-gallery/plain-gallery.component';
29
- export { CarouselComponent } from './lib/components/carousel/carousel.component';
30
- export { ModalGalleryService } from './lib/components/modal-gallery/modal-gallery.service';
31
- export { ModalGalleryRef } from './lib/components/modal-gallery/modal-gallery-ref';