@castlabs/ui 7.15.1 → 7.17.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/castlabs-ui-editor.common.js +56 -56
- package/dist/castlabs-ui-editor.common.js.map +1 -1
- package/dist/castlabs-ui-editor.css +1 -1
- package/dist/castlabs-ui-editor.umd.js +57 -57
- package/dist/castlabs-ui-editor.umd.js.map +1 -1
- package/dist/castlabs-ui.common.js +4 -4
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.core.js +31 -13
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.module.d.ts +1 -0
- package/dist/castlabs-ui.module.js +31 -13
- package/dist/castlabs-ui.umd.js +5 -5
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +15 -15
- package/src/styles/fonts/FontAwesome5/index.scss +20 -20
- package/src/styles/layout/helper.scss +3 -3
- package/src/styles/layout/meta.scss +1 -1
- package/src/styles/layout/screenreader.scss +29 -0
- package/src/styles/ui.scss +1 -0
- package/types/castlabs-ui.module.d.ts +1 -0
- package/types/index.d.ts +131 -12
- /package/dist/fonts/{DM_Mono_500.03f95844.woff2 → DM_Mono_500.3f958442.woff2} +0 -0
- /package/dist/fonts/{fa-brands-400.05faf876.woff2 → fa-brands-400.5faf8763.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@castlabs/ui",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.17.0",
|
|
4
4
|
"repository": "https://github.com/castlabs/ui-styleguide",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "A vanilla HTML/CS/JS & Vue.js component library for Castlabs.",
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
"simplebar": "6.3.3"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
45
|
+
"@rollup/rollup-linux-x64-gnu": "4.60.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@castlabs/ui-editor": "file:../castlabs-ui-editor",
|
|
49
49
|
"@tsconfig/node22": "22.0.5",
|
|
50
|
-
"@types/jsdom": "28.0.
|
|
51
|
-
"@types/node": "25.
|
|
52
|
-
"@vitejs/plugin-vue": "6.0.
|
|
53
|
-
"@vitest/eslint-plugin": "1.6.
|
|
50
|
+
"@types/jsdom": "28.0.1",
|
|
51
|
+
"@types/node": "25.5.0",
|
|
52
|
+
"@vitejs/plugin-vue": "6.0.5",
|
|
53
|
+
"@vitest/eslint-plugin": "1.6.13",
|
|
54
54
|
"@vue/eslint-config-prettier": "10.2.0",
|
|
55
55
|
"@vue/eslint-config-typescript": "14.7.0",
|
|
56
56
|
"@vue/test-utils": "2.4.6",
|
|
57
|
-
"@vue/tsconfig": "0.9.
|
|
58
|
-
"core-js": "3.
|
|
57
|
+
"@vue/tsconfig": "0.9.1",
|
|
58
|
+
"core-js": "3.49.0",
|
|
59
59
|
"dree": "5.1.5",
|
|
60
60
|
"eslint-plugin-import": "2.32.0",
|
|
61
61
|
"eslint-plugin-n": "17.24.0",
|
|
@@ -65,19 +65,19 @@
|
|
|
65
65
|
"gulp-concat": "2.6.1",
|
|
66
66
|
"gulp-replace": "1.1.4",
|
|
67
67
|
"gulp": "5.0.1",
|
|
68
|
-
"jsdom": "
|
|
68
|
+
"jsdom": "29.0.1",
|
|
69
69
|
"npm-run-all": "4.1.5",
|
|
70
|
-
"sass": "1.
|
|
70
|
+
"sass": "1.98.0",
|
|
71
71
|
"stylelint-config-sass-guidelines": "13.0.0",
|
|
72
72
|
"stylelint-config-standard-vue": "1.0.0",
|
|
73
73
|
"stylelint-config-standard": "40.0.0",
|
|
74
|
-
"stylelint-order": "
|
|
74
|
+
"stylelint-order": "8.1.1",
|
|
75
75
|
"stylelint-scss": "7.0.0",
|
|
76
76
|
"typescript": "5.9.3",
|
|
77
|
-
"vite": "
|
|
78
|
-
"vitest": "4.
|
|
79
|
-
"vue-tsc": "3.2.
|
|
80
|
-
"vue": "3.5.
|
|
77
|
+
"vite": "8.0.3",
|
|
78
|
+
"vitest": "4.1.1",
|
|
79
|
+
"vue-tsc": "3.2.6",
|
|
80
|
+
"vue": "3.5.31"
|
|
81
81
|
},
|
|
82
82
|
"overrides": {
|
|
83
83
|
"glob": "^13"
|
|
@@ -6062,26 +6062,26 @@ readers don’t read off random characters that represent icons */
|
|
|
6062
6062
|
content: '\f63f';
|
|
6063
6063
|
}
|
|
6064
6064
|
|
|
6065
|
-
.sr-only {
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
}
|
|
6075
|
-
|
|
6076
|
-
.sr-only-focusable:active,
|
|
6077
|
-
.sr-only-focusable:focus {
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
}
|
|
6065
|
+
// .sr-only {
|
|
6066
|
+
// border: 0;
|
|
6067
|
+
// clip: rect(0, 0, 0, 0); /* stylelint-disable-line property-no-deprecated */
|
|
6068
|
+
// height: 1px;
|
|
6069
|
+
// margin: -1px;
|
|
6070
|
+
// overflow: hidden;
|
|
6071
|
+
// padding: 0;
|
|
6072
|
+
// position: absolute;
|
|
6073
|
+
// width: 1px;
|
|
6074
|
+
// }
|
|
6075
|
+
|
|
6076
|
+
// .sr-only-focusable:active,
|
|
6077
|
+
// .sr-only-focusable:focus {
|
|
6078
|
+
// clip: auto; /* stylelint-disable-line property-no-deprecated */
|
|
6079
|
+
// height: auto;
|
|
6080
|
+
// margin: 0;
|
|
6081
|
+
// overflow: visible;
|
|
6082
|
+
// position: static;
|
|
6083
|
+
// width: auto;
|
|
6084
|
+
// }
|
|
6085
6085
|
|
|
6086
6086
|
@font-face {
|
|
6087
6087
|
font-display: block;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group layout
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file defines our screenreader helper classes.
|
|
7
|
+
|
|
8
|
+
@use '../global' as *;
|
|
9
|
+
|
|
10
|
+
.sr-only {
|
|
11
|
+
border: 0;
|
|
12
|
+
clip: rect(0, 0, 0, 0); /* stylelint-disable-line property-no-deprecated */
|
|
13
|
+
height: 1px;
|
|
14
|
+
margin: -1px;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
padding: 0;
|
|
17
|
+
position: absolute;
|
|
18
|
+
width: 1px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.sr-only-focusable:active,
|
|
22
|
+
.sr-only-focusable:focus {
|
|
23
|
+
clip: auto; /* stylelint-disable-line property-no-deprecated */
|
|
24
|
+
height: auto;
|
|
25
|
+
margin: 0;
|
|
26
|
+
overflow: visible;
|
|
27
|
+
position: static;
|
|
28
|
+
width: auto;
|
|
29
|
+
}
|
package/src/styles/ui.scss
CHANGED
|
@@ -57,6 +57,7 @@ declare module '@castlabs/ui/dist/castlabs-ui.module.js' {
|
|
|
57
57
|
sort: (col?: number, order?: string) => 'ASC' | 'DESC' | 'NONE',
|
|
58
58
|
}
|
|
59
59
|
export function clDebounce (callback: any, ms?: number, key?: string): void
|
|
60
|
+
export function clSanitizeId (id: string): string
|
|
60
61
|
|
|
61
62
|
export function clRandomString (length?: number, words?: string[]): string
|
|
62
63
|
export function clRandomList (length?: number, words?: string[]): string[]
|
package/types/index.d.ts
CHANGED
|
@@ -106,15 +106,16 @@ export function clTableSorter (
|
|
|
106
106
|
initialOrder?: string
|
|
107
107
|
): any
|
|
108
108
|
export function clTableSorterObjects<Type> (dataCallback: () => Type[], keys: string[], initialCol?: number, pageNoCallback?: () => number, pageSizeCallback?: () => number): {
|
|
109
|
-
col: number
|
|
110
|
-
order: 'ASC' | 'DESC' | 'NONE'
|
|
111
|
-
set: (col: number, order: string) => void
|
|
112
|
-
get: (col: number) => string
|
|
113
|
-
sorted: Type[]
|
|
114
|
-
sorter: () => any
|
|
115
|
-
sort: (col?: number, order?: string) => 'ASC' | 'DESC' | 'NONE'
|
|
109
|
+
col: number
|
|
110
|
+
order: 'ASC' | 'DESC' | 'NONE'
|
|
111
|
+
set: (col: number, order: string) => void
|
|
112
|
+
get: (col: number) => string
|
|
113
|
+
sorted: Type[]
|
|
114
|
+
sorter: () => any
|
|
115
|
+
sort: (col?: number, order?: string) => 'ASC' | 'DESC' | 'NONE'
|
|
116
116
|
}
|
|
117
117
|
export function clDebounce (callback: any, ms?: number, key?: string): void
|
|
118
|
+
export function clSanitizeId (id: string): string
|
|
118
119
|
|
|
119
120
|
export function clRandomString (length?: number, words?: string[]): string
|
|
120
121
|
export function clRandomList (length?: number, words?: string[]): string[]
|
|
@@ -282,12 +283,130 @@ type CsNavEntry = {
|
|
|
282
283
|
badge: string | undefined
|
|
283
284
|
}
|
|
284
285
|
|
|
286
|
+
type STATE = {
|
|
287
|
+
UNKNOWN: null,
|
|
288
|
+
ACTIVE: number
|
|
289
|
+
PENDING: number
|
|
290
|
+
DELETED: number
|
|
291
|
+
SUSPENDED: number
|
|
292
|
+
}
|
|
293
|
+
|
|
285
294
|
export const CS: {
|
|
286
|
-
SERVICE:
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
295
|
+
SERVICE: {
|
|
296
|
+
CP: string
|
|
297
|
+
CP_TAGLINE: string
|
|
298
|
+
CP_URN: string
|
|
299
|
+
CS: string
|
|
300
|
+
CS_TAGLINE: string
|
|
301
|
+
CS_URN: string
|
|
302
|
+
DT: string
|
|
303
|
+
DT_TAGLINE: string
|
|
304
|
+
DT_URN: string
|
|
305
|
+
DTO: string
|
|
306
|
+
DTO_TAGLINE: string
|
|
307
|
+
DTO_URN: string
|
|
308
|
+
DTS: string
|
|
309
|
+
DTS_TAGLINE: string
|
|
310
|
+
DTS_URN: string
|
|
311
|
+
PP: string
|
|
312
|
+
PP_TAGLINE: string
|
|
313
|
+
PP_URN: string
|
|
314
|
+
PP_URN_ANDROID: string
|
|
315
|
+
PP_URN_BROWSER: string
|
|
316
|
+
PP_URN_GSTREAMER: string
|
|
317
|
+
PP_URN_IOS: string
|
|
318
|
+
PP_URN_REACTNATIVE: string
|
|
319
|
+
PP_URN_WEBRTC: string
|
|
320
|
+
VTK: string
|
|
321
|
+
VTK_TAGLINE: string
|
|
322
|
+
VTK_URN: string
|
|
323
|
+
WM: string
|
|
324
|
+
WM_TAGLINE: string
|
|
325
|
+
WM_URN: string
|
|
326
|
+
}
|
|
327
|
+
ROLE: {
|
|
328
|
+
CS_READONLY: string
|
|
329
|
+
CS_READONLY_URN: string
|
|
330
|
+
|
|
331
|
+
CS_ADMIN: string
|
|
332
|
+
CS_ADMIN_URN: string
|
|
333
|
+
CS_BILLING: string
|
|
334
|
+
CS_BILLING_URN: string
|
|
335
|
+
CS_REPORTS: string
|
|
336
|
+
CS_REPORTS_URN: string
|
|
337
|
+
|
|
338
|
+
PP_ADMIN: string
|
|
339
|
+
PP_ADMIN_URN: string
|
|
340
|
+
PP_USER: string
|
|
341
|
+
PP_USER_URN: string
|
|
342
|
+
|
|
343
|
+
DT_MEMBERS: string
|
|
344
|
+
DT_MEMBERS_URN: string
|
|
345
|
+
DT_SUBORGS: string
|
|
346
|
+
DT_SUBORGS_URN: string
|
|
347
|
+
DT_CONFIGURATION: string
|
|
348
|
+
DT_CONFIGURATION_URN: string
|
|
349
|
+
DT_KEYS_DELETE: string
|
|
350
|
+
DT_KEYS_DELETE_URN: string
|
|
351
|
+
DT_KEYS_INGEST: string
|
|
352
|
+
DT_KEYS_INGEST_URN: string
|
|
353
|
+
DT_ASSETS: string
|
|
354
|
+
DT_ASSETS_URN: string
|
|
355
|
+
DT_DELIVERIES: string
|
|
356
|
+
DT_DELIVERIES_URN: string
|
|
357
|
+
|
|
358
|
+
DTO_DEVICES: string
|
|
359
|
+
DTO_DEVICES_URN: string
|
|
360
|
+
DTO_KEYBOX: string
|
|
361
|
+
DTO_KEYBOX_URN: string
|
|
362
|
+
DTO_DOWNLOAD: string
|
|
363
|
+
DTO_DOWNLOAD_URN: string
|
|
364
|
+
DTO_REPORTS: string
|
|
365
|
+
DTO_REPORTS_URN: string
|
|
366
|
+
DTO_CONFIGURATION: string
|
|
367
|
+
DTO_CONFIGURATION_URN: string
|
|
368
|
+
|
|
369
|
+
DTS_MEMBERS: string
|
|
370
|
+
DTS_MEMBERS_URN: string
|
|
371
|
+
DTS_SUBORGS: string
|
|
372
|
+
DTS_SUBORGS_URN: string
|
|
373
|
+
DTS_CONFIGURATION: string
|
|
374
|
+
DTS_CONFIGURATION_URN: string
|
|
375
|
+
DTS_KEYS_DELETE: string
|
|
376
|
+
DTS_KEYS_DELETE_URN: string
|
|
377
|
+
DTS_KEYS_INGEST: string
|
|
378
|
+
DTS_KEYS_INGEST_URN: string
|
|
379
|
+
DTS_ASSETS: string
|
|
380
|
+
DTS_ASSETS_URN: string
|
|
381
|
+
DTS_DELIVERIES: string
|
|
382
|
+
DTS_DELIVERIES_URN: string
|
|
383
|
+
|
|
384
|
+
VTK_ADMIN: string
|
|
385
|
+
VTK_ADMIN_URN: string
|
|
386
|
+
VTK_USER: string
|
|
387
|
+
VTK_USER_URN: string
|
|
388
|
+
|
|
389
|
+
CP_USER: string
|
|
390
|
+
CP_USER_URN: string
|
|
391
|
+
|
|
392
|
+
WM_DEMO: string
|
|
393
|
+
WM_DEMO_URN: string
|
|
394
|
+
WM_EXTRACTION: string
|
|
395
|
+
WM_EXTRACTION_URN: string
|
|
396
|
+
}
|
|
397
|
+
STATE: STATE
|
|
398
|
+
LICENSE_STATE: {
|
|
399
|
+
APPROVAL_REQUIRED: number
|
|
400
|
+
APPROVAL_DENIED: number
|
|
401
|
+
APPROVAL_REVOKED: number
|
|
402
|
+
} & STATE
|
|
403
|
+
PLAN: {
|
|
404
|
+
UNKNOWN: null,
|
|
405
|
+
TRIAL: number
|
|
406
|
+
STARTER: number
|
|
407
|
+
ENTERPRISE: number
|
|
408
|
+
CUSTOM: number
|
|
409
|
+
}
|
|
291
410
|
APPS: Record<string, CsApp>
|
|
292
411
|
}
|
|
293
412
|
|
|
File without changes
|
|
File without changes
|