@citruslime/ui 2.0.0-beta.7 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +5 -4
  2. package/dist/citrus-lime-ui.es.js +2612 -2214
  3. package/dist/citrus-lime-ui.umd.js +2 -1
  4. package/dist/components/accordion/cl-ui-accordion.vue.d.ts +26 -0
  5. package/dist/components/accordion/index.d.ts +4 -0
  6. package/dist/components/accordion/item/cl-ui-accordion-item.vue.d.ts +35 -0
  7. package/dist/{src/components → components}/accordion/types.d.ts +0 -0
  8. package/dist/{src/components → components}/app/cl-ui-app.vue.d.ts +19 -12
  9. package/dist/{src/components → components}/app/index.d.ts +0 -0
  10. package/dist/{src/components → components}/button/cl-ui-button.vue.d.ts +23 -12
  11. package/dist/{src/components → components}/button/index.d.ts +0 -0
  12. package/dist/{src/components → components}/button/types.d.ts +0 -0
  13. package/dist/{src/components → components}/calendar/cl-ui-calendar.vue.d.ts +0 -0
  14. package/dist/{src/components → components}/calendar/index.d.ts +0 -0
  15. package/dist/{src/components → components}/calendar/types.d.ts +1 -1
  16. package/dist/{src/components → components}/calendar/utils.d.ts +15 -0
  17. package/dist/{src/components → components}/card/cl-ui-card.vue.d.ts +4 -23
  18. package/dist/{src/components → components}/card/index.d.ts +1 -0
  19. package/dist/{src/components → components}/card/types.d.ts +0 -0
  20. package/dist/{src/components → components}/combo-box/cl-ui-combo-box.vue.d.ts +270 -211
  21. package/dist/{src/components → components}/combo-box/index.d.ts +0 -0
  22. package/dist/{src/components → components}/combo-box/search-container/cl-ui-combo-box-search.vue.d.ts +109 -63
  23. package/dist/{src/components → components}/combo-box/search-container/header/cl-ui-combo-box-header.vue.d.ts +17 -9
  24. package/dist/{src/components → components}/combo-box/search-container/selectable/cl-ui-combo-box-selectable.vue.d.ts +28 -15
  25. package/dist/{src/components → components}/combo-box/types.d.ts +0 -19
  26. package/dist/{src/components → components}/footer/index.d.ts +0 -0
  27. package/dist/{src/components → components}/grid/cell/cl-ui-grid-cell.vue.d.ts +16 -18
  28. package/dist/{src/components → components}/grid/cl-ui-grid.vue.d.ts +226 -220
  29. package/dist/components/grid/filter/cl-ui-grid-filter.vue.d.ts +72 -0
  30. package/dist/{src/utils → components/grid/filter}/filter-methods.d.ts +1 -1
  31. package/dist/components/grid/footer/cl-ui-grid-footer.vue.d.ts +63 -0
  32. package/dist/{src/components → components}/grid/header/cl-ui-grid-header.vue.d.ts +96 -68
  33. package/dist/{src/components → components}/grid/index.d.ts +0 -0
  34. package/dist/{src/components → components}/grid/types.d.ts +0 -47
  35. package/dist/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +88 -0
  36. package/dist/{src/components → components}/header/index.d.ts +0 -0
  37. package/dist/components/header/menu/cl-ui-header-menu.vue.d.ts +40 -0
  38. package/dist/{src/components → components}/header/menu/index.d.ts +0 -1
  39. package/dist/{src/components → components}/index.d.ts +2 -2
  40. package/dist/components/input/cl-ui-input.vue.d.ts +2 -0
  41. package/dist/components/input/index.d.ts +2 -0
  42. package/dist/components/input/types.d.ts +6 -0
  43. package/dist/components/input/utils.d.ts +44 -0
  44. package/dist/{src/components → components}/language-switcher/cl-ui-language-switcher.vue.d.ts +14 -20
  45. package/dist/{src/components → components}/language-switcher/index.d.ts +1 -0
  46. package/dist/{src/components → components}/language-switcher/types.d.ts +0 -1
  47. package/dist/{src/components → components}/loading-spinner/index.d.ts +0 -0
  48. package/dist/components/login/cl-ui-login.vue.d.ts +106 -0
  49. package/dist/{src/components → components}/login/index.d.ts +0 -0
  50. package/dist/components/login/types.d.ts +4 -0
  51. package/dist/components/modal/cl-ui-modal.vue.d.ts +49 -0
  52. package/dist/{src/components → components}/modal/index.d.ts +1 -0
  53. package/dist/{src/components → components}/modal/types.d.ts +2 -0
  54. package/dist/components/navigation/cl-ui-navigation.vue.d.ts +11 -0
  55. package/dist/components/navigation/group/cl-ui-navigation-group.vue.d.ts +12 -0
  56. package/dist/{src/components/footer/cl-ui-footer.vue.d.ts → components/navigation/icon/cl-ui-navigation-icon.vue.d.ts} +14 -16
  57. package/dist/components/navigation/index.d.ts +5 -0
  58. package/dist/{src/components → components}/notification/cl-ui-notification.vue.d.ts +12 -7
  59. package/dist/{src/components → components}/notification/index.d.ts +0 -0
  60. package/dist/{src/components → components}/notification/types.d.ts +0 -0
  61. package/dist/components/slider/cl-ui-slider.vue.d.ts +114 -0
  62. package/dist/{src/components → components}/slider/index.d.ts +0 -1
  63. package/dist/components/tab/cl-ui-tab.vue.d.ts +52 -0
  64. package/dist/components/tab/header/cl-ui-tab-header.vue.d.ts +60 -0
  65. package/dist/components/tab/index.d.ts +4 -0
  66. package/dist/components/tab/types.d.ts +4 -0
  67. package/dist/{src/composables → composables}/index.d.ts +0 -0
  68. package/dist/{src/composables → composables}/notification.d.ts +0 -0
  69. package/dist/{src/main.d.ts → main.d.ts} +0 -1
  70. package/dist/style.css +1 -1
  71. package/dist/utils/i18n/config.d.ts +33 -0
  72. package/dist/utils/i18n/defaults.d.ts +4 -0
  73. package/dist/utils/i18n/index.d.ts +3 -0
  74. package/dist/utils/i18n/types.d.ts +97 -0
  75. package/dist/utils/index.d.ts +2 -0
  76. package/dist/utils/validation.d.ts +37 -0
  77. package/package.json +17 -14
  78. package/dist/.eslintrc.js +0 -455
  79. package/dist/.stylelintrc.js +0 -119
  80. package/dist/src/components/accordion/cl-ui-accordion.vue.d.ts +0 -47
  81. package/dist/src/components/accordion/index.d.ts +0 -2
  82. package/dist/src/components/grid/filter/cl-ui-grid-filter.vue.d.ts +0 -68
  83. package/dist/src/components/grid/footer/cl-ui-grid-footer.vue.d.ts +0 -62
  84. package/dist/src/components/grid/view-manager/cl-ui-grid-view-manager.vue.d.ts +0 -71
  85. package/dist/src/components/header/menu/cl-ui-header-menu.vue.d.ts +0 -16
  86. package/dist/src/components/header/menu/types.d.ts +0 -13
  87. package/dist/src/components/login/cl-ui-login.vue.d.ts +0 -170
  88. package/dist/src/components/login/types.d.ts +0 -11
  89. package/dist/src/components/modal/cl-ui-modal.vue.d.ts +0 -107
  90. package/dist/src/components/navigation/cl-ui-navigation.vue.d.ts +0 -669
  91. package/dist/src/components/navigation/index.d.ts +0 -2
  92. package/dist/src/components/navigation/types.d.ts +0 -18
  93. package/dist/src/components/slider/cl-ui-slider.vue.d.ts +0 -97
  94. package/dist/src/components/slider/types.d.ts +0 -3
  95. package/dist/src/utils/copy.d.ts +0 -8
  96. package/dist/src/utils/debouncer.d.ts +0 -13
  97. package/dist/src/utils/extensions/string/index.d.ts +0 -2
  98. package/dist/src/utils/extensions/string/utils.d.ts +0 -83
  99. package/dist/src/utils/i18n/datetime-formats.d.ts +0 -2
  100. package/dist/src/utils/i18n/index.d.ts +0 -3
  101. package/dist/src/utils/i18n/number-formats.d.ts +0 -2
  102. package/dist/src/utils/i18n/types.d.ts +0 -15
  103. package/dist/src/utils/id.d.ts +0 -6
  104. package/dist/src/utils/index.d.ts +0 -8
  105. package/dist/src/utils/name-of.d.ts +0 -7
  106. package/dist/src/utils/sort.d.ts +0 -9
  107. package/dist/src/utils/url-params.d.ts +0 -8
  108. package/dist/theme.js +0 -121
@@ -1,26 +1,5 @@
1
- import type { ComboBoxLocalisations, ComboBoxSearchContainerLocalisations, ComboBoxCreateResponse, ComboBoxItem, ComboBoxCreateRequest } from './types';
1
+ import type { ComboBoxCreateResponse, ComboBoxItem, ComboBoxCreateRequest } from './types';
2
2
  declare const _sfc_main: import("vue").DefineComponent<{
3
- localisations: {
4
- type: ObjectConstructor;
5
- required: false;
6
- default: () => {
7
- emptyHintText: string;
8
- createTitle: string;
9
- createProperty: string;
10
- createParentTitle: string;
11
- createParentProperty: string;
12
- parentName: string;
13
- create: string;
14
- cancel: string;
15
- createSuccessful: string;
16
- createFailed: string;
17
- required: string;
18
- searchHintText: string;
19
- errorMessage: string;
20
- addPrompt: string;
21
- noResults: string;
22
- };
23
- };
24
3
  loading: {
25
4
  type: BooleanConstructor;
26
5
  required: false;
@@ -63,12 +42,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
63
42
  objectCreatedResponse: {
64
43
  type: null;
65
44
  required: false;
66
- default: () => null;
45
+ default: null;
67
46
  };
68
47
  parentObjectCreatedResponse: {
69
48
  type: null;
70
49
  required: false;
71
- default: () => null;
50
+ default: null;
72
51
  };
73
52
  results: {
74
53
  type: ArrayConstructor;
@@ -82,12 +61,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
82
61
  };
83
62
  currentObject: {
84
63
  type: null;
85
- required: false;
86
- default: () => null;
64
+ required: true;
87
65
  };
88
66
  }, {
89
67
  props: {
90
- localisations: ComboBoxLocalisations & ComboBoxSearchContainerLocalisations;
91
68
  loading: boolean;
92
69
  disabled: boolean;
93
70
  required: boolean;
@@ -102,7 +79,18 @@ declare const _sfc_main: import("vue").DefineComponent<{
102
79
  parentResults: ComboBoxItem[];
103
80
  currentObject: ComboBoxItem | null;
104
81
  };
105
- emit: ((event: "search", ...args: any[]) => void) & ((event: "create-object", ...args: any[]) => void) & ((event: "search-parent", ...args: any[]) => void) & ((event: "create-parent-object", ...args: any[]) => void) & ((event: "update:current-object", ...args: any[]) => void);
82
+ emit: ((event: "search", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "search-parent", ...args: any[]) => void) & ((event: "create-object", ...args: any[]) => void) & ((event: "create-parent-object", ...args: any[]) => void) & ((event: "update:current-object", ...args: any[]) => void);
83
+ t: {
84
+ (key: string | number): string;
85
+ (key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
86
+ (key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
87
+ (key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
88
+ (key: string | number, list: unknown[], plural: number): string;
89
+ (key: string | number, list: unknown[], defaultMsg: string): string;
90
+ (key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
91
+ (key: string | number, named: Record<string, unknown>, plural: number): string;
92
+ (key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
93
+ };
106
94
  searchContainerVisible: import("vue").Ref<boolean>;
107
95
  selectedItem: import("vue").WritableComputedRef<ComboBoxItem | null>;
108
96
  parentItem: import("vue").Ref<{
@@ -112,8 +100,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
112
100
  parentName?: string | undefined;
113
101
  } | null>;
114
102
  currentText: import("vue").ComputedRef<string>;
115
- hintText: import("vue").ComputedRef<string>;
116
- createHeader: import("vue").ComputedRef<string>;
117
103
  objectToCreateValue: import("vue").Ref<string>;
118
104
  parentObjectToCreateValue: import("vue").Ref<string>;
119
105
  createObjectRequest: import("vue").Ref<ComboBoxCreateRequest | undefined>;
@@ -131,116 +117,105 @@ declare const _sfc_main: import("vue").DefineComponent<{
131
117
  handleSuccessfulObjectCreation: () => void;
132
118
  getDisplayName: () => string;
133
119
  validateObjectToCreate: () => void;
134
- ClUiModal: import("vue").DefineComponent<{
135
- title: {
136
- type: StringConstructor;
137
- required: true;
120
+ ClUiButton: import("vue").DefineComponent<{
121
+ colour: {
122
+ type: null;
123
+ required: false;
124
+ default: string;
138
125
  };
139
126
  size: {
140
127
  type: null;
141
128
  required: false;
142
129
  default: string;
143
130
  };
144
- confirmButton: {
145
- type: StringConstructor;
131
+ loading: {
132
+ type: BooleanConstructor;
133
+ required: false;
134
+ default: boolean;
135
+ };
136
+ disabled: {
137
+ type: BooleanConstructor;
138
+ required: false;
139
+ default: boolean;
140
+ };
141
+ }, {
142
+ ClUiLoadingSpinner: any;
143
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
144
+ colour: {
145
+ type: null;
146
146
  required: false;
147
147
  default: string;
148
148
  };
149
- cancelButton: {
150
- type: StringConstructor;
149
+ size: {
150
+ type: null;
151
+ required: false;
152
+ default: string;
153
+ };
154
+ loading: {
155
+ type: BooleanConstructor;
156
+ required: false;
157
+ default: boolean;
158
+ };
159
+ disabled: {
160
+ type: BooleanConstructor;
161
+ required: false;
162
+ default: boolean;
163
+ };
164
+ }>>, {
165
+ disabled: boolean;
166
+ colour: any;
167
+ size: any;
168
+ loading: boolean;
169
+ }>;
170
+ ClUiInput: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
171
+ ClUiModal: import("vue").DefineComponent<{
172
+ headerColour: {
173
+ type: null;
151
174
  required: false;
152
175
  default: string;
153
176
  };
154
- confirmEnabled: {
177
+ preventClose: {
155
178
  type: BooleanConstructor;
156
179
  required: false;
157
180
  default: boolean;
158
181
  };
182
+ size: {
183
+ type: null;
184
+ required: false;
185
+ default: string;
186
+ };
159
187
  }, {
160
188
  props: {
161
- title: string;
189
+ headerColour: string;
190
+ preventClose: boolean;
162
191
  size: "small" | "medium" | "large" | "x-small";
163
- confirmButton: string;
164
- cancelButton: string;
165
- confirmEnabled: boolean;
166
192
  };
167
- emit: ((event: "cancel", ...args: any[]) => void) & ((event: "confirm", ...args: any[]) => void);
168
193
  visible: import("vue").Ref<boolean>;
169
- showConfirmButton: import("vue").ComputedRef<boolean>;
170
- showCancelButton: import("vue").ComputedRef<boolean>;
171
- getButtonText: (buttonValue: string | boolean) => string;
172
- confirmButtonText: import("vue").ComputedRef<string>;
173
- cancelButtonText: import("vue").ComputedRef<string>;
174
- toggleModal: (show?: boolean | undefined) => void;
175
- modalAction: (action: boolean) => void;
176
- ClUiButton: import("vue").DefineComponent<{
177
- colour: {
178
- type: null;
179
- required: false;
180
- default: string;
181
- };
182
- size: {
183
- type: null;
184
- required: false;
185
- default: string;
186
- };
187
- loading: {
188
- type: BooleanConstructor;
189
- required: false;
190
- default: boolean;
191
- };
192
- disabled: {
193
- type: BooleanConstructor;
194
- required: false;
195
- default: boolean;
196
- };
197
- }, {
198
- ClUiLoadingSpinner: any;
199
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
200
- colour?: unknown;
201
- size?: unknown;
202
- loading?: unknown;
203
- disabled?: unknown;
204
- } & {
205
- loading: boolean;
206
- disabled: boolean;
207
- size: any;
208
- colour: any;
209
- } & {}>, {
210
- loading: boolean;
211
- disabled: boolean;
212
- size: any;
213
- colour: any;
214
- }>;
215
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
216
- confirm: null;
217
- cancel: null;
218
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
219
- title?: unknown;
220
- size?: unknown;
221
- confirmButton?: unknown;
222
- cancelButton?: unknown;
223
- confirmEnabled?: unknown;
224
- } & {
225
- title: string;
226
- size: any;
227
- confirmButton: string;
228
- cancelButton: string;
229
- confirmEnabled: boolean;
230
- } & {}> & {
231
- onCancel?: ((...args: any[]) => any) | undefined;
232
- onConfirm?: ((...args: any[]) => any) | undefined;
233
- }, {
194
+ open: () => void;
195
+ close: () => void;
196
+ closeOnKeyPress: (event: KeyboardEvent) => void;
197
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
198
+ headerColour: {
199
+ type: null;
200
+ required: false;
201
+ default: string;
202
+ };
203
+ preventClose: {
204
+ type: BooleanConstructor;
205
+ required: false;
206
+ default: boolean;
207
+ };
208
+ size: {
209
+ type: null;
210
+ required: false;
211
+ default: string;
212
+ };
213
+ }>>, {
234
214
  size: any;
235
- confirmButton: string;
236
- cancelButton: string;
237
- confirmEnabled: boolean;
215
+ headerColour: any;
216
+ preventClose: boolean;
238
217
  }>;
239
218
  ClUiComboBoxSearch: import("vue").DefineComponent<{
240
- localisations: {
241
- type: null;
242
- required: true;
243
- };
244
219
  loading: {
245
220
  type: BooleanConstructor;
246
221
  required: false;
@@ -287,7 +262,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
287
262
  };
288
263
  }, {
289
264
  props: {
290
- localisations: ComboBoxSearchContainerLocalisations;
291
265
  loading: boolean;
292
266
  objectType: string;
293
267
  objectParentType: string;
@@ -298,17 +272,23 @@ declare const _sfc_main: import("vue").DefineComponent<{
298
272
  results: ComboBoxItem[];
299
273
  isVisible: boolean;
300
274
  };
301
- emit: ((event: "search", ...args: any[]) => void) & ((event: "clear-object", ...args: any[]) => void) & ((event: "create-object", ...args: any[]) => void) & ((event: "select-object", ...args: any[]) => void) & ((event: "hide-dropdown", ...args: any[]) => void);
275
+ emit: ((event: "search", ...args: any[]) => void) & ((event: "create-object", ...args: any[]) => void) & ((event: "clear-object", ...args: any[]) => void) & ((event: "select-object", ...args: any[]) => void) & ((event: "hide-dropdown", ...args: any[]) => void);
276
+ t: {
277
+ (key: string | number): string;
278
+ (key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
279
+ (key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
280
+ (key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
281
+ (key: string | number, list: unknown[], plural: number): string;
282
+ (key: string | number, list: unknown[], defaultMsg: string): string;
283
+ (key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
284
+ (key: string | number, named: Record<string, unknown>, plural: number): string;
285
+ (key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
286
+ };
302
287
  searchText: import("vue").Ref<string>;
303
288
  showAddNewOption: import("vue").Ref<boolean>;
304
289
  currentSelection: import("vue").Ref<number>;
305
290
  firstIndexInResults: import("vue").ComputedRef<number>;
306
- combinedErrorMessage: import("vue").ComputedRef<string>;
307
- searchHint: import("vue").ComputedRef<string>;
308
- addPrompt: import("vue").ComputedRef<string>;
309
- noResults: import("vue").ComputedRef<string>;
310
291
  container: import("vue").Ref<HTMLElement | undefined>;
311
- searchBox: import("vue").Ref<HTMLInputElement | undefined>;
312
292
  search: (keyboardEvent?: KeyboardEvent | undefined) => void;
313
293
  selectObject: (id: number) => void;
314
294
  createObject: () => void;
@@ -321,6 +301,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
321
301
  updateAddNewOption: () => void;
322
302
  updateSelectedObjectIndex: (index: number) => void;
323
303
  onVisibilityChanged: () => void;
304
+ ClUiInput: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
324
305
  ClUiComboBoxHeader: import("vue").DefineComponent<{
325
306
  showClearButton: {
326
307
  type: BooleanConstructor;
@@ -339,15 +320,23 @@ declare const _sfc_main: import("vue").DefineComponent<{
339
320
  };
340
321
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
341
322
  'clear-object': null;
342
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
343
- showClearButton?: unknown;
344
- text?: unknown;
345
- additionalText?: unknown;
346
- } & {
347
- text: string;
348
- showClearButton: boolean;
349
- additionalText: string;
350
- } & {}> & {
323
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
324
+ showClearButton: {
325
+ type: BooleanConstructor;
326
+ required: false;
327
+ default: boolean;
328
+ };
329
+ text: {
330
+ type: StringConstructor;
331
+ required: false;
332
+ default: string;
333
+ };
334
+ additionalText: {
335
+ type: StringConstructor;
336
+ required: false;
337
+ default: string;
338
+ };
339
+ }>> & {
351
340
  "onClear-object"?: ((...args: any[]) => any) | undefined;
352
341
  }, {
353
342
  text: string;
@@ -373,7 +362,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
373
362
  option: {
374
363
  type: null;
375
364
  required: false;
376
- default: () => null;
365
+ default: null;
377
366
  };
378
367
  index: {
379
368
  type: NumberConstructor;
@@ -398,27 +387,40 @@ declare const _sfc_main: import("vue").DefineComponent<{
398
387
  'create-object': null;
399
388
  'select-object': null;
400
389
  'option-highlighted': null;
401
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
402
- isCreateNewOption?: unknown;
403
- selectedIndex?: unknown;
404
- text?: unknown;
405
- option?: unknown;
406
- index?: unknown;
407
- } & {
408
- option: any;
409
- text: string;
410
- index: number;
411
- isCreateNewOption: boolean;
412
- selectedIndex: number;
413
- } & {}> & {
390
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
391
+ isCreateNewOption: {
392
+ type: BooleanConstructor;
393
+ required: false;
394
+ default: boolean;
395
+ };
396
+ selectedIndex: {
397
+ type: NumberConstructor;
398
+ required: false;
399
+ default: number;
400
+ };
401
+ text: {
402
+ type: StringConstructor;
403
+ required: false;
404
+ default: string;
405
+ };
406
+ option: {
407
+ type: null;
408
+ required: false;
409
+ default: null;
410
+ };
411
+ index: {
412
+ type: NumberConstructor;
413
+ required: true;
414
+ };
415
+ }>> & {
414
416
  "onCreate-object"?: ((...args: any[]) => any) | undefined;
415
417
  "onSelect-object"?: ((...args: any[]) => any) | undefined;
416
418
  "onOption-highlighted"?: ((...args: any[]) => any) | undefined;
417
419
  }, {
418
- option: any;
419
420
  text: string;
420
421
  isCreateNewOption: boolean;
421
422
  selectedIndex: number;
423
+ option: any;
422
424
  }>;
423
425
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
424
426
  'clear-object': null;
@@ -426,99 +428,156 @@ declare const _sfc_main: import("vue").DefineComponent<{
426
428
  'select-object': null;
427
429
  search: null;
428
430
  'hide-dropdown': null;
429
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
430
- localisations?: unknown;
431
- loading?: unknown;
432
- objectType?: unknown;
433
- objectParentType?: unknown;
434
- errorMessage?: unknown;
435
- canCreateNewObject?: unknown;
436
- canClearSelectedObject?: unknown;
437
- currentObjectName?: unknown;
438
- results?: unknown;
439
- isVisible?: unknown;
440
- } & {
441
- loading: boolean;
442
- objectType: string;
443
- localisations: any;
444
- objectParentType: string;
445
- errorMessage: string;
446
- canCreateNewObject: boolean;
447
- canClearSelectedObject: boolean;
448
- currentObjectName: string;
449
- results: unknown[];
450
- isVisible: boolean;
451
- } & {}> & {
452
- "onClear-object"?: ((...args: any[]) => any) | undefined;
431
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
432
+ loading: {
433
+ type: BooleanConstructor;
434
+ required: false;
435
+ default: boolean;
436
+ };
437
+ objectType: {
438
+ type: StringConstructor;
439
+ required: true;
440
+ };
441
+ objectParentType: {
442
+ type: StringConstructor;
443
+ required: false;
444
+ default: string;
445
+ };
446
+ errorMessage: {
447
+ type: StringConstructor;
448
+ required: false;
449
+ default: string;
450
+ };
451
+ canCreateNewObject: {
452
+ type: BooleanConstructor;
453
+ required: false;
454
+ default: boolean;
455
+ };
456
+ canClearSelectedObject: {
457
+ type: BooleanConstructor;
458
+ required: false;
459
+ default: boolean;
460
+ };
461
+ currentObjectName: {
462
+ type: StringConstructor;
463
+ required: false;
464
+ default: string;
465
+ };
466
+ results: {
467
+ type: ArrayConstructor;
468
+ required: false;
469
+ default: () => never[];
470
+ };
471
+ isVisible: {
472
+ type: BooleanConstructor;
473
+ required: false;
474
+ default: boolean;
475
+ };
476
+ }>> & {
477
+ onSearch?: ((...args: any[]) => any) | undefined;
453
478
  "onCreate-object"?: ((...args: any[]) => any) | undefined;
479
+ "onClear-object"?: ((...args: any[]) => any) | undefined;
454
480
  "onSelect-object"?: ((...args: any[]) => any) | undefined;
455
- onSearch?: ((...args: any[]) => any) | undefined;
456
481
  "onHide-dropdown"?: ((...args: any[]) => any) | undefined;
457
482
  }, {
458
483
  loading: boolean;
459
484
  objectParentType: string;
460
- errorMessage: string;
461
485
  canCreateNewObject: boolean;
462
486
  canClearSelectedObject: boolean;
463
- currentObjectName: string;
487
+ errorMessage: string;
464
488
  results: unknown[];
489
+ currentObjectName: string;
465
490
  isVisible: boolean;
466
491
  }>;
467
492
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
493
+ focus: null;
468
494
  search: null;
469
495
  'search-parent': null;
470
496
  'create-object': null;
471
497
  'create-parent-object': null;
472
498
  'update:current-object': null;
473
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
474
- localisations?: unknown;
475
- loading?: unknown;
476
- disabled?: unknown;
477
- required?: unknown;
478
- objectType?: unknown;
479
- objectParentType?: unknown;
480
- canCreateNewObject?: unknown;
481
- canClearSelectedObject?: unknown;
482
- errorMessage?: unknown;
483
- objectCreatedResponse?: unknown;
484
- parentObjectCreatedResponse?: unknown;
485
- results?: unknown;
486
- parentResults?: unknown;
487
- currentObject?: unknown;
488
- } & {
489
- required: boolean;
490
- loading: boolean;
491
- disabled: boolean;
492
- objectType: string;
493
- localisations: Record<string, any>;
494
- objectParentType: string;
495
- errorMessage: string;
496
- canCreateNewObject: boolean;
497
- canClearSelectedObject: boolean;
498
- results: unknown[];
499
- objectCreatedResponse: any;
500
- parentObjectCreatedResponse: any;
501
- parentResults: unknown[];
502
- currentObject: any;
503
- } & {}> & {
504
- "onCreate-object"?: ((...args: any[]) => any) | undefined;
499
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
500
+ loading: {
501
+ type: BooleanConstructor;
502
+ required: false;
503
+ default: boolean;
504
+ };
505
+ disabled: {
506
+ type: BooleanConstructor;
507
+ required: false;
508
+ default: boolean;
509
+ };
510
+ required: {
511
+ type: BooleanConstructor;
512
+ required: false;
513
+ default: boolean;
514
+ };
515
+ objectType: {
516
+ type: StringConstructor;
517
+ required: true;
518
+ };
519
+ objectParentType: {
520
+ type: StringConstructor;
521
+ required: false;
522
+ default: string;
523
+ };
524
+ canCreateNewObject: {
525
+ type: BooleanConstructor;
526
+ required: false;
527
+ default: boolean;
528
+ };
529
+ canClearSelectedObject: {
530
+ type: BooleanConstructor;
531
+ required: false;
532
+ default: boolean;
533
+ };
534
+ errorMessage: {
535
+ type: StringConstructor;
536
+ required: false;
537
+ default: string;
538
+ };
539
+ objectCreatedResponse: {
540
+ type: null;
541
+ required: false;
542
+ default: null;
543
+ };
544
+ parentObjectCreatedResponse: {
545
+ type: null;
546
+ required: false;
547
+ default: null;
548
+ };
549
+ results: {
550
+ type: ArrayConstructor;
551
+ required: false;
552
+ default: () => never[];
553
+ };
554
+ parentResults: {
555
+ type: ArrayConstructor;
556
+ required: false;
557
+ default: () => never[];
558
+ };
559
+ currentObject: {
560
+ type: null;
561
+ required: true;
562
+ };
563
+ }>> & {
505
564
  onSearch?: ((...args: any[]) => any) | undefined;
565
+ onFocus?: ((...args: any[]) => any) | undefined;
506
566
  "onSearch-parent"?: ((...args: any[]) => any) | undefined;
567
+ "onCreate-object"?: ((...args: any[]) => any) | undefined;
507
568
  "onCreate-parent-object"?: ((...args: any[]) => any) | undefined;
508
569
  "onUpdate:current-object"?: ((...args: any[]) => any) | undefined;
509
570
  }, {
510
571
  required: boolean;
511
- loading: boolean;
512
572
  disabled: boolean;
513
- localisations: Record<string, any>;
573
+ loading: boolean;
514
574
  objectParentType: string;
515
- errorMessage: string;
516
575
  canCreateNewObject: boolean;
517
576
  canClearSelectedObject: boolean;
518
- results: unknown[];
577
+ errorMessage: string;
519
578
  objectCreatedResponse: any;
520
579
  parentObjectCreatedResponse: any;
580
+ results: unknown[];
521
581
  parentResults: unknown[];
522
- currentObject: any;
523
582
  }>;
524
583
  export default _sfc_main;