mypgs 1.4.1 → 1.5.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.
@@ -1,76 +0,0 @@
1
- declare global {
2
- type PgsSelectorValue = string | string[];
3
- type PgsStateValue = string | string[];
4
-
5
- interface PgsQueryableApi {
6
- querySelector(value: PgsSelectorValue): Element | null;
7
- querySelectorAll(value: PgsSelectorValue): NodeListOf<Element>;
8
- }
9
-
10
- interface PgsStateApi {
11
- (...values: PgsStateValue[]): PgsStateApi;
12
- add(...values: PgsStateValue[]): PgsStateApi;
13
- remove(...values: PgsStateValue[]): PgsStateApi;
14
- toggle(value: string, force?: boolean): boolean;
15
- contains(value: string): boolean;
16
- value: string | null;
17
- }
18
-
19
- interface PgsOptionApi {
20
- contains(key: string): boolean;
21
- getValueBrackets(key: string): string | undefined;
22
- value: string | null;
23
- }
24
-
25
- interface PgsElementApi extends PgsQueryableApi {
26
- (): PgsElementApi;
27
- add(...values: string[]): PgsElementApi;
28
- remove(...values: string[]): PgsElementApi;
29
- toggle(value: string, force?: boolean): boolean;
30
- contains(value: string): boolean;
31
- value: string | null;
32
- state: PgsStateApi;
33
- option: PgsOptionApi;
34
- }
35
-
36
- interface PgsDocumentApi extends PgsQueryableApi {
37
- (): PgsDocumentApi;
38
- }
39
-
40
- type PgsApi = PgsElementApi | PgsDocumentApi;
41
-
42
- interface PgsFunction {
43
- (root: Document): PgsDocumentApi;
44
- (root: Element): PgsElementApi;
45
- (root: Document | Element): PgsApi;
46
- registerImport(...modules: unknown[]): PgsFunction;
47
- registerModules(modules: Record<string, any>): PgsFunction;
48
- import(...names: string[]): Record<string, any>;
49
- accordion?: any;
50
- dropdown?: any;
51
- menu?: any;
52
- modal?: any;
53
- notification?: any;
54
- slides?: any;
55
- stepTabs?: any;
56
- steps?: any;
57
- summary?: any;
58
- formValidate?: any;
59
- scrollHorizontal?: any;
60
- [moduleName: string]: any;
61
- }
62
-
63
- interface PgsBag extends PgsElementApi {}
64
-
65
- namespace React {
66
- interface HTMLAttributes<T> {
67
- pgsHtml?: string;
68
- }
69
- }
70
-
71
- var pgs: PgsFunction;
72
- }
73
-
74
- export function pgs(root: Document): PgsDocumentApi;
75
- export function pgs(root: Element): PgsElementApi;
76
- export function pgs(root: Document | Element): PgsApi;