@inriver/inri 1.19.0 → 1.21.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inriver/inri",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "peerDependencies": {
5
5
  "quasar": "2.12.1",
6
6
  "vue": "^3.3.4",
@@ -52,7 +52,7 @@ defineProps({
52
52
  </script>
53
53
 
54
54
  <style lang="scss">
55
- .c-btn {
55
+ .c-inri-btn {
56
56
  height: 40px;
57
57
  font-weight: 600;
58
58
  padding: 4px 56px !important;
@@ -6,7 +6,7 @@
6
6
  @click.prevent
7
7
  >
8
8
  <q-menu>
9
- <q-list class="menu-list pb-0">
9
+ <q-list class="c-inri-menu-list pb-0">
10
10
  <slot />
11
11
  </q-list>
12
12
  </q-menu>
@@ -23,7 +23,7 @@ defineProps({
23
23
  </script>
24
24
 
25
25
  <style scoped lang="scss">
26
- .menu-list {
26
+ .c-inri-menu-list {
27
27
  min-width: 146px;
28
28
  }
29
29
  </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <q-dialog
3
3
  data-id="dialog"
4
- class="c-dialog"
4
+ class="c-inri-dialog"
5
5
  :model-value="modelValue"
6
6
  :position="position"
7
7
  transition-show="fade"
@@ -192,7 +192,7 @@ defineExpose({
192
192
 
193
193
  <style lang="scss">
194
194
  // This css is also shared by the programmatic dialogs
195
- .c-dialog {
195
+ .c-inri-dialog {
196
196
  .q-dialog__backdrop {
197
197
  background: var(--dialog-backdrop-color);
198
198
  }
@@ -210,11 +210,11 @@ defineExpose({
210
210
  }
211
211
 
212
212
  .dialog-card-action-buttons {
213
- .c-btn {
213
+ .c-inri-btn {
214
214
  width: 100%;
215
215
  }
216
216
 
217
- .c-btn + .c-btn {
217
+ .c-inri-btn + .c-inri-btn {
218
218
  margin-top: 16px;
219
219
  }
220
220
  }
@@ -222,13 +222,13 @@ defineExpose({
222
222
 
223
223
  // 'sm' displays
224
224
  @media (min-width: 640px) {
225
- .c-dialog {
225
+ .c-inri-dialog {
226
226
  .dialog-card-action-buttons {
227
- .c-btn {
227
+ .c-inri-btn {
228
228
  width: auto;
229
229
  }
230
230
 
231
- .c-btn + .c-btn {
231
+ .c-inri-btn + .c-inri-btn {
232
232
  margin-top: 0;
233
233
  margin-left: 10px;
234
234
  }
@@ -238,7 +238,7 @@ defineExpose({
238
238
 
239
239
  // 'md' displays
240
240
  @media (min-width: 1024px) {
241
- .c-dialog {
241
+ .c-inri-dialog {
242
242
  // position="top" (default) should be offset with 60px from the top
243
243
  .q-dialog__inner.fixed-top {
244
244
  padding: 0 60px;
@@ -2,7 +2,7 @@
2
2
  <q-btn
3
3
  ref="drawerButton"
4
4
  data-id="drawer-btn"
5
- class="drawer-button group"
5
+ class="c-inri-drawer-button group"
6
6
  :class="{
7
7
  'is-left': left,
8
8
  'w-60px sm:w-340px': isOpen,
@@ -63,7 +63,7 @@ function toggle () {
63
63
  </script>
64
64
 
65
65
  <style lang="scss">
66
- .drawer-button {
66
+ .c-inri-drawer-button {
67
67
  height: 60px;
68
68
  border-radius: 0;
69
69
  transition: width 0.1s;
@@ -83,7 +83,7 @@ function toggle () {
83
83
  }
84
84
 
85
85
  // Left side drawer button
86
- .drawer-button.is-left {
86
+ .c-inri-drawer-button.is-left {
87
87
  .q-btn__content {
88
88
  justify-content: end;
89
89
  }
@@ -2,7 +2,7 @@
2
2
  <q-expansion-item
3
3
  :label="label"
4
4
  :header-class="headerClass"
5
- class="c-expansion-item"
5
+ class="c-inri-expansion-item"
6
6
  >
7
7
  <slot />
8
8
  </q-expansion-item>
@@ -22,7 +22,7 @@ defineProps({
22
22
  </script>
23
23
 
24
24
  <style lang="scss">
25
- .c-expansion-item {
25
+ .c-inri-expansion-item {
26
26
  border-bottom: 1px solid var(--color-border);
27
27
 
28
28
  .q-item__section {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <q-expansion-item
3
3
  :header-class="headerClass"
4
- class="c-expansion-item"
4
+ class="c-inri-expansion-item"
5
5
  >
6
6
  <template #header>
7
7
  <q-checkbox
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  v-if="showExtendedMenu"
4
- class="header-links gt-sm"
4
+ class="c-inri-header-links gt-sm"
5
5
  >
6
6
  <c-header-menu-link
7
7
  v-for="link in links"
@@ -52,7 +52,7 @@ const showExtendedMenu = computed(() => props.maxVisible >= props.links.length)
52
52
  </script>
53
53
 
54
54
  <style scoped>
55
- .header-links {
55
+ .c-inri-header-links {
56
56
  margin-right: 32px;
57
57
  height: 100%;
58
58
  display: flex;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <a
3
- class="link"
3
+ class="c-inri-link"
4
4
  :class="{ 'is-active': isActive }"
5
5
  :href="href"
6
6
  >
@@ -21,7 +21,7 @@ defineProps<Props>()
21
21
  </script>
22
22
 
23
23
  <style scoped>
24
- .link {
24
+ .c-inri-link {
25
25
  display: flex;
26
26
  align-items: center;
27
27
  font-size: 16px;
@@ -31,7 +31,7 @@ defineProps<Props>()
31
31
  min-width: 0;
32
32
  }
33
33
 
34
- .link:hover {
34
+ .c-inri-link:hover {
35
35
  text-decoration: underline;
36
36
  }
37
37
 
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <q-btn
3
- class="c-icon-btn"
3
+ class="c-inri-icon-btn"
4
4
  flat
5
5
  round
6
6
  :color="color"
@@ -61,7 +61,7 @@ defineProps({
61
61
  <style scoped lang="scss">
62
62
  $size: 32px;
63
63
 
64
- .c-icon-btn {
64
+ .c-inri-icon-btn {
65
65
  height: $size;
66
66
  width: $size;
67
67
  min-height: $size;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <section
3
- class="c-section"
3
+ class="c-inri-section"
4
4
  :class="{
5
5
  'overflow-y-overlay': scroll || main,
6
6
  'flex-1': flex || main,
@@ -23,7 +23,7 @@ defineProps({
23
23
  </script>
24
24
 
25
25
  <style>
26
- .c-section {
26
+ .c-inri-section {
27
27
  @apply py-7 px-6;
28
28
  }
29
29
  </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <q-select
3
3
  ref="selectRef"
4
- class="c-select"
4
+ class="c-inri-select"
5
5
  :model-value="modelValue"
6
6
  v-bind="dense ? $inri.inputDense : $inri.input"
7
7
  :options="internalOptions"
@@ -191,7 +191,7 @@ function onToggleAll (evt, emitString) {
191
191
  </script>
192
192
 
193
193
  <style lang="scss">
194
- .c-select {
194
+ .c-inri-select {
195
195
  ::placeholder {
196
196
  color: var(--color-text);
197
197
  }
@@ -3,13 +3,13 @@
3
3
 
4
4
  <div class="absolute overflow-hidden inset-0">
5
5
  <div
6
- class="bg-white slide-box"
6
+ class="bg-white c-inri-slide-box"
7
7
  :class="slideOffsetClasses"
8
8
  />
9
9
 
10
10
  <!-- Slider -->
11
11
  <div
12
- class="slide-box"
12
+ class="c-inri-slide-box"
13
13
  :class="[transitionBg, slideOffsetClasses]"
14
14
  />
15
15
  </div>
@@ -56,7 +56,7 @@ const transitionBg = computed(() => {
56
56
  </script>
57
57
 
58
58
  <style scoped>
59
- .slide-box {
59
+ .c-inri-slide-box {
60
60
  @apply absolute transition-all duration-500 w-full h-full top-0;
61
61
  }
62
62
  </style>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="c-spinner"
3
+ class="c-inri-spinner"
4
4
  :style="{
5
5
  width: size + 'px',
6
6
  height: size + 'px',
@@ -63,7 +63,7 @@ const transitionColor = computed(() => {
63
63
  // Based on:
64
64
  // https://codepen.io/joshuaward/pen/XejbZv
65
65
 
66
- .c-spinner {
66
+ .c-inri-spinner {
67
67
  display: grid;
68
68
  grid-template-columns: 1fr 1fr 1fr;
69
69
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <q-btn
3
3
  ref="button"
4
- class="c-tile-btn group"
4
+ class="c-inri-tile-btn group"
5
5
  :class="{
6
6
  'c-tile-btn--small': small,
7
7
  'pointer-events-none': loading
@@ -154,7 +154,7 @@ const tooltipRightDataId = computed(() => {
154
154
  </script>
155
155
 
156
156
  <style lang="scss">
157
- .c-tile-btn {
157
+ .c-inri-tile-btn {
158
158
  padding: 0;
159
159
  width: 60px;
160
160
  height: 60px;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  ref="card"
4
- class="c-small-card"
4
+ class="c-inri-small-card"
5
5
  @mouseover="isHoveredOver = true"
6
6
  @mouseleave="isHoveredOver = false"
7
7
  @click="$emit('click', $event)"
@@ -106,7 +106,7 @@ defineProps({
106
106
  </script>
107
107
 
108
108
  <style scoped lang="scss">
109
- .c-small-card {
109
+ .c-inri-small-card {
110
110
  width: var(--small-card-image-size);
111
111
  min-height: 100px;
112
112
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <q-dialog
3
3
  ref="dialogRef"
4
- class="c-dialog"
4
+ class="c-inri-dialog"
5
5
  @hide="onDialogHide"
6
6
  >
7
7
  <q-card
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="c-page">
2
+ <div class="c-inri-page">
3
3
  <slot />
4
4
  </div>
5
5
  </template>
@@ -11,7 +11,7 @@ export default {
11
11
  </script>
12
12
 
13
13
  <style scoped>
14
- .c-page {
14
+ .c-inri-page {
15
15
  position: absolute;
16
16
  width: 100%;
17
17
  height: 100%;
@@ -2,26 +2,26 @@
2
2
  // <q-input v-bind="input" />
3
3
 
4
4
  export const input = {
5
- class: 'c-input c-input--default',
5
+ class: 'c-inri-input c-inri-input--default',
6
6
  outlined: true,
7
7
  hint: '',
8
8
  dropdownIcon: 'mdi-chevron-down',
9
9
  }
10
10
 
11
11
  export const inputDense = {
12
- class: 'c-input c-input--dense',
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
  }
17
17
 
18
18
  export const checkbox = {
19
- class: 'c-checkbox',
19
+ class: 'c-inri-checkbox',
20
20
  dense: true,
21
21
  }
22
22
 
23
23
  export const radio = {
24
- class: 'c-radio',
24
+ class: 'c-inri-radio',
25
25
  dense: true,
26
26
  checkedIcon: 'mdi-checkbox-marked-circle',
27
27
  uncheckedIcon: 'mdi-checkbox-blank-circle-outline',
@@ -37,7 +37,7 @@ export const button = {
37
37
  }
38
38
 
39
39
  export const table = {
40
- class: 'c-table',
40
+ class: 'c-inri-table',
41
41
  flat: true,
42
42
  bordered: false,
43
43
  separator: 'horizontal' as const,
@@ -51,7 +51,7 @@ export const table = {
51
51
  }
52
52
 
53
53
  export const tree = {
54
- class: 'c-tree',
54
+ class: 'c-inri-tree',
55
55
  noConnectors: true,
56
56
  icon: 'mdi-chevron-right',
57
57
  }
@@ -1,4 +1,4 @@
1
- .c-checkbox {
1
+ .c-inri-checkbox {
2
2
  &.q-checkbox[aria-label] {
3
3
  max-width: max-content;
4
4
  }
@@ -1,4 +1,4 @@
1
- .c-input {
1
+ .c-inri-input {
2
2
  // Input, select etc overrides
3
3
  &.q-field--outlined .q-field__control {
4
4
  padding: 0 16px 0 12px;
@@ -138,7 +138,7 @@
138
138
  }
139
139
 
140
140
  // Default modifier
141
- .c-input.c-input--default:not(.q-textarea) {
141
+ .c-inri-input.c-inri-input--default:not(.q-textarea) {
142
142
  .q-field__control {
143
143
  height: auto;
144
144
  min-height: 50px;
@@ -154,12 +154,12 @@
154
154
  }
155
155
 
156
156
  // Rounded
157
- .c-input.q-field--rounded .q-field__control {
157
+ .c-inri-input.q-field--rounded .q-field__control {
158
158
  border-radius: 25px;
159
159
  }
160
160
 
161
161
  // Dense modifier
162
- .c-input--dense {
162
+ .c-inri-input--dense {
163
163
  // Outline color
164
164
  &.q-field--outlined .q-field__control::before {
165
165
  border-color: var(--color-grey);
@@ -1,5 +1,5 @@
1
1
  .c-notify {
2
- .c-spinner {
2
+ .c-inri-spinner {
3
3
  width: 18px !important;
4
4
  height: 18px !important;
5
5
  color: #fff !important;
@@ -1,4 +1,4 @@
1
- .c-radio {
1
+ .c-inri-radio {
2
2
  &.q-radio[aria-label] {
3
3
  max-width: max-content;
4
4
  }
@@ -1,4 +1,4 @@
1
- .c-table {
1
+ .c-inri-table {
2
2
  th {
3
3
  padding: 7px 12px;
4
4
  font-size: 14px;
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  // This will align the content to the top instead of being centered
64
- .c-table.align-top {
64
+ .c-inri-table.align-top {
65
65
  td {
66
66
  padding: 14px 12px 13px;
67
67
  }
@@ -72,7 +72,7 @@
72
72
  }
73
73
 
74
74
  // If the items are selectable then we want to hide the default checkboxes
75
- .c-table.hide-checkboxes {
75
+ .c-inri-table.hide-checkboxes {
76
76
  th:first-child,
77
77
  td:first-child {
78
78
  display: none;
@@ -84,7 +84,7 @@
84
84
  }
85
85
  }
86
86
 
87
- .c-table.with-action-buttons {
87
+ .c-inri-table.with-action-buttons {
88
88
  th:last-child,
89
89
  td:last-child {
90
90
  border-left: 0;
@@ -1,4 +1,4 @@
1
- .c-tree.q-tree {
1
+ .c-inri-tree.q-tree {
2
2
  .q-icon {
3
3
  font-size: 20px;
4
4
  width: 12px;