@osovitny/anatoly 2.14.20 → 2.14.21

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.
@@ -0,0 +1,17 @@
1
+ export declare class DOM {
2
+ private static dir;
3
+ static first(elements: HTMLElement[]): HTMLElement;
4
+ static any(elements: HTMLElement[]): boolean;
5
+ static parent(elem: HTMLElement): HTMLElement;
6
+ static parents(elem: HTMLElement, selector?: any): any[];
7
+ static findInDocument(selector: string): HTMLElement[];
8
+ static find(elem: any, selector: string): HTMLElement[];
9
+ static remove(nodes: any): void;
10
+ static findAndRemove(element: any, selector: any): void;
11
+ static show(elem: any): void;
12
+ static hide(elem: any): void;
13
+ static each(selector: any, action: any): void;
14
+ static addClass(elem: Node | Element, classNames: any): void;
15
+ static removeClass(elem: Node | Element, classNames: any): void;
16
+ static hasClass(elem: Node | Element, className: any): void;
17
+ }
@@ -19,6 +19,7 @@ export * from './services/web-storage.service';
19
19
  export * from './services/dm.service';
20
20
  export * from './services/google-analytics.service';
21
21
  export * from './convert';
22
+ export * from './dom';
22
23
  export * from './guid';
23
24
  export * from './subs';
24
25
  export * from './utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osovitny/anatoly",
3
- "version": "2.14.20",
3
+ "version": "2.14.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "14.0.6",
6
6
  "@angular/core": "14.0.6"