@inriver/inri 1.26.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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@inriver/inri": patch
3
+ ---
4
+
5
+ Fix CSelect placeholder color. Modularize Sass imports. Include inri typings when bundling
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @inriver/inri
2
2
 
3
+ ## 1.27.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
+
3
18
  ## 1.26.0
4
19
 
5
20
  ### Minor Changes
@@ -7,7 +22,7 @@
7
22
  - Update documentation
8
23
  - Wallop font is now included in the package
9
24
  - Updating README and exporting tailwing config
10
- - Add support for hiding the sidebars in CLayoutWithSidebars.
25
+ - Add support for hiding the sidebars in CLayoutWithSidebars.
11
26
  - Add support for entering a custom title in CLayoutWithSidebars
12
27
  - Add support for showing placeholder in CSelect outside of use-input mode
13
28
 
@@ -22,7 +37,7 @@
22
37
  - Update documentation
23
38
  - Wallop font is now included in the package
24
39
  - Updating README and exporting tailwing config
25
- - Add support for hiding the sidebars in CLayoutWithSidebars.
40
+ - Add support for hiding the sidebars in CLayoutWithSidebars.
26
41
  - Add support for entering a custom title in CLayoutWithSidebars
27
42
 
28
43
  ### 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)',
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
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@inriver/inri",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "main": "index.ts",
5
+ "types": "main.d.ts",
5
6
  "peerDependencies": {
6
7
  "quasar": "2.14.2",
7
8
  "vue": "^3.3.4",
@@ -18,10 +18,10 @@
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
- <div class="text-grey-6">
24
+ <div class="text-grey">
25
25
  {{ selectedPlaceholder }}
26
26
  </div>
27
27
  </template>
@@ -84,7 +84,7 @@
84
84
  </template>
85
85
 
86
86
  <script setup lang="ts">
87
- import { computed, ref, toRef, useAttrs } from 'vue'
87
+ import { PropType, computed, ref, toRef, useAttrs } from 'vue'
88
88
  import { QSelect } from 'quasar'
89
89
  import useSelectable from '../composables/useSelectable'
90
90
 
@@ -97,7 +97,7 @@ defineExpose({
97
97
 
98
98
  const props = defineProps({
99
99
  modelValue: {
100
- type: [Object, String, Number, Boolean, Array],
100
+ type: [Object, String, Number, Boolean, Array, null] as PropType<Object | String | Number | Boolean | Array<any> | null>,
101
101
  default: undefined,
102
102
  },
103
103
  options: {
@@ -7,7 +7,9 @@
7
7
  data-id="page-title"
8
8
  class="truncate flex-1"
9
9
  >
10
- {{ title || routeTitle }}
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
+ }
@@ -3,43 +3,6 @@
3
3
  @import 'quasar/dist/quasar.sass';
4
4
  @import 'transitions';
5
5
  @import 'reset';
6
- @import 'components/forms';
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';
@@ -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
@@ -26,7 +26,7 @@
26
26
  "src/**/*.vue",
27
27
  "tests/**/*.ts",
28
28
  "tests/**/*.tsx",
29
- "componentProperties.d.ts"
29
+ "main.d.ts"
30
30
  ],
31
31
  "exclude": [
32
32
  "node_modules"
@@ -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 {}