@aerogel/core 0.1.0 → 0.1.1-next.1a964fb10cbea49d0eed8de0623c9b71ce8442f4
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/dist/aerogel-core.d.ts +23 -6
- package/dist/aerogel-core.js +957 -927
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/Form.vue +1 -1
- package/src/directives/index.ts +10 -8
- package/src/directives/safe-html.ts +10 -0
- package/src/utils/composition/reactiveSet.test.ts +32 -0
- package/src/utils/composition/reactiveSet.ts +53 -0
- package/src/utils/index.ts +1 -0
package/dist/aerogel-core.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
153
153
|
as?: string;
|
|
154
154
|
}> & Readonly<{
|
|
155
155
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
156
|
-
}>, "id" | "value" | "name" | "description" | "errors" | "
|
|
156
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
|
|
157
157
|
id: string;
|
|
158
158
|
name: ComputedRef<string | undefined>;
|
|
159
159
|
label: ComputedRef<string | undefined>;
|
|
@@ -649,7 +649,7 @@ declare function __VLS_template_18(): {
|
|
|
649
649
|
as?: string;
|
|
650
650
|
}> & Readonly<{
|
|
651
651
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
652
|
-
}>, "id" | "value" | "name" | "description" | "errors" | "
|
|
652
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
|
|
653
653
|
id: string;
|
|
654
654
|
name: ComputedRef<string | undefined>;
|
|
655
655
|
label: ComputedRef<string | undefined>;
|
|
@@ -1221,6 +1221,13 @@ export declare type AcceptRefs<T> = {
|
|
|
1221
1221
|
|
|
1222
1222
|
export declare const AdvancedOptions: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
|
|
1223
1223
|
|
|
1224
|
+
export declare type AerogelDirectives = typeof aerogelDirectives;
|
|
1225
|
+
|
|
1226
|
+
export declare const aerogelDirectives: {
|
|
1227
|
+
readonly measure: Directive<any, MeasureDirectiveValue, MeasureDirectiveModifiers>;
|
|
1228
|
+
readonly 'safe-html': Directive<any, string, string>;
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1224
1231
|
export declare type AerogelGlobalEvents = Partial<{
|
|
1225
1232
|
[Event in EventWithoutPayload]: () => unknown;
|
|
1226
1233
|
}> & Partial<{
|
|
@@ -1920,7 +1927,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
1920
1927
|
as?: string;
|
|
1921
1928
|
}> & Readonly<{
|
|
1922
1929
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1923
|
-
}>, "id" | "value" | "name" | "description" | "errors" | "
|
|
1930
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
|
|
1924
1931
|
id: string;
|
|
1925
1932
|
name: ComputedRef<string | undefined>;
|
|
1926
1933
|
label: ComputedRef<string | undefined>;
|
|
@@ -2172,6 +2179,17 @@ export declare type PromptOptions = AcceptRefs<{
|
|
|
2172
2179
|
trim?: boolean;
|
|
2173
2180
|
}>;
|
|
2174
2181
|
|
|
2182
|
+
export declare type ReactiveSet<T = unknown> = ReturnType<typeof reactiveSet<T>>;
|
|
2183
|
+
|
|
2184
|
+
export declare function reactiveSet<T>(initial?: T[] | Set<T>): {
|
|
2185
|
+
values(): T[];
|
|
2186
|
+
has(item: T): boolean;
|
|
2187
|
+
add(item: T): void;
|
|
2188
|
+
delete(item: T): void;
|
|
2189
|
+
clear(): void;
|
|
2190
|
+
reset(items?: T[] | Set<T>): void;
|
|
2191
|
+
};
|
|
2192
|
+
|
|
2175
2193
|
export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
|
|
2176
2194
|
|
|
2177
2195
|
export declare function registerErrorHandler(handler: ErrorHandler_2): void;
|
|
@@ -2414,7 +2432,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
2414
2432
|
as?: string;
|
|
2415
2433
|
}> & Readonly<{
|
|
2416
2434
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2417
|
-
}>, "id" | "value" | "name" | "description" | "errors" | "
|
|
2435
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
|
|
2418
2436
|
id: string;
|
|
2419
2437
|
name: ComputedRef<string | undefined>;
|
|
2420
2438
|
label: ComputedRef<string | undefined>;
|
|
@@ -2633,8 +2651,7 @@ declare module '@aerogel/core' {
|
|
|
2633
2651
|
|
|
2634
2652
|
|
|
2635
2653
|
declare module 'vue' {
|
|
2636
|
-
interface ComponentCustomDirectives {
|
|
2637
|
-
measure: Directive<string, string>;
|
|
2654
|
+
interface ComponentCustomDirectives extends AerogelDirectives {
|
|
2638
2655
|
}
|
|
2639
2656
|
}
|
|
2640
2657
|
|