@bagelink/vue 1.17.2 → 1.17.6
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/assetTransport.d.ts +9 -31
- package/dist/assetTransport.d.ts.map +1 -1
- package/dist/assets.d.ts +39 -20
- package/dist/assets.d.ts.map +1 -1
- package/dist/components/AddressSearch.vue.d.ts +40 -36
- package/dist/components/AddressSearch.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu.vue.d.ts +518 -0
- package/dist/components/ContextMenu.vue.d.ts.map +1 -0
- package/dist/components/Dropdown.types.d.ts +25 -0
- package/dist/components/Dropdown.types.d.ts.map +1 -0
- package/dist/components/Dropdown.vue.d.ts +20 -15
- package/dist/components/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/FilterQuery.vue.d.ts +1 -1
- package/dist/components/FilterQuery.vue.d.ts.map +1 -1
- package/dist/components/Icon/Icon.vue.d.ts +0 -1
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Icon/constants.d.ts +0 -1
- package/dist/components/Icon/constants.d.ts.map +1 -1
- package/dist/components/Icon/types.d.ts +2 -3
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/Swiper.vue.d.ts +1 -1
- package/dist/components/draggable/useDraggable.d.ts.map +1 -1
- package/dist/components/form/inputs/IconPickerInput.vue.d.ts +48 -37
- package/dist/components/form/inputs/IconPickerInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/components/EditorToolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/composables/useCommands.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/composables/useEditor.d.ts +3 -0
- package/dist/components/form/inputs/RichText/composables/useEditor.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/composables/useEditorKeyboard.d.ts +1 -1
- package/dist/components/form/inputs/RichText/composables/useEditorKeyboard.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/utils/commands.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/utils/selection.d.ts +2 -0
- package/dist/components/form/inputs/RichText/utils/selection.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/utils/table.d.ts +34 -8
- package/dist/components/form/inputs/RichText/utils/table.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +71 -63
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +2 -2
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/useBoundedRectDrag.d.ts.map +1 -1
- package/dist/composables/usePointerSession.d.ts +14 -3
- package/dist/composables/usePointerSession.d.ts.map +1 -1
- package/dist/core.css +3 -3
- package/dist/directives/vResize.d.ts.map +1 -1
- package/dist/form-flow/form-flow.d.ts +4 -2
- package/dist/form-flow/form-flow.d.ts.map +1 -1
- package/dist/form-flow/schema-fields.d.ts +4 -1
- package/dist/form-flow/schema-fields.d.ts.map +1 -1
- package/dist/index.cjs +240 -153
- package/dist/index.css +1 -1
- package/dist/index.mjs +18459 -18281
- package/dist/style.css +3 -3
- package/dist/types/BagelForm.d.ts +2 -0
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assetTransport.test.ts +33 -83
- package/src/assetTransport.ts +24 -90
- package/src/assets.test.ts +58 -99
- package/src/assets.ts +78 -161
- package/src/components/ContextMenu.vue +113 -0
- package/src/components/Dropdown.types.ts +27 -0
- package/src/components/Dropdown.vue +129 -64
- package/src/components/FilterQuery.vue +1 -1
- package/src/components/Icon/Icon.vue +8 -30
- package/src/components/Icon/constants.ts +0 -166
- package/src/components/Icon/types.ts +2 -3
- package/src/components/draggable/useDraggable.ts +67 -100
- package/src/components/form/inputs/IconPickerInput.vue +14 -9
- package/src/components/form/inputs/RichText/components/EditorToolbar.vue +43 -111
- package/src/components/form/inputs/RichText/composables/useCommands.ts +32 -54
- package/src/components/form/inputs/RichText/composables/useEditor.ts +45 -171
- package/src/components/form/inputs/RichText/composables/useEditorKeyboard.ts +90 -14
- package/src/components/form/inputs/RichText/index.vue +1195 -1210
- package/src/components/form/inputs/RichText/utils/commands.ts +689 -1028
- package/src/components/form/inputs/RichText/utils/selection.ts +66 -41
- package/src/components/form/inputs/RichText/utils/table.ts +798 -136
- package/src/components/form/inputs/SelectInput.vue +1 -1
- package/src/components/form/inputs/Upload/AssetUploadInput.vue +2 -2
- package/src/components/index.ts +3 -1
- package/src/composables/index.ts +1 -1
- package/src/composables/useBoundedRectDrag.ts +9 -12
- package/src/composables/usePointerSession.ts +57 -12
- package/src/directives/vResize.ts +6 -7
- package/src/form-flow/form-flow.ts +8 -3
- package/src/form-flow/schema-fields.ts +9 -4
- package/src/styles/core.css +1 -18
- package/src/types/BagelForm.ts +2 -0
- package/dist/components/form/inputs/RichText/utils/formatting.d.ts +0 -10
- package/dist/components/form/inputs/RichText/utils/formatting.d.ts.map +0 -1
- package/src/components/form/inputs/RichText/components/gridBox.vue +0 -58
- package/src/components/form/inputs/RichText/utils/formatting.ts +0 -331
package/dist/assetTransport.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetTransport } from './assets';
|
|
2
2
|
import { ApiTransport } from '../../sdk/src/index.ts';
|
|
3
3
|
import { App, MaybeRefOrGetter } from 'vue';
|
|
4
4
|
export type AssetFetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
@@ -8,43 +8,21 @@ export interface AssetHttpOptions {
|
|
|
8
8
|
headers?: () => HeadersInit;
|
|
9
9
|
fetch?: AssetFetch;
|
|
10
10
|
credentials?: RequestCredentials;
|
|
11
|
-
/** Explicitly trusted delivery origins besides the API origin. */
|
|
12
|
-
deliveryOrigins?: string[];
|
|
13
11
|
/** Reuse the app's authenticated axios instance, including tenant interceptors. */
|
|
14
12
|
apiTransport?: ApiTransport;
|
|
15
13
|
}
|
|
16
|
-
/** Concrete REST adapter
|
|
17
|
-
export declare function createAssetHttpTransport(options: AssetHttpOptions): AssetTransport
|
|
18
|
-
publish(reference: Required<AssetReference>, signal?: AbortSignal): Promise<AssetPublication>;
|
|
19
|
-
};
|
|
20
|
-
/** Public URLs are deliberately separate from expiring private deliveries. */
|
|
21
|
-
export interface AssetPublication {
|
|
22
|
-
asset_id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
version_id: string;
|
|
25
|
-
published: boolean;
|
|
26
|
-
representations: {
|
|
27
|
-
representation: AssetPurpose;
|
|
28
|
-
url: string;
|
|
29
|
-
media_type: string;
|
|
30
|
-
size: number;
|
|
31
|
-
}[];
|
|
32
|
-
}
|
|
14
|
+
/** Concrete REST adapter. Public-by-default: upload only; display is a client-built URL. */
|
|
15
|
+
export declare function createAssetHttpTransport(options: AssetHttpOptions): AssetTransport;
|
|
33
16
|
export interface ConfigureAssetClientOptions {
|
|
34
17
|
transport: ApiTransport;
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
18
|
+
/** Public CDN base, e.g. `https://cdn.bgl.dev/auctentic`. Used to build asset URLs. */
|
|
19
|
+
deliveryBaseUrl: string;
|
|
20
|
+
/** Identity + tenant key; must change on logout and account/tenant switch. */
|
|
21
|
+
sessionKey?: MaybeRefOrGetter<string | undefined>;
|
|
38
22
|
}
|
|
39
|
-
/** Vue plugin;
|
|
23
|
+
/** Vue plugin; provides the asset client and clears uploads on session change. */
|
|
40
24
|
export declare function configureAssetClient(options: ConfigureAssetClientOptions): {
|
|
41
|
-
client:
|
|
42
|
-
revision: import('vue').Ref<number, number>;
|
|
43
|
-
resolve(reference: import('./assets').AssetDeliveryRequest, signal?: AbortSignal): Promise<AssetDelivery>;
|
|
44
|
-
upload(file: File, signal?: AbortSignal): Promise<AssetReference>;
|
|
45
|
-
clearSession(): void;
|
|
46
|
-
};
|
|
47
|
-
publish(reference: Required<AssetReference>): Promise<AssetPublication>;
|
|
25
|
+
client: import('./assets').AssetClient;
|
|
48
26
|
install(app: App): void;
|
|
49
27
|
};
|
|
50
28
|
//# sourceMappingURL=assetTransport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetTransport.d.ts","sourceRoot":"","sources":["../src/assetTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,
|
|
1
|
+
{"version":3,"file":"assetTransport.d.ts","sourceRoot":"","sources":["../src/assetTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,cAAc,EAAE,MAAM,UAAU,CAAA;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAkB,KAAK,GAAG,EAAE,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAErE,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AAE5F,MAAM,WAAW,gBAAgB;IAChC,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,WAAW,CAAA;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAChC,mFAAmF;IACnF,YAAY,CAAC,EAAE,YAAY,CAAA;CAC3B;AAQD,4FAA4F;AAC5F,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,gBAAgB,GAAG,cAAc,CA6ClF;AAED,MAAM,WAAW,2BAA2B;IAC3C,SAAS,EAAE,YAAY,CAAA;IACvB,uFAAuF;IACvF,eAAe,EAAE,MAAM,CAAA;IACvB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;CACjD;AAED,kFAAkF;AAClF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,2BAA2B;;iBAU1D,GAAG;EAQjB"}
|
package/dist/assets.d.ts
CHANGED
|
@@ -1,43 +1,62 @@
|
|
|
1
1
|
import { InjectionKey, MaybeRefOrGetter } from 'vue';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Persist this reference, never a delivery URL. Assets are public-by-default;
|
|
4
|
+
* the id alone addresses the bytes. ``version_id`` is accepted for backward
|
|
5
|
+
* compatibility with callers that still emit it, but it is ignored: it no
|
|
6
|
+
* longer selects a version and never appears in a URL.
|
|
7
|
+
*/
|
|
3
8
|
export interface AssetReference {
|
|
4
9
|
asset_id: string;
|
|
5
10
|
version_id?: string;
|
|
6
11
|
}
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
export type AssetVisibility = 'protected' | 'public';
|
|
13
|
+
export interface AssetUploadOptions {
|
|
14
|
+
/** Protected is the safe default. Website/media callers must opt into public. */
|
|
15
|
+
visibility?: AssetVisibility;
|
|
11
16
|
}
|
|
17
|
+
/** Display purpose → on-demand transform query params (mirrors common/blox). */
|
|
12
18
|
export type AssetPurpose = 'original' | 'preview' | 'thumbnail' | 'website' | 'social';
|
|
19
|
+
/** A display intent: a pinned asset plus an optional purpose/preset. */
|
|
13
20
|
export interface AssetDeliveryRequest extends AssetReference {
|
|
14
|
-
/** Backend-approved preset, e.g. an image preview; never arbitrary transforms. */
|
|
15
21
|
representation?: AssetPurpose;
|
|
16
22
|
}
|
|
17
|
-
/**
|
|
23
|
+
/** Separate facade: generated SDK namespaces remain unchanged. */
|
|
18
24
|
export interface AssetTransport {
|
|
19
|
-
|
|
20
|
-
resolve(references: readonly AssetDeliveryRequest[], signal: AbortSignal): Promise<AssetDelivery[]>;
|
|
21
|
-
upload(file: File, signal: AbortSignal): Promise<AssetReference>;
|
|
25
|
+
upload(file: File, signal: AbortSignal, options?: AssetUploadOptions): Promise<AssetReference>;
|
|
22
26
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
27
|
+
export interface AssetClient {
|
|
28
|
+
/** Upload original bytes; protected unless the caller explicitly opts into public. */
|
|
29
|
+
upload(file: File, signal?: AbortSignal, options?: AssetUploadOptions): Promise<AssetReference>;
|
|
30
|
+
/** Build the public CDN URL for a reference + optional purpose. */
|
|
31
|
+
assetUrl(reference: AssetReference, purpose?: AssetPurpose): string;
|
|
32
|
+
/** Abort in-flight uploads (logout / tenant / account switch). */
|
|
29
33
|
clearSession(): void;
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
/** Monotonic counter bumped on clearSession; watchers can subscribe. */
|
|
35
|
+
revision: number;
|
|
36
|
+
}
|
|
37
|
+
/** App/session scoped; no persistent storage or delivery cache (URLs are public). */
|
|
38
|
+
export declare function createAssetClient(transport: AssetTransport, deliveryBaseUrl: string): AssetClient;
|
|
32
39
|
export declare const ASSET_CLIENT_KEY: InjectionKey<AssetClient>;
|
|
33
40
|
/** Opt-in upload state; original bytes are handed unchanged to the transport. */
|
|
34
41
|
export declare function useAssetUpload(): {
|
|
35
|
-
upload: (file: File) => Promise<AssetReference>;
|
|
42
|
+
upload: (file: File, options?: AssetUploadOptions) => Promise<AssetReference>;
|
|
36
43
|
cancel: () => void;
|
|
37
44
|
uploading: import('vue').Ref<boolean, boolean>;
|
|
38
45
|
reference: import('vue').Ref<AssetReference | undefined, AssetReference | undefined>;
|
|
39
46
|
};
|
|
40
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Resolve an asset reference to a public display URL. Public-by-default means
|
|
49
|
+
* no server round-trip and no expiry: the URL is deterministic from the asset id.
|
|
50
|
+
*/
|
|
51
|
+
export declare function useAssetUrl(source: MaybeRefOrGetter<AssetDeliveryRequest | undefined>): {
|
|
52
|
+
url: import('vue').Ref<string | undefined, string | undefined>;
|
|
53
|
+
error: import('vue').Ref<boolean, boolean>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Backward-compatible alias for ``useAssetUrl``. Public assets have
|
|
57
|
+
* no expiry, so the returned URL never needs refreshing; ``onError`` is a no-op
|
|
58
|
+
* retry hook kept for callers that expected the old grant-refresh contract.
|
|
59
|
+
*/
|
|
41
60
|
export declare function useAssetDelivery(source: MaybeRefOrGetter<AssetDeliveryRequest | undefined>): {
|
|
42
61
|
url: import('vue').Ref<string | undefined, string | undefined>;
|
|
43
62
|
error: import('vue').Ref<boolean, boolean>;
|
package/dist/assets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAE3G
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAE3G;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEpD,MAAM,WAAW,kBAAkB;IAClC,iFAAiF;IACjF,UAAU,CAAC,EAAE,eAAe,CAAA;CAC5B;AAED,gFAAgF;AAChF,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAA;AAUtF,wEAAwE;AACxE,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC3D,cAAc,CAAC,EAAE,YAAY,CAAA;CAC7B;AAED,kEAAkE;AAClE,MAAM,WAAW,cAAc;IAC9B,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAA;CAC9F;AAED,MAAM,WAAW,WAAW;IAC3B,sFAAsF;IACtF,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAA;IAC/F,mEAAmE;IACnE,QAAQ,CAAC,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;IACnE,kEAAkE;IAClE,YAAY,IAAI,IAAI,CAAA;IACpB,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAA;CAChB;AAID,qFAAqF;AACrF,wBAAgB,iBAAiB,CAChC,SAAS,EAAE,cAAc,EACzB,eAAe,EAAE,MAAM,GACrB,WAAW,CAmCb;AAED,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,WAAW,CAA0B,CAAA;AAEjF,iFAAiF;AACjF,wBAAgB,cAAc;mBAYD,IAAI,YAAY,kBAAkB,KAAG,OAAO,CAAC,cAAc,CAAC;;;;EAkBxF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,oBAAoB,GAAG,SAAS,CAAC;;;EAiBrF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,CAAC,oBAAoB,GAAG,SAAS,CAAC;;;;EAG1F"}
|
|
@@ -26,16 +26,12 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
26
26
|
readonly outline?: boolean | undefined;
|
|
27
27
|
readonly frame?: boolean | undefined;
|
|
28
28
|
readonly round?: boolean | undefined;
|
|
29
|
-
readonly placement?: import('./Dropdown.
|
|
29
|
+
readonly placement?: import('./Dropdown.types').AlignedPlacement | undefined;
|
|
30
30
|
readonly disablePlacement?: boolean | undefined;
|
|
31
31
|
readonly noAutoFocus?: boolean | undefined;
|
|
32
32
|
readonly autoHide?: boolean | undefined;
|
|
33
|
-
readonly triggers?: import('./Dropdown.
|
|
34
|
-
readonly
|
|
35
|
-
readonly hideTriggers?: import('./Dropdown.vue').TriggerEvent[] | undefined;
|
|
36
|
-
readonly popperTriggers?: import('./Dropdown.vue').TriggerEvent[] | undefined;
|
|
37
|
-
readonly popperShowTriggers?: import('./Dropdown.vue').TriggerEvent[] | undefined;
|
|
38
|
-
readonly popperHideTriggers?: import('./Dropdown.vue').TriggerEvent[] | undefined;
|
|
33
|
+
readonly triggers?: import('./Dropdown.types').TriggerEvent[] | undefined;
|
|
34
|
+
readonly popperTriggers?: import('./Dropdown.types').TriggerEvent[] | undefined;
|
|
39
35
|
readonly showGroup?: string | undefined;
|
|
40
36
|
readonly card?: boolean | undefined;
|
|
41
37
|
readonly noPadding?: boolean | undefined;
|
|
@@ -43,7 +39,11 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
43
39
|
show: number;
|
|
44
40
|
hide: number;
|
|
45
41
|
} | undefined;
|
|
46
|
-
readonly
|
|
42
|
+
readonly items?: import('./Dropdown.types').DropdownItem[] | undefined;
|
|
43
|
+
readonly options?: import('./Dropdown.types').DropdownItem[] | undefined;
|
|
44
|
+
readonly referenceEl?: (Element | import('@floating-ui/dom').VirtualElement | null) | undefined;
|
|
45
|
+
readonly anchorPoint?: (import('./Dropdown.types').AnchorPoint | null) | undefined;
|
|
46
|
+
readonly onSelect?: ((value: string | number | import('./Dropdown.types').DropdownItem, item: import('./Dropdown.types').DropdownItem) => any) | undefined;
|
|
47
47
|
readonly onHide?: (() => any) | undefined;
|
|
48
48
|
readonly "onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
49
49
|
readonly onShow?: (() => any) | undefined;
|
|
@@ -61,7 +61,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
61
61
|
$root: import('vue').ComponentPublicInstance | null;
|
|
62
62
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
63
63
|
$host: Element | null;
|
|
64
|
-
$emit: ((event: "hide") => void) & ((event: "update:shown", value: boolean) => void) & ((event: "show") => void);
|
|
64
|
+
$emit: ((event: "select", value: string | number | import('./Dropdown.types').DropdownItem, item: import('./Dropdown.types').DropdownItem) => void) & ((event: "hide") => void) & ((event: "update:shown", value: boolean) => void) & ((event: "show") => void);
|
|
65
65
|
$el: any;
|
|
66
66
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
67
67
|
shown?: boolean;
|
|
@@ -84,16 +84,12 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
84
84
|
outline?: boolean;
|
|
85
85
|
frame?: boolean;
|
|
86
86
|
round?: boolean;
|
|
87
|
-
placement?: import('./Dropdown.
|
|
87
|
+
placement?: import('./Dropdown.types').AlignedPlacement;
|
|
88
88
|
disablePlacement?: boolean;
|
|
89
89
|
noAutoFocus?: boolean;
|
|
90
90
|
autoHide?: boolean;
|
|
91
|
-
triggers?: import('./Dropdown.
|
|
92
|
-
|
|
93
|
-
hideTriggers?: import('./Dropdown.vue').TriggerEvent[];
|
|
94
|
-
popperTriggers?: import('./Dropdown.vue').TriggerEvent[];
|
|
95
|
-
popperShowTriggers?: import('./Dropdown.vue').TriggerEvent[];
|
|
96
|
-
popperHideTriggers?: import('./Dropdown.vue').TriggerEvent[];
|
|
91
|
+
triggers?: import('./Dropdown.types').TriggerEvent[];
|
|
92
|
+
popperTriggers?: import('./Dropdown.types').TriggerEvent[];
|
|
97
93
|
showGroup?: string;
|
|
98
94
|
card?: boolean;
|
|
99
95
|
noPadding?: boolean;
|
|
@@ -101,29 +97,35 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
101
97
|
show: number;
|
|
102
98
|
hide: number;
|
|
103
99
|
};
|
|
104
|
-
|
|
100
|
+
items?: import('./Dropdown.types').DropdownItem[];
|
|
101
|
+
options?: import('./Dropdown.types').DropdownItem[];
|
|
102
|
+
referenceEl?: Element | import('@floating-ui/dom').VirtualElement | null;
|
|
103
|
+
anchorPoint?: import('./Dropdown.types').AnchorPoint | null;
|
|
105
104
|
}> & Readonly<{
|
|
105
|
+
onSelect?: ((value: string | number | import('./Dropdown.types').DropdownItem, item: import('./Dropdown.types').DropdownItem) => any) | undefined;
|
|
106
106
|
onHide?: (() => any) | undefined;
|
|
107
107
|
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
108
108
|
onShow?: (() => any) | undefined;
|
|
109
109
|
}>, {
|
|
110
110
|
show: () => Promise<void>;
|
|
111
111
|
hide: () => void;
|
|
112
|
+
toggle: (viaKeyboard?: boolean) => void;
|
|
113
|
+
openAt: (target: import('./Dropdown.types').AnchorPoint | MouseEvent) => void;
|
|
114
|
+
updatePosition: () => Promise<void>;
|
|
112
115
|
shown: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
113
116
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
117
|
+
select: (value: string | number | import('./Dropdown.types').DropdownItem, item: import('./Dropdown.types').DropdownItem) => any;
|
|
114
118
|
hide: () => any;
|
|
115
119
|
"update:shown": (value: boolean) => any;
|
|
116
120
|
show: () => any;
|
|
117
121
|
}, string, {
|
|
118
122
|
flat: boolean;
|
|
119
123
|
thin: boolean;
|
|
120
|
-
placement: import('./Dropdown.
|
|
124
|
+
placement: import('./Dropdown.types').AlignedPlacement;
|
|
121
125
|
disablePlacement: boolean;
|
|
122
126
|
autoHide: boolean;
|
|
123
|
-
triggers: import('./Dropdown.
|
|
124
|
-
popperTriggers: import('./Dropdown.
|
|
125
|
-
popperShowTriggers: import('./Dropdown.vue').TriggerEvent[];
|
|
126
|
-
popperHideTriggers: import('./Dropdown.vue').TriggerEvent[];
|
|
127
|
+
triggers: import('./Dropdown.types').TriggerEvent[];
|
|
128
|
+
popperTriggers: import('./Dropdown.types').TriggerEvent[];
|
|
127
129
|
card: boolean;
|
|
128
130
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
129
131
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -148,13 +150,11 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
148
150
|
} & Readonly<{
|
|
149
151
|
flat: boolean;
|
|
150
152
|
thin: boolean;
|
|
151
|
-
placement: import('./Dropdown.
|
|
153
|
+
placement: import('./Dropdown.types').AlignedPlacement;
|
|
152
154
|
disablePlacement: boolean;
|
|
153
155
|
autoHide: boolean;
|
|
154
|
-
triggers: import('./Dropdown.
|
|
155
|
-
popperTriggers: import('./Dropdown.
|
|
156
|
-
popperShowTriggers: import('./Dropdown.vue').TriggerEvent[];
|
|
157
|
-
popperHideTriggers: import('./Dropdown.vue').TriggerEvent[];
|
|
156
|
+
triggers: import('./Dropdown.types').TriggerEvent[];
|
|
157
|
+
popperTriggers: import('./Dropdown.types').TriggerEvent[];
|
|
158
158
|
card: boolean;
|
|
159
159
|
}> & Omit<Readonly<{
|
|
160
160
|
shown?: boolean;
|
|
@@ -177,16 +177,12 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
177
177
|
outline?: boolean;
|
|
178
178
|
frame?: boolean;
|
|
179
179
|
round?: boolean;
|
|
180
|
-
placement?: import('./Dropdown.
|
|
180
|
+
placement?: import('./Dropdown.types').AlignedPlacement;
|
|
181
181
|
disablePlacement?: boolean;
|
|
182
182
|
noAutoFocus?: boolean;
|
|
183
183
|
autoHide?: boolean;
|
|
184
|
-
triggers?: import('./Dropdown.
|
|
185
|
-
|
|
186
|
-
hideTriggers?: import('./Dropdown.vue').TriggerEvent[];
|
|
187
|
-
popperTriggers?: import('./Dropdown.vue').TriggerEvent[];
|
|
188
|
-
popperShowTriggers?: import('./Dropdown.vue').TriggerEvent[];
|
|
189
|
-
popperHideTriggers?: import('./Dropdown.vue').TriggerEvent[];
|
|
184
|
+
triggers?: import('./Dropdown.types').TriggerEvent[];
|
|
185
|
+
popperTriggers?: import('./Dropdown.types').TriggerEvent[];
|
|
190
186
|
showGroup?: string;
|
|
191
187
|
card?: boolean;
|
|
192
188
|
noPadding?: boolean;
|
|
@@ -194,14 +190,21 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
194
190
|
show: number;
|
|
195
191
|
hide: number;
|
|
196
192
|
};
|
|
197
|
-
|
|
193
|
+
items?: import('./Dropdown.types').DropdownItem[];
|
|
194
|
+
options?: import('./Dropdown.types').DropdownItem[];
|
|
195
|
+
referenceEl?: Element | import('@floating-ui/dom').VirtualElement | null;
|
|
196
|
+
anchorPoint?: import('./Dropdown.types').AnchorPoint | null;
|
|
198
197
|
}> & Readonly<{
|
|
198
|
+
onSelect?: ((value: string | number | import('./Dropdown.types').DropdownItem, item: import('./Dropdown.types').DropdownItem) => any) | undefined;
|
|
199
199
|
onHide?: (() => any) | undefined;
|
|
200
200
|
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
201
201
|
onShow?: (() => any) | undefined;
|
|
202
|
-
}>, "hide" | "shown" | "show" |
|
|
202
|
+
}>, "hide" | "toggle" | "shown" | "show" | "openAt" | "updatePosition" | ("flat" | "thin" | "placement" | "disablePlacement" | "autoHide" | "triggers" | "popperTriggers" | "card")> & {
|
|
203
203
|
show: () => Promise<void>;
|
|
204
204
|
hide: () => void;
|
|
205
|
+
toggle: (viaKeyboard?: boolean) => void;
|
|
206
|
+
openAt: (target: import('./Dropdown.types').AnchorPoint | MouseEvent) => void;
|
|
207
|
+
updatePosition: () => Promise<void>;
|
|
205
208
|
shown: boolean;
|
|
206
209
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
207
210
|
$slots: {
|
|
@@ -219,6 +222,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
219
222
|
hide: () => void;
|
|
220
223
|
show: () => Promise<void>;
|
|
221
224
|
shown: boolean;
|
|
225
|
+
openAt: (target: import('./Dropdown.types').AnchorPoint | MouseEvent) => void;
|
|
222
226
|
}): any;
|
|
223
227
|
};
|
|
224
228
|
}) | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressSearch.vue.d.ts","sourceRoot":"","sources":["../../src/components/AddressSearch.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressSearch.vue.d.ts","sourceRoot":"","sources":["../../src/components/AddressSearch.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAmNs1lB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAV58lB,wBAQG"}
|