@castlabs/ui 8.5.1 → 8.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/castlabs-ui.common.js +2 -2
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.core.js +11 -11
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.module.d.ts +4 -2
- package/dist/castlabs-ui.module.js +12 -12
- package/dist/castlabs-ui.umd.js +3 -3
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/layout/meta.scss +1 -1
- package/types/castlabs-ui.module.d.ts +4 -2
- package/types/index.d.ts +19 -4
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
|
|
3
|
-
// this contains general non-vue types
|
|
3
|
+
// hint: this contains general non-vue types
|
|
4
|
+
// hint: methods starting in _ are lib-internal and should not be typed/exposed
|
|
4
5
|
|
|
5
6
|
declare module '@castlabs/ui/dist/castlabs-ui.module.js' {
|
|
6
7
|
export function clScrollToId (id: string, smooth?: boolean): void
|
|
@@ -24,8 +25,9 @@ declare module '@castlabs/ui/dist/castlabs-ui.module.js' {
|
|
|
24
25
|
export function clFormAutofocus (id: string): void
|
|
25
26
|
|
|
26
27
|
export function clFormatFilesize (bytes: number): string
|
|
28
|
+
export function clFormatDateUTC (date: Date): string
|
|
27
29
|
export function clFormatDate (date: Date): string
|
|
28
|
-
export function clFormatTimeUTC (date: Date): string
|
|
30
|
+
export function clFormatTimeUTC (date: Date, seconds?: boolean): string
|
|
29
31
|
export function clFormatDateTimeUTC (date: Date, seconds?: boolean): string
|
|
30
32
|
export function clFormatDateTimeTabularUTC (date: Date, year?:boolean, month?:boolean, day?:boolean, time?:boolean, seconds?:boolean): string
|
|
31
33
|
export function clFormatDuration (from: Date, until: Date, seconds?: boolean, ms?: boolean): string
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { App, DefineComponent } from 'vue'
|
|
1
|
+
import type { App, DefineComponent, Directive } from 'vue'
|
|
2
2
|
import type { Router } from 'vue-router'
|
|
3
3
|
|
|
4
|
+
// hint: methods starting in _ are lib-internal and should not be typed/exposed
|
|
5
|
+
|
|
4
6
|
declare function install (Vue: App): void
|
|
5
7
|
export default install
|
|
6
8
|
|
|
@@ -43,9 +45,11 @@ export const ClTableCelCurrency: DefineComponent
|
|
|
43
45
|
export const ClTableCelDate: DefineComponent
|
|
44
46
|
export const ClTableCelId: DefineComponent
|
|
45
47
|
export const ClTableCelLinks: DefineComponent
|
|
48
|
+
export const ClTableCelTime: DefineComponent
|
|
46
49
|
export const ClTableCelUuid: DefineComponent
|
|
47
50
|
export const ClTableFootChecked: DefineComponent
|
|
48
51
|
export const ClTableHead: DefineComponent
|
|
52
|
+
export const ClTableRow: DefineComponent
|
|
49
53
|
export const ClTabs: DefineComponent
|
|
50
54
|
export const ClToggle: DefineComponent
|
|
51
55
|
|
|
@@ -70,6 +74,7 @@ export function clScrollToId (id: string, smooth?: boolean): void
|
|
|
70
74
|
export function clModalHide(): void
|
|
71
75
|
export function clModalShow (id: string, value?: any): void
|
|
72
76
|
export function clModalValue (id: string): any
|
|
77
|
+
export function clModalIsShown (modalId?: string): boolean
|
|
73
78
|
export function clModalWasShown (): boolean
|
|
74
79
|
export function clModalBack (to: any): boolean
|
|
75
80
|
|
|
@@ -85,8 +90,9 @@ export function clFormFieldFocusFirstInvalid (id: string, moreSelectors?: string
|
|
|
85
90
|
export function clFormAutofocus (id: string): void
|
|
86
91
|
|
|
87
92
|
export function clFormatFilesize (bytes: number): string
|
|
93
|
+
export function clFormatDateUTC (date: Date): string
|
|
88
94
|
export function clFormatDate (date: Date): string
|
|
89
|
-
export function clFormatTimeUTC (date: Date): string
|
|
95
|
+
export function clFormatTimeUTC (date: Date, seconds?: boolean): string
|
|
90
96
|
export function clFormatDateTimeUTC (date: Date, seconds?: boolean): string
|
|
91
97
|
export function clFormatDateTimeTabularUTC (date: Date, year?:boolean, month?:boolean, day?:boolean, time?:boolean, seconds?:boolean): string
|
|
92
98
|
export function clFormatDuration (from: Date, until: Date, seconds?: boolean, ms?: boolean): string
|
|
@@ -153,6 +159,9 @@ export function clMatch (string: string, expression?: string, caseSensitive?: bo
|
|
|
153
159
|
|
|
154
160
|
// --- utils/vue ---------------------------------------------------------------
|
|
155
161
|
|
|
162
|
+
export const clVTooltip: Directive
|
|
163
|
+
export const clVClipboard: Directive
|
|
164
|
+
|
|
156
165
|
export function clRefClField (ref: unknown): typeof ClField
|
|
157
166
|
export function clRefClFieldGroup (ref: unknown): typeof ClFieldGroup
|
|
158
167
|
export function clRefFocus (ref: unknown): void
|
|
@@ -220,6 +229,7 @@ export function clGetServices (): ClService[]
|
|
|
220
229
|
|
|
221
230
|
export const NAV: {
|
|
222
231
|
CP: ClService
|
|
232
|
+
CPS: ClService
|
|
223
233
|
CS: ClService
|
|
224
234
|
DT: ClService
|
|
225
235
|
DTS: ClService
|
|
@@ -227,6 +237,7 @@ export const NAV: {
|
|
|
227
237
|
PP: ClService
|
|
228
238
|
WM: ClService
|
|
229
239
|
VTK: ClService
|
|
240
|
+
VTKS: ClService
|
|
230
241
|
}
|
|
231
242
|
|
|
232
243
|
// --- Central Services -----------------------------------------------------------
|
|
@@ -350,6 +361,9 @@ export const CS: {
|
|
|
350
361
|
CP: string
|
|
351
362
|
CP_TAGLINE: string
|
|
352
363
|
CP_URN: string
|
|
364
|
+
CPS: string
|
|
365
|
+
CPS_TAGLINE: string
|
|
366
|
+
CPS_URN: string
|
|
353
367
|
CS: string
|
|
354
368
|
CS_TAGLINE: string
|
|
355
369
|
CS_URN: string
|
|
@@ -374,6 +388,9 @@ export const CS: {
|
|
|
374
388
|
VTK: string
|
|
375
389
|
VTK_TAGLINE: string
|
|
376
390
|
VTK_URN: string
|
|
391
|
+
VTKS: string
|
|
392
|
+
VTKS_TAGLINE: string
|
|
393
|
+
VTKS_URN: string
|
|
377
394
|
WM: string
|
|
378
395
|
WM_TAGLINE: string
|
|
379
396
|
WM_URN: string
|
|
@@ -435,8 +452,6 @@ export const CS: {
|
|
|
435
452
|
DTS_DELIVERIES: string
|
|
436
453
|
DTS_DELIVERIES_URN: string
|
|
437
454
|
|
|
438
|
-
VTK_ADMIN: string
|
|
439
|
-
VTK_ADMIN_URN: string
|
|
440
455
|
VTK_USER: string
|
|
441
456
|
VTK_USER_URN: string
|
|
442
457
|
|