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 +1 -1
- package/dist/index.d.ts +62 -0
- package/dist/jabroni-outfit.es.js +2 -1
- package/dist/jabroni-outfit.es.js.map +1 -0
- package/dist/jabroni-outfit.umd.js +2 -1
- package/dist/jabroni-outfit.umd.js.map +1 -0
- package/package.json +22 -12
- package/src/store/store.ts +1 -1
- package/src/{example.ts → test/example.ts} +6 -5
- package/src/test/umd-example.js +31 -0
- package/src/ui/index.ts +1 -1
- package/.vscode/extensions.json +0 -3
- package/biome.json +0 -35
- package/index.html +0 -123
- package/postcss.config.js +0 -6
- package/src/utils/index.ts +0 -8
- package/tailwind.config.js +0 -18
- package/tsconfig.json +0 -28
- package/vite.config.js +0 -33
package/README.md
CHANGED
package/dist/index.d.ts
ADDED
|
@@ -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(
|
|
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
|