jabroni-outfit 1.4.1 → 1.4.3

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  ## How to use
9
9
  ```
10
- <script src="https://unpkg.com/jabroni-outfit@1.3.0/dist/jabroni-outfit.umd.js"></script>
10
+ <script src="https://unpkg.com/jabroni-outfit@latest/dist/jabroni-outfit.umd.js"></script>
11
11
  ```
12
12
 
13
13
  ```
@@ -0,0 +1,62 @@
1
+ import { Reactive } from 'vue';
2
+
3
+ export declare const DefaultScheme: Scheme;
4
+
5
+ export declare const defaultSchemeWithPrivateFilter: {};
6
+
7
+ export declare const defaultStateInclExclMiscPagination: StateOptions;
8
+
9
+ export declare const defaultStateWithDuration: StateOptions;
10
+
11
+ export declare const defaultStateWithDurationAndPrivacy: StateOptions;
12
+
13
+ export declare const extendDefaultScheme: (newScheme: Scheme) => {};
14
+
15
+ export declare class JabroniOutfitStore {
16
+ private callbacks;
17
+ state: Reactive<RecordV> | undefined;
18
+ stateLocale: Reactive<RecordV> | undefined;
19
+ constructor(options?: StateOptions);
20
+ subscribe(callback: NotifyApply): void;
21
+ notify(subject: RecordV): void;
22
+ parseState: (st: StateOptions) => void;
23
+ }
24
+
25
+ export declare class JabroniOutfitUI {
26
+ constructor({ state, stateLocale }: JabroniOutfitStore, scheme?: Scheme);
27
+ }
28
+
29
+ declare type NotifyApply = (input: RecordV) => void;
30
+
31
+ declare type RecordV = Record<string, string | number | boolean>;
32
+
33
+ declare interface Scheme {
34
+ [key: string]: SchemeRow;
35
+ }
36
+
37
+ declare type SchemeRow = SchemeRowEl[];
38
+
39
+ declare interface SchemeRowEl {
40
+ type: 'checkbox' | 'text' | 'number' | 'span' | 'button';
41
+ model?: string;
42
+ label?: string;
43
+ labelBefore?: string;
44
+ innerText?: string;
45
+ max?: string;
46
+ min?: string;
47
+ step?: string;
48
+ "v-if"?: string;
49
+ placeholder?: string;
50
+ callback?: () => void;
51
+ }
52
+
53
+ declare interface StateOption {
54
+ value: string | number | boolean;
55
+ persistent: boolean;
56
+ watch: boolean | string;
57
+ type: string;
58
+ }
59
+
60
+ declare type StateOptions = Record<string, StateOption>;
61
+
62
+ export { }
@@ -4247,7 +4247,7 @@ const ft = {
4247
4247
  }
4248
4248
  }, Ei = Object.assign({}, ft.EXCLUDE, ft.INCLUDE, ft.MISC, ft.PAGINATION), Vc = Object.assign({}, Ei, ft.DURATION_FILTER), Zc = Object.assign({}, Vc, ft.PRIVACY_FILTER);
4249
4249
  function Cc(e, t) {
4250
- return Number.isInteger(Number.parseInt(e)) ? Number.parseInt(e) : t;
4250
+ return Number.isInteger(parseInt(e)) ? parseInt(e) : t;
4251
4251
  }
4252
4252
  function Sc(e) {
4253
4253
  const t = new DOMParser().parseFromString(e, "text/html").body;
@@ -4467,3 +4467,4 @@ export {
4467
4467
  Zc as defaultStateWithDurationAndPrivacy,
4468
4468
  Tc as extendDefaultScheme
4469
4469
  };
4470
+ //# sourceMappingURL=jabroni-outfit.es.js.map