@signal24/vue-foundation 4.3.7 → 4.5.0

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.
@@ -4,5 +4,5 @@ import VfEzSmartSelect from './ez-smart-select.vue';
4
4
  import VfModal from './modal.vue';
5
5
  import VfSmartSelect from './smart-select.vue';
6
6
  export * from './alert-helpers';
7
- export * from './modal-container';
7
+ export * from './overlay-container';
8
8
  export { VfAjaxSelect, VfAlertModal, VfEzSmartSelect, VfModal, VfSmartSelect };
@@ -0,0 +1,25 @@
1
+ import type { OverlayAnchorOptions } from './overlay-types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ overlayId: string;
4
+ anchor: OverlayAnchorOptions;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ overlayId: string;
7
+ anchor: OverlayAnchorOptions;
8
+ }>>>, {}, {}>, {
9
+ default?(_: {}): any;
10
+ }>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,51 @@
1
+ import type { Writable } from 'type-fest';
2
+ import { type AllowedComponentProps, type ComponentInternalInstance, type ComponentPublicInstance, type ComputedOptions, type MethodOptions, type Raw, type VNode, type VNodeProps } from 'vue';
3
+ import type { OverlayAnchorOptions } from './overlay-types';
4
+ interface OverlayOptions {
5
+ anchor?: OverlayAnchorOptions;
6
+ }
7
+ interface OverlayInjection<C extends OverlayComponent> {
8
+ id: string;
9
+ component: OverlayComponentUnwrapped<C>;
10
+ props: OverlayComponentProps<C>;
11
+ options: OverlayOptions;
12
+ vnode: VNode;
13
+ wrapperVnode?: VNode;
14
+ }
15
+ export declare const OverlayContainer: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
+ [key: string]: any;
17
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
18
+ export type Vue__ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
19
+ __isFragment?: never;
20
+ __isTeleport?: never;
21
+ __isSuspense?: never;
22
+ new (...args: any[]): T;
23
+ };
24
+ export type ObjectComponentConfig<T extends Vue__ComponentPublicInstanceConstructor> = T extends Vue__ComponentPublicInstanceConstructor<infer P> ? P : never;
25
+ export type ObjectComponentProps<T extends Vue__ComponentPublicInstanceConstructor> = Writable<Omit<ObjectComponentConfig<T>['$props'], keyof VNodeProps | keyof AllowedComponentProps>>;
26
+ type ObjectOrDefault<T> = T extends object ? T : PropsWithCallback<{}>;
27
+ export type OverlayComponent = Vue__ComponentPublicInstanceConstructor | ((props: any) => any);
28
+ export type OverlayComponentConfig<T> = T extends Vue__ComponentPublicInstanceConstructor ? {
29
+ props: ObjectComponentProps<T>;
30
+ component: Raw<T>;
31
+ } : T extends (props: infer P) => any ? {
32
+ props: Omit<ObjectOrDefault<P>, keyof VNodeProps | keyof AllowedComponentProps>;
33
+ component: T;
34
+ } : never;
35
+ export type OverlayComponentUnwrapped<T extends OverlayComponent> = OverlayComponentConfig<T>['component'];
36
+ export type OverlayComponentProps<T extends OverlayComponent> = OverlayComponentConfig<T>['props'];
37
+ interface PropsWithCallback<T> {
38
+ callback?: (result: T) => void;
39
+ }
40
+ type ComponentReturn<M extends OverlayComponent> = OverlayComponentProps<M> extends PropsWithCallback<infer R> ? R : never;
41
+ export type AnyComponentPublicInstance = {
42
+ $: ComponentInternalInstance;
43
+ };
44
+ export declare function createOverlayInjection<C extends OverlayComponent>(component: C, props: OverlayComponentProps<C>, options?: OverlayOptions): OverlayInjection<C>;
45
+ export declare function dismissOverlayInjectionByInstance(instance: AnyComponentPublicInstance): void;
46
+ export declare function dismissOverlayInjectionByInternalInstance(instance: ComponentInternalInstance): void;
47
+ export declare function dismissOverlayInjectionByVnode(vnode: VNode): boolean;
48
+ export declare function dismissOverlayInjectionById(id: string): boolean;
49
+ export declare function removeOverlayInjection(injection: OverlayInjection<any>): void;
50
+ export declare function presentOverlay<C extends OverlayComponent, R extends ComponentReturn<C>>(component: C, props: Omit<OverlayComponentProps<C>, 'callback'>, options?: OverlayOptions): Promise<R | undefined>;
51
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface OverlayAnchorOptionsObject {
2
+ el: HTMLElement;
3
+ class?: string | string[];
4
+ x?: 'auto' | 'left' | 'center' | 'right';
5
+ y?: 'auto' | 'above' | 'center' | 'below';
6
+ matchWidth?: boolean;
7
+ matchHeight?: boolean;
8
+ }
9
+ export type OverlayAnchorOptions = HTMLElement | OverlayAnchorOptionsObject;
@@ -1,4 +1,4 @@
1
- import type { AnyComponentPublicInstance } from '../components/modal-container';
1
+ import type { AnyComponentPublicInstance } from '../components/overlay-container';
2
2
  declare const MaskState: unique symbol;
3
3
  interface IMaskState {
4
4
  [MaskState]?: {
@@ -37,4 +37,14 @@ interface IWrappedApiClientOptions<P extends ICancelablePromise = ICancelablePro
37
37
  }
38
38
  export declare function isApiError(err: any): err is IApiError;
39
39
  export declare function installApiClientInterceptors({ apiClient, onRequest, onError, CancelablePromise }: IWrappedApiClientOptions): void;
40
+ export declare class FileUploadRequest {
41
+ constructor(blob: Blob);
42
+ validator: null;
43
+ lastModifiedDate: null;
44
+ size: number;
45
+ path: string;
46
+ name: string;
47
+ type: string;
48
+ blob: Blob;
49
+ }
40
50
  export {};
@@ -1 +1 @@
1
- .vf-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100}.vf-modal-wrap{background:rgba(0,0,0,.25);display:flex;justify-content:center;align-items:center}.vf-modal{background:white;box-shadow:0 3px 6px #00000026;min-width:200px;max-width:95%;max-height:95%;display:flex;flex-direction:column}.vf-modal-header,.vf-modal-footer{flex-shrink:0;position:relative}.vf-modal.scrolls>.vf-modal-content{overflow:auto;flex-grow:1;flex-shrink:1;flex-basis:0%}.vf-modal-wrap.vf-alert .vf-modal{max-width:800px}.vf-modal-wrap.vf-alert .vf-modal>.vf-modal-content{padding:12px}.vf-modal-wrap.vf-alert.wait .vf-modal-content{text-align:center}.vf-modal-wrap.vf-alert.destructive button.primary{color:red}.vf-smart-select{position:relative}.vf-smart-select input{width:100%;padding-right:24px!important}.vf-smart-select input.nullable::placeholder{color:#000}.vf-smart-select:after{content:" ";display:block;position:absolute;top:50%;right:8px;margin-top:-3px;width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#333333 transparent transparent transparent;pointer-events:none}.vf-smart-select.open:after{margin-top:-4px;border-width:0 5px 5px 5px;border-color:transparent transparent #333333 transparent}.vf-smart-select:not(.disabled) input{cursor:pointer}.vf-smart-select.disabled:after{opacity:.4}.vf-smart-select-options{visibility:hidden;position:absolute;min-height:20px;border:1px solid #e8e8e8;background:white;overflow:auto;z-index:101}.vf-smart-select-options .option,.vf-smart-select-options .no-results{padding:5px 8px}.vf-smart-select-options .option{cursor:pointer}.vf-smart-select-options .option.highlighted{background-color:#f5f5f5}
1
+ .vf-overlay-anchor{position:absolute}.vf-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100}.vf-modal-wrap{background:rgba(0,0,0,.25);display:flex;justify-content:center;align-items:center}.vf-modal{background:white;box-shadow:0 3px 6px #00000026;min-width:200px;max-width:95%;max-height:95%;display:flex;flex-direction:column}.vf-modal-header,.vf-modal-footer{flex-shrink:0;position:relative}.vf-modal.scrolls>.vf-modal-content{overflow:auto;flex-grow:1;flex-shrink:1;flex-basis:0%}.vf-modal-wrap.vf-alert .vf-modal{max-width:800px}.vf-modal-wrap.vf-alert .vf-modal>.vf-modal-content{padding:12px}.vf-modal-wrap.vf-alert.wait .vf-modal-content{text-align:center}.vf-modal-wrap.vf-alert.destructive button.primary{color:red}.vf-smart-select{position:relative}.vf-smart-select input{width:100%;padding-right:24px!important}.vf-smart-select input.nullable::placeholder{color:#000}.vf-smart-select:after{content:" ";display:block;position:absolute;top:50%;right:8px;margin-top:-3px;width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#333333 transparent transparent transparent;pointer-events:none}.vf-smart-select.open:after{margin-top:-4px;border-width:0 5px 5px 5px;border-color:transparent transparent #333333 transparent}.vf-smart-select:not(.disabled) input{cursor:pointer}.vf-smart-select.disabled:after{opacity:.4}.vf-smart-select-options{visibility:hidden;position:absolute;min-height:20px;border:1px solid #e8e8e8;background:white;overflow:auto;z-index:101}.vf-smart-select-options .option,.vf-smart-select-options .no-results{padding:5px 8px}.vf-smart-select-options .option{cursor:pointer}.vf-smart-select-options .option.highlighted{background-color:#f5f5f5}