@inriver/inri 1.25.0 → 1.27.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/ten-dryers-joke.md +5 -0
- package/CHANGELOG.md +32 -1
- package/configs/base-tailwind-config.js +1 -0
- package/main.d.ts +10 -0
- package/package.json +2 -1
- package/src/components/CSelect.vue +11 -2
- 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/_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,6 +1,6 @@
|
|
|
1
1
|
# @inriver/inri
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.27.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -10,8 +10,39 @@
|
|
|
10
10
|
|
|
11
11
|
### Patch Changes
|
|
12
12
|
|
|
13
|
+
- Fix CSelect placeholder color. Modularize Sass imports. Include inri typings when bundling
|
|
13
14
|
- Fix Sass warnings and errors by removing usage of @apply and updating Quasar + sass dependencies
|
|
14
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
|
+
|
|
18
|
+
## 1.26.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- Update documentation
|
|
23
|
+
- Wallop font is now included in the package
|
|
24
|
+
- Updating README and exporting tailwing config
|
|
25
|
+
- Add support for hiding the sidebars in CLayoutWithSidebars.
|
|
26
|
+
- Add support for entering a custom title in CLayoutWithSidebars
|
|
27
|
+
- Add support for showing placeholder in CSelect outside of use-input mode
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Fix Sass warnings and errors by removing usage of @apply and updating Quasar + sass dependencies
|
|
32
|
+
|
|
33
|
+
## 1.25.0
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- Update documentation
|
|
38
|
+
- Wallop font is now included in the package
|
|
39
|
+
- Updating README and exporting tailwing config
|
|
40
|
+
- Add support for hiding the sidebars in CLayoutWithSidebars.
|
|
41
|
+
- Add support for entering a custom title in CLayoutWithSidebars
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- Fix Sass warnings and errors by removing usage of @apply and updating Quasar + sass dependencies
|
|
15
46
|
|
|
16
47
|
## 1.24.0
|
|
17
48
|
|
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
|
@@ -17,6 +17,15 @@
|
|
|
17
17
|
@filter="filter"
|
|
18
18
|
@update:model-value="onModelUpdate"
|
|
19
19
|
>
|
|
20
|
+
<template
|
|
21
|
+
v-if="!useInput && (modelValue === undefined || modelValue === null)"
|
|
22
|
+
#selected
|
|
23
|
+
>
|
|
24
|
+
<div class="text-grey">
|
|
25
|
+
{{ selectedPlaceholder }}
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
20
29
|
<template #no-option>
|
|
21
30
|
<q-item>
|
|
22
31
|
<q-item-section>
|
|
@@ -75,7 +84,7 @@
|
|
|
75
84
|
</template>
|
|
76
85
|
|
|
77
86
|
<script setup lang="ts">
|
|
78
|
-
import { computed, ref, toRef, useAttrs } from 'vue'
|
|
87
|
+
import { PropType, computed, ref, toRef, useAttrs } from 'vue'
|
|
79
88
|
import { QSelect } from 'quasar'
|
|
80
89
|
import useSelectable from '../composables/useSelectable'
|
|
81
90
|
|
|
@@ -88,7 +97,7 @@ defineExpose({
|
|
|
88
97
|
|
|
89
98
|
const props = defineProps({
|
|
90
99
|
modelValue: {
|
|
91
|
-
type: [Object, String, Number, Boolean, Array]
|
|
100
|
+
type: [Object, String, Number, Boolean, Array, null] as PropType<Object | String | Number | Boolean | Array<any> | null>,
|
|
92
101
|
default: undefined,
|
|
93
102
|
},
|
|
94
103
|
options: {
|
|
@@ -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";
|
|
@@ -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 {}
|