@scalar/api-client 2.10.0 → 2.11.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.
Files changed (156) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  3. package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
  4. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  5. package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
  6. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  7. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  8. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
  9. package/dist/hooks/useClientConfig.d.ts +3 -3
  10. package/dist/layouts/App/create-api-client-app.d.ts +1 -1
  11. package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
  12. package/dist/libs/create-client.d.ts +1 -1
  13. package/dist/store/store.d.ts +1 -1
  14. package/dist/style.css +1 -1
  15. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -6
  16. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  17. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +24 -27
  18. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +3 -6
  19. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  20. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  21. package/dist/v2/blocks/operation-block/components/Header.vue2.js +10 -12
  22. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
  23. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
  24. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -5
  25. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  26. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  27. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +45 -47
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -9
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +179 -5
  31. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -179
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +11 -6
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  35. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +82 -5
  36. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -85
  37. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
  38. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  39. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
  40. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +133 -142
  41. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
  42. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  43. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
  44. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +2 -16
  45. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  46. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  47. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +202 -229
  48. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +3 -5
  49. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
  50. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  51. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +81 -85
  52. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +2 -5
  53. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
  54. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +32 -34
  55. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +2 -5
  56. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
  57. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +2 -2
  58. package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +31 -33
  59. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +2 -5
  60. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
  61. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +42 -45
  62. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +2 -2
  63. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -1
  64. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +9 -9
  65. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -1
  66. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +2 -2
  67. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +18 -18
  68. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
  69. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +14 -14
  70. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
  71. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +12 -12
  72. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -1
  73. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +13 -13
  74. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
  75. package/dist/v2/components/data-table/DataTable.vue.js +4 -4
  76. package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
  77. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  78. package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
  79. package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
  80. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
  81. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
  82. package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
  83. package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
  84. package/dist/v2/components/forms/index.d.ts +2 -0
  85. package/dist/v2/components/forms/index.d.ts.map +1 -0
  86. package/dist/v2/components/forms/index.js +4 -0
  87. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
  88. package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
  89. package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
  90. package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
  91. package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
  92. package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
  93. package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
  94. package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
  95. package/dist/v2/components/layout/index.d.ts +2 -0
  96. package/dist/v2/components/layout/index.d.ts.map +1 -0
  97. package/dist/v2/components/layout/index.js +4 -0
  98. package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
  99. package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
  100. package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
  101. package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
  102. package/dist/v2/components/modals/index.d.ts +2 -0
  103. package/dist/v2/components/modals/index.d.ts.map +1 -0
  104. package/dist/v2/components/modals/index.js +4 -0
  105. package/dist/v2/components/server/ServerDropdown.vue.d.ts +4 -2
  106. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  107. package/dist/v2/components/server/ServerDropdown.vue.js +31 -31
  108. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +2 -6
  109. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
  110. package/dist/v2/components/server/ServerDropdownItem.vue.js +1 -1
  111. package/dist/v2/components/server/ServerDropdownItem.vue2.js +16 -16
  112. package/dist/v2/components/server/index.d.ts.map +1 -1
  113. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +6 -2
  114. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  115. package/dist/v2/components/sidebar/Sidebar.vue.js +45 -55
  116. package/dist/v2/features/app/App.vue.d.ts +2 -2
  117. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  118. package/dist/v2/features/app/App.vue.js +89 -74
  119. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +6 -2
  120. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  121. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  122. package/dist/v2/features/app/components/AppSidebar.vue2.js +50 -47
  123. package/dist/v2/features/app/helpers/routes.d.ts +0 -10
  124. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  125. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  126. package/dist/v2/features/collection/DocumentCollection.vue2.js +75 -73
  127. package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -25
  128. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  129. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  130. package/dist/v2/features/collection/components/Authentication.vue2.js +47 -35
  131. package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
  132. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
  133. package/dist/v2/features/collection/components/Form.vue.js +28 -33
  134. package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
  135. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  136. package/dist/v2/features/collection/components/Servers.vue2.js +103 -82
  137. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
  138. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
  139. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  140. package/dist/v2/features/modal/Modal.vue.js +3 -3
  141. package/dist/v2/features/modal/Modal.vue2.js +40 -32
  142. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  143. package/dist/v2/features/operation/Operation.vue.js +22 -28
  144. package/dist/v2/hooks/use-sidebar-state.d.ts +47 -0
  145. package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
  146. package/dist/v2/hooks/use-sidebar-state.js +112 -0
  147. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  148. package/dist/v2/hooks/use-workspace-client-events.js +75 -107
  149. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  150. package/package.json +17 -17
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
  155. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
  156. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
@@ -1,5 +1,4 @@
1
- import type { Environment } from '@scalar/oas-utils/entities/environment';
2
- import type { EnvVariable } from '../../../store/active-entities.js';
1
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
3
2
  import type { VueClassProp } from '../../../types/vue';
4
3
  type __VLS_Props = {
5
4
  id?: string;
@@ -14,18 +13,17 @@ type __VLS_Props = {
14
13
  enum?: string[];
15
14
  min?: number;
16
15
  max?: number;
17
- environment: Environment;
18
- envVariables: EnvVariable[];
16
+ environment: XScalarEnvironment;
19
17
  description?: string | undefined;
20
18
  lineWrapping?: boolean;
21
19
  };
22
- declare var __VLS_5: {}, __VLS_25: {}, __VLS_27: {};
20
+ declare var __VLS_5: {}, __VLS_26: {}, __VLS_28: {};
23
21
  type __VLS_Slots = {} & {
24
22
  default?: (props: typeof __VLS_5) => any;
25
23
  } & {
26
- warning?: (props: typeof __VLS_25) => any;
24
+ warning?: (props: typeof __VLS_26) => any;
27
25
  } & {
28
- icon?: (props: typeof __VLS_27) => any;
26
+ icon?: (props: typeof __VLS_28) => any;
29
27
  };
30
28
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
31
29
  selectVariable: (value: string) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTableInput.vue"],"names":[],"mappings":"AAqMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAIzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAK/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;AAwSJ,QAAA,IAAI,OAAO,IAAU,EAAuB,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAmC7C,QAAA,MAAM,eAAe;;;;;;;;;;;cA3VN,OAAO;cAIP,OAAO;kBAOH,OAAO;2BARE,OAAO;6EAgWjC,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTableInput.vue"],"names":[],"mappings":"AA8LA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,kBAAkB,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;AAmSJ,QAAA,IAAI,OAAO,IAAU,EAAuB,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAmC7C,QAAA,MAAM,eAAe;;;;;;;;;;;cArVN,OAAO;cAIP,OAAO;kBAMH,OAAO;2BAPE,OAAO;6EA0VjC,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f4b9c7c5"]]);
4
+ const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-25ff4902"]]);
5
5
  export {
6
- c as default
6
+ r as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as g, ref as d, computed as B, createBlock as s, openBlock as a, normalizeClass as C, withCtx as $, createElementBlock as i, createCommentVNode as u, createElementVNode as I, renderSlot as p, createTextVNode as O, Fragment as h, mergeProps as v, unref as m } from "vue";
1
+ import { defineComponent as B, ref as u, computed as C, createBlock as s, openBlock as o, normalizeClass as b, withCtx as $, createElementBlock as d, createCommentVNode as p, createElementVNode as I, renderSlot as m, createTextVNode as O, Fragment as h, mergeProps as c, unref as i } from "vue";
2
2
  import { ScalarIconButton as E } from "@scalar/components";
3
3
  import { ScalarIconEye as S, ScalarIconEyeSlash as A } from "@scalar/icons";
4
- import W from "../../../components/CodeInput/CodeInput.vue.js";
5
- import q from "./DataTableCell.vue.js";
6
- import F from "./DataTableInputSelect.vue.js";
4
+ import W from "./DataTableCell.vue.js";
5
+ import q from "./DataTableInputSelect.vue.js";
6
+ import F from "../code-input/CodeInput.vue.js";
7
7
  const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly", "type", "value"], D = {
8
8
  key: 1,
9
9
  class: "centered-y text-orange absolute right-7 text-xs"
10
- }, J = /* @__PURE__ */ g({
10
+ }, J = /* @__PURE__ */ B({
11
11
  inheritAttrs: !1,
12
12
  __name: "DataTableInput",
13
13
  props: {
@@ -22,41 +22,38 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
22
22
  min: {},
23
23
  max: {},
24
24
  environment: {},
25
- envVariables: {},
26
25
  description: {},
27
26
  lineWrapping: { type: Boolean, default: !1 }
28
27
  },
29
28
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
30
- setup(c, { emit: V }) {
31
- const n = c, t = V, r = d(!0), w = d(!1), f = d(null), k = () => {
32
- w.value || t("inputBlur");
33
- }, y = B(
29
+ setup(v, { emit: V }) {
30
+ const n = v, t = V, r = u(!0), w = u(!1), f = u(null), k = () => !w.value && t("inputBlur"), y = C(
34
31
  () => n.type === "password" ? "text" : n.type ?? "text"
35
- ), b = () => {
32
+ ), g = () => {
36
33
  !n.enum?.length && !n.readOnly && f.value?.focus();
37
34
  };
38
- return (e, l) => (a(), s(q, {
39
- class: C(["relative flex", e.containerClass])
35
+ return (e, l) => (o(), s(W, {
36
+ class: b(["relative flex", e.containerClass])
40
37
  }, {
41
38
  default: $(() => [
42
- e.$slots.default ? (a(), i("div", {
39
+ e.$slots.default ? (o(), d("div", {
43
40
  key: 0,
44
41
  class: "text-c-1 flex items-center pr-0 pl-3",
45
42
  for: e.id ?? "",
46
- onClick: b
43
+ onClick: g
47
44
  }, [
48
- p(e.$slots, "default", {}, void 0, !0),
45
+ m(e.$slots, "default", {}, void 0, !0),
49
46
  l[5] || (l[5] = O(": ", -1))
50
- ], 8, T)) : u("", !0),
47
+ ], 8, T)) : p("", !0),
51
48
  I("div", N, [
52
- n.enum && n.enum.length ? (a(), s(F, {
49
+ n.enum && n.enum.length ? (o(), s(q, {
53
50
  key: 0,
54
51
  canAddCustomValue: n.canAddCustomEnumValue,
55
52
  modelValue: n.modelValue,
56
53
  value: n.enum,
57
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t("update:modelValue", o))
58
- }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (a(), i(h, { key: 1 }, [
59
- r.value && e.type === "password" ? (a(), i("input", v({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
54
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => t("update:modelValue", a))
55
+ }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (o(), d(h, { key: 1 }, [
56
+ r.value && e.type === "password" ? (o(), d("input", c({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
60
57
  autocomplete: "off",
61
58
  class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none px-2 py-1.25 -outline-offset-1", { "scalar-password-input": e.type === "password" }],
62
59
  "data-1p-ignore": "",
@@ -64,11 +61,11 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
64
61
  spellcheck: "false",
65
62
  type: y.value,
66
63
  value: e.modelValue,
67
- onInput: l[1] || (l[1] = (o) => t(
64
+ onInput: l[1] || (l[1] = (a) => t(
68
65
  "update:modelValue",
69
- o.target.value ?? ""
66
+ a.target.value ?? ""
70
67
  ))
71
- }), null, 16, P)) : (a(), s(W, v({ key: 1 }, e.$attrs, {
68
+ }), null, 16, P)) : (o(), s(i(F), c({ key: 1 }, e.$attrs, {
72
69
  id: e.id,
73
70
  ref_key: "codeInput",
74
71
  ref: f,
@@ -80,7 +77,6 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
80
77
  description: e.description,
81
78
  disableCloseBrackets: "",
82
79
  disableTabIndent: "",
83
- envVariables: e.envVariables,
84
80
  environment: e.environment,
85
81
  lineWrapping: !!e.lineWrapping,
86
82
  max: e.max,
@@ -91,22 +87,22 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
91
87
  spellcheck: "false",
92
88
  type: y.value,
93
89
  onBlur: k,
94
- onFocus: l[2] || (l[2] = (o) => t("inputFocus")),
95
- "onUpdate:modelValue": l[3] || (l[3] = (o) => t("update:modelValue", o))
96
- }), null, 16, ["id", "class", "description", "envVariables", "environment", "lineWrapping", "max", "min", "modelValue", "readOnly", "required", "type"]))
90
+ onFocus: l[2] || (l[2] = (a) => t("inputFocus")),
91
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => t("update:modelValue", a))
92
+ }), null, 16, ["id", "class", "description", "environment", "lineWrapping", "max", "min", "modelValue", "readOnly", "required", "type"]))
97
93
  ], 64))
98
94
  ]),
99
- e.$slots.warning ? (a(), i("div", D, [
100
- p(e.$slots, "warning", {}, void 0, !0)
101
- ])) : u("", !0),
102
- p(e.$slots, "icon", {}, void 0, !0),
103
- e.type === "password" ? (a(), s(m(E), {
95
+ e.$slots.warning ? (o(), d("div", D, [
96
+ m(e.$slots, "warning", {}, void 0, !0)
97
+ ])) : p("", !0),
98
+ m(e.$slots, "icon", {}, void 0, !0),
99
+ e.type === "password" ? (o(), s(i(E), {
104
100
  key: 2,
105
101
  class: "-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25",
106
- icon: r.value ? m(S) : m(A),
102
+ icon: r.value ? i(S) : i(A),
107
103
  label: r.value ? "Show Password" : "Hide Password",
108
- onClick: l[4] || (l[4] = (o) => r.value = !r.value)
109
- }, null, 8, ["icon", "label"])) : u("", !0)
104
+ onClick: l[4] || (l[4] = (a) => r.value = !r.value)
105
+ }, null, 8, ["icon", "label"])) : p("", !0)
110
106
  ]),
111
107
  _: 3
112
108
  }, 8, ["class"]));
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ /** The label of the submit button */
3
+ label?: string;
4
+ /** Sets the style of the submit button */
5
+ variant?: 'danger' | 'solid';
6
+ };
7
+ declare var __VLS_1: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_1) => any;
10
+ };
11
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ submit: () => any;
13
+ cancel: () => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onSubmit?: (() => any) | undefined;
16
+ onCancel?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
25
+ //# sourceMappingURL=ConfirmationForm.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmationForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/forms/ConfirmationForm.vue"],"names":[],"mappings":"AAwDA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAC7B,CAAC;AAqGF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import o from "./ConfirmationForm.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b4497d3d"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,45 @@
1
+ import { defineComponent as m, createElementBlock as p, openBlock as f, withModifiers as d, renderSlot as c, createElementVNode as v, createVNode as n, unref as a, withCtx as i, createTextVNode as l, toDisplayString as b } from "vue";
2
+ import { ScalarButton as r } from "@scalar/components";
3
+ const x = { class: "flex justify-between gap-10" }, S = /* @__PURE__ */ m({
4
+ __name: "ConfirmationForm",
5
+ props: {
6
+ label: { default: "Save" },
7
+ variant: { default: "solid" }
8
+ },
9
+ emits: ["cancel", "submit"],
10
+ setup(w, { emit: s }) {
11
+ const o = s;
12
+ return (t, e) => (f(), p("form", {
13
+ class: "flex flex-col gap-4 text-base",
14
+ onSubmit: e[1] || (e[1] = d((u) => o("submit"), ["prevent"]))
15
+ }, [
16
+ c(t.$slots, "default", {}, void 0, !0),
17
+ v("div", x, [
18
+ n(a(r), {
19
+ class: "flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",
20
+ type: "button",
21
+ variant: "outlined",
22
+ onClick: e[0] || (e[0] = (u) => o("cancel"))
23
+ }, {
24
+ default: i(() => [...e[2] || (e[2] = [
25
+ l(" Cancel ", -1)
26
+ ])]),
27
+ _: 1
28
+ }),
29
+ n(a(r), {
30
+ class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
31
+ type: "submit",
32
+ variant: t.variant
33
+ }, {
34
+ default: i(() => [
35
+ l(b(t.label), 1)
36
+ ]),
37
+ _: 1
38
+ }, 8, ["variant"])
39
+ ])
40
+ ], 32));
41
+ }
42
+ });
43
+ export {
44
+ S as default
45
+ };
@@ -0,0 +1,2 @@
1
+ export { default as ConfirmationForm } from './ConfirmationForm.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as a } from "./ConfirmationForm.vue.js";
2
+ export {
3
+ a as ConfirmationForm
4
+ };
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Simple collapsible section component that can be used to wrap content that should be collapsed and expanded
3
+ *
4
+ * Would like to replace with details/summary elements, but they are not supported in all browsers yet?
5
+ */
6
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
7
+ /** Whether the disclosure is open by default. */
8
+ defaultOpen?: boolean;
9
+ /** Number of items to show in badge when collapsed. */
10
+ itemCount?: number;
11
+ /** Whether the disclosure is static and cannot be toggled. */
12
+ isStatic?: boolean;
13
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ "update:modelValue": (value: boolean) => any;
15
+ }, string, import("vue").PublicProps, Readonly<{
16
+ /** Whether the disclosure is open by default. */
17
+ defaultOpen?: boolean;
18
+ /** Number of items to show in badge when collapsed. */
19
+ itemCount?: number;
20
+ /** Whether the disclosure is static and cannot be toggled. */
21
+ isStatic?: boolean;
22
+ }> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
25
+ title?: (props: {
26
+ open: any;
27
+ }) => any;
28
+ } & {
29
+ actions?: (props: {
30
+ open: any;
31
+ }) => any;
32
+ } & {
33
+ default?: (props: {
34
+ open: any;
35
+ }) => any;
36
+ }>;
37
+ export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
43
+ //# sourceMappingURL=CollapsibleSection.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapsibleSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/layout/CollapsibleSection.vue"],"names":[],"mappings":"AA0HA;;;;GAIG;;IAGD,iDAAiD;kBACnC,OAAO;IACrB,uDAAuD;gBAC3C,MAAM;IAClB,8DAA8D;eACnD,OAAO;;;;IALlB,iDAAiD;kBACnC,OAAO;IACrB,uDAAuD;gBAC3C,MAAM;IAClB,8DAA8D;eACnD,OAAO;;;;YAsNR,CAAC,KAAK;;KAAiB,KAAK,GAAG;;cAC7B,CAAC,KAAK;;KAAiB,KAAK,GAAG;;cAC/B,CAAC,KAAK;;KAAiB,KAAK,GAAG;;AA/N7C,wBAyQC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { defineComponent as x, useId as y, createBlock as f, openBlock as o, unref as s, normalizeClass as i, withCtx as n, createVNode as r, createElementVNode as l, createElementBlock as d, createCommentVNode as a, renderSlot as c, createTextVNode as C, toDisplayString as m, mergeProps as _ } from "vue";
2
+ import { Disclosure as S, DisclosureButton as v, DisclosurePanel as k } from "@headlessui/vue";
3
+ import { ScalarIcon as B } from "@scalar/components";
4
+ import V from "./ValueEmitter.vue.js";
5
+ const $ = ["aria-labelledby"], w = { class: "text-c-1 m-0 flex flex-1 items-center gap-1.5 leading-[20px]" }, D = ["id"], I = {
6
+ key: 0,
7
+ class: "sr-only"
8
+ }, N = {
9
+ key: 0,
10
+ class: "bg-b-2 text-c-2 inline-flex h-5 w-5 items-center justify-center rounded-full border text-xs font-semibold"
11
+ }, O = { class: "sr-only" }, z = {
12
+ key: 0,
13
+ class: "ui-not-open:hidden flex items-center gap-2 pr-0.75"
14
+ }, E = {
15
+ name: "CollapsibleSection"
16
+ }, A = /* @__PURE__ */ x({
17
+ ...E,
18
+ props: {
19
+ defaultOpen: { type: Boolean, default: !0 },
20
+ itemCount: { default: 0 },
21
+ isStatic: { type: Boolean }
22
+ },
23
+ emits: ["update:modelValue"],
24
+ setup(P, { emit: b }) {
25
+ const h = b, u = y();
26
+ return (e, p) => (o(), f(s(S), {
27
+ as: "div",
28
+ class: i(["group/collapse text-c-2 focus-within:text-c-1 last:ui-open:border-b-0 border-b", e.isStatic && "last-of-type:first-of-type:border-b-0"]),
29
+ defaultOpen: e.defaultOpen,
30
+ static: e.isStatic
31
+ }, {
32
+ default: n(({ open: t }) => [
33
+ r(V, {
34
+ value: t,
35
+ onChange: p[0] || (p[0] = (g) => h("update:modelValue", g))
36
+ }, null, 8, ["value"]),
37
+ l("section", {
38
+ "aria-labelledby": s(u),
39
+ class: "contents"
40
+ }, [
41
+ l("div", {
42
+ class: i(["bg-b-2 flex items-center", e.isStatic && "rounded-t-lg border border-b-0"])
43
+ }, [
44
+ r(s(v), {
45
+ class: i(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-base font-medium outline-none md:px-1.5 xl:pr-0.5 xl:pl-2", e.isStatic && "!pl-3"]),
46
+ disabled: e.isStatic
47
+ }, {
48
+ default: n(() => [
49
+ e.isStatic ? a("", !0) : (o(), f(s(B), {
50
+ key: 0,
51
+ class: "text-c-3 group-hover:text-c-1 rounded-px ui-open:rotate-90 ui-not-open:rotate-0 outline-offset-2 group-focus-visible:outline",
52
+ icon: "ChevronRight",
53
+ size: "md"
54
+ })),
55
+ l("h2", w, [
56
+ l("span", {
57
+ id: s(u),
58
+ class: "contents"
59
+ }, [
60
+ c(e.$slots, "title", { open: t }),
61
+ t ? a("", !0) : (o(), d("span", I, " (Collapsed) "))
62
+ ], 8, D),
63
+ !t && e.itemCount ? (o(), d("span", N, [
64
+ C(m(e.itemCount) + " ", 1),
65
+ l("span", O, "Item" + m(e.itemCount === 1 ? "" : "s"), 1)
66
+ ])) : a("", !0)
67
+ ])
68
+ ]),
69
+ _: 2
70
+ }, 1032, ["class", "disabled"]),
71
+ e.$slots.actions ? (o(), d("div", z, [
72
+ c(e.$slots, "actions", { open: t })
73
+ ])) : a("", !0)
74
+ ], 2),
75
+ r(s(k), _(e.$attrs, { class: "diclosure-panel h-full max-h-fit rounded-b" }), {
76
+ default: n(() => [
77
+ c(e.$slots, "default", { open: t })
78
+ ]),
79
+ _: 2
80
+ }, 1040)
81
+ ], 8, $)
82
+ ]),
83
+ _: 3
84
+ }, 8, ["class", "defaultOpen", "static"]));
85
+ }
86
+ });
87
+ export {
88
+ A as default
89
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./CollapsibleSection.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This component takes in any value and emits it back
3
+ *
4
+ * This is useful when we need to catch the open state of a disclosure from its v-slot
5
+ */
6
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
+ readonly onChange?: ((value: T) => any) | undefined;
9
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange"> & {
10
+ value: T;
11
+ } & Partial<{}>> & import("vue").PublicProps;
12
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
13
+ attrs: any;
14
+ slots: {};
15
+ emit: (e: "change", value: T) => void;
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ export default _default;
20
+ type __VLS_PrettifyLocal<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
23
+ //# sourceMappingURL=ValueEmitter.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValueEmitter.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/layout/ValueEmitter.vue"],"names":[],"mappings":"AAiCA;;;;GAIG;yBACc,CAAC,EACjB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA+CO,mBAAmB,CAAC;;;eA9CA,CAAC;QA8CoC,OAAO,IAAsB,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA9Ca,QAAQ,SAAS,CAAC,KAAG,IAAI;EAkD7C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1DzE,wBA2DC;AACD,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { defineComponent as m, watch as c } from "vue";
2
+ const r = {
3
+ name: "ValueEmitter"
4
+ }, o = /* @__PURE__ */ m({
5
+ ...r,
6
+ props: {
7
+ value: {}
8
+ },
9
+ emits: ["change"],
10
+ setup(t, { emit: a }) {
11
+ const n = a;
12
+ return c(
13
+ () => t.value,
14
+ (e) => n("change", e),
15
+ { immediate: !0 }
16
+ ), (e, u) => null;
17
+ }
18
+ });
19
+ export {
20
+ o as default
21
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ValueEmitter.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as CollapsibleSection } from './CollapsibleSection.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./CollapsibleSection.vue.js";
2
+ export {
3
+ o as CollapsibleSection
4
+ };
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ /** The name of the item to delete */
3
+ name: string;
4
+ /** The warning message to display */
5
+ warningMessage?: string | undefined;
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ delete: () => any;
9
+ close: () => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onDelete?: (() => any) | undefined;
12
+ onClose?: (() => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
15
+ //# sourceMappingURL=DeleteModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/modals/DeleteModal.vue"],"names":[],"mappings":"AAyCA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACpC,CAAC;;;;;;;;AAkFF,wBAOG"}
@@ -0,0 +1,31 @@
1
+ import { defineComponent as s, computed as i, createBlock as p, openBlock as o, unref as c, withCtx as d, createElementBlock as u, createCommentVNode as f, toDisplayString as g } from "vue";
2
+ import { truncate as C } from "@scalar/helpers/string/truncate";
3
+ import k from "../forms/ConfirmationForm.vue.js";
4
+ const v = {
5
+ key: 0,
6
+ class: "text-c-2 text-sm leading-normal text-pretty"
7
+ }, b = /* @__PURE__ */ s({
8
+ __name: "DeleteModal",
9
+ props: {
10
+ name: {},
11
+ warningMessage: {}
12
+ },
13
+ emits: ["close", "delete"],
14
+ setup(a, { emit: r }) {
15
+ const t = r, m = i(() => C(a.name));
16
+ return (n, e) => (o(), p(c(k), {
17
+ label: `Delete ${m.value}`,
18
+ variant: "danger",
19
+ onCancel: e[0] || (e[0] = (l) => t("close")),
20
+ onSubmit: e[1] || (e[1] = (l) => t("delete"))
21
+ }, {
22
+ default: d(() => [
23
+ n.warningMessage ? (o(), u("p", v, g(n.warningMessage), 1)) : f("", !0)
24
+ ]),
25
+ _: 1
26
+ }, 8, ["label"]));
27
+ }
28
+ });
29
+ export {
30
+ b as default
31
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./DeleteModal.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DeleteModal } from './DeleteModal.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/modals/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as l } from "./DeleteModal.vue.js";
2
+ export {
3
+ l as DeleteModal
4
+ };
@@ -13,20 +13,22 @@ type __VLS_Props = {
13
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
14
  addServer: () => any;
15
15
  "update:variable": (payload: {
16
+ index: number;
16
17
  key: string;
17
18
  value: string;
18
19
  }) => any;
19
20
  "update:selectedServer": (payload: {
20
- id: string;
21
+ index: number;
21
22
  }) => any;
22
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
24
  onAddServer?: (() => any) | undefined;
24
25
  "onUpdate:variable"?: ((payload: {
26
+ index: number;
25
27
  key: string;
26
28
  value: string;
27
29
  }) => any) | undefined;
28
30
  "onUpdate:selectedServer"?: ((payload: {
29
- id: string;
31
+ index: number;
30
32
  }) => any) | undefined;
31
33
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
34
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,0EAA0E;IAC1E,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;;;;aAMuC,MAAM;eAAS,MAAM;;;YADhB,MAAM;;;;;aACX,MAAM;eAAS,MAAM;;;YADhB,MAAM;;;AAwOpD,wBAOG"}
1
+ {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,0EAA0E;IAC1E,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAmPF,wBAOG"}