@kong-ui-public/entities-shared 3.30.4-pr.2439.ad3fb9fba.0 → 3.30.4

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 (104) hide show
  1. package/dist/entities-shared.es.js +4655 -0
  2. package/dist/entities-shared.umd.js +52 -0
  3. package/dist/style.css +1 -0
  4. package/dist/types/components/common/JsonCodeBlock.vue.d.ts +58 -0
  5. package/dist/types/components/common/JsonCodeBlock.vue.d.ts.map +1 -0
  6. package/dist/types/components/common/TableTags.vue.d.ts +26 -0
  7. package/dist/types/components/common/TableTags.vue.d.ts.map +1 -0
  8. package/dist/types/components/common/TerraformCodeBlock.vue.d.ts +37 -0
  9. package/dist/types/components/common/TerraformCodeBlock.vue.d.ts.map +1 -0
  10. package/dist/types/components/common/YamlCodeBlock.vue.d.ts +16 -0
  11. package/dist/types/components/common/YamlCodeBlock.vue.d.ts.map +1 -0
  12. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts +137 -0
  13. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts.map +1 -0
  14. package/dist/types/components/entity-base-config-card/ConfigCardItem.vue.d.ts +116 -0
  15. package/dist/types/components/entity-base-config-card/ConfigCardItem.vue.d.ts.map +1 -0
  16. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts +240 -0
  17. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -0
  18. package/dist/types/components/entity-base-config-card/InternalLinkItem.vue.d.ts +19 -0
  19. package/dist/types/components/entity-base-config-card/InternalLinkItem.vue.d.ts.map +1 -0
  20. package/dist/types/components/entity-base-config-card/JsonCardItem.vue.d.ts +34 -0
  21. package/dist/types/components/entity-base-config-card/JsonCardItem.vue.d.ts.map +1 -0
  22. package/dist/types/components/entity-base-config-card/StatusBadge.vue.d.ts +15 -0
  23. package/dist/types/components/entity-base-config-card/StatusBadge.vue.d.ts.map +1 -0
  24. package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts +269 -0
  25. package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts.map +1 -0
  26. package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts +325 -0
  27. package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts.map +1 -0
  28. package/dist/types/components/entity-base-table/EntityBaseTableCell.vue.d.ts +44 -0
  29. package/dist/types/components/entity-base-table/EntityBaseTableCell.vue.d.ts.map +1 -0
  30. package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts +96 -0
  31. package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts.map +1 -0
  32. package/dist/types/components/entity-empty-state/EntityEmptyState.vue.d.ts +116 -0
  33. package/dist/types/components/entity-empty-state/EntityEmptyState.vue.d.ts.map +1 -0
  34. package/dist/types/components/entity-filter/EntityFilter.vue.d.ts +37 -0
  35. package/dist/types/components/entity-filter/EntityFilter.vue.d.ts.map +1 -0
  36. package/dist/types/components/entity-form-block/EntityFormBlock.vue.d.ts +20 -0
  37. package/dist/types/components/entity-form-block/EntityFormBlock.vue.d.ts.map +1 -0
  38. package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts +76 -0
  39. package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts.map +1 -0
  40. package/dist/types/components/entity-link/EntityLink.vue.d.ts +49 -0
  41. package/dist/types/components/entity-link/EntityLink.vue.d.ts.map +1 -0
  42. package/dist/types/components/entity-toggle-modal/EntityToggleModal.vue.d.ts +64 -0
  43. package/dist/types/components/entity-toggle-modal/EntityToggleModal.vue.d.ts.map +1 -0
  44. package/dist/types/components/icons/IconFilter.vue.d.ts +15 -0
  45. package/dist/types/components/icons/IconFilter.vue.d.ts.map +1 -0
  46. package/dist/types/components/permissions-wrapper/PermissionsWrapper.vue.d.ts +55 -0
  47. package/dist/types/components/permissions-wrapper/PermissionsWrapper.vue.d.ts.map +1 -0
  48. package/dist/types/composables/index.d.ts +39 -0
  49. package/dist/types/composables/index.d.ts.map +1 -0
  50. package/dist/types/composables/useAxios.d.ts +5 -0
  51. package/dist/types/composables/useAxios.d.ts.map +1 -0
  52. package/dist/types/composables/useDebouncedFilter.d.ts +11 -0
  53. package/dist/types/composables/useDebouncedFilter.d.ts.map +1 -0
  54. package/dist/types/composables/useDeleteUrlBuilder.d.ts +3 -0
  55. package/dist/types/composables/useDeleteUrlBuilder.d.ts.map +1 -0
  56. package/dist/types/composables/useErrors.d.ts +11 -0
  57. package/dist/types/composables/useErrors.d.ts.map +1 -0
  58. package/dist/types/composables/useExternalLinkCreator.d.ts +2 -0
  59. package/dist/types/composables/useExternalLinkCreator.d.ts.map +1 -0
  60. package/dist/types/composables/useFetchUrlBuilder.d.ts +6 -0
  61. package/dist/types/composables/useFetchUrlBuilder.d.ts.map +1 -0
  62. package/dist/types/composables/useFetcher.d.ts +40 -0
  63. package/dist/types/composables/useFetcher.d.ts.map +1 -0
  64. package/dist/types/composables/useGatewayFeatureSupported.d.ts +11 -0
  65. package/dist/types/composables/useGatewayFeatureSupported.d.ts.map +1 -0
  66. package/dist/types/composables/useHelpers.d.ts +7 -0
  67. package/dist/types/composables/useHelpers.d.ts.map +1 -0
  68. package/dist/types/composables/useI18n.d.ts +9 -0
  69. package/dist/types/composables/useI18n.d.ts.map +1 -0
  70. package/dist/types/composables/useSchema.d.ts +11 -0
  71. package/dist/types/composables/useSchema.d.ts.map +1 -0
  72. package/dist/types/composables/useStringHelpers.d.ts +5 -0
  73. package/dist/types/composables/useStringHelpers.d.ts.map +1 -0
  74. package/dist/types/composables/useTableState.d.ts +15 -0
  75. package/dist/types/composables/useTableState.d.ts.map +1 -0
  76. package/dist/types/composables/useTruncationDetector.d.ts +12 -0
  77. package/dist/types/composables/useTruncationDetector.d.ts.map +1 -0
  78. package/dist/types/composables/useValidators.d.ts +8 -0
  79. package/dist/types/composables/useValidators.d.ts.map +1 -0
  80. package/dist/types/index.d.ts +25 -0
  81. package/dist/types/index.d.ts.map +1 -0
  82. package/dist/types/types/app-config.d.ts +35 -0
  83. package/dist/types/types/app-config.d.ts.map +1 -0
  84. package/dist/types/types/base.d.ts +12 -0
  85. package/dist/types/types/base.d.ts.map +1 -0
  86. package/dist/types/types/entity-base-config-card.d.ts +103 -0
  87. package/dist/types/types/entity-base-config-card.d.ts.map +1 -0
  88. package/dist/types/types/entity-base-form.d.ts +19 -0
  89. package/dist/types/types/entity-base-form.d.ts.map +1 -0
  90. package/dist/types/types/entity-base-table.d.ts +79 -0
  91. package/dist/types/types/entity-base-table.d.ts.map +1 -0
  92. package/dist/types/types/entity-delete-modal.d.ts +28 -0
  93. package/dist/types/types/entity-delete-modal.d.ts.map +1 -0
  94. package/dist/types/types/entity-empty-state.d.ts +7 -0
  95. package/dist/types/types/entity-empty-state.d.ts.map +1 -0
  96. package/dist/types/types/entity-filter.d.ts +46 -0
  97. package/dist/types/types/entity-filter.d.ts.map +1 -0
  98. package/dist/types/types/entity-link.d.ts +6 -0
  99. package/dist/types/types/entity-link.d.ts.map +1 -0
  100. package/dist/types/types/index.d.ts +11 -0
  101. package/dist/types/types/index.d.ts.map +1 -0
  102. package/dist/types/types/utils.d.ts +13 -0
  103. package/dist/types/types/utils.d.ts.map +1 -0
  104. package/package.json +3 -3
@@ -0,0 +1,269 @@
1
+ import type { PropType } from 'vue';
2
+ import type { AxiosError } from 'axios';
3
+ import type { KonnectBaseFormConfig, KongManagerBaseFormConfig } from '../../types';
4
+ import { SupportedEntityType } from '../../types';
5
+ declare var __VLS_21: {}, __VLS_33: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_21) => any;
8
+ } & {
9
+ 'form-actions'?: (props: typeof __VLS_33) => any;
10
+ };
11
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
+ /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
13
+ config: {
14
+ type: PropType<KonnectBaseFormConfig | KongManagerBaseFormConfig>;
15
+ required: true;
16
+ validator: (config: KonnectBaseFormConfig | KongManagerBaseFormConfig) => boolean;
17
+ };
18
+ /** If a valid edit ID is provided, it will put the form in Edit mode instead of Create */
19
+ editId: {
20
+ type: StringConstructor;
21
+ required: false;
22
+ default: string;
23
+ };
24
+ /**
25
+ * Entity type, required to generate terraform code
26
+ */
27
+ entityType: {
28
+ type: PropType<SupportedEntityType>;
29
+ required: true;
30
+ validator: (val: SupportedEntityType) => boolean;
31
+ };
32
+ /**
33
+ * Fetch url for the item to edit. We will handle the replacement of {controlPlaneId}, {workspace}, and {id}.
34
+ * Value should NOT contain config.apiBaseUrl, as we auto include this. Typically this will just an entry from
35
+ * the endpoints file.
36
+ * Required if `editId` is specified.
37
+ *
38
+ * ex. `/v2/control-planes/{controlPlaneId}/core-entities/snis/{id}`
39
+ */
40
+ fetchUrl: {
41
+ type: StringConstructor;
42
+ required: false;
43
+ default: string;
44
+ };
45
+ /** Set this prop to true during Save action. Disables save and cancel buttons */
46
+ isReadonly: {
47
+ type: BooleanConstructor;
48
+ required: false;
49
+ default: boolean;
50
+ };
51
+ /** Used to track form validation, disables save button when false */
52
+ canSubmit: {
53
+ type: BooleanConstructor;
54
+ required: false;
55
+ default: undefined;
56
+ };
57
+ /** If form submission fails, this is the error message to display */
58
+ errorMessage: {
59
+ type: StringConstructor;
60
+ required: false;
61
+ default: string;
62
+ };
63
+ /** Used to populate the Configuration JSON/YAML code blocks */
64
+ formFields: {
65
+ type: PropType<Record<string, any>>;
66
+ required: true;
67
+ };
68
+ /**
69
+ * Set true to disable the form validation upon submission.
70
+ */
71
+ noValidate: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ /**
76
+ * Wrapper component to use at component's root level.
77
+ */
78
+ wrapperComponent: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ /**
83
+ * Teleport target for the actions
84
+ */
85
+ actionTeleportTarget: {
86
+ type: StringConstructor;
87
+ default: undefined;
88
+ };
89
+ /**
90
+ * Hide the actions
91
+ */
92
+ hideActions: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ /**
97
+ * Top offset for the slideout
98
+ */
99
+ slidoutTopOffset: {
100
+ type: NumberConstructor;
101
+ default: number;
102
+ };
103
+ /**
104
+ * Controls whether to align action buttons to left
105
+ */
106
+ alignActionButtonToLeft: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ /**
111
+ * Save and Cancel button text override
112
+ */
113
+ saveButtonText: {
114
+ type: StringConstructor;
115
+ default: undefined;
116
+ };
117
+ cancelButtonText: {
118
+ type: StringConstructor;
119
+ default: undefined;
120
+ };
121
+ }>, {
122
+ viewConfig: () => void;
123
+ formCancel: () => void;
124
+ formSubmit: () => void;
125
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
126
+ loading: (isLoading: boolean) => any;
127
+ cancel: () => any;
128
+ "fetch:success": (data: Record<string, any>) => any;
129
+ "fetch:error": (error: AxiosError<unknown, any>) => any;
130
+ submit: () => any;
131
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
132
+ /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
133
+ config: {
134
+ type: PropType<KonnectBaseFormConfig | KongManagerBaseFormConfig>;
135
+ required: true;
136
+ validator: (config: KonnectBaseFormConfig | KongManagerBaseFormConfig) => boolean;
137
+ };
138
+ /** If a valid edit ID is provided, it will put the form in Edit mode instead of Create */
139
+ editId: {
140
+ type: StringConstructor;
141
+ required: false;
142
+ default: string;
143
+ };
144
+ /**
145
+ * Entity type, required to generate terraform code
146
+ */
147
+ entityType: {
148
+ type: PropType<SupportedEntityType>;
149
+ required: true;
150
+ validator: (val: SupportedEntityType) => boolean;
151
+ };
152
+ /**
153
+ * Fetch url for the item to edit. We will handle the replacement of {controlPlaneId}, {workspace}, and {id}.
154
+ * Value should NOT contain config.apiBaseUrl, as we auto include this. Typically this will just an entry from
155
+ * the endpoints file.
156
+ * Required if `editId` is specified.
157
+ *
158
+ * ex. `/v2/control-planes/{controlPlaneId}/core-entities/snis/{id}`
159
+ */
160
+ fetchUrl: {
161
+ type: StringConstructor;
162
+ required: false;
163
+ default: string;
164
+ };
165
+ /** Set this prop to true during Save action. Disables save and cancel buttons */
166
+ isReadonly: {
167
+ type: BooleanConstructor;
168
+ required: false;
169
+ default: boolean;
170
+ };
171
+ /** Used to track form validation, disables save button when false */
172
+ canSubmit: {
173
+ type: BooleanConstructor;
174
+ required: false;
175
+ default: undefined;
176
+ };
177
+ /** If form submission fails, this is the error message to display */
178
+ errorMessage: {
179
+ type: StringConstructor;
180
+ required: false;
181
+ default: string;
182
+ };
183
+ /** Used to populate the Configuration JSON/YAML code blocks */
184
+ formFields: {
185
+ type: PropType<Record<string, any>>;
186
+ required: true;
187
+ };
188
+ /**
189
+ * Set true to disable the form validation upon submission.
190
+ */
191
+ noValidate: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
195
+ /**
196
+ * Wrapper component to use at component's root level.
197
+ */
198
+ wrapperComponent: {
199
+ type: StringConstructor;
200
+ default: string;
201
+ };
202
+ /**
203
+ * Teleport target for the actions
204
+ */
205
+ actionTeleportTarget: {
206
+ type: StringConstructor;
207
+ default: undefined;
208
+ };
209
+ /**
210
+ * Hide the actions
211
+ */
212
+ hideActions: {
213
+ type: BooleanConstructor;
214
+ default: boolean;
215
+ };
216
+ /**
217
+ * Top offset for the slideout
218
+ */
219
+ slidoutTopOffset: {
220
+ type: NumberConstructor;
221
+ default: number;
222
+ };
223
+ /**
224
+ * Controls whether to align action buttons to left
225
+ */
226
+ alignActionButtonToLeft: {
227
+ type: BooleanConstructor;
228
+ default: boolean;
229
+ };
230
+ /**
231
+ * Save and Cancel button text override
232
+ */
233
+ saveButtonText: {
234
+ type: StringConstructor;
235
+ default: undefined;
236
+ };
237
+ cancelButtonText: {
238
+ type: StringConstructor;
239
+ default: undefined;
240
+ };
241
+ }>> & Readonly<{
242
+ onLoading?: ((isLoading: boolean) => any) | undefined;
243
+ onCancel?: (() => any) | undefined;
244
+ "onFetch:success"?: ((data: Record<string, any>) => any) | undefined;
245
+ "onFetch:error"?: ((error: AxiosError<unknown, any>) => any) | undefined;
246
+ onSubmit?: (() => any) | undefined;
247
+ }>, {
248
+ fetchUrl: string;
249
+ editId: string;
250
+ isReadonly: boolean;
251
+ canSubmit: boolean;
252
+ errorMessage: string;
253
+ noValidate: boolean;
254
+ wrapperComponent: string;
255
+ actionTeleportTarget: string;
256
+ hideActions: boolean;
257
+ slidoutTopOffset: number;
258
+ alignActionButtonToLeft: boolean;
259
+ saveButtonText: string;
260
+ cancelButtonText: string;
261
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
262
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
263
+ export default _default;
264
+ type __VLS_WithSlots<T, S> = T & {
265
+ new (): {
266
+ $slots: S;
267
+ };
268
+ };
269
+ //# sourceMappingURL=EntityBaseForm.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityBaseForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-form/EntityBaseForm.vue"],"names":[],"mappings":"AA4aA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AACnF,OAAO,EAA6B,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAqmB5E,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAs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,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,325 @@
1
+ import type { PropType } from 'vue';
2
+ import type { TableStateParams } from '../../types';
3
+ import type { HeaderTag, TablePreferences, SortHandlerFunctionParam, TableDataFetcherParams, TableDataProps, TablePaginationAttributes } from '@kong/kongponents';
4
+ import type { BaseTableHeaders, EmptyStateOptions, FetcherResponse, TableSortParams, TableErrorMessage } from '../../types';
5
+ declare var __VLS_22: {}, __VLS_24: {}, __VLS_27: {}, __VLS_35: string | number, __VLS_36: {
6
+ row: any;
7
+ rowKey: NoInfer<string | ((row: Record<string, any>) => string)> | undefined;
8
+ rowValue: any;
9
+ }, __VLS_39: {
10
+ row: any;
11
+ }, __VLS_47: {};
12
+ type __VLS_Slots = {} & {
13
+ [K in NonNullable<typeof __VLS_35>]?: (props: typeof __VLS_36) => any;
14
+ } & {
15
+ 'toolbar-filter'?: (props: typeof __VLS_22) => any;
16
+ } & {
17
+ 'toolbar-button'?: (props: typeof __VLS_24) => any;
18
+ } & {
19
+ 'empty-state'?: (props: typeof __VLS_27) => any;
20
+ } & {
21
+ actions?: (props: typeof __VLS_39) => any;
22
+ } & {
23
+ 'outside-actions'?: (props: typeof __VLS_47) => any;
24
+ };
25
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
26
+ tableHeaders: {
27
+ type: PropType<BaseTableHeaders>;
28
+ required: true;
29
+ default: () => {};
30
+ };
31
+ fetcher: {
32
+ type: PropType<(param: TableDataFetcherParams) => Promise<FetcherResponse>>;
33
+ required: true;
34
+ default: () => Promise<{
35
+ data: never[];
36
+ total: number;
37
+ }>;
38
+ };
39
+ initialFetcherParams: {
40
+ type: PropType<Partial<Omit<TableDataFetcherParams<string, string>, "query">>>;
41
+ default: null;
42
+ };
43
+ rowKey: {
44
+ type: PropType<TableDataProps["rowKey"]>;
45
+ default: string;
46
+ };
47
+ cacheIdentifier: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ fetcherCacheKey: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ isLoading: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ query: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ enableClientSort: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ sortHandlerFunction: {
68
+ type: PropType<(param: SortHandlerFunctionParam) => Array<Record<string, any>>>;
69
+ default: null;
70
+ };
71
+ enableEntityActions: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ emptyStateOptions: {
76
+ type: PropType<EmptyStateOptions>;
77
+ default: () => {};
78
+ };
79
+ errorMessage: {
80
+ type: PropType<string | TableErrorMessage>;
81
+ default: null;
82
+ };
83
+ paginationAttributes: {
84
+ type: PropType<TablePaginationAttributes>;
85
+ default: () => {};
86
+ };
87
+ hidePaginationWhenOptional: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ disableSorting: {
92
+ type: BooleanConstructor;
93
+ default: undefined;
94
+ };
95
+ cellAttributes: {
96
+ type: PropType<(params: Record<string, any>) => Record<string, any>>;
97
+ default: () => {};
98
+ };
99
+ rowAttributes: {
100
+ type: PropType<(row: Record<string, any>) => Record<string, any>>;
101
+ default: () => {};
102
+ };
103
+ /** tableKey to use for user table preferences. If empty, will fallback to default preferences */
104
+ preferencesStorageKey: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ /** default table preferences to use if no user preferences are found */
109
+ defaultTablePreferences: {
110
+ type: PropType<TablePreferences>;
111
+ default: null;
112
+ required: false;
113
+ };
114
+ title: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
118
+ titleTag: {
119
+ type: PropType<HeaderTag>;
120
+ default: string;
121
+ };
122
+ /** default to false, setting to true will suppress the row click event even if "@click:row" is attached */
123
+ disableRowClick: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ hidePagination: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ hideToolbar: {
132
+ type: BooleanConstructor;
133
+ default: undefined;
134
+ };
135
+ /**
136
+ * @deprecated in favour of `paginationAttributes`
137
+ */
138
+ disablePaginationPageJump: {
139
+ type: BooleanConstructor;
140
+ default: undefined;
141
+ validator: (value: boolean) => boolean;
142
+ };
143
+ /**
144
+ * @deprecated in favour of `paginationAttributes`
145
+ */
146
+ paginationType: {
147
+ type: PropType<"default" | "offset">;
148
+ default: undefined;
149
+ validator: (value: string) => boolean;
150
+ };
151
+ }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
152
+ sort: (sortParams: TableSortParams) => any;
153
+ state: (state: TableStateParams) => any;
154
+ "click:row": (row: BaseTableHeaders) => any;
155
+ "clear-search-input": () => any;
156
+ "empty-state-cta-clicked": () => any;
157
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
158
+ tableHeaders: {
159
+ type: PropType<BaseTableHeaders>;
160
+ required: true;
161
+ default: () => {};
162
+ };
163
+ fetcher: {
164
+ type: PropType<(param: TableDataFetcherParams) => Promise<FetcherResponse>>;
165
+ required: true;
166
+ default: () => Promise<{
167
+ data: never[];
168
+ total: number;
169
+ }>;
170
+ };
171
+ initialFetcherParams: {
172
+ type: PropType<Partial<Omit<TableDataFetcherParams<string, string>, "query">>>;
173
+ default: null;
174
+ };
175
+ rowKey: {
176
+ type: PropType<TableDataProps["rowKey"]>;
177
+ default: string;
178
+ };
179
+ cacheIdentifier: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ };
183
+ fetcherCacheKey: {
184
+ type: NumberConstructor;
185
+ default: number;
186
+ };
187
+ isLoading: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ query: {
192
+ type: StringConstructor;
193
+ default: string;
194
+ };
195
+ enableClientSort: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
199
+ sortHandlerFunction: {
200
+ type: PropType<(param: SortHandlerFunctionParam) => Array<Record<string, any>>>;
201
+ default: null;
202
+ };
203
+ enableEntityActions: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ emptyStateOptions: {
208
+ type: PropType<EmptyStateOptions>;
209
+ default: () => {};
210
+ };
211
+ errorMessage: {
212
+ type: PropType<string | TableErrorMessage>;
213
+ default: null;
214
+ };
215
+ paginationAttributes: {
216
+ type: PropType<TablePaginationAttributes>;
217
+ default: () => {};
218
+ };
219
+ hidePaginationWhenOptional: {
220
+ type: BooleanConstructor;
221
+ default: boolean;
222
+ };
223
+ disableSorting: {
224
+ type: BooleanConstructor;
225
+ default: undefined;
226
+ };
227
+ cellAttributes: {
228
+ type: PropType<(params: Record<string, any>) => Record<string, any>>;
229
+ default: () => {};
230
+ };
231
+ rowAttributes: {
232
+ type: PropType<(row: Record<string, any>) => Record<string, any>>;
233
+ default: () => {};
234
+ };
235
+ /** tableKey to use for user table preferences. If empty, will fallback to default preferences */
236
+ preferencesStorageKey: {
237
+ type: StringConstructor;
238
+ default: string;
239
+ };
240
+ /** default table preferences to use if no user preferences are found */
241
+ defaultTablePreferences: {
242
+ type: PropType<TablePreferences>;
243
+ default: null;
244
+ required: false;
245
+ };
246
+ title: {
247
+ type: StringConstructor;
248
+ default: string;
249
+ };
250
+ titleTag: {
251
+ type: PropType<HeaderTag>;
252
+ default: string;
253
+ };
254
+ /** default to false, setting to true will suppress the row click event even if "@click:row" is attached */
255
+ disableRowClick: {
256
+ type: BooleanConstructor;
257
+ default: boolean;
258
+ };
259
+ hidePagination: {
260
+ type: BooleanConstructor;
261
+ default: boolean;
262
+ };
263
+ hideToolbar: {
264
+ type: BooleanConstructor;
265
+ default: undefined;
266
+ };
267
+ /**
268
+ * @deprecated in favour of `paginationAttributes`
269
+ */
270
+ disablePaginationPageJump: {
271
+ type: BooleanConstructor;
272
+ default: undefined;
273
+ validator: (value: boolean) => boolean;
274
+ };
275
+ /**
276
+ * @deprecated in favour of `paginationAttributes`
277
+ */
278
+ paginationType: {
279
+ type: PropType<"default" | "offset">;
280
+ default: undefined;
281
+ validator: (value: string) => boolean;
282
+ };
283
+ }>> & Readonly<{
284
+ onSort?: ((sortParams: TableSortParams) => any) | undefined;
285
+ onState?: ((state: TableStateParams) => any) | undefined;
286
+ "onClick:row"?: ((row: BaseTableHeaders) => any) | undefined;
287
+ "onClear-search-input"?: (() => any) | undefined;
288
+ "onEmpty-state-cta-clicked"?: (() => any) | undefined;
289
+ }>, {
290
+ title: string;
291
+ query: string;
292
+ titleTag: HeaderTag;
293
+ isLoading: boolean;
294
+ errorMessage: string | TableErrorMessage;
295
+ tableHeaders: BaseTableHeaders;
296
+ fetcher: (param: TableDataFetcherParams) => Promise<FetcherResponse>;
297
+ initialFetcherParams: Partial<Omit<TableDataFetcherParams<string, string>, "query">>;
298
+ rowKey: NoInfer<string | ((row: Record<string, any>) => string)> | undefined;
299
+ cacheIdentifier: string;
300
+ fetcherCacheKey: number;
301
+ enableClientSort: boolean;
302
+ sortHandlerFunction: (param: SortHandlerFunctionParam) => Array<Record<string, any>>;
303
+ enableEntityActions: boolean;
304
+ emptyStateOptions: EmptyStateOptions;
305
+ paginationAttributes: TablePaginationAttributes;
306
+ hidePaginationWhenOptional: boolean;
307
+ disableSorting: boolean;
308
+ cellAttributes: (params: Record<string, any>) => Record<string, any>;
309
+ rowAttributes: (row: Record<string, any>) => Record<string, any>;
310
+ preferencesStorageKey: string;
311
+ defaultTablePreferences: TablePreferences<string>;
312
+ disableRowClick: boolean;
313
+ hidePagination: boolean;
314
+ hideToolbar: boolean;
315
+ disablePaginationPageJump: boolean;
316
+ paginationType: "offset" | "default";
317
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
318
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
319
+ export default _default;
320
+ type __VLS_WithSlots<T, S> = T & {
321
+ new (): {
322
+ $slots: S;
323
+ };
324
+ };
325
+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M,CAAC,MAAM,EAAE,GAAG,CAAC;yBAK9C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;;;4EA8D9E,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,44 @@
1
+ import type { PropType } from 'vue';
2
+ declare var __VLS_6: {}, __VLS_8: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_6) => any;
5
+ } & {
6
+ default?: (props: typeof __VLS_8) => any;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ keyName: {
10
+ type: StringConstructor;
11
+ required: true;
12
+ };
13
+ rowEl: {
14
+ type: PropType<HTMLElement | null>;
15
+ required: true;
16
+ };
17
+ tooltip: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
+ keyName: {
23
+ type: StringConstructor;
24
+ required: true;
25
+ };
26
+ rowEl: {
27
+ type: PropType<HTMLElement | null>;
28
+ required: true;
29
+ };
30
+ tooltip: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ }>> & Readonly<{}>, {
35
+ tooltip: boolean;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
44
+ //# sourceMappingURL=EntityBaseTableCell.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityBaseTableCell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-table/EntityBaseTableCell.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAqKnC,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,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,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoC/C,QAAA,MAAM,eAAe;;;;;;cASO,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;;;;;;;;;;;;;cAA5B,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;;;;;;;;;4EAQtD,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}