@kong-ui-public/entities-shared 3.29.1-pr.2439.feaa06b81.0 → 3.30.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.
- package/dist/entities-shared.es.js +4655 -0
- package/dist/entities-shared.umd.js +52 -0
- package/dist/style.css +1 -0
- package/dist/types/components/common/JsonCodeBlock.vue.d.ts +58 -0
- package/dist/types/components/common/JsonCodeBlock.vue.d.ts.map +1 -0
- package/dist/types/components/common/TableTags.vue.d.ts +26 -0
- package/dist/types/components/common/TableTags.vue.d.ts.map +1 -0
- package/dist/types/components/common/TerraformCodeBlock.vue.d.ts +37 -0
- package/dist/types/components/common/TerraformCodeBlock.vue.d.ts.map +1 -0
- package/dist/types/components/common/YamlCodeBlock.vue.d.ts +16 -0
- package/dist/types/components/common/YamlCodeBlock.vue.d.ts.map +1 -0
- package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts +137 -0
- package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts.map +1 -0
- package/dist/types/components/entity-base-config-card/ConfigCardItem.vue.d.ts +116 -0
- package/dist/types/components/entity-base-config-card/ConfigCardItem.vue.d.ts.map +1 -0
- package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts +240 -0
- package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -0
- package/dist/types/components/entity-base-config-card/InternalLinkItem.vue.d.ts +19 -0
- package/dist/types/components/entity-base-config-card/InternalLinkItem.vue.d.ts.map +1 -0
- package/dist/types/components/entity-base-config-card/JsonCardItem.vue.d.ts +34 -0
- package/dist/types/components/entity-base-config-card/JsonCardItem.vue.d.ts.map +1 -0
- package/dist/types/components/entity-base-config-card/StatusBadge.vue.d.ts +15 -0
- package/dist/types/components/entity-base-config-card/StatusBadge.vue.d.ts.map +1 -0
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts +269 -0
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts.map +1 -0
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts +325 -0
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts.map +1 -0
- package/dist/types/components/entity-base-table/EntityBaseTableCell.vue.d.ts +44 -0
- package/dist/types/components/entity-base-table/EntityBaseTableCell.vue.d.ts.map +1 -0
- package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts +96 -0
- package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts.map +1 -0
- package/dist/types/components/entity-empty-state/EntityEmptyState.vue.d.ts +116 -0
- package/dist/types/components/entity-empty-state/EntityEmptyState.vue.d.ts.map +1 -0
- package/dist/types/components/entity-filter/EntityFilter.vue.d.ts +37 -0
- package/dist/types/components/entity-filter/EntityFilter.vue.d.ts.map +1 -0
- package/dist/types/components/entity-form-block/EntityFormBlock.vue.d.ts +20 -0
- package/dist/types/components/entity-form-block/EntityFormBlock.vue.d.ts.map +1 -0
- package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts +76 -0
- package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts.map +1 -0
- package/dist/types/components/entity-link/EntityLink.vue.d.ts +49 -0
- package/dist/types/components/entity-link/EntityLink.vue.d.ts.map +1 -0
- package/dist/types/components/entity-toggle-modal/EntityToggleModal.vue.d.ts +64 -0
- package/dist/types/components/entity-toggle-modal/EntityToggleModal.vue.d.ts.map +1 -0
- package/dist/types/components/icons/IconFilter.vue.d.ts +15 -0
- package/dist/types/components/icons/IconFilter.vue.d.ts.map +1 -0
- package/dist/types/components/permissions-wrapper/PermissionsWrapper.vue.d.ts +55 -0
- package/dist/types/components/permissions-wrapper/PermissionsWrapper.vue.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +39 -0
- package/dist/types/composables/index.d.ts.map +1 -0
- package/dist/types/composables/useAxios.d.ts +5 -0
- package/dist/types/composables/useAxios.d.ts.map +1 -0
- package/dist/types/composables/useDebouncedFilter.d.ts +11 -0
- package/dist/types/composables/useDebouncedFilter.d.ts.map +1 -0
- package/dist/types/composables/useDeleteUrlBuilder.d.ts +3 -0
- package/dist/types/composables/useDeleteUrlBuilder.d.ts.map +1 -0
- package/dist/types/composables/useErrors.d.ts +11 -0
- package/dist/types/composables/useErrors.d.ts.map +1 -0
- package/dist/types/composables/useExternalLinkCreator.d.ts +2 -0
- package/dist/types/composables/useExternalLinkCreator.d.ts.map +1 -0
- package/dist/types/composables/useFetchUrlBuilder.d.ts +6 -0
- package/dist/types/composables/useFetchUrlBuilder.d.ts.map +1 -0
- package/dist/types/composables/useFetcher.d.ts +40 -0
- package/dist/types/composables/useFetcher.d.ts.map +1 -0
- package/dist/types/composables/useGatewayFeatureSupported.d.ts +11 -0
- package/dist/types/composables/useGatewayFeatureSupported.d.ts.map +1 -0
- package/dist/types/composables/useHelpers.d.ts +7 -0
- package/dist/types/composables/useHelpers.d.ts.map +1 -0
- package/dist/types/composables/useI18n.d.ts +9 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -0
- package/dist/types/composables/useSchema.d.ts +11 -0
- package/dist/types/composables/useSchema.d.ts.map +1 -0
- package/dist/types/composables/useStringHelpers.d.ts +5 -0
- package/dist/types/composables/useStringHelpers.d.ts.map +1 -0
- package/dist/types/composables/useTableState.d.ts +15 -0
- package/dist/types/composables/useTableState.d.ts.map +1 -0
- package/dist/types/composables/useTruncationDetector.d.ts +12 -0
- package/dist/types/composables/useTruncationDetector.d.ts.map +1 -0
- package/dist/types/composables/useValidators.d.ts +8 -0
- package/dist/types/composables/useValidators.d.ts.map +1 -0
- package/dist/types/index.d.ts +25 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types/app-config.d.ts +35 -0
- package/dist/types/types/app-config.d.ts.map +1 -0
- package/dist/types/types/base.d.ts +12 -0
- package/dist/types/types/base.d.ts.map +1 -0
- package/dist/types/types/entity-base-config-card.d.ts +103 -0
- package/dist/types/types/entity-base-config-card.d.ts.map +1 -0
- package/dist/types/types/entity-base-form.d.ts +19 -0
- package/dist/types/types/entity-base-form.d.ts.map +1 -0
- package/dist/types/types/entity-base-table.d.ts +79 -0
- package/dist/types/types/entity-base-table.d.ts.map +1 -0
- package/dist/types/types/entity-delete-modal.d.ts +28 -0
- package/dist/types/types/entity-delete-modal.d.ts.map +1 -0
- package/dist/types/types/entity-empty-state.d.ts +7 -0
- package/dist/types/types/entity-empty-state.d.ts.map +1 -0
- package/dist/types/types/entity-filter.d.ts +46 -0
- package/dist/types/types/entity-filter.d.ts.map +1 -0
- package/dist/types/types/entity-link.d.ts +6 -0
- package/dist/types/types/entity-link.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +11 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/utils.d.ts +13 -0
- package/dist/types/types/utils.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useErrors.d.ts","sourceRoot":"","sources":["../../../src/composables/useErrors.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,SAAS;qCA2ES,GAAG,KAAG;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,KAAK,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE;iCAnEnF,GAAG,KAAG,MAAM;EAqJjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExternalLinkCreator.d.ts","sourceRoot":"","sources":["../../../src/composables/useExternalLinkCreator.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,CAwB5E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import type { KongManagerBaseTableConfig, KonnectBaseTableConfig } from '../types';
|
|
3
|
+
import type { MaybeRef } from '../types/utils';
|
|
4
|
+
import type { TableDataFetcherParams } from '@kong/kongponents';
|
|
5
|
+
export default function useFetchUrlBuilder(config: MaybeRefOrGetter<KonnectBaseTableConfig | KongManagerBaseTableConfig>, baseUrl: MaybeRef<string>): (fetcherParams: TableDataFetcherParams) => string;
|
|
6
|
+
//# sourceMappingURL=useFetchUrlBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFetchUrlBuilder.d.ts","sourceRoot":"","sources":["../../../src/composables/useFetchUrlBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAC9D,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE/D,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,MAAM,EAAE,gBAAgB,CAAC,sBAAsB,GAAG,0BAA0B,CAAC,EAC7E,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,IAejB,eAAe,sBAAsB,YA8C9C"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
import type { FetcherResponse, FetcherState, KongManagerBaseTableConfig, KonnectBaseTableConfig, MaybeRef } from '../types';
|
|
3
|
+
import { FetcherStatus } from '../types';
|
|
4
|
+
import type { TableDataFetcherParams } from '@kong/kongponents';
|
|
5
|
+
export default function useFetcher(configRef: MaybeRefOrGetter<KonnectBaseTableConfig | KongManagerBaseTableConfig>, baseUrl: MaybeRef<string>,
|
|
6
|
+
/**
|
|
7
|
+
* Special handling for a response structure with a different base key for the data array like
|
|
8
|
+
* { consumers: [{ ... }] }
|
|
9
|
+
* instead of the standard the majority of the endpoints have
|
|
10
|
+
* { data: [{ ... }] }
|
|
11
|
+
*/
|
|
12
|
+
dataKeyNameRef?: MaybeRefOrGetter<string | undefined>): {
|
|
13
|
+
fetcher: (fetcherParams: TableDataFetcherParams) => Promise<FetcherResponse>;
|
|
14
|
+
fetcherState: Ref<{
|
|
15
|
+
status: FetcherStatus;
|
|
16
|
+
response?: {
|
|
17
|
+
data: any[];
|
|
18
|
+
total?: number | undefined;
|
|
19
|
+
pagination?: {
|
|
20
|
+
offset?: string | null | undefined;
|
|
21
|
+
next?: string | null | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
error?: any;
|
|
25
|
+
}, FetcherState | {
|
|
26
|
+
status: FetcherStatus;
|
|
27
|
+
response?: {
|
|
28
|
+
data: any[];
|
|
29
|
+
total?: number | undefined;
|
|
30
|
+
pagination?: {
|
|
31
|
+
offset?: string | null | undefined;
|
|
32
|
+
next?: string | null | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
error?: any;
|
|
36
|
+
}>;
|
|
37
|
+
fetcherCacheKey: Ref<number, number>;
|
|
38
|
+
};
|
|
39
|
+
export declare function useFetcherCacheKey(cacheId?: string): Ref<number, number>;
|
|
40
|
+
//# sourceMappingURL=useFetcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFetcher.d.ts","sourceRoot":"","sources":["../../../src/composables/useFetcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAChD,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,0BAA0B,EAC1B,sBAAsB,EACtB,QAAQ,EACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAGxC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAK/D,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,SAAS,EAAE,gBAAgB,CAAC,sBAAsB,GAAG,0BAA0B,CAAC,EAChF,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC;AACzB;;;;;GAKG;AACH,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC;6BAYf,sBAAsB,KAAG,OAAO,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;EA4FxF;AAED,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM,uBAWlD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { KongManagerConfig } from '../types/app-config';
|
|
2
|
+
interface Param {
|
|
3
|
+
gatewayInfo?: KongManagerConfig['gatewayInfo'];
|
|
4
|
+
supportedRange: {
|
|
5
|
+
enterprise?: [string?, string?];
|
|
6
|
+
community?: [string?, string?];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export default function useGatewayFeatureSupported(param: Param): boolean;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=useGatewayFeatureSupported.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGatewayFeatureSupported.d.ts","sourceRoot":"","sources":["../../../src/composables/useGatewayFeatureSupported.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,iBAAiB,CAAC,aAAa,CAAC,CAAA;IAC9C,cAAc,EAAE;QAEd,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAA;QAC/B,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAA;KAC/B,CAAA;CACF;AAGD,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,KAAK,EAAE,KAAK,WAoC9D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default function useHelpers(): {
|
|
2
|
+
getPropValue: (propName: string, slotProps?: Record<string, any>) => any;
|
|
3
|
+
objectsAreEqual: (a: Record<string, any>, b: Record<string, any>, ignoreOrder?: boolean) => boolean;
|
|
4
|
+
sortAlpha: (property: string) => (a: Record<string, any>, b: Record<string, any>) => any;
|
|
5
|
+
isValidUuid: (str: string) => boolean;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHelpers.d.ts","sourceRoot":"","sources":["../../../src/composables/useHelpers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,UAAU;6BAQA,MAAM,cAAc,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;yBAsB3C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBAAgB,OAAO,KAAG,OAAO;0BAqC3E,MAAM,MACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;uBAqB9B,MAAM;EAYjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
|
|
2
|
+
import english from '../locales/en.json';
|
|
3
|
+
interface UseI18nReturn {
|
|
4
|
+
i18n: ReturnType<typeof createI18n<typeof english>>;
|
|
5
|
+
i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
|
|
6
|
+
}
|
|
7
|
+
export default function useI18n(): UseI18nReturn;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
type Schema = Record<string, any>;
|
|
3
|
+
export declare const useSchemaProvider: (schema: Ref<Schema>) => void;
|
|
4
|
+
/**
|
|
5
|
+
* find the sub schema by key and provide it as the parent schema for the children
|
|
6
|
+
* @param subSchemaKey the key of the sub schema
|
|
7
|
+
* @returns the sub schema or undefined
|
|
8
|
+
*/
|
|
9
|
+
export declare const useSubSchema: (subSchemaKey: string) => Readonly<Ref<Schema | undefined>>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=useSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSchema.d.ts","sourceRoot":"","sources":["../../../src/composables/useSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAIjC,eAAO,MAAM,iBAAiB,GAAI,QAAQ,GAAG,CAAC,MAAM,CAAC,SAEpD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,cAAc,MAAM,KAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,CAUnF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStringHelpers.d.ts","sourceRoot":"","sources":["../../../src/composables/useStringHelpers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,UAAU;sBA2BP,MAAM,KAAG,MAAM;6BAlBR,MAAM,cAAa,MAAM,KAAS,MAAM;EA4BzE"}
|
|
@@ -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,25 @@
|
|
|
1
|
+
import EntityBaseConfigCard from './components/entity-base-config-card/EntityBaseConfigCard.vue';
|
|
2
|
+
import ConfigCardItem from './components/entity-base-config-card/ConfigCardItem.vue';
|
|
3
|
+
import ConfigCardDisplay from './components/entity-base-config-card/ConfigCardDisplay.vue';
|
|
4
|
+
import InternalLinkItem from './components/entity-base-config-card/InternalLinkItem.vue';
|
|
5
|
+
import EntityBaseForm from './components/entity-base-form/EntityBaseForm.vue';
|
|
6
|
+
import EntityBaseTable from './components/entity-base-table/EntityBaseTable.vue';
|
|
7
|
+
import EntityDeleteModal from './components/entity-delete-modal/EntityDeleteModal.vue';
|
|
8
|
+
import EntityFilter from './components/entity-filter/EntityFilter.vue';
|
|
9
|
+
import EntityToggleModal from './components/entity-toggle-modal/EntityToggleModal.vue';
|
|
10
|
+
import PermissionsWrapper from './components/permissions-wrapper/PermissionsWrapper.vue';
|
|
11
|
+
import EntityFormSection from './components/entity-form-section/EntityFormSection.vue';
|
|
12
|
+
import EntityFormBlock from './components/entity-form-block/EntityFormBlock.vue';
|
|
13
|
+
import EntityLink from './components/entity-link/EntityLink.vue';
|
|
14
|
+
import EntityEmptyState from './components/entity-empty-state/EntityEmptyState.vue';
|
|
15
|
+
import JsonCodeBlock from './components/common/JsonCodeBlock.vue';
|
|
16
|
+
import TerraformCodeBlock from './components/common/TerraformCodeBlock.vue';
|
|
17
|
+
import YamlCodeBlock from './components/common/YamlCodeBlock.vue';
|
|
18
|
+
import TableTags from './components/common/TableTags.vue';
|
|
19
|
+
declare const useAxios: typeof import("./composables/useAxios.js").default, useDeleteUrlBuilder: typeof import("./composables/useDeleteUrlBuilder.js").default, useErrors: typeof import("./composables/useErrors.js").default, useExternalLinkCreator: typeof import("./composables/useExternalLinkCreator.js").default, useFetchUrlBuilder: typeof import("./composables/useFetchUrlBuilder.js").default, useFetcher: typeof import("./composables/useFetcher.js").default, useFetcherCacheKey: typeof import("./composables/useFetcher.js").useFetcherCacheKey, useDebouncedFilter: typeof import("./composables/useDebouncedFilter.js").default, useStringHelpers: typeof import("./composables/useStringHelpers.js").default, useHelpers: typeof import("./composables/useHelpers.js").default, useGatewayFeatureSupported: typeof import("./composables/useGatewayFeatureSupported.js").default, useTruncationDetector: typeof import("./composables/useTruncationDetector.js").default, useValidators: typeof import("./composables/useValidators.js").default, useSchemaProvider: (schema: import("vue").Ref<{
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
}>) => void, useTableState: typeof import("./composables/useTableState.js").default;
|
|
22
|
+
export { EntityBaseConfigCard, ConfigCardItem, ConfigCardDisplay, InternalLinkItem, EntityBaseForm, EntityBaseTable, EntityDeleteModal, EntityFilter, EntityToggleModal, PermissionsWrapper, EntityFormSection, EntityFormBlock, EntityLink, EntityEmptyState, JsonCodeBlock, TerraformCodeBlock, YamlCodeBlock, TableTags };
|
|
23
|
+
export { useAxios, useDeleteUrlBuilder, useErrors, useExternalLinkCreator, useFetchUrlBuilder, useFetcher, useFetcherCacheKey, useDebouncedFilter, useStringHelpers, useHelpers, useGatewayFeatureSupported, useTruncationDetector, useValidators, useSchemaProvider, useTableState };
|
|
24
|
+
export * from './types';
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,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,iBAAiB,MAAM,wDAAwD,CAAA;AACtF,OAAO,kBAAkB,MAAM,yDAAyD,CAAA;AACxF,OAAO,iBAAiB,MAAM,wDAAwD,CAAA;AACtF,OAAO,eAAe,MAAM,oDAAoD,CAAA;AAChF,OAAO,UAAU,MAAM,yCAAyC,CAAA;AAChE,OAAO,gBAAgB,MAAM,sDAAsD,CAAA;AACnF,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,kBAAkB,MAAM,4CAA4C,CAAA;AAC3E,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,SAAS,MAAM,mCAAmC,CAAA;AAIzD,QAAA,MAAQ,QAAQ,sDAAE,mBAAmB,iEAAE,SAAS,uDAAE,sBAAsB,oEAAE,kBAAkB,gEAAE,UAAU,wDAAE,kBAAkB,mEAAE,kBAAkB,gEAAE,gBAAgB,8DAAE,UAAU,wDAAE,0BAA0B,wEAAE,qBAAqB,mEAAE,aAAa,2DAAE,iBAAiB;;aAAE,aAAa,yDAAgB,CAAA;AAGlS,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,SAAS,EAAE,CAAA;AAG5T,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,SAAS,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,UAAU,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAA;AAGrR,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
/** Identifies whether the Control Plane type is a Control Plane Group or not */
|
|
18
|
+
isControlPlaneGroup?: boolean;
|
|
19
|
+
/** Should use exact match */
|
|
20
|
+
isExactMatch?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** Base config properties for Kong Manager. All entity configs should extend this interface for the app. */
|
|
23
|
+
export interface KongManagerConfig extends BaseAppConfig {
|
|
24
|
+
/** App name. 'kongManager' */
|
|
25
|
+
app: 'kongManager';
|
|
26
|
+
/** Workspace name */
|
|
27
|
+
workspace: string;
|
|
28
|
+
/** Gateway instance info, used in Canopy to check if a feature is supported */
|
|
29
|
+
gatewayInfo?: {
|
|
30
|
+
edition: 'enterprise' | 'community';
|
|
31
|
+
version: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
35
|
+
//# 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,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,6BAA6B;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;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,103 @@
|
|
|
1
|
+
import type { KonnectConfig, KongManagerConfig } from './index';
|
|
2
|
+
/**
|
|
3
|
+
* These entity strings are used for generating terraform scripts.
|
|
4
|
+
* Only add entity types that are supported by terraform. Use '_' instead of '-'.
|
|
5
|
+
* DO NOT MODIFY THE VALUES OF THESE STRINGS.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum SupportedEntityType {
|
|
8
|
+
CaCertificate = "ca_certificate",
|
|
9
|
+
Certificate = "certificate",
|
|
10
|
+
Consumer = "consumer",
|
|
11
|
+
ConsumerGroup = "consumer_group",
|
|
12
|
+
GatewayService = "service",
|
|
13
|
+
Key = "key",
|
|
14
|
+
KeySet = "set",
|
|
15
|
+
Plugin = "plugin",
|
|
16
|
+
Route = "route",
|
|
17
|
+
SNI = "sni",
|
|
18
|
+
Upstream = "upstream",
|
|
19
|
+
Target = "target",
|
|
20
|
+
Vault = "vault",
|
|
21
|
+
RedisConfiguration = "redis_configuration",
|
|
22
|
+
BackendCluster = "backend_cluster",
|
|
23
|
+
VirtualCluster = "virtual_cluster",
|
|
24
|
+
Listener = "listener",
|
|
25
|
+
Policy = "policy",
|
|
26
|
+
Other = "other"
|
|
27
|
+
}
|
|
28
|
+
export declare const SupportedEntityTypesArray: SupportedEntityType[];
|
|
29
|
+
export interface BaseEntityConfig {
|
|
30
|
+
/** the ID of the entity */
|
|
31
|
+
entityId: string;
|
|
32
|
+
/**
|
|
33
|
+
* The localStorage key to use while persisting the config format preference.
|
|
34
|
+
*
|
|
35
|
+
* If omitted, the preference will not be persisted.
|
|
36
|
+
*/
|
|
37
|
+
formatPreferenceKey?: string;
|
|
38
|
+
}
|
|
39
|
+
/** Konnect base form config */
|
|
40
|
+
export interface KonnectBaseEntityConfig extends KonnectConfig, BaseEntityConfig {
|
|
41
|
+
}
|
|
42
|
+
/** Kong Manager base form config */
|
|
43
|
+
export interface KongManagerBaseEntityConfig extends KongManagerConfig, BaseEntityConfig {
|
|
44
|
+
}
|
|
45
|
+
export declare enum ConfigurationSchemaType {
|
|
46
|
+
ID = "id",
|
|
47
|
+
IdArray = "id-array",
|
|
48
|
+
Text = "plain-text",// default
|
|
49
|
+
Date = "date",
|
|
50
|
+
Redacted = "redacted",
|
|
51
|
+
RedactedArray = "redacted-array",
|
|
52
|
+
Json = "json",
|
|
53
|
+
JsonArray = "json-array",
|
|
54
|
+
BadgeTag = "badge-tag",
|
|
55
|
+
CopyBadge = "copy-badge",
|
|
56
|
+
BadgeStatus = "badge-status",
|
|
57
|
+
BadgeMethod = "badge-method",
|
|
58
|
+
LinkInternal = "link-internal",
|
|
59
|
+
LinkExternal = "link-external"
|
|
60
|
+
}
|
|
61
|
+
export declare enum ConfigurationSchemaSection {
|
|
62
|
+
Basic = "basic",
|
|
63
|
+
Advanced = "advanced",// default
|
|
64
|
+
Plugin = "plugin"
|
|
65
|
+
}
|
|
66
|
+
export interface ConfigurationSchemaItem {
|
|
67
|
+
label?: string;
|
|
68
|
+
tooltip?: string;
|
|
69
|
+
type?: ConfigurationSchemaType;
|
|
70
|
+
order?: number;
|
|
71
|
+
hidden?: boolean;
|
|
72
|
+
section?: ConfigurationSchemaSection;
|
|
73
|
+
forceShow?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export interface ConfigurationSchema {
|
|
76
|
+
[key: string]: ConfigurationSchemaItem;
|
|
77
|
+
}
|
|
78
|
+
export interface PluginConfigurationSchemaItem extends Omit<ConfigurationSchemaItem, 'section'> {
|
|
79
|
+
}
|
|
80
|
+
export interface PluginConfigurationSchema {
|
|
81
|
+
[key: string]: PluginConfigurationSchemaItem;
|
|
82
|
+
}
|
|
83
|
+
export interface RecordItem extends ConfigurationSchemaItem {
|
|
84
|
+
key: string;
|
|
85
|
+
value: any;
|
|
86
|
+
}
|
|
87
|
+
export interface DefaultCommonFieldsConfigurationSchema {
|
|
88
|
+
id: ConfigurationSchemaItem;
|
|
89
|
+
name: ConfigurationSchemaItem;
|
|
90
|
+
enabled: ConfigurationSchemaItem;
|
|
91
|
+
updated_at: ConfigurationSchemaItem;
|
|
92
|
+
created_at: ConfigurationSchemaItem;
|
|
93
|
+
tags: ConfigurationSchemaItem;
|
|
94
|
+
partials: ConfigurationSchemaItem;
|
|
95
|
+
}
|
|
96
|
+
export interface ComponentAttrsData {
|
|
97
|
+
tag: string;
|
|
98
|
+
attrs?: Record<string, any>;
|
|
99
|
+
childAttrs?: Record<string, any>;
|
|
100
|
+
text?: string;
|
|
101
|
+
additionalComponent?: string;
|
|
102
|
+
}
|
|
103
|
+
//# 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":"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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
import type { KonnectConfig, KongManagerConfig } from './index';
|
|
3
|
+
export interface BaseFormConfig {
|
|
4
|
+
/** Route to return to if canceling create/edit an entity */
|
|
5
|
+
cancelRoute?: RouteLocationRaw;
|
|
6
|
+
/** If showing an edit form, the ID of the entity to edit */
|
|
7
|
+
editId?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Konnect base form config */
|
|
10
|
+
export interface KonnectBaseFormConfig extends KonnectConfig, BaseFormConfig {
|
|
11
|
+
}
|
|
12
|
+
/** Kong Manager base form config */
|
|
13
|
+
export interface KongManagerBaseFormConfig extends KongManagerConfig, BaseFormConfig {
|
|
14
|
+
}
|
|
15
|
+
export declare enum EntityBaseFormType {
|
|
16
|
+
Edit = "edit",
|
|
17
|
+
Create = "create"
|
|
18
|
+
}
|
|
19
|
+
//# 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;AAE/D,MAAM,WAAW,cAAc;IAC7B,4DAA4D;IAC5D,WAAW,CAAC,EAAE,gBAAgB,CAAA;IAC9B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,+BAA+B;AAC/B,MAAM,WAAW,qBAAsB,SAAQ,aAAa,EAAE,cAAc;CAAG;AAE/E,oCAAoC;AACpC,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,EAAE,cAAc;CAAG;AAEvF,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,MAAM,WAAW;CAClB"}
|
|
@@ -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,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,GAAG,EAAE,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACrB,CAAA;CACF;AAED,oBAAY,aAAa;IACvB,WAAW,IAAA;IACX,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,SAAS,IAAA;IACT,SAAS,IAAA;IACT,KAAK,IAAA;CACN;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,aAAa,CAAA;IACrB,QAAQ,CAAC,EAAE,eAAe,CAAA;IAC1B,KAAK,CAAC,EAAE,GAAG,CAAA;CACZ;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,UAAU,wBAAwB;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG,wBAAwB,CAAA;AAE/E,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,KAAK,GAAG,MAAM,CAAA;CAChC;AAED,MAAM,MAAM,iBAAiB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAA;AAE3E,MAAM,WAAW,gBAAgB;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 @@
|
|
|
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"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SelectItem, SelectFilterFunctionParams } from '@kong/kongponents';
|
|
2
|
+
import type { Field } from './index';
|
|
3
|
+
/** Base filter configuration */
|
|
4
|
+
interface BaseFilterConfig {
|
|
5
|
+
/** If true, the filter will be an exact match filter, otherwise it will be a fuzzy match filter */
|
|
6
|
+
isExactMatch: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Exact match filter configuration
|
|
10
|
+
* FIXME: "Exact match" here is no longer accurate, in reality it works as an indicator
|
|
11
|
+
* to use a single input field for filtering.
|
|
12
|
+
*/
|
|
13
|
+
export interface ExactMatchFilterConfig extends BaseFilterConfig {
|
|
14
|
+
isExactMatch: true;
|
|
15
|
+
/** Placeholder for the exact match filter input */
|
|
16
|
+
placeholder: string;
|
|
17
|
+
}
|
|
18
|
+
/** Fuzzy match filter fields */
|
|
19
|
+
export interface FilterFields {
|
|
20
|
+
[key: string]: Field;
|
|
21
|
+
}
|
|
22
|
+
/** Fuzzy match filter schema */
|
|
23
|
+
export interface FilterSchema {
|
|
24
|
+
[key: string]: {
|
|
25
|
+
/** Used in the filter dropdown to determine the type of input */
|
|
26
|
+
type: 'select' | 'number' | 'text';
|
|
27
|
+
/** Support customizing the filter function of the select input. */
|
|
28
|
+
filterFunction?: (params: SelectFilterFunctionParams<string | number>) => SelectItem[];
|
|
29
|
+
/** Options for the select input, only used if type is 'select' */
|
|
30
|
+
values?: string[] | SelectItem[];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Fuzzy match filter configuration
|
|
35
|
+
* FIXME: "Fuzzy match" here is no longer accurate, in reality it works as an indicator
|
|
36
|
+
* to use a relatively complex form for filtering.
|
|
37
|
+
*/
|
|
38
|
+
export interface FuzzyMatchFilterConfig extends BaseFilterConfig {
|
|
39
|
+
isExactMatch: false;
|
|
40
|
+
/** Fuzzy match filter fields */
|
|
41
|
+
fields: FilterFields;
|
|
42
|
+
/** Fuzzy match filter schema */
|
|
43
|
+
schema: FilterSchema;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=entity-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-filter.d.ts","sourceRoot":"","sources":["../../../src/types/entity-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,gCAAgC;AAChC,UAAU,gBAAgB;IACxB,mGAAmG;IACnG,YAAY,EAAE,OAAO,CAAA;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D,YAAY,EAAE,IAAI,CAAA;IAClB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,gCAAgC;AAChC,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;CACrB;AAED,gCAAgC;AAChC,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,iEAAiE;QACjE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAA;QAClC,mEAAmE;QACnE,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,0BAA0B,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,UAAU,EAAE,CAAA;QACtF,kEAAkE;QAClE,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,CAAA;KACjC,CAAA;CACF;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D,YAAY,EAAE,KAAK,CAAA;IACnB,gCAAgC;IAChC,MAAM,EAAE,YAAY,CAAA;IACpB,gCAAgC;IAChC,MAAM,EAAE,YAAY,CAAA;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-link.d.ts","sourceRoot":"","sources":["../../../src/types/entity-link.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './app-config';
|
|
2
|
+
export * from './base';
|
|
3
|
+
export * from './entity-delete-modal';
|
|
4
|
+
export * from './entity-base-form';
|
|
5
|
+
export * from './entity-base-table';
|
|
6
|
+
export * from './entity-base-config-card';
|
|
7
|
+
export * from './entity-filter';
|
|
8
|
+
export * from './entity-link';
|
|
9
|
+
export * from './entity-empty-state';
|
|
10
|
+
export * from './utils';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA"}
|