@scalar/api-reference 1.32.7 → 1.32.8
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/CHANGELOG.md +32 -0
- package/dist/browser/standalone.js +16286 -16092
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +2 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +164 -176
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +20 -20
- package/dist/components/Content/Models/Models.vue2.js +5 -4
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
- package/dist/components/Content/Schema/Schema.vue2.js +2 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +14 -7
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
- package/dist/components/Content/Tag/Tag.vue.js +2 -1
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +8 -6
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +1 -1
- package/dist/components/Section/SectionAccordion.vue2.js +28 -29
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
- package/dist/features/Operation/Operation.vue.d.ts +6 -6
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +50 -49
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
- package/dist/features/Search/SearchButton.vue.js +2 -1
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +16 -16
- package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/download-link/DownloadLink.vue2.js +4 -2
- package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
- package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
- package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
- package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
- package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
- package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
- package/dist/helpers/convert-security-scheme.js +23 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -29
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
- package/dist/v2/events/definitions.js +7 -0
- package/dist/v2/events/index.d.ts +1 -1
- package/dist/v2/events/listeners.d.ts +1 -1
- package/dist/v2/hooks/useStore.js +14 -0
- package/package.json +26 -26
- package/dist/blocks/constants.js +0 -6
- package/dist/blocks/helpers/getPointer.js +0 -12
- package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
- package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
- package/dist/blocks/hooks/useBlockProps.js +0 -24
- package/dist/components/Card/Card.vue.d.ts +0 -18
- package/dist/components/Card/Card.vue.d.ts.map +0 -1
- package/dist/components/Card/Card.vue.js +0 -13
- package/dist/components/Card/CardContent.vue.d.ts +0 -19
- package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
- package/dist/components/Card/CardContent.vue.js +0 -7
- package/dist/components/Card/CardContent.vue2.js +0 -27
- package/dist/components/Card/CardFooter.vue.d.ts +0 -19
- package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
- package/dist/components/Card/CardFooter.vue.js +0 -7
- package/dist/components/Card/CardFooter.vue2.js +0 -24
- package/dist/components/Card/CardHeader.vue.d.ts +0 -20
- package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
- package/dist/components/Card/CardHeader.vue.js +0 -7
- package/dist/components/Card/CardHeader.vue2.js +0 -31
- package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
- package/dist/components/Card/CardTab.vue.js +0 -7
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
- package/dist/components/Card/CardTabHeader.vue.js +0 -7
- package/dist/components/Card/index.d.ts +0 -7
- package/dist/components/Card/index.d.ts.map +0 -1
- package/dist/components/Card/types.d.ts +0 -8
- package/dist/components/Card/types.d.ts.map +0 -1
- package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
- package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExamplePicker.vue.js +0 -7
- package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
- package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExampleRequest.vue.js +0 -7
- package/dist/features/example-request/ExampleRequest.vue2.js +0 -361
- package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
- package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
- package/dist/features/example-request/TextSelect.vue.js +0 -48
- package/dist/features/example-request/TextSelect.vue3.js +0 -5
- package/dist/features/example-request/index.d.ts +0 -3
- package/dist/features/example-request/index.d.ts.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { isDefined as o } from "@scalar/helpers/array/is-defined";
|
|
2
|
+
const e = (t) => t.flatMap((r) => r.type === "apiKey" ? r["x-scalar-secret-token"] : (r == null ? void 0 : r.type) === "http" ? [
|
|
3
|
+
r["x-scalar-secret-token"],
|
|
4
|
+
r["x-scalar-secret-username"],
|
|
5
|
+
r["x-scalar-secret-password"],
|
|
6
|
+
btoa(`${r["x-scalar-secret-username"]}:${r["x-scalar-secret-password"]}`)
|
|
7
|
+
] : r.type === "oauth2" ? Object.values(r.flows).map((a) => a["x-scalar-secret-token"]) : []).filter(o);
|
|
8
|
+
export {
|
|
9
|
+
e as getSecrets
|
|
10
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as RequestExample } from './components/RequestExample.vue';
|
|
2
|
-
export { default as ExamplePicker } from './components/ExamplePicker.vue';
|
|
1
|
+
export { default as RequestExample } from './components/RequestExample.vue.js';
|
|
2
|
+
export { default as ExamplePicker } from './components/ExamplePicker.vue.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type ApiReferenceEvents, type ApiReferenceEvent, emitCustomEvent } from './definitions';
|
|
1
|
+
export { type ApiReferenceEvents, type ApiReferenceEvent, emitCustomEvent } from './definitions.js';
|
|
2
2
|
export { onCustomEvent } from './listeners.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { provide as r, inject as n } from "vue";
|
|
2
|
+
const o = Symbol(), a = (e) => {
|
|
3
|
+
if (e)
|
|
4
|
+
return r(o, e), e;
|
|
5
|
+
const t = n(o);
|
|
6
|
+
if (!t)
|
|
7
|
+
throw new Error(
|
|
8
|
+
"useStore() was called without a store and no store instance was found. Make sure to call useStore(store) in a parent component first."
|
|
9
|
+
);
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as useStore
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.32.
|
|
23
|
+
"version": "1.32.8",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -43,42 +43,42 @@
|
|
|
43
43
|
},
|
|
44
44
|
"module": "./dist/index.js",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@floating-ui/vue": "^1.
|
|
47
|
-
"@headlessui/vue": "^1.7.
|
|
48
|
-
"@unhead/vue": "^1.11.
|
|
46
|
+
"@floating-ui/vue": "^1.1.7",
|
|
47
|
+
"@headlessui/vue": "^1.7.23",
|
|
48
|
+
"@unhead/vue": "^1.11.20",
|
|
49
49
|
"@vueuse/core": "^10.10.0",
|
|
50
|
-
"flatted": "^3.3.
|
|
51
|
-
"fuse.js": "^7.
|
|
50
|
+
"flatted": "^3.3.3",
|
|
51
|
+
"fuse.js": "^7.1.0",
|
|
52
52
|
"github-slugger": "^2.0.0",
|
|
53
|
-
"microdiff": "^1.
|
|
53
|
+
"microdiff": "^1.5.0",
|
|
54
54
|
"nanoid": "5.1.5",
|
|
55
|
-
"vue": "^3.5.
|
|
55
|
+
"vue": "^3.5.17",
|
|
56
56
|
"zod": "3.24.1",
|
|
57
|
-
"@scalar/api-client": "2.5.
|
|
58
|
-
"@scalar/code-highlight": "0.1.
|
|
59
|
-
"@scalar/
|
|
60
|
-
"@scalar/components": "0.14.18",
|
|
61
|
-
"@scalar/oas-utils": "0.4.13",
|
|
62
|
-
"@scalar/object-utils": "1.2.2",
|
|
57
|
+
"@scalar/api-client": "2.5.18",
|
|
58
|
+
"@scalar/code-highlight": "0.1.8",
|
|
59
|
+
"@scalar/components": "0.14.19",
|
|
63
60
|
"@scalar/icons": "0.4.6",
|
|
61
|
+
"@scalar/object-utils": "1.2.2",
|
|
62
|
+
"@scalar/oas-utils": "0.4.14",
|
|
63
|
+
"@scalar/helpers": "0.0.6",
|
|
64
|
+
"@scalar/openapi-types": "0.3.6",
|
|
65
|
+
"@scalar/snippetz": "0.4.2",
|
|
66
|
+
"@scalar/themes": "0.13.10",
|
|
64
67
|
"@scalar/openapi-parser": "0.18.1",
|
|
65
|
-
"@scalar/openapi-types": "0.3.5",
|
|
66
|
-
"@scalar/snippetz": "0.4.1",
|
|
67
|
-
"@scalar/themes": "0.13.9",
|
|
68
|
-
"@scalar/types": "0.2.8",
|
|
69
68
|
"@scalar/use-hooks": "0.2.4",
|
|
70
69
|
"@scalar/use-toasts": "0.8.0",
|
|
71
|
-
"@scalar/workspace-store": "0.10.
|
|
70
|
+
"@scalar/workspace-store": "0.10.1",
|
|
71
|
+
"@scalar/types": "0.2.9"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@tailwindcss/vite": "^4.1.7",
|
|
75
|
-
"@types/react": "^19.
|
|
76
|
-
"@types/react-dom": "^19.
|
|
75
|
+
"@types/react": "^19.1.8",
|
|
76
|
+
"@types/react-dom": "^19.1.6",
|
|
77
77
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
78
|
-
"@vue/server-renderer": "^3.5.
|
|
78
|
+
"@vue/server-renderer": "^3.5.17",
|
|
79
79
|
"@vue/test-utils": "^2.4.1",
|
|
80
|
-
"react": "^19.
|
|
81
|
-
"react-dom": "^19.
|
|
80
|
+
"react": "^19.1.0",
|
|
81
|
+
"react-dom": "^19.1.0",
|
|
82
82
|
"rollup-plugin-webpack-stats": "^0.2.5",
|
|
83
83
|
"tailwindcss": "^4.1.7",
|
|
84
84
|
"vite": "5.4.19",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
87
87
|
"vitest": "^1.6.1",
|
|
88
88
|
"@scalar/build-tooling": "0.2.4",
|
|
89
|
-
"@scalar/
|
|
90
|
-
"@scalar/
|
|
89
|
+
"@scalar/galaxy": "0.5.4",
|
|
90
|
+
"@scalar/react-renderer": "0.2.1"
|
|
91
91
|
},
|
|
92
92
|
"scripts": {
|
|
93
93
|
"build": "pnpm build:default && pnpm build:standalone && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
package/dist/blocks/constants.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ERRORS as n } from "../constants.js";
|
|
2
|
-
import { escapeJsonPointer as e } from "@scalar/openapi-parser";
|
|
3
|
-
function m(o) {
|
|
4
|
-
o.unshift("#");
|
|
5
|
-
const r = o.map((t) => e(t.trim())).filter(Boolean).join("/");
|
|
6
|
-
if (r === "#")
|
|
7
|
-
throw new Error(n.EMPTY_PATH);
|
|
8
|
-
return r;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
m as getPointer
|
|
12
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { createWorkspaceStore } from '@scalar/api-client/store';
|
|
2
|
-
import type { Collection } from '@scalar/oas-utils/entities/spec';
|
|
3
|
-
import type { Request as RequestEntity } from '@scalar/oas-utils/entities/spec';
|
|
4
|
-
import { type ComputedRef } from 'vue';
|
|
5
|
-
export type StoreContext = ReturnType<typeof createWorkspaceStore>;
|
|
6
|
-
export type BlockProps = {
|
|
7
|
-
/**
|
|
8
|
-
* The store created by `createStore`
|
|
9
|
-
*/
|
|
10
|
-
store: StoreContext | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* The JSON pointer to the operation to use
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```
|
|
16
|
-
* #/paths/test/get
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
location: `#/${string}`;
|
|
20
|
-
/**
|
|
21
|
-
* The collection to use
|
|
22
|
-
*/
|
|
23
|
-
collection: Collection;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Provides computed properties for the block, based on the standardized interface of the `createStore` function.
|
|
27
|
-
*/
|
|
28
|
-
export declare function useBlockProps({ store, location, collection }: BlockProps): {
|
|
29
|
-
operation: ComputedRef<RequestEntity | undefined>;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=useBlockProps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBlockProps.d.ts","sourceRoot":"","sources":["../../../src/blocks/hooks/useBlockProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,KAAK,CAAA;AAGhD,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAElE,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B;;;;;;;OAOG;IACH,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAA;IACvB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,UAAU,GAAG;IAC1E,SAAS,EAAE,WAAW,CAAC,aAAa,GAAG,SAAS,CAAC,CAAA;CAClD,CAgCA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { unescapeJsonPointer as a } from "@scalar/openapi-parser";
|
|
2
|
-
import { computed as p } from "vue";
|
|
3
|
-
function d({ store: t, location: e, collection: o }) {
|
|
4
|
-
return {
|
|
5
|
-
operation: p(() => {
|
|
6
|
-
if (!(t != null && t.collections) || !t.requests)
|
|
7
|
-
return;
|
|
8
|
-
const n = Object.values(t.requests).filter(
|
|
9
|
-
(s) => o.requests.includes(s.uid)
|
|
10
|
-
);
|
|
11
|
-
if (!e.startsWith("#/paths/") && !e.startsWith("#/webhooks/"))
|
|
12
|
-
throw new Error(
|
|
13
|
-
"Invalid location, try using #/paths/$YOUR_ENDPOINT/$HTTP_METHOD. You can use the getPointer helper to generate a valid location: getPointer(['paths', '/planets/{planetId}', 'get'])"
|
|
14
|
-
);
|
|
15
|
-
return n.find((s) => {
|
|
16
|
-
const r = a(e.split("/")[2]), i = e.split("/")[3].toLocaleLowerCase();
|
|
17
|
-
return s.method === i && s.path === r;
|
|
18
|
-
});
|
|
19
|
-
})
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
d as useBlockProps
|
|
24
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: HTMLDivElement;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=Card.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Card.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.vue"],"names":[],"mappings":"AA6CA,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as r, openBlock as t, renderSlot as o } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const n = {}, s = { class: "scalar-card" };
|
|
5
|
-
function a(e, d) {
|
|
6
|
-
return t(), r("div", s, [
|
|
7
|
-
o(e.$slots, "default", {}, void 0, !0)
|
|
8
|
-
]);
|
|
9
|
-
}
|
|
10
|
-
const i = /* @__PURE__ */ c(n, [["render", a], ["__scopeId", "data-v-b5be456e"]]);
|
|
11
|
-
export {
|
|
12
|
-
i as default
|
|
13
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CardContentProps } from './types';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {};
|
|
8
|
-
rootEl: HTMLDivElement;
|
|
9
|
-
};
|
|
10
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import("vue").DefineComponent<CardContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
-
new (): {
|
|
16
|
-
$slots: S;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=CardContent.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardContent.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA2DT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, createElementBlock as r, openBlock as s, normalizeClass as o, renderSlot as t } from "vue";
|
|
2
|
-
const d = /* @__PURE__ */ a({
|
|
3
|
-
__name: "CardContent",
|
|
4
|
-
props: {
|
|
5
|
-
muted: { type: Boolean },
|
|
6
|
-
contrast: { type: Boolean },
|
|
7
|
-
frameless: { type: Boolean },
|
|
8
|
-
transparent: { type: Boolean },
|
|
9
|
-
borderless: { type: Boolean }
|
|
10
|
-
},
|
|
11
|
-
setup(n) {
|
|
12
|
-
return (e, l) => (s(), r("div", {
|
|
13
|
-
class: o(["scalar-card-content", {
|
|
14
|
-
"scalar-card--muted": e.muted,
|
|
15
|
-
"scalar-card--contrast": e.contrast,
|
|
16
|
-
"scalar-card--frameless": e.frameless,
|
|
17
|
-
"scalar-card--transparent": e.transparent,
|
|
18
|
-
"scalar-card--borderless": e.borderless
|
|
19
|
-
}])
|
|
20
|
-
}, [
|
|
21
|
-
t(e.$slots, "default", {}, void 0, !0)
|
|
22
|
-
], 2));
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
d as default
|
|
27
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CardContentProps } from './types';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {};
|
|
8
|
-
rootEl: HTMLDivElement;
|
|
9
|
-
};
|
|
10
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import("vue").DefineComponent<CardContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
-
new (): {
|
|
16
|
-
$slots: S;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=CardFooter.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardFooter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardFooter.vue"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, createBlock as a, openBlock as n, normalizeProps as p, guardReactiveProps as s, withCtx as l, renderSlot as d } from "vue";
|
|
2
|
-
import c from "./CardContent.vue.js";
|
|
3
|
-
const i = /* @__PURE__ */ r({
|
|
4
|
-
__name: "CardFooter",
|
|
5
|
-
props: {
|
|
6
|
-
muted: { type: Boolean },
|
|
7
|
-
contrast: { type: Boolean },
|
|
8
|
-
frameless: { type: Boolean },
|
|
9
|
-
transparent: { type: Boolean },
|
|
10
|
-
borderless: { type: Boolean }
|
|
11
|
-
},
|
|
12
|
-
setup(e) {
|
|
13
|
-
const o = e;
|
|
14
|
-
return (t, m) => (n(), a(c, p(s(o)), {
|
|
15
|
-
default: l(() => [
|
|
16
|
-
d(t.$slots, "default", {}, void 0, !0)
|
|
17
|
-
]),
|
|
18
|
-
_: 3
|
|
19
|
-
}, 16));
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
i as default
|
|
24
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { CardContentProps } from './types';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
actions?(_: {}): any;
|
|
7
|
-
};
|
|
8
|
-
refs: {};
|
|
9
|
-
rootEl: HTMLDivElement;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<CardContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=CardHeader.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardHeader.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, createBlock as d, openBlock as c, mergeProps as l, withCtx as n, createElementVNode as e, renderSlot as r } from "vue";
|
|
2
|
-
import p from "./CardContent.vue.js";
|
|
3
|
-
const i = { class: "scalar-card-header-slots" }, h = { class: "scalar-card-header-slot scalar-card-header-title" }, m = { class: "scalar-card-header-slot scalar-card-header-actions" }, B = /* @__PURE__ */ s({
|
|
4
|
-
__name: "CardHeader",
|
|
5
|
-
props: {
|
|
6
|
-
muted: { type: Boolean },
|
|
7
|
-
contrast: { type: Boolean },
|
|
8
|
-
frameless: { type: Boolean },
|
|
9
|
-
transparent: { type: Boolean },
|
|
10
|
-
borderless: { type: Boolean }
|
|
11
|
-
},
|
|
12
|
-
setup(t) {
|
|
13
|
-
const o = t;
|
|
14
|
-
return (a, _) => (c(), d(p, l(o, { class: "scalar-card-header" }), {
|
|
15
|
-
default: n(() => [
|
|
16
|
-
e("div", i, [
|
|
17
|
-
e("div", h, [
|
|
18
|
-
r(a.$slots, "default", {}, void 0, !0)
|
|
19
|
-
]),
|
|
20
|
-
e("div", m, [
|
|
21
|
-
r(a.$slots, "actions", {}, void 0, !0)
|
|
22
|
-
])
|
|
23
|
-
])
|
|
24
|
-
]),
|
|
25
|
-
_: 3
|
|
26
|
-
}, 16));
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
B as default
|
|
31
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardTab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTab.vue"],"names":[],"mappings":"AAkFA,iBAAS,cAAc;WA4DT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardTabHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTabHeader.vue"],"names":[],"mappings":"AA+DA,iBAAS,cAAc;WAuFT,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Card } from './Card.vue.js';
|
|
2
|
-
export { default as CardHeader } from './CardHeader.vue.js';
|
|
3
|
-
export { default as CardContent } from './CardContent.vue.js';
|
|
4
|
-
export { default as CardFooter } from './CardFooter.vue.js';
|
|
5
|
-
export { default as CardTabHeader } from './CardTabHeader.vue.js';
|
|
6
|
-
export { default as CardTab } from './CardTab.vue.js';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Card/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
examples: Record<string, any>;
|
|
3
|
-
};
|
|
4
|
-
type __VLS_PublicProps = {
|
|
5
|
-
modelValue?: string;
|
|
6
|
-
} & __VLS_Props;
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
"update:modelValue": (value: string) => any;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
12
|
-
export default _default;
|
|
13
|
-
//# sourceMappingURL=ExamplePicker.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/ExamplePicker.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC9B,CAAC;AA0CF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;;;;;;AAsFhB,wBAQG"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, mergeModels as i, useModel as d, watch as c, createBlock as f, openBlock as x, withCtx as s, createVNode as V, createTextVNode as n, toDisplayString as b } from "vue";
|
|
2
|
-
import v from "../../components/ScreenReader.vue.js";
|
|
3
|
-
import E from "./TextSelect.vue.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
const y = /* @__PURE__ */ u({
|
|
6
|
-
__name: "ExamplePicker",
|
|
7
|
-
props: /* @__PURE__ */ i({
|
|
8
|
-
examples: {}
|
|
9
|
-
}, {
|
|
10
|
-
modelValue: {},
|
|
11
|
-
modelModifiers: {}
|
|
12
|
-
}),
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(m) {
|
|
15
|
-
const a = m, t = d(m, "modelValue");
|
|
16
|
-
function p(e) {
|
|
17
|
-
e && (t.value = e);
|
|
18
|
-
}
|
|
19
|
-
c(
|
|
20
|
-
() => a.examples,
|
|
21
|
-
() => {
|
|
22
|
-
a.examples[t.value ?? ""] || p(Object.keys(a.examples)[0]);
|
|
23
|
-
},
|
|
24
|
-
{ immediate: !0 }
|
|
25
|
-
);
|
|
26
|
-
function r(e) {
|
|
27
|
-
if (!e)
|
|
28
|
-
return "Select an example";
|
|
29
|
-
const l = a.examples[e];
|
|
30
|
-
return (l == null ? void 0 : l.summary) ?? e;
|
|
31
|
-
}
|
|
32
|
-
return (e, l) => (x(), f(E, {
|
|
33
|
-
modelValue: t.value,
|
|
34
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
|
|
35
|
-
class: "example-selector",
|
|
36
|
-
options: Object.keys(e.examples).map((o) => ({
|
|
37
|
-
label: r(o),
|
|
38
|
-
value: o
|
|
39
|
-
}))
|
|
40
|
-
}, {
|
|
41
|
-
default: s(() => [
|
|
42
|
-
V(v, null, {
|
|
43
|
-
default: s(() => l[1] || (l[1] = [
|
|
44
|
-
n("Selected Example Values:")
|
|
45
|
-
])),
|
|
46
|
-
_: 1
|
|
47
|
-
}),
|
|
48
|
-
n(" " + b(r(t.value ?? "Unknown")), 1)
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["modelValue", "options"]));
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
export {
|
|
55
|
-
y as default
|
|
56
|
-
};
|