@3squared/forge-ui-3 0.7.2 → 0.9.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/esm/forge-ui-3.js +749 -642
- package/dist/esm/style.css +2 -2
- package/dist/src/components/ForgeTile.vue.d.ts +4 -0
- package/dist/src/components/table/ForgeFilterHeader.vue.d.ts +38 -9
- package/dist/src/components/table/ForgeTable.vue.d.ts +1 -1
- package/dist/src/passthroughs/Dropdown.pt.d.ts +1 -0
- package/dist/src/passthroughs/Multiselect.pt.d.ts +7 -1
- package/package.json +4 -4
- package/src/styles/components/_tile.scss +32 -33
- package/src/styles/utilities/_utilities.scss +8 -0
|
@@ -4,6 +4,7 @@ export interface ForgeTileProps {
|
|
|
4
4
|
severity: Severity;
|
|
5
5
|
barPosition: BarPosition;
|
|
6
6
|
clickable: boolean;
|
|
7
|
+
selected?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare function __VLS_template(): {
|
|
9
10
|
default?(_: {}): any;
|
|
@@ -12,12 +13,15 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
12
13
|
severity: string;
|
|
13
14
|
barPosition: string;
|
|
14
15
|
clickable: boolean;
|
|
16
|
+
selected: boolean;
|
|
15
17
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeTileProps>, {
|
|
16
18
|
severity: string;
|
|
17
19
|
barPosition: string;
|
|
18
20
|
clickable: boolean;
|
|
21
|
+
selected: boolean;
|
|
19
22
|
}>>>, {
|
|
20
23
|
severity: Severity;
|
|
24
|
+
selected: boolean;
|
|
21
25
|
barPosition: BarPosition;
|
|
22
26
|
clickable: boolean;
|
|
23
27
|
}, {}>;
|
|
@@ -1,15 +1,44 @@
|
|
|
1
1
|
export interface ForgeFilterHeaderProps {
|
|
2
2
|
dataType: 'numeric' | 'date' | 'multiselect' | 'select' | undefined;
|
|
3
3
|
dropdownOptions?: any[];
|
|
4
|
+
showClearButton?: boolean;
|
|
5
|
+
clearFilter?: Function;
|
|
4
6
|
}
|
|
5
|
-
declare const _default: import('vue').DefineComponent<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
declare const _default: import('vue').DefineComponent<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
required: true;
|
|
10
|
+
type: import('vue').PropType<any>;
|
|
11
|
+
};
|
|
12
|
+
dataType: {
|
|
13
|
+
type: import('vue').PropType<"numeric" | "date" | "select" | "multiselect" | undefined>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
dropdownOptions: {
|
|
17
|
+
type: import('vue').PropType<any[]>;
|
|
18
|
+
};
|
|
19
|
+
showClearButton: {
|
|
20
|
+
type: import('vue').PropType<boolean>;
|
|
21
|
+
};
|
|
22
|
+
clearFilter: {
|
|
23
|
+
type: import('vue').PropType<Function>;
|
|
24
|
+
};
|
|
25
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
+
modelValue: {
|
|
27
|
+
required: true;
|
|
28
|
+
type: import('vue').PropType<any>;
|
|
29
|
+
};
|
|
30
|
+
dataType: {
|
|
31
|
+
type: import('vue').PropType<"numeric" | "date" | "select" | "multiselect" | undefined>;
|
|
13
32
|
required: true;
|
|
14
33
|
};
|
|
15
|
-
|
|
34
|
+
dropdownOptions: {
|
|
35
|
+
type: import('vue').PropType<any[]>;
|
|
36
|
+
};
|
|
37
|
+
showClearButton: {
|
|
38
|
+
type: import('vue').PropType<boolean>;
|
|
39
|
+
};
|
|
40
|
+
clearFilter: {
|
|
41
|
+
type: import('vue').PropType<Function>;
|
|
42
|
+
};
|
|
43
|
+
}>>, {}, {}>;
|
|
44
|
+
export default _default;
|
|
@@ -38,8 +38,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
38
38
|
"onUpdate:filters"?: ((...args: any[]) => any) | undefined;
|
|
39
39
|
"onUpdate:tableContext"?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
}, {
|
|
41
|
-
legacyPaginationFooter: boolean;
|
|
42
41
|
showClearButton: boolean;
|
|
42
|
+
legacyPaginationFooter: boolean;
|
|
43
43
|
showExporterButton: boolean;
|
|
44
44
|
stickyHeader: boolean;
|
|
45
45
|
paginator: boolean;
|
|
@@ -11,13 +11,19 @@ declare const _default: {
|
|
|
11
11
|
list: string;
|
|
12
12
|
item: string;
|
|
13
13
|
header: string;
|
|
14
|
+
labelContainer: string;
|
|
15
|
+
label: string;
|
|
14
16
|
filterContainer: string;
|
|
15
17
|
filterIcon: string;
|
|
16
18
|
filterInput: string;
|
|
17
19
|
closeButton: string;
|
|
18
20
|
hiddenInput: string;
|
|
19
21
|
emptymessage: string;
|
|
20
|
-
trigger:
|
|
22
|
+
trigger: ({ state }: MultiSelectPassThroughMethodOptions) => {
|
|
23
|
+
class: (string | {
|
|
24
|
+
'rotate-180': boolean;
|
|
25
|
+
})[];
|
|
26
|
+
};
|
|
21
27
|
};
|
|
22
28
|
};
|
|
23
29
|
export default _default;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@3squared/forge-ui-3",
|
|
3
3
|
"repository": "https://github.com/3Squared/ForgeUI-3",
|
|
4
4
|
"description": "ForgeUI 3 is Vue 3 UI Library which combines a variety of popular packages to create a consistent UI for your application.",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.9.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"contributors": [
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"cypress": "13.13.1",
|
|
49
49
|
"cypress-real-events": "1.13.0",
|
|
50
50
|
"sass": "1.77.8",
|
|
51
|
-
"typescript": "5.5.
|
|
51
|
+
"typescript": "5.5.4",
|
|
52
52
|
"unplugin-vue-components": "0.27.3",
|
|
53
53
|
"rollup-plugin-visualizer": "5.12.0",
|
|
54
|
-
"vite": "5.3.
|
|
54
|
+
"vite": "5.3.5",
|
|
55
55
|
"vite-bundle-visualizer": "1.2.1",
|
|
56
56
|
"vite-plugin-istanbul": "6.0.2",
|
|
57
57
|
"vitest": "1.6.0",
|
|
58
58
|
"vite-plugin-dts": "3.9.1"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
61
|
+
"@rollup/rollup-linux-x64-gnu": "4.19.1"
|
|
62
62
|
},
|
|
63
63
|
"nyc": {
|
|
64
64
|
"all": true,
|
|
@@ -8,55 +8,54 @@
|
|
|
8
8
|
} @else if $color == secondary {
|
|
9
9
|
@return #E5E5E5;
|
|
10
10
|
} @else if $color == brand {
|
|
11
|
-
@return map-get($subtle-colors, "brand-shade-2")
|
|
11
|
+
@return map-get($subtle-colors, "brand-shade-2")
|
|
12
12
|
} @else {
|
|
13
13
|
@return #B9D5E7;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@each $color, $value in $base-colors {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
.tile-#{$color} {
|
|
19
|
+
@if $color == brand {
|
|
20
|
+
background-color: map-get($subtle-colors, $color + "-shade-1") !important;
|
|
21
|
+
} @else {
|
|
22
|
+
background-color: map-get($subtle-colors, $color + "-subtle") !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
color: $black !important;
|
|
26
|
+
text-align: start !important;
|
|
27
|
+
border: none;
|
|
28
|
+
|
|
29
|
+
&.tile-bar-top {
|
|
30
|
+
@extend .rounded-top;
|
|
31
|
+
border: none;
|
|
32
|
+
border-top: 8px solid map-get($base-colors, $color) !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.tile-bar-left {
|
|
36
|
+
@extend .rounded-start;
|
|
37
|
+
border: none;
|
|
38
|
+
border-left: 8px solid map-get($base-colors, $color) !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.selected {
|
|
42
|
+
border: 2px solid;
|
|
43
|
+
border-color: map-get($base-colors, $color) !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
32
46
|
|
|
33
47
|
.btn.btn-#{$color}.tile-#{$color} {
|
|
48
|
+
border-color: map-get($subtle-colors, $color + "-subtle");
|
|
34
49
|
&:hover {
|
|
35
50
|
background-color: getHoverColour($color) !important;
|
|
36
51
|
}
|
|
37
|
-
|
|
52
|
+
|
|
38
53
|
&:active {
|
|
39
54
|
background-color: map-get($subtle-colors, $color + "-subtle") !important;
|
|
40
55
|
}
|
|
41
|
-
|
|
42
|
-
&.tile-bar-left, &.tile-bar-top {
|
|
43
|
-
border-color: map-get($base-colors, $color) !important
|
|
44
|
-
}
|
|
45
|
-
|
|
56
|
+
|
|
46
57
|
&:focus {
|
|
47
58
|
background-color: map-get($subtle-colors, $color + "-subtle") !important;
|
|
48
59
|
}
|
|
49
60
|
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.tile-bar-top {
|
|
53
|
-
@extend .rounded-top;
|
|
54
|
-
border: none !important;
|
|
55
|
-
border-top: 8px solid !important;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.tile-bar-left {
|
|
59
|
-
@extend .rounded-start;
|
|
60
|
-
border: none !important;
|
|
61
|
-
border-left: 8px solid !important;
|
|
62
61
|
}
|