@inriver/inri 1.26.0 → 1.28.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/.changeset/calm-comics-help.md +5 -0
- package/.changeset/witty-trains-attend.md +5 -0
- package/CHANGELOG.md +33 -2
- package/configs/base-tailwind-config.js +3 -0
- package/main.d.ts +10 -0
- package/package.json +2 -1
- package/src/components/CSelect.vue +11 -7
- package/src/layouts/layout-fragments/CPageTitle.vue +9 -3
- package/src/plugins/inriverQuasarComponentConfigurations.ts +7 -7
- package/src/styles/_components.scss +12 -0
- package/src/styles/_css-variables.scss +1 -0
- package/src/styles/_fonts.scss +26 -0
- package/src/styles/main.scss +2 -39
- package/src/utils/colorUtils.ts +5 -5
- package/tsconfig.json +1 -1
- package/componentProperties.d.ts +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @inriver/inri
|
|
2
2
|
|
|
3
|
+
## 1.28.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update documentation
|
|
8
|
+
- Wallop font is now included in the package
|
|
9
|
+
- Updating README and exporting tailwing config
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fix CSelect placeholder color. Modularize Sass imports. Include inri typings when bundling
|
|
14
|
+
- Fix Sass warnings and errors by removing usage of @apply and updating Quasar + sass dependencies
|
|
15
|
+
- Add support for hiding the sidebars in CLayoutWithSidebars. Add support for entering a custom title in CLayoutWithSidebars
|
|
16
|
+
- Add support for showing placeholder ()in CSelect eoutside of use-input mode
|
|
17
|
+
- Fix error when CSelect is passed object options with falsy values
|
|
18
|
+
|
|
19
|
+
## 1.27.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- Update documentation
|
|
24
|
+
- Wallop font is now included in the package
|
|
25
|
+
- Updating README and exporting tailwing config
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Fix CSelect placeholder color. Modularize Sass imports. Include inri typings when bundling
|
|
30
|
+
- Fix Sass warnings and errors by removing usage of @apply and updating Quasar + sass dependencies
|
|
31
|
+
- Add support for hiding the sidebars in CLayoutWithSidebars. Add support for entering a custom title in CLayoutWithSidebars
|
|
32
|
+
- Add support for showing placeholder ()in CSelect eoutside of use-input mode
|
|
33
|
+
|
|
3
34
|
## 1.26.0
|
|
4
35
|
|
|
5
36
|
### Minor Changes
|
|
@@ -7,7 +38,7 @@
|
|
|
7
38
|
- Update documentation
|
|
8
39
|
- Wallop font is now included in the package
|
|
9
40
|
- Updating README and exporting tailwing config
|
|
10
|
-
- Add support for hiding the sidebars in CLayoutWithSidebars.
|
|
41
|
+
- Add support for hiding the sidebars in CLayoutWithSidebars.
|
|
11
42
|
- Add support for entering a custom title in CLayoutWithSidebars
|
|
12
43
|
- Add support for showing placeholder in CSelect outside of use-input mode
|
|
13
44
|
|
|
@@ -22,7 +53,7 @@
|
|
|
22
53
|
- Update documentation
|
|
23
54
|
- Wallop font is now included in the package
|
|
24
55
|
- Updating README and exporting tailwing config
|
|
25
|
-
- Add support for hiding the sidebars in CLayoutWithSidebars.
|
|
56
|
+
- Add support for hiding the sidebars in CLayoutWithSidebars.
|
|
26
57
|
- Add support for entering a custom title in CLayoutWithSidebars
|
|
27
58
|
|
|
28
59
|
### Patch Changes
|
|
@@ -9,6 +9,7 @@ export const baseTailwindConfig = {
|
|
|
9
9
|
},
|
|
10
10
|
colors: {
|
|
11
11
|
current: 'currentColor',
|
|
12
|
+
transparent: 'transparent',
|
|
12
13
|
|
|
13
14
|
grey: 'var(--color-grey)',
|
|
14
15
|
'grey-light': 'var(--color-grey-light)',
|
|
@@ -30,6 +31,7 @@ export const baseTailwindConfig = {
|
|
|
30
31
|
green: 'var(--color-green)',
|
|
31
32
|
'green-light': 'var(--color-green-light)',
|
|
32
33
|
'green-light-30': 'var(--color-green-light-30)',
|
|
34
|
+
'green-light-60': 'var(--color-green-light-60)',
|
|
33
35
|
|
|
34
36
|
primary: 'var(--q-primary)',
|
|
35
37
|
'on-primary': 'var(--on-primary-color)',
|
|
@@ -89,6 +91,7 @@ export const baseTailwindConfig = {
|
|
|
89
91
|
'bg-yellow-light',
|
|
90
92
|
'bg-green-light',
|
|
91
93
|
'bg-green-light-30',
|
|
94
|
+
'bg-green-light-60',
|
|
92
95
|
|
|
93
96
|
'text-blue-light',
|
|
94
97
|
'text-purple-light',
|
package/main.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GlobalComponents as inriGlobalComponents,
|
|
3
|
+
ComponentCustomProperties as inriComponentCustomProperties,
|
|
4
|
+
} from './src/typings'
|
|
5
|
+
|
|
6
|
+
declare module 'vue' {
|
|
7
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
8
|
+
export interface GlobalComponents extends inriGlobalComponents {}
|
|
9
|
+
export interface ComponentCustomProperties extends inriComponentCustomProperties {}
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -18,12 +18,14 @@
|
|
|
18
18
|
@update:model-value="onModelUpdate"
|
|
19
19
|
>
|
|
20
20
|
<template
|
|
21
|
-
v-if="!useInput && modelValue === null"
|
|
21
|
+
v-if="!useInput && (modelValue === undefined || modelValue === null)"
|
|
22
22
|
#selected
|
|
23
23
|
>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
<slot name="placeholder">
|
|
25
|
+
<div class="text-grey">
|
|
26
|
+
{{ selectedPlaceholder }}
|
|
27
|
+
</div>
|
|
28
|
+
</slot>
|
|
27
29
|
</template>
|
|
28
30
|
|
|
29
31
|
<template #no-option>
|
|
@@ -84,7 +86,7 @@
|
|
|
84
86
|
</template>
|
|
85
87
|
|
|
86
88
|
<script setup lang="ts">
|
|
87
|
-
import { computed, ref, toRef, useAttrs } from 'vue'
|
|
89
|
+
import { PropType, computed, ref, toRef, useAttrs } from 'vue'
|
|
88
90
|
import { QSelect } from 'quasar'
|
|
89
91
|
import useSelectable from '../composables/useSelectable'
|
|
90
92
|
|
|
@@ -97,7 +99,7 @@ defineExpose({
|
|
|
97
99
|
|
|
98
100
|
const props = defineProps({
|
|
99
101
|
modelValue: {
|
|
100
|
-
type: [Object, String, Number, Boolean, Array]
|
|
102
|
+
type: [Object, String, Number, Boolean, Array, null] as PropType<Object | String | Number | Boolean | Array<any> | null>,
|
|
101
103
|
default: undefined,
|
|
102
104
|
},
|
|
103
105
|
options: {
|
|
@@ -142,7 +144,9 @@ const selectedPlaceholder = computed(() => {
|
|
|
142
144
|
})
|
|
143
145
|
|
|
144
146
|
function getOptionLabel (opt) {
|
|
145
|
-
return opt
|
|
147
|
+
return typeof opt === 'object' && opt !== null && props.optionLabel in opt
|
|
148
|
+
? opt[props.optionLabel]
|
|
149
|
+
: opt
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
function filter (val, update) {
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
data-id="page-title"
|
|
8
8
|
class="truncate flex-1"
|
|
9
9
|
>
|
|
10
|
-
|
|
10
|
+
<slot>
|
|
11
|
+
{{ title || routeTitle }}
|
|
12
|
+
</slot>
|
|
11
13
|
</h1>
|
|
12
14
|
</div>
|
|
13
15
|
</template>
|
|
@@ -19,7 +21,7 @@ import { useRoute } from 'vue-router'
|
|
|
19
21
|
|
|
20
22
|
const route = useRoute()
|
|
21
23
|
|
|
22
|
-
defineProps({
|
|
24
|
+
const props = defineProps({
|
|
23
25
|
title: {
|
|
24
26
|
type: String,
|
|
25
27
|
default: undefined,
|
|
@@ -28,7 +30,11 @@ defineProps({
|
|
|
28
30
|
type: Boolean,
|
|
29
31
|
default: false,
|
|
30
32
|
},
|
|
33
|
+
noRouteTitle: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false,
|
|
36
|
+
},
|
|
31
37
|
})
|
|
32
38
|
|
|
33
|
-
const routeTitle = computed(() => getRouteTitle(route))
|
|
39
|
+
const routeTitle = computed(() => props.noRouteTitle ? '' : getRouteTitle(route))
|
|
34
40
|
</script>
|
|
@@ -6,26 +6,26 @@ export const input = {
|
|
|
6
6
|
outlined: true,
|
|
7
7
|
hint: '',
|
|
8
8
|
dropdownIcon: 'mdi-chevron-down',
|
|
9
|
-
}
|
|
9
|
+
} as const
|
|
10
10
|
|
|
11
11
|
export const inputDense = {
|
|
12
12
|
class: 'c-inri-input c-inri-input--dense',
|
|
13
13
|
outlined: true,
|
|
14
14
|
dense: true,
|
|
15
15
|
dropdownIcon: 'mdi-chevron-down',
|
|
16
|
-
}
|
|
16
|
+
} as const
|
|
17
17
|
|
|
18
18
|
export const checkbox = {
|
|
19
19
|
class: 'c-inri-checkbox',
|
|
20
20
|
dense: true,
|
|
21
|
-
}
|
|
21
|
+
} as const
|
|
22
22
|
|
|
23
23
|
export const radio = {
|
|
24
24
|
class: 'c-inri-radio',
|
|
25
25
|
dense: true,
|
|
26
26
|
checkedIcon: 'mdi-checkbox-marked-circle',
|
|
27
27
|
uncheckedIcon: 'mdi-checkbox-blank-circle-outline',
|
|
28
|
-
}
|
|
28
|
+
} as const
|
|
29
29
|
|
|
30
30
|
export const button = {
|
|
31
31
|
class: 'c-btn',
|
|
@@ -34,7 +34,7 @@ export const button = {
|
|
|
34
34
|
noCaps: true,
|
|
35
35
|
color: 'primary',
|
|
36
36
|
textColor: 'grey-darkest',
|
|
37
|
-
}
|
|
37
|
+
} as const
|
|
38
38
|
|
|
39
39
|
export const table = {
|
|
40
40
|
class: 'c-inri-table',
|
|
@@ -48,13 +48,13 @@ export const table = {
|
|
|
48
48
|
rowsPerPageLabel: ' ',
|
|
49
49
|
hideNoData: true,
|
|
50
50
|
hideBottom: true,
|
|
51
|
-
}
|
|
51
|
+
} as const
|
|
52
52
|
|
|
53
53
|
export const tree = {
|
|
54
54
|
class: 'c-inri-tree',
|
|
55
55
|
noConnectors: true,
|
|
56
56
|
icon: 'mdi-chevron-right',
|
|
57
|
-
}
|
|
57
|
+
} as const
|
|
58
58
|
|
|
59
59
|
export const quasarComponentConfigurations = {
|
|
60
60
|
input,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@import "components/breadcrumbs";
|
|
2
|
+
@import "components/checkboxes";
|
|
3
|
+
@import "components/chips";
|
|
4
|
+
@import "components/forms";
|
|
5
|
+
@import "components/menu";
|
|
6
|
+
@import "components/notifications";
|
|
7
|
+
@import "components/q-editor";
|
|
8
|
+
@import "components/radio-buttons";
|
|
9
|
+
@import "components/tables";
|
|
10
|
+
@import "components/tooltips";
|
|
11
|
+
@import "components/tree";
|
|
12
|
+
@import "components/truncated-chips";
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
--color-green: #00b06e;
|
|
24
24
|
--color-green-light: #66d0a8;
|
|
25
25
|
--color-green-light-30: rgba(102,208,168,0.3);
|
|
26
|
+
--color-green-light-60: rgba(102,208,168,0.6);
|
|
26
27
|
--color-green-10: #e5f7f0;
|
|
27
28
|
|
|
28
29
|
// Surface is a special color defined in Material Design but not part of Quasar. We still want to use it though.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'Wallop';
|
|
3
|
+
src: url('../fonts/Wallop-Regular.woff2') format("woff2");
|
|
4
|
+
font-display: swap;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: 'Wallop';
|
|
9
|
+
src: url('../fonts/Wallop-Medium.woff2') format("woff2");
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
font-display: swap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'Wallop';
|
|
16
|
+
src: url('../fonts/Wallop-SemiBold.woff2') format("woff2");
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
font-display: swap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: 'Wallop';
|
|
23
|
+
src: url('../fonts/Wallop-Bold.woff2') format("woff2");
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
}
|
package/src/styles/main.scss
CHANGED
|
@@ -3,43 +3,6 @@
|
|
|
3
3
|
@import 'quasar/dist/quasar.sass';
|
|
4
4
|
@import 'transitions';
|
|
5
5
|
@import 'reset';
|
|
6
|
-
@import 'components
|
|
7
|
-
@import 'components/chips';
|
|
8
|
-
@import 'components/checkboxes';
|
|
9
|
-
@import 'components/radio-buttons';
|
|
10
|
-
@import 'components/tables';
|
|
11
|
-
@import 'components/q-editor';
|
|
12
|
-
@import 'components/tree';
|
|
13
|
-
@import 'components/tooltips';
|
|
14
|
-
@import 'components/notifications';
|
|
15
|
-
@import 'components/breadcrumbs';
|
|
16
|
-
@import 'components/menu';
|
|
17
|
-
@import 'components/truncated-chips';
|
|
6
|
+
@import 'components';
|
|
18
7
|
@import 'utils';
|
|
19
|
-
|
|
20
|
-
@font-face {
|
|
21
|
-
font-family: 'Wallop';
|
|
22
|
-
src: url('../fonts/Wallop-Regular.woff2') format("woff2");
|
|
23
|
-
font-display: swap;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@font-face {
|
|
27
|
-
font-family: 'Wallop';
|
|
28
|
-
src: url('../fonts/Wallop-Medium.woff2') format("woff2");
|
|
29
|
-
font-weight: 500;
|
|
30
|
-
font-display: swap;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@font-face {
|
|
34
|
-
font-family: 'Wallop';
|
|
35
|
-
src: url('../fonts/Wallop-SemiBold.woff2') format("woff2");
|
|
36
|
-
font-weight: 600;
|
|
37
|
-
font-display: swap;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@font-face {
|
|
41
|
-
font-family: 'Wallop';
|
|
42
|
-
src: url('../fonts/Wallop-Bold.woff2') format("woff2");
|
|
43
|
-
font-weight: 700;
|
|
44
|
-
font-display: swap;
|
|
45
|
-
}
|
|
8
|
+
@import 'fonts';
|
package/src/utils/colorUtils.ts
CHANGED
|
@@ -4,11 +4,11 @@ interface RelatedColors {
|
|
|
4
4
|
effectColor: string,
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export const baseColors = ['primary', 'secondary', 'accent', 'surface']
|
|
8
|
-
export const blackAndWhiteColors = ['black', 'white']
|
|
9
|
-
export const spotColors = ['blue', 'purple', 'red', 'orange', 'yellow', 'green']
|
|
10
|
-
export const lightColors = ['blue-light', 'purple-light', 'red-light', 'orange-light', 'yellow-light', 'green-light']
|
|
11
|
-
export const greyColors = ['grey-darkest', 'grey-darker', 'grey-dark', 'grey', 'grey-light', 'grey-lighter']
|
|
7
|
+
export const baseColors = ['primary', 'secondary', 'accent', 'surface'] as const
|
|
8
|
+
export const blackAndWhiteColors = ['black', 'white'] as const
|
|
9
|
+
export const spotColors = ['blue', 'purple', 'red', 'orange', 'yellow', 'green'] as const
|
|
10
|
+
export const lightColors = ['blue-light', 'purple-light', 'red-light', 'orange-light', 'yellow-light', 'green-light'] as const
|
|
11
|
+
export const greyColors = ['grey-darkest', 'grey-darker', 'grey-dark', 'grey', 'grey-light', 'grey-lighter'] as const
|
|
12
12
|
|
|
13
13
|
export const colors = {
|
|
14
14
|
baseColors,
|
package/tsconfig.json
CHANGED
package/componentProperties.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentCustomProperties as inriComponentCustomProperties } from './src/typings'
|
|
2
|
-
|
|
3
|
-
declare module '@vue/runtime-core' {
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
5
|
-
export interface ComponentCustomProperties extends inriComponentCustomProperties {}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export {}
|