@ldmjs/ui 1.0.61 → 1.0.62
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/README.md +2 -0
- package/dist/css/index.css +18 -17
- package/dist/index.js +15756 -14762
- package/dist/lib/calendar.js +1 -1
- package/dist/lib/floating.js +1 -1
- package/dist/lib/toastification.js +1 -1
- package/dist/scss/_chip.scss +9 -0
- package/dist/scss/_inputs.scss +13 -0
- package/dist/scss/_time.scss +42 -0
- package/dist/scss/_toasted.scss +411 -411
- package/dist/scss/index.scss +1 -0
- package/dist/types/calendar.d.ts +23 -18
- package/dist/types/options.d.ts +11 -8
- package/package.json +16 -8
package/dist/scss/index.scss
CHANGED
package/dist/types/calendar.d.ts
CHANGED
|
@@ -1,36 +1,41 @@
|
|
|
1
1
|
export interface IAttr {
|
|
2
2
|
// An optional key can be used for retrieving this attribute later,
|
|
3
3
|
// and will most likely be derived from your data object
|
|
4
|
-
key: Any
|
|
4
|
+
key: Any;
|
|
5
5
|
// Attribute type definitions
|
|
6
|
-
content?: string
|
|
7
|
-
highlight: boolean | string | IHighlight
|
|
8
|
-
dot?: boolean
|
|
9
|
-
bar?: boolean
|
|
6
|
+
content?: string; // Boolean, String, Object
|
|
7
|
+
highlight: boolean | string | IHighlight; // Boolean, String, Object
|
|
8
|
+
dot?: boolean; // Boolean, String, Object
|
|
9
|
+
bar?: boolean; // Boolean, String, Object
|
|
10
10
|
popover?: {
|
|
11
|
-
label: string
|
|
12
|
-
visibility: 'hover' | 'click'
|
|
13
|
-
hideIndicator: boolean
|
|
14
|
-
}
|
|
11
|
+
label: string;
|
|
12
|
+
visibility: 'hover' | 'click';
|
|
13
|
+
hideIndicator: boolean;
|
|
14
|
+
};
|
|
15
15
|
// Your custom data object for later access, if needed
|
|
16
|
-
customData?: Record<string, unknown
|
|
16
|
+
customData?: Record<string, unknown>;
|
|
17
17
|
// We also need some dates to know where to display the attribute
|
|
18
18
|
// We use a single date here, but it could also be an array of dates,
|
|
19
19
|
// a date range or a complex date pattern.
|
|
20
|
-
dates: Date | Array<Date
|
|
20
|
+
dates: Date | Array<Date>;
|
|
21
21
|
// Think of `order` like `z-index`
|
|
22
22
|
order?: number;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export type Attributes = Array<IAttr
|
|
25
|
+
export type Attributes = Array<IAttr>;
|
|
26
|
+
|
|
27
|
+
export interface ICalendarDay {
|
|
28
|
+
date: Date;
|
|
29
|
+
}
|
|
26
30
|
|
|
27
31
|
interface IHighlight {
|
|
28
|
-
color?: string
|
|
29
|
-
fillMode?: string
|
|
30
|
-
class?: string
|
|
31
|
-
style?: Record<string, string
|
|
32
|
-
contentClass?: string
|
|
33
|
-
contentStyle?: Record<string, string
|
|
32
|
+
color?: string;
|
|
33
|
+
fillMode?: string; // solid (default), light, outline.
|
|
34
|
+
class?: string; // Class to apply to the highlight background element.
|
|
35
|
+
style?: Record<string, string>; // Style to apply to the highlight background element.
|
|
36
|
+
contentClass?: string; // Class to apply to the highlight content element.
|
|
37
|
+
contentStyle?: Record<string, string>; // Style to apply to the highlight content element.
|
|
38
|
+
hightlight?: boolean;
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
interface IPage {
|
package/dist/types/options.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable-next-line @typescript-eslint/naming-convention */
|
|
1
2
|
export interface ldmuiOptions {
|
|
2
3
|
aliases?: {
|
|
3
4
|
'ld-button'?: string;
|
|
@@ -27,29 +28,31 @@ export interface ldmuiOptions {
|
|
|
27
28
|
'ld-dialog'?: string;
|
|
28
29
|
'ld-data-iterator'?: string;
|
|
29
30
|
'ld-pager'?: string;
|
|
30
|
-
|
|
31
|
+
'ld-edit-list-box'?: string;
|
|
32
|
+
'ld-time'?: string;
|
|
33
|
+
};
|
|
31
34
|
viewport?: {
|
|
32
35
|
isMobile: string;
|
|
33
36
|
isTablet: string;
|
|
34
37
|
isDesktop: string;
|
|
35
|
-
}
|
|
38
|
+
};
|
|
36
39
|
language?: string;
|
|
37
40
|
LdIcon?: {
|
|
38
41
|
path: string;
|
|
39
42
|
map: {
|
|
40
43
|
icons: Array<[string, string]>;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
44
|
+
};
|
|
45
|
+
};
|
|
43
46
|
LdBreadcrumbs?: {
|
|
44
47
|
home: {
|
|
45
48
|
name: string;
|
|
46
49
|
path: string;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
50
|
+
};
|
|
51
|
+
};
|
|
49
52
|
LdTabs?: {
|
|
50
53
|
header: string;
|
|
51
|
-
}
|
|
54
|
+
};
|
|
52
55
|
LdPager?: {
|
|
53
56
|
entityName: (contentType: unknown, count: number) => string;
|
|
54
|
-
}
|
|
57
|
+
};
|
|
55
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldmjs/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
4
4
|
"description": "ldm ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -17,18 +17,15 @@
|
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "
|
|
20
|
+
"url": ""
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"ldm",
|
|
24
24
|
"ui"
|
|
25
25
|
],
|
|
26
|
-
"author": "
|
|
26
|
+
"author": "LANIT",
|
|
27
27
|
"license": "MIT",
|
|
28
|
-
"
|
|
29
|
-
"url": "https://github.com/ldmjs/ui/issues"
|
|
30
|
-
},
|
|
31
|
-
"homepage": "https://github.com/ldmjs/ui#readme",
|
|
28
|
+
"homepage": "",
|
|
32
29
|
"files": [
|
|
33
30
|
"dist/"
|
|
34
31
|
],
|
|
@@ -43,7 +40,6 @@
|
|
|
43
40
|
"@babel/preset-env": "7.23.6",
|
|
44
41
|
"@babel/preset-typescript": "7.23.3",
|
|
45
42
|
"@floating-ui/dom": "1.6.3",
|
|
46
|
-
"@ldmjs/core": "1.0.0",
|
|
47
43
|
"@ldmjs/datatable": "1.0.9",
|
|
48
44
|
"@ldmjs/editor": "1.0.1",
|
|
49
45
|
"@ldmjs/treeview": "1.0.1",
|
|
@@ -67,6 +63,14 @@
|
|
|
67
63
|
"cross-env": "7.0.3",
|
|
68
64
|
"css-loader": "6.8.1",
|
|
69
65
|
"eslint": "8.56.0",
|
|
66
|
+
"eslint-config-prettier": "8.10.0",
|
|
67
|
+
"eslint-formatter-friendly": "7.0.0",
|
|
68
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
69
|
+
"eslint-plugin-promise": "5.1.0",
|
|
70
|
+
"eslint-plugin-simple-import-sort": "10.0.0",
|
|
71
|
+
"eslint-plugin-vue": "9.21.1",
|
|
72
|
+
"eslint-plugin-vuetify": "2.1.1",
|
|
73
|
+
"eslint-webpack-plugin": "3.2.0",
|
|
70
74
|
"html-webpack-plugin": "5.6.0",
|
|
71
75
|
"imask": "7.6.1",
|
|
72
76
|
"jest": "29.2.2",
|
|
@@ -78,6 +82,7 @@
|
|
|
78
82
|
"md-editor-v3": "4.15.6",
|
|
79
83
|
"mini-css-extract-plugin": "2.8.0",
|
|
80
84
|
"postcss-loader": "7.3.3",
|
|
85
|
+
"prettier": "3.4.2",
|
|
81
86
|
"sass": "1.83.0",
|
|
82
87
|
"sass-loader": "16.0.3",
|
|
83
88
|
"style-loader": "4.0.0",
|
|
@@ -99,6 +104,9 @@
|
|
|
99
104
|
"webpack-dev-server": "5.1.0",
|
|
100
105
|
"webpack-plugin-vuetify": "3.0.3"
|
|
101
106
|
},
|
|
107
|
+
"dependencies": {
|
|
108
|
+
"@ldmjs/core": "1.0.0"
|
|
109
|
+
},
|
|
102
110
|
"volta": {
|
|
103
111
|
"node": "18.20.3",
|
|
104
112
|
"yarn": "4.5.0"
|