@kong-ui-public/entities-shared 3.68.2-pr.3869.e876c8c8a.0 → 3.68.2

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 (144) hide show
  1. package/dist/_plugin-vue_export-helper-BoB6meVO.cjs +1 -0
  2. package/dist/_plugin-vue_export-helper-cPvCgR8H.js +695 -0
  3. package/dist/deck-editor.cjs.js +1 -0
  4. package/dist/deck-editor.es.js +86 -0
  5. package/dist/entities-shared.cjs.js +79 -0
  6. package/dist/entities-shared.es.js +5348 -0
  7. package/dist/style.css +1 -0
  8. package/dist/types/components/common/DeckCallout.vue.d.ts +10 -0
  9. package/dist/types/components/common/DeckCallout.vue.d.ts.map +1 -0
  10. package/dist/types/components/common/DeckCodeBlock.vue.d.ts +13 -0
  11. package/dist/types/components/common/DeckCodeBlock.vue.d.ts.map +1 -0
  12. package/dist/types/components/common/DeckCodeBlockInternal.vue.d.ts +13 -0
  13. package/dist/types/components/common/DeckCodeBlockInternal.vue.d.ts.map +1 -0
  14. package/dist/types/components/common/DeckCommandEditor.vue.d.ts +16 -0
  15. package/dist/types/components/common/DeckCommandEditor.vue.d.ts.map +1 -0
  16. package/dist/types/components/common/DeckCommandEditorLoading.vue.d.ts +4 -0
  17. package/dist/types/components/common/DeckCommandEditorLoading.vue.d.ts.map +1 -0
  18. package/dist/types/components/common/GeneratePatModal.vue.d.ts +14 -0
  19. package/dist/types/components/common/GeneratePatModal.vue.d.ts.map +1 -0
  20. package/dist/types/components/common/JsonCodeBlock.vue.d.ts +70 -0
  21. package/dist/types/components/common/JsonCodeBlock.vue.d.ts.map +1 -0
  22. package/dist/types/components/common/SensitiveInput.vue.d.ts +73 -0
  23. package/dist/types/components/common/SensitiveInput.vue.d.ts.map +1 -0
  24. package/dist/types/components/common/TableTags.vue.d.ts +27 -0
  25. package/dist/types/components/common/TableTags.vue.d.ts.map +1 -0
  26. package/dist/types/components/common/TerraformCodeBlock.vue.d.ts +58 -0
  27. package/dist/types/components/common/TerraformCodeBlock.vue.d.ts.map +1 -0
  28. package/dist/types/components/common/YamlCodeBlock.vue.d.ts +54 -0
  29. package/dist/types/components/common/YamlCodeBlock.vue.d.ts.map +1 -0
  30. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts +213 -0
  31. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts.map +1 -0
  32. package/dist/types/components/entity-base-config-card/ConfigCardItem.vue.d.ts +58 -0
  33. package/dist/types/components/entity-base-config-card/ConfigCardItem.vue.d.ts.map +1 -0
  34. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts +335 -0
  35. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -0
  36. package/dist/types/components/entity-base-config-card/InternalLinkItem.vue.d.ts +20 -0
  37. package/dist/types/components/entity-base-config-card/InternalLinkItem.vue.d.ts.map +1 -0
  38. package/dist/types/components/entity-base-config-card/JsonCardItem.vue.d.ts +35 -0
  39. package/dist/types/components/entity-base-config-card/JsonCardItem.vue.d.ts.map +1 -0
  40. package/dist/types/components/entity-base-config-card/StatusBadge.vue.d.ts +16 -0
  41. package/dist/types/components/entity-base-config-card/StatusBadge.vue.d.ts.map +1 -0
  42. package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts +364 -0
  43. package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts.map +1 -0
  44. package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts +326 -0
  45. package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts.map +1 -0
  46. package/dist/types/components/entity-base-table/EntityBaseTableCell.vue.d.ts +45 -0
  47. package/dist/types/components/entity-base-table/EntityBaseTableCell.vue.d.ts.map +1 -0
  48. package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts +135 -0
  49. package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts.map +1 -0
  50. package/dist/types/components/entity-empty-state/EntityEmptyState.vue.d.ts +117 -0
  51. package/dist/types/components/entity-empty-state/EntityEmptyState.vue.d.ts.map +1 -0
  52. package/dist/types/components/entity-filter/EntityFilter.vue.d.ts +38 -0
  53. package/dist/types/components/entity-filter/EntityFilter.vue.d.ts.map +1 -0
  54. package/dist/types/components/entity-form-block/EntityFormBlock.vue.d.ts +22 -0
  55. package/dist/types/components/entity-form-block/EntityFormBlock.vue.d.ts.map +1 -0
  56. package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts +77 -0
  57. package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts.map +1 -0
  58. package/dist/types/components/entity-link/EntityLink.vue.d.ts +50 -0
  59. package/dist/types/components/entity-link/EntityLink.vue.d.ts.map +1 -0
  60. package/dist/types/components/entity-toggle-modal/EntityToggleModal.vue.d.ts +65 -0
  61. package/dist/types/components/entity-toggle-modal/EntityToggleModal.vue.d.ts.map +1 -0
  62. package/dist/types/components/onboarding-card/OnboardingCard.vue.d.ts +15 -0
  63. package/dist/types/components/onboarding-card/OnboardingCard.vue.d.ts.map +1 -0
  64. package/dist/types/components/permissions-wrapper/PermissionsWrapper.vue.d.ts +56 -0
  65. package/dist/types/components/permissions-wrapper/PermissionsWrapper.vue.d.ts.map +1 -0
  66. package/dist/types/composables/index.d.ts +49 -0
  67. package/dist/types/composables/index.d.ts.map +1 -0
  68. package/dist/types/composables/useAxios.d.ts +5 -0
  69. package/dist/types/composables/useAxios.d.ts.map +1 -0
  70. package/dist/types/composables/useDebouncedFilter.d.ts +11 -0
  71. package/dist/types/composables/useDebouncedFilter.d.ts.map +1 -0
  72. package/dist/types/composables/useDeckOptions.d.ts +13 -0
  73. package/dist/types/composables/useDeckOptions.d.ts.map +1 -0
  74. package/dist/types/composables/useDeleteUrlBuilder.d.ts +3 -0
  75. package/dist/types/composables/useDeleteUrlBuilder.d.ts.map +1 -0
  76. package/dist/types/composables/useErrors.d.ts +11 -0
  77. package/dist/types/composables/useErrors.d.ts.map +1 -0
  78. package/dist/types/composables/useExternalLinkCreator.d.ts +2 -0
  79. package/dist/types/composables/useExternalLinkCreator.d.ts.map +1 -0
  80. package/dist/types/composables/useFetchUrlBuilder.d.ts +6 -0
  81. package/dist/types/composables/useFetchUrlBuilder.d.ts.map +1 -0
  82. package/dist/types/composables/useFetcher.d.ts +40 -0
  83. package/dist/types/composables/useFetcher.d.ts.map +1 -0
  84. package/dist/types/composables/useGatewayFeatureSupported.d.ts +11 -0
  85. package/dist/types/composables/useGatewayFeatureSupported.d.ts.map +1 -0
  86. package/dist/types/composables/useHelpers.d.ts +12 -0
  87. package/dist/types/composables/useHelpers.d.ts.map +1 -0
  88. package/dist/types/composables/useI18n.d.ts +9 -0
  89. package/dist/types/composables/useI18n.d.ts.map +1 -0
  90. package/dist/types/composables/useManagedByColumn.d.ts +20 -0
  91. package/dist/types/composables/useManagedByColumn.d.ts.map +1 -0
  92. package/dist/types/composables/useManagedByEnabled.d.ts +11 -0
  93. package/dist/types/composables/useManagedByEnabled.d.ts.map +1 -0
  94. package/dist/types/composables/useSchema.d.ts +12 -0
  95. package/dist/types/composables/useSchema.d.ts.map +1 -0
  96. package/dist/types/composables/useStringHelpers.d.ts +5 -0
  97. package/dist/types/composables/useStringHelpers.d.ts.map +1 -0
  98. package/dist/types/composables/useTableState.d.ts +15 -0
  99. package/dist/types/composables/useTableState.d.ts.map +1 -0
  100. package/dist/types/composables/useTruncationDetector.d.ts +12 -0
  101. package/dist/types/composables/useTruncationDetector.d.ts.map +1 -0
  102. package/dist/types/composables/useValidators.d.ts +8 -0
  103. package/dist/types/composables/useValidators.d.ts.map +1 -0
  104. package/dist/types/constants.d.ts +53 -0
  105. package/dist/types/constants.d.ts.map +1 -0
  106. package/dist/types/deck-editor.d.ts +18 -0
  107. package/dist/types/deck-editor.d.ts.map +1 -0
  108. package/dist/types/index.d.ts +35 -0
  109. package/dist/types/index.d.ts.map +1 -0
  110. package/dist/types/types/app-config.d.ts +43 -0
  111. package/dist/types/types/app-config.d.ts.map +1 -0
  112. package/dist/types/types/base.d.ts +12 -0
  113. package/dist/types/types/base.d.ts.map +1 -0
  114. package/dist/types/types/deck.d.ts +43 -0
  115. package/dist/types/types/deck.d.ts.map +1 -0
  116. package/dist/types/types/entity-base-config-card.d.ts +145 -0
  117. package/dist/types/types/entity-base-config-card.d.ts.map +1 -0
  118. package/dist/types/types/entity-base-form.d.ts +49 -0
  119. package/dist/types/types/entity-base-form.d.ts.map +1 -0
  120. package/dist/types/types/entity-base-table.d.ts +79 -0
  121. package/dist/types/types/entity-base-table.d.ts.map +1 -0
  122. package/dist/types/types/entity-delete-modal.d.ts +28 -0
  123. package/dist/types/types/entity-delete-modal.d.ts.map +1 -0
  124. package/dist/types/types/entity-empty-state.d.ts +7 -0
  125. package/dist/types/types/entity-empty-state.d.ts.map +1 -0
  126. package/dist/types/types/entity-filter.d.ts +48 -0
  127. package/dist/types/types/entity-filter.d.ts.map +1 -0
  128. package/dist/types/types/entity-link.d.ts +6 -0
  129. package/dist/types/types/entity-link.d.ts.map +1 -0
  130. package/dist/types/types/index.d.ts +14 -0
  131. package/dist/types/types/index.d.ts.map +1 -0
  132. package/dist/types/types/onboarding-card.d.ts +37 -0
  133. package/dist/types/types/onboarding-card.d.ts.map +1 -0
  134. package/dist/types/types/sensitive-input.d.ts +9 -0
  135. package/dist/types/types/sensitive-input.d.ts.map +1 -0
  136. package/dist/types/types/utils.d.ts +13 -0
  137. package/dist/types/types/utils.d.ts.map +1 -0
  138. package/dist/types/utils/code-block.d.ts +3 -0
  139. package/dist/types/utils/code-block.d.ts.map +1 -0
  140. package/dist/types/utils/managed-by.d.ts +25 -0
  141. package/dist/types/utils/managed-by.d.ts.map +1 -0
  142. package/dist/types/utils/shiki.d.ts +4 -0
  143. package/dist/types/utils/shiki.d.ts.map +1 -0
  144. package/package.json +5 -5
@@ -0,0 +1,15 @@
1
+ import type { Ref } from 'vue';
2
+ import type { TableStateParams } from '../types';
3
+ export default function useTableState(query?: Ref<string> | (() => string)): {
4
+ tableState: Ref<{
5
+ state: import("@kong/kongponents").TableState;
6
+ hasData: boolean;
7
+ } | null, TableStateParams | {
8
+ state: import("@kong/kongponents").TableState;
9
+ hasData: boolean;
10
+ } | null>;
11
+ hasRecords: Ref<boolean, boolean>;
12
+ hideTableToolbar: import("vue").ComputedRef<boolean>;
13
+ handleStateChange: (stateParams: TableStateParams) => void;
14
+ };
15
+ //# sourceMappingURL=useTableState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableState.d.ts","sourceRoot":"","sources":["../../../src/composables/useTableState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAIhD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC;;;;;;;;;;qCAqBhC,gBAAgB,KAAG,IAAI;EA8BhE"}
@@ -0,0 +1,12 @@
1
+ import type { Ref } from 'vue';
2
+ /**
3
+ * Returns a computed boolean indicating whether the textContent is truncated.
4
+ *
5
+ * @param textContent {Ref<HTMLElement>} ref to the element to detect truncation on.
6
+ *
7
+ * @returns {isTruncated: Ref<boolean>} ref to a boolean indicating whether the textContent is truncated.
8
+ */
9
+ export default function useTruncationDetector(textContent: Ref<HTMLElement>): {
10
+ isTruncated: import("vue").ComputedRef<boolean>;
11
+ };
12
+ //# sourceMappingURL=useTruncationDetector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTruncationDetector.d.ts","sourceRoot":"","sources":["../../../src/composables/useTruncationDetector.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC;;EAoB1E"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Provides a collection of validator functions for entity fields.
3
+ * Each validator function returns an error message if the field is invalid, or an empty string if it is valid.
4
+ */
5
+ export default function useValidators(): {
6
+ utf8Name: (name: string) => string;
7
+ };
8
+ //# sourceMappingURL=useValidators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useValidators.d.ts","sourceRoot":"","sources":["../../../src/composables/useValidators.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa;qBAGJ,MAAM;EAMtC"}
@@ -0,0 +1,53 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ import type DeckCommandEditor from './components/common/DeckCommandEditor.vue';
3
+ export declare const PLUGIN_FORM_LAYOUT_STATE: InjectionKey<Ref<boolean>>;
4
+ /**
5
+ * The injection key for providing the `DeckCommandEditor` component.
6
+ *
7
+ * For:
8
+ * - decK command customization
9
+ *
10
+ * Usage:
11
+ * ```ts
12
+ * // In the host app
13
+ * import { provide } from 'vue'
14
+ * import { DECK_COMMAND_EDITOR_KEY } from '@kong-ui-public/entities-shared'
15
+ * import { DeckCommandEditor } from '@kong-ui-public/entities-shared/deck-editor'
16
+ * provide(DECK_COMMAND_EDITOR_KEY, DeckCommandEditor)
17
+ * ```
18
+ *
19
+ * See `provideDeckCommandEditor` from `@kong-ui-public/entities-shared/deck-editor`
20
+ * for the convenient helper.
21
+ */
22
+ export declare const DECK_COMMAND_EDITOR_KEY: InjectionKey<typeof DeckCommandEditor>;
23
+ export declare const DECK_COMMAND_EDITOR_MISSING_WARNING = "[entities-shared] DeckCommandEditor was not provided. Provide it via the `DECK_COMMAND_EDITOR_KEY` injection key or the `provideDeckCommandEditor` helper (see @kong-ui-public/entities-shared/deck-editor).";
24
+ /**
25
+ * Code block needs a max height to enable virtual scrolling.
26
+ */
27
+ export declare const CONFIG_CARD_CODE_BLOCK_MAX_HEIGHT = "50vh";
28
+ /**
29
+ * Shiki's JS regex engine tokenizes synchronously on the main thread and emits one DOM element
30
+ * per token, so very large documents (e.g. a decK YAML dump with tens of thousands of lines)
31
+ * can block the tab for a long time and bloat the DOM. Past this size, skip highlighting and
32
+ * keep the plain-text rendering that KCodeBlock already produces via `v-html`.
33
+ */
34
+ export declare const SHIKI_MAX_HIGHLIGHT_LENGTH = 200000;
35
+ /**
36
+ * Feature flags shared across the entity packages.
37
+ *
38
+ * These use plain string keys (rather than symbols) so a host app can provide them from a
39
+ * flag service without importing anything, matching the convention in entities-plugins.
40
+ *
41
+ * Usage:
42
+ * ```ts
43
+ * // In the host app
44
+ * import { provide } from 'vue'
45
+ * import { ENTITIES_FEATURE_FLAGS } from '@kong-ui-public/entities-shared'
46
+ * provide(ENTITIES_FEATURE_FLAGS.MANAGED_BY, isManagedByEnabled) // boolean or Ref<boolean>
47
+ * ```
48
+ */
49
+ export declare const ENTITIES_FEATURE_FLAGS: {
50
+ /** Surfaces the `managed_by` ownership field in entity lists and detail cards. */
51
+ readonly MANAGED_BY: "KM-3018-entity-managed-by";
52
+ };
53
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE5C,OAAO,KAAK,iBAAiB,MAAM,2CAA2C,CAAA;AAE9E,eAAO,MAAM,wBAAwB,EAAE,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAsC,CAAA;AAEtG;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,OAAO,iBAAiB,CAAiC,CAAA;AAE5G,eAAO,MAAM,mCAAmC,iNAAiN,CAAA;AAEjQ;;GAEG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAA;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,SAAU,CAAA;AAEjD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB;IACjC,kFAAkF;;CAE1E,CAAA"}
@@ -0,0 +1,18 @@
1
+ import DeckCommandEditor from './components/common/DeckCommandEditor.vue';
2
+ import DeckCommandEditorLoading from './components/common/DeckCommandEditorLoading.vue';
3
+ export { DeckCommandEditor, DeckCommandEditorLoading };
4
+ /**
5
+ * Provides the `DeckCommandEditor` component via the `DECK_COMMAND_EDITOR_KEY` injection key.
6
+ *
7
+ * For:
8
+ * - decK command customization
9
+ *
10
+ * Usage:
11
+ * ```ts
12
+ * // In the host app
13
+ * import { provideDeckCommandEditor } from '@kong-ui-public/entities-shared/deck-editor'
14
+ * provideDeckCommandEditor()
15
+ * ```
16
+ */
17
+ export declare function provideDeckCommandEditor(): void;
18
+ //# sourceMappingURL=deck-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deck-editor.d.ts","sourceRoot":"","sources":["../../src/deck-editor.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,MAAM,2CAA2C,CAAA;AACzE,OAAO,wBAAwB,MAAM,kDAAkD,CAAA;AAEvF,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,CAAA;AAEtD;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,SAEvC"}
@@ -0,0 +1,35 @@
1
+ import OnboardingCard from './components/onboarding-card/OnboardingCard.vue';
2
+ import EntityBaseConfigCard from './components/entity-base-config-card/EntityBaseConfigCard.vue';
3
+ import ConfigCardItem from './components/entity-base-config-card/ConfigCardItem.vue';
4
+ import ConfigCardDisplay from './components/entity-base-config-card/ConfigCardDisplay.vue';
5
+ import InternalLinkItem from './components/entity-base-config-card/InternalLinkItem.vue';
6
+ import EntityBaseForm from './components/entity-base-form/EntityBaseForm.vue';
7
+ import EntityBaseTable from './components/entity-base-table/EntityBaseTable.vue';
8
+ import EntityDeleteModal from './components/entity-delete-modal/EntityDeleteModal.vue';
9
+ import EntityFilter from './components/entity-filter/EntityFilter.vue';
10
+ import EntityToggleModal from './components/entity-toggle-modal/EntityToggleModal.vue';
11
+ import PermissionsWrapper from './components/permissions-wrapper/PermissionsWrapper.vue';
12
+ import EntityFormSection from './components/entity-form-section/EntityFormSection.vue';
13
+ import EntityFormBlock from './components/entity-form-block/EntityFormBlock.vue';
14
+ import EntityLink from './components/entity-link/EntityLink.vue';
15
+ import EntityEmptyState from './components/entity-empty-state/EntityEmptyState.vue';
16
+ import JsonCodeBlock from './components/common/JsonCodeBlock.vue';
17
+ import TerraformCodeBlock from './components/common/TerraformCodeBlock.vue';
18
+ import YamlCodeBlock from './components/common/YamlCodeBlock.vue';
19
+ import DeckCodeBlock from './components/common/DeckCodeBlock.vue';
20
+ import GeneratePatModal from './components/common/GeneratePatModal.vue';
21
+ import SensitiveInput from './components/common/SensitiveInput.vue';
22
+ import TableTags from './components/common/TableTags.vue';
23
+ declare const useAxios: typeof import("./composables/useAxios.ts").default, useDeleteUrlBuilder: typeof import("./composables/useDeleteUrlBuilder.ts").default, useBaseEntityDeckOptions: typeof import("./composables/useDeckOptions.ts").useBaseEntityDeckOptions, useBaseFormDeckOptions: typeof import("./composables/useDeckOptions.ts").useBaseFormDeckOptions, useErrors: typeof import("./composables/useErrors.ts").default, useExternalLinkCreator: typeof import("./composables/useExternalLinkCreator.ts").default, useFetchUrlBuilder: typeof import("./composables/useFetchUrlBuilder.ts").default, useFetcher: typeof import("./composables/useFetcher.ts").default, useFetcherCacheKey: typeof import("./composables/useFetcher.ts").useFetcherCacheKey, useDebouncedFilter: typeof import("./composables/useDebouncedFilter.ts").default, useStringHelpers: typeof import("./composables/useStringHelpers.ts").default, useHelpers: typeof import("./composables/useHelpers.ts").default, useGatewayFeatureSupported: typeof import("./composables/useGatewayFeatureSupported.ts").default, useTruncationDetector: typeof import("./composables/useTruncationDetector.ts").default, useValidators: typeof import("./composables/useValidators.ts").default, useSchema: () => Readonly<import("vue").Ref<{
24
+ [x: string]: any;
25
+ } | undefined>>, useSchemaProvider: (schema: import("vue").Ref<{
26
+ [x: string]: any;
27
+ }>) => void, useTableState: typeof import("./composables/useTableState.ts").default, useManagedByEnabled: typeof import("./composables/useManagedByEnabled.ts").default, useManagedByColumn: typeof import("./composables/useManagedByColumn.ts").default;
28
+ export { OnboardingCard, EntityBaseConfigCard, ConfigCardItem, ConfigCardDisplay, InternalLinkItem, EntityBaseForm, EntityBaseTable, EntityDeleteModal, EntityFilter, EntityToggleModal, PermissionsWrapper, EntityFormSection, EntityFormBlock, EntityLink, EntityEmptyState, JsonCodeBlock, TerraformCodeBlock, YamlCodeBlock, DeckCodeBlock, GeneratePatModal, SensitiveInput, TableTags };
29
+ export { useAxios, useDeleteUrlBuilder, useBaseEntityDeckOptions, useBaseFormDeckOptions, useErrors, useExternalLinkCreator, useFetchUrlBuilder, useFetcher, useFetcherCacheKey, useDebouncedFilter, useStringHelpers, useHelpers, useGatewayFeatureSupported, useTruncationDetector, useValidators, useSchema, useSchemaProvider, useTableState, useManagedByEnabled, useManagedByColumn };
30
+ export * from './types';
31
+ export * from './constants';
32
+ export { highlightCodeBlock } from './utils/code-block';
33
+ export { getManagedByLabel, getManagedByFieldLabel } from './utils/managed-by';
34
+ export type { ManagedBy } from './utils/managed-by';
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iDAAiD,CAAA;AAC5E,OAAO,oBAAoB,MAAM,+DAA+D,CAAA;AAChG,OAAO,cAAc,MAAM,yDAAyD,CAAA;AACpF,OAAO,iBAAiB,MAAM,4DAA4D,CAAA;AAC1F,OAAO,gBAAgB,MAAM,2DAA2D,CAAA;AACxF,OAAO,cAAc,MAAM,kDAAkD,CAAA;AAC7E,OAAO,eAAe,MAAM,oDAAoD,CAAA;AAChF,OAAO,iBAAiB,MAAM,wDAAwD,CAAA;AACtF,OAAO,YAAY,MAAM,6CAA6C,CAAA;AACtE,OAAO,iBAA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sB,EAAE,kBAAkB,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,UAAU,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAA;AAG3X,cAAc,SAAS,CAAA;AAGvB,cAAc,aAAa,CAAA;AAE3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAC9E,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,43 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ /** Shared config properties for all app entities */
3
+ interface BaseAppConfig {
4
+ /** Base URL for API requests */
5
+ apiBaseUrl: string;
6
+ /** App name. One of 'konnect' | 'kongManager' */
7
+ app: 'konnect' | 'kongManager';
8
+ /** An optional configuration object for the underlying Axios request */
9
+ axiosRequestConfig?: AxiosRequestConfig;
10
+ }
11
+ /** Base config properties for Konnect. All entity configs should extend this interface for the app. */
12
+ export interface KonnectConfig extends BaseAppConfig {
13
+ /** App name. 'konnect' */
14
+ app: 'konnect';
15
+ /** The control plane id */
16
+ controlPlaneId: string;
17
+ /** Optional workspace name or identifier */
18
+ workspace?: string | null;
19
+ /** Identifies whether the Control Plane type is a Control Plane Group or not */
20
+ isControlPlaneGroup?: boolean;
21
+ /** Identifies whether the control plane is a member of a control plane group (not the group itself) */
22
+ isControlPlaneGroupMember?: boolean;
23
+ /** Should use exact match */
24
+ isExactMatch?: boolean;
25
+ /** The control plane name */
26
+ controlPlaneName?: string;
27
+ /** Geo server API URL, e.g. https://us.api.konghq.tech */
28
+ geoApiServerUrl?: string;
29
+ }
30
+ /** Base config properties for Kong Manager. All entity configs should extend this interface for the app. */
31
+ export interface KongManagerConfig extends BaseAppConfig {
32
+ /** App name. 'kongManager' */
33
+ app: 'kongManager';
34
+ /** Workspace name */
35
+ workspace: string;
36
+ /** Gateway instance info, used in Canopy to check if a feature is supported */
37
+ gatewayInfo?: {
38
+ edition: 'enterprise' | 'community';
39
+ version: string;
40
+ };
41
+ }
42
+ export {};
43
+ //# sourceMappingURL=app-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../../src/types/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAE/C,oDAAoD;AACpD,UAAU,aAAa;IACrB,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAA;IAClB,iDAAiD;IACjD,GAAG,EAAE,SAAS,GAAG,aAAa,CAAA;IAC9B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;CACxC;AAED,uGAAuG;AACvG,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,0BAA0B;IAC1B,GAAG,EAAE,SAAS,CAAA;IACd,2BAA2B;IAC3B,cAAc,EAAE,MAAM,CAAA;IACtB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,uGAAuG;IACvG,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,6BAA6B;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,6BAA6B;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,4GAA4G;AAC5G,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,8BAA8B;IAC9B,GAAG,EAAE,aAAa,CAAA;IAClB,qBAAqB;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,+EAA+E;IAC/E,WAAW,CAAC,EAAE;QACZ,OAAO,EAAE,YAAY,GAAG,WAAW,CAAA;QACnC,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;CACF"}
@@ -0,0 +1,12 @@
1
+ import type { TableHeader } from '@kong/kongponents';
2
+ /** List field configuration */
3
+ export interface Field extends Omit<TableHeader, 'key' | 'tooltip'> {
4
+ /** Determines if the field is searchable */
5
+ searchable?: boolean;
6
+ /**
7
+ * Determines if cells of this field should be wrapped inside KTooltips.
8
+ * Need to use with max-width with EntityBaseTable's cellAttributes prop.
9
+ */
10
+ tooltip?: boolean;
11
+ }
12
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/types/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,+BAA+B;AAC/B,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,WAAW,EAAE,KAAK,GAAG,SAAS,CAAC;IACjE,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -0,0 +1,43 @@
1
+ import type { SupportedEntityDeck } from './entity-base-config-card';
2
+ export interface DeckCodeBlockProps {
3
+ app: 'konnect' | 'kongManager';
4
+ /** A record to indicate the entity's configuration, the visible code content (may be redacted) */
5
+ entityRecord: Record<string, any>;
6
+ /** The unredacted record, used for copy actions */
7
+ unredactedRecord?: Record<string, any>;
8
+ entityType: SupportedEntityDeck;
9
+ /** e.g. https://us.api.konghq.tech, used to pass --konnect-addr parameter to decK */
10
+ geoApiServerUrl?: string;
11
+ controlPlaneName?: string;
12
+ /** e.g. https://localhost:8001, used to pass --kong-addr parameter to decK */
13
+ kongAdminApiUrl?: string;
14
+ workspace?: string;
15
+ }
16
+ export interface DeckCustomizationOptions {
17
+ /**
18
+ * A function to generate a Konnect Personal Access Token (PAT).
19
+ * This enables the user to generate a PAT directly from the UI.
20
+ */
21
+ generateKonnectPat?: (name: string, expiresAt: Date) => string | Promise<string>;
22
+ }
23
+ export interface DeckConfigOptions {
24
+ /**
25
+ * This option enables the "Customize before copying" feature on the decK config.
26
+ *
27
+ * Requires the host app to provide `DeckCommandEditor` via the
28
+ * `DECK_COMMAND_EDITOR_KEY` injection key — typically through the
29
+ * `provideDeckCommandEditor` helper from `@kong-ui-public/entities-shared/deck-editor`.
30
+ * If the editor is not provided, the customize button is hidden and a
31
+ * `console.warn` is emitted at runtime.
32
+ *
33
+ * See {@link DeckCustomizationOptions} for extra options.
34
+ */
35
+ customization?: boolean | DeckCustomizationOptions;
36
+ /**
37
+ * The localStorage key to use while persisting the visibility preference for the
38
+ * decK format callout. Omitting this will hide the callout in any case.
39
+ */
40
+ calloutPreferenceKey?: string;
41
+ }
42
+ export type DeckCalloutPreference = 'visible' | 'dismissed';
43
+ //# sourceMappingURL=deck.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deck.d.ts","sourceRoot":"","sources":["../../../src/types/deck.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAEpE,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,SAAS,GAAG,aAAa,CAAA;IAC9B,kGAAkG;IAClG,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjC,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACtC,UAAU,EAAE,mBAAmB,CAAA;IAC/B,qFAAqF;IACrF,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,8EAA8E;IAC9E,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CACjF;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,wBAAwB,CAAA;IAClD;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,WAAW,CAAA"}
@@ -0,0 +1,145 @@
1
+ import type { RouteLocationRaw } from 'vue-router';
2
+ import type { DeckConfigOptions } from './deck';
3
+ import type { KonnectConfig, KongManagerConfig } from './index';
4
+ /**
5
+ * These entity strings are used for generating terraform scripts.
6
+ * Only add entity types that are supported by terraform. Use '_' instead of '-'.
7
+ * DO NOT MODIFY THE VALUES OF THESE STRINGS.
8
+ */
9
+ export declare enum SupportedEntityType {
10
+ CaCertificate = "ca_certificate",
11
+ Certificate = "certificate",
12
+ Consumer = "consumer",
13
+ ConsumerGroup = "consumer_group",
14
+ GatewayService = "service",
15
+ Key = "key",
16
+ KeySet = "set",
17
+ Plugin = "plugin",
18
+ Route = "route",
19
+ SNI = "sni",
20
+ Upstream = "upstream",
21
+ Target = "target",
22
+ Vault = "vault",
23
+ Partial = "partial",
24
+ CloudGatewayAddon = "cloud_gateway_addon",
25
+ BackendCluster = "backend_cluster",
26
+ VirtualCluster = "virtual_cluster",
27
+ Listener = "listener",
28
+ ProducePolicy = "produce_policy",
29
+ ConsumePolicy = "consume_policy",
30
+ ClusterPolicy = "cluster_policy",
31
+ ListenerPolicy = "listener_policy",
32
+ SchemaRegistry = "schema_registry",
33
+ StaticKey = "static_key",
34
+ TlsTrustBundle = "tls_trust_bundle",
35
+ AuthServer = "auth_server",
36
+ AuthServerScopes = "auth_server_scopes",
37
+ AuthServerClaims = "auth_server_claims",
38
+ AuthServerClients = "auth_server_clients",
39
+ Other = "other",
40
+ PluginSchema = "plugin_schema",
41
+ CustomPlugin = "custom_plugin",
42
+ ClonedPlugin = "cloned_plugin"
43
+ }
44
+ export declare const SupportedEntityTypesArray: SupportedEntityType[];
45
+ export declare const SupportedEntityDeckArray: readonly [SupportedEntityType.CaCertificate, SupportedEntityType.Certificate, SupportedEntityType.Consumer, SupportedEntityType.ConsumerGroup, SupportedEntityType.GatewayService, SupportedEntityType.Key, SupportedEntityType.KeySet, SupportedEntityType.Plugin, SupportedEntityType.PluginSchema, SupportedEntityType.CustomPlugin, SupportedEntityType.ClonedPlugin, SupportedEntityType.Route, SupportedEntityType.Upstream, SupportedEntityType.Target, SupportedEntityType.Vault, SupportedEntityType.Partial];
46
+ export type SupportedEntityDeck = typeof SupportedEntityDeckArray[number];
47
+ export declare function isSupportedDeckEntityType(entityType: SupportedEntityType): boolean;
48
+ export declare const EventGatewayTypesArray: string[];
49
+ export declare const IdentityTypesArray: string[];
50
+ export interface BaseEntityConfig {
51
+ /** the ID of the entity */
52
+ entityId: string;
53
+ /**
54
+ * The localStorage key to use while persisting the config format preference.
55
+ *
56
+ * If omitted, the preference will not be persisted.
57
+ */
58
+ formatPreferenceKey?: string;
59
+ }
60
+ /** Konnect base form config */
61
+ export interface KonnectBaseEntityConfig extends KonnectConfig, BaseEntityConfig {
62
+ enableDeckConfig?: boolean | DeckConfigOptions;
63
+ }
64
+ /** Kong Manager base form config */
65
+ export interface KongManagerBaseEntityConfig extends KongManagerConfig, BaseEntityConfig {
66
+ /**
67
+ * The localStorage key to use while persisting the visibility preference for the
68
+ * decK format callout. Omitting this will hide the callout in any case.
69
+ */
70
+ deckCalloutPreferenceKey?: string;
71
+ }
72
+ export declare enum ConfigurationSchemaType {
73
+ ID = "id",
74
+ IdArray = "id-array",
75
+ Text = "plain-text",// default
76
+ Date = "date",
77
+ Redacted = "redacted",
78
+ RedactedArray = "redacted-array",
79
+ Json = "json",
80
+ JsonArray = "json-array",
81
+ BadgeTag = "badge-tag",
82
+ CopyBadge = "copy-badge",
83
+ BadgeStatus = "badge-status",
84
+ BadgeMethod = "badge-method",
85
+ LinkInternal = "link-internal",
86
+ LinkExternal = "link-external",
87
+ ManagedBy = "managed-by"
88
+ }
89
+ export declare enum ConfigurationSchemaSection {
90
+ Basic = "basic",
91
+ Advanced = "advanced",// default
92
+ Plugin = "plugin",
93
+ Policy = "policy"
94
+ }
95
+ export interface ConfigurationSchemaItem {
96
+ label?: string;
97
+ tooltip?: string;
98
+ type?: ConfigurationSchemaType;
99
+ order?: number;
100
+ hidden?: boolean;
101
+ section?: ConfigurationSchemaSection;
102
+ forceShow?: boolean;
103
+ }
104
+ export interface ConfigurationSchema {
105
+ [key: string]: ConfigurationSchemaItem;
106
+ }
107
+ export interface PluginConfigurationSchemaItem extends Omit<ConfigurationSchemaItem, 'section'> {
108
+ }
109
+ export interface PluginConfigurationSchema {
110
+ [key: string]: PluginConfigurationSchemaItem;
111
+ }
112
+ export interface PolicyConfigurationSchema extends PluginConfigurationSchema {
113
+ }
114
+ export interface RecordItem extends ConfigurationSchemaItem {
115
+ key: string;
116
+ value: any;
117
+ /** When set, InternalLinkItem renders a real router-link instead of an emit-only button. */
118
+ to?: RouteLocationRaw;
119
+ /** When set, InternalLinkItem renders this as a second line below the link/button text. */
120
+ subtitle?: string;
121
+ /** When true, InternalLinkItem renders a loading indicator in place of the subtitle. */
122
+ subtitleLoading?: boolean;
123
+ }
124
+ export interface DefaultCommonFieldsConfigurationSchema {
125
+ id: ConfigurationSchemaItem;
126
+ name: ConfigurationSchemaItem;
127
+ enabled: ConfigurationSchemaItem;
128
+ updated_at: ConfigurationSchemaItem;
129
+ created_at: ConfigurationSchemaItem;
130
+ managed_by: ConfigurationSchemaItem;
131
+ tags: ConfigurationSchemaItem;
132
+ labels: ConfigurationSchemaItem;
133
+ partials: ConfigurationSchemaItem;
134
+ }
135
+ export interface ComponentAttrsData {
136
+ tag: string;
137
+ attrs?: Record<string, any>;
138
+ childAttrs?: Record<string, any>;
139
+ text?: string;
140
+ additionalComponent?: string;
141
+ }
142
+ export declare const CONFIG_CARD_FORMATS: readonly ["structured", "yaml", "json", "terraform", "deck"];
143
+ export type ConfigCardFormat = (typeof CONFIG_CARD_FORMATS)[number];
144
+ export type ConfigCardCodeFormat = Exclude<ConfigCardFormat, 'structured'>;
145
+ //# sourceMappingURL=entity-base-config-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-base-config-card.d.ts","sourceRoot":"","sources":["../../../src/types/entity-base-config-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE/D;;;;GAIG;AACH,oBAAY,mBAAmB;IAC7B,aAAa,mBAAmB;IAChC,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,aAAa,mBAAmB;IAChC,cAAc,YAAY;IAC1B,GAAG,QAAQ;IACX,MAAM,QAAQ;IACd,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IAGnB,iBAAiB,wBAAwB;IACzC,cAAc,oBAAoB;IAClC,cAAc,oBAAoB;IAClC,QAAQ,aAAa;IACrB,aAAa,mBAAmB;IAChC,aAAa,mBAAmB;IAChC,aAAa,mBAAmB;IAChC,cAAc,oBAAoB;IAClC,cAAc,oBAAoB;IAClC,SAAS,eAAe;IACxB,cAAc,qBAAqB;IACnC,UAAU,gBAAgB;IAC1B,gBAAgB,uBAAuB;IACvC,gBAAgB,uBAAuB;IACvC,iBAAiB,wBAAwB;IAIzC,KAAK,UAAU;IAGf,YAAY,kBAAkB;IAC9B,YAAY,kBAAkB;IAC9B,YAAY,kBAAkB;CAC/B;AAED,eAAO,MAAM,yBAAyB,uBAAqC,CAAA;AAE3E,eAAO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,EAAE,MAAM,CAAA;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAGD,eAAO,MAAM,mBAAmB,8DAA+D,CAAA;AAG/F,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAGnE,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAA"}
@@ -0,0 +1,49 @@
1
+ import type { RouteLocationRaw } from 'vue-router';
2
+ import type { KonnectConfig, KongManagerConfig } from './index';
3
+ import type { DeckConfigOptions } from './deck';
4
+ /** Metering & billing related configuration, consumed by Entitlement Enforcement/metering plugin forms */
5
+ export interface MeteringConfig {
6
+ /** Endpoint the Entitlement Enforcement FeatureSelectField fetches the OpenMeter features list from */
7
+ featuresEndpoint?: string;
8
+ /**
9
+ * Whether the current user can list OpenMeter features (precomputed by the host app,
10
+ * e.g. from Metering & Billing being enabled and the relevant permission). When
11
+ * explicitly `false`, the Entitlement Enforcement feature select is disabled and a warning alert
12
+ * guides the user to enable Metering & Billing in Konnect. Omitted/`true` = allowed.
13
+ */
14
+ canListFeatures?: boolean;
15
+ /**
16
+ * Whether the current user can create OpenMeter features (precomputed by the host app).
17
+ * When explicitly `false`, the "New feature" action in the Entitlement Enforcement feature select is
18
+ * hidden. Omitted/`true` = shown; clicking it emits `click:create-entity`.
19
+ */
20
+ canCreateFeature?: boolean;
21
+ }
22
+ export interface BaseFormConfig {
23
+ /** Route to return to if canceling create/edit an entity */
24
+ cancelRoute?: RouteLocationRaw;
25
+ /** If showing an edit form, the ID of the entity to edit */
26
+ editId?: string;
27
+ /** Metering & billing related configuration */
28
+ metering?: MeteringConfig;
29
+ }
30
+ /** Konnect base form config */
31
+ export interface KonnectBaseFormConfig extends KonnectConfig, BaseFormConfig {
32
+ /** Whether to enable the deck tab */
33
+ enableDeckTab?: boolean | DeckConfigOptions;
34
+ }
35
+ /** Kong Manager base form config */
36
+ export interface KongManagerBaseFormConfig extends KongManagerConfig, BaseFormConfig {
37
+ /**
38
+ * The localStorage key to use while persisting the visibility preference for the
39
+ * decK format callout. Omitting this will hide the callout in any case.
40
+ */
41
+ deckCalloutPreferenceKey?: string;
42
+ }
43
+ export declare enum EntityBaseFormType {
44
+ Edit = "edit",
45
+ Create = "create"
46
+ }
47
+ export declare const BASE_FORM_CONFIG_TABS: readonly ["json", "yaml", "terraform", "deck"];
48
+ export type BaseFormConfigTab = (typeof BASE_FORM_CONFIG_TABS)[number];
49
+ //# sourceMappingURL=entity-base-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-base-form.d.ts","sourceRoot":"","sources":["../../../src/types/entity-base-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAE/C,0GAA0G;AAC1G,MAAM,WAAW,cAAc;IAC7B,uGAAuG;IACvG,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,4DAA4D;IAC5D,WAAW,CAAC,EAAE,gBAAgB,CAAA;IAC9B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,cAAc,CAAA;CAC1B;AAED,+BAA+B;AAC/B,MAAM,WAAW,qBAAsB,SAAQ,aAAa,EAAE,cAAc;IAC1E,qCAAqC;IACrC,aAAa,CAAC,EAAE,OAAO,GAAG,iBAAiB,CAAA;CAC5C;AAED,oCAAoC;AACpC,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,EAAE,cAAc;IAClF;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC;AAED,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAGD,eAAO,MAAM,qBAAqB,gDAAiD,CAAA;AAGnF,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,79 @@
1
+ import type { RouteLocationRaw } from 'vue-router';
2
+ import type { Field, KongManagerConfig, KonnectConfig } from './index';
3
+ import type { TableState } from '@kong/kongponents';
4
+ export interface KonnectBaseTableConfig extends KonnectConfig {
5
+ /** Additional message to show when there are no records */
6
+ additionMessageForEmptyState?: string;
7
+ /** The cache identifier of current table */
8
+ cacheIdentifier?: string;
9
+ }
10
+ export interface KongManagerBaseTableConfig extends KongManagerConfig {
11
+ /** Additional message to show when there are no records */
12
+ additionMessageForEmptyState?: string;
13
+ /** The cache identifier of current table */
14
+ cacheIdentifier?: string;
15
+ /** Whether to use exact match or not */
16
+ isExactMatch?: boolean;
17
+ /** Whether to disable table sorting */
18
+ disableSorting?: boolean;
19
+ }
20
+ export interface BaseTableHeaders {
21
+ [key: string]: Field;
22
+ }
23
+ export interface EmptyStateOptions {
24
+ ctaPath?: RouteLocationRaw;
25
+ ctaText?: string;
26
+ message: string;
27
+ title: string;
28
+ showCta?: boolean;
29
+ }
30
+ export interface FetcherResponse {
31
+ data: any[];
32
+ total?: number;
33
+ pagination?: {
34
+ offset?: string | null;
35
+ next?: string | null;
36
+ };
37
+ }
38
+ export declare enum FetcherStatus {
39
+ InitialLoad = 0,
40
+ Loading = 1,
41
+ Idle = 2,
42
+ NoResults = 3,
43
+ NoRecords = 4,
44
+ Error = 5
45
+ }
46
+ export interface FetcherState {
47
+ status: FetcherStatus;
48
+ response?: FetcherResponse;
49
+ error?: any;
50
+ }
51
+ interface InternalHeaderForFields {
52
+ key: string;
53
+ label: string;
54
+ sortable: boolean;
55
+ hidable: boolean;
56
+ }
57
+ interface InternalHeaderForActions {
58
+ key: string;
59
+ hideLabel: boolean;
60
+ }
61
+ export type InternalHeader = InternalHeaderForFields | InternalHeaderForActions;
62
+ export interface TableSortParams {
63
+ prevKey: string;
64
+ sortColumnKey: string;
65
+ sortColumnOrder: 'asc' | 'desc';
66
+ }
67
+ export type TableErrorMessage = {
68
+ title?: string;
69
+ message?: string;
70
+ } | null;
71
+ export interface TableStateParams {
72
+ state: TableState;
73
+ hasData: boolean;
74
+ }
75
+ export interface EntityBaseTableStateParams extends TableStateParams {
76
+ query: string;
77
+ }
78
+ export {};
79
+ //# sourceMappingURL=entity-base-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-base-table.d.ts","sourceRoot":"","sources":["../../../src/types/entity-base-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,2DAA2D;IAC3D,4BAA4B,CAAC,EAAE,MAAM,CAAA;IACrC,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB;IACnE,2DAA2D;IAC3D,4BAA4B,CAAC,EAAE,MAAM,CAAA;IACrC,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,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AgB;IAC/B,KAAK,EAAE,UAAU,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -0,0 +1,28 @@
1
+ export declare enum EntityTypes {
2
+ GatewayService = "service",
3
+ Route = "route",
4
+ Consumer = "consumer",
5
+ ConsumerGroup = "consumer group",
6
+ Plugin = "plugin",
7
+ Upstream = "upstream",
8
+ Certificate = "certificate",
9
+ CACertificate = "ca certificate",
10
+ SNI = "SNI",
11
+ Key = "key",
12
+ KeySet = "key set",
13
+ Vault = "vault",
14
+ Application = "application",
15
+ Developer = "developer",
16
+ acls = "ACL Credential",
17
+ 'basic-auth' = "Basic Auth Credential",
18
+ 'key-auth' = "Key Auth Credential",
19
+ 'key-auth-enc' = "Key Auth Encrypted Credential",
20
+ oauth2 = "OAuth 2.0 Credential",
21
+ 'hmac-auth' = "HMAC Credential",
22
+ jwt = "JWT Credential",
23
+ Target = "target",
24
+ Policy = "policy",
25
+ Secret = "secret",
26
+ RedisConfiguration = "redis configuration"
27
+ }
28
+ //# sourceMappingURL=entity-delete-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-delete-modal.d.ts","sourceRoot":"","sources":["../../../src/types/entity-delete-modal.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,cAAc,YAAY;IAC1B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,aAAa,mBAAmB;IAChC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,aAAa,mBAAmB;IAChC,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,YAAY;IAClB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,IAAI,mBAAmB;IACvB,YAAY,0BAA0B;IACtC,UAAU,wBAAwB;IAClC,cAAc,kCAAkC;IAChD,MAAM,yBAAyB;IAC/B,WAAW,oBAAoB;IAC/B,GAAG,mBAAmB;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,kBAAkB,wBAAwB;CAC3C"}
@@ -0,0 +1,7 @@
1
+ export interface EmptyStateFeature {
2
+ title: string;
3
+ description: string;
4
+ }
5
+ export type AppearanceTypes = 'primary' | 'secondary';
6
+ export declare const Appearances: string[];
7
+ //# sourceMappingURL=entity-empty-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-empty-state.d.ts","sourceRoot":"","sources":["../../../src/types/entity-empty-state.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,CAAA;AAErD,eAAO,MAAM,WAAW,UAGvB,CAAA"}