@usssa/component-library 1.0.0-alpha.40 → 1.0.0-alpha.41

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": "@usssa/component-library",
3
- "version": "1.0.0-alpha.40",
3
+ "version": "1.0.0-alpha.41",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Troy Moreland <troy.moreland@usssa.com>",
@@ -13,6 +13,9 @@ const props = defineProps({
13
13
  type: String,
14
14
  default: 'default',
15
15
  },
16
+ customSize: {
17
+ type: String,
18
+ },
16
19
  headingCaption: String,
17
20
  leftIcon: String,
18
21
  closeIcon: String,
@@ -34,6 +37,11 @@ const handleBackClick = () => {
34
37
  const headerClass = computed(() => {
35
38
  return props.divider ? 'divider' : ''
36
39
  })
40
+
41
+ const dialogStyle = computed(() => ({
42
+ '--customSize': props.customSize
43
+ }))
44
+
37
45
  </script>
38
46
 
39
47
  <template>
@@ -43,6 +51,7 @@ const headerClass = computed(() => {
43
51
  :position="position"
44
52
  full-width
45
53
  :class="`dialog-${size}`"
54
+ :style="dialogStyle"
46
55
  v-model="model"
47
56
  v-bind="$attrs"
48
57
  >
@@ -176,6 +185,11 @@ const headerClass = computed(() => {
176
185
  .action-wrapper
177
186
  padding: $ba $ms
178
187
 
188
+ .dialog-custom
189
+ .q-dialog__inner
190
+ padding: $ba 0
191
+ width: var(--customSize)
192
+
179
193
  .dialog-default
180
194
  .q-dialog__inner
181
195
  padding: $ba 0
@@ -130,10 +130,6 @@ const components = [
130
130
  title: 'Inner Loader',
131
131
  path: '/inner-loader',
132
132
  },
133
- {
134
- title: 'Typeahead Dropdown Search',
135
- path: '/typeahead-advance-search',
136
- },
137
133
  {
138
134
  title: 'Overlay Loader',
139
135
  path: '/overlay-loader',
@@ -17,11 +17,13 @@ const caption = ref('This is the caption')
17
17
  const divider = ref(true)
18
18
  const size = ref('half')
19
19
  const tab = ref('movie')
20
+ const customSize = ref('75%')
20
21
 
21
22
  const htmlContent = `<UDialogStd
22
23
  :heading="heading"
23
24
  :position="position"
24
25
  :size="size"
26
+ :customSize="customSize"
25
27
  :headingCaption="caption"
26
28
  @onBackIconClick="handleBackclick()"
27
29
  :showActionButtons="showActionButtons"
@@ -80,6 +82,7 @@ const showDialog = () => {
80
82
  :heading="heading"
81
83
  :position="position"
82
84
  :size="size"
85
+ :customSize="customSize"
83
86
  :headingCaption="caption"
84
87
  @onBackIconClick="handleBackclick()"
85
88
  :showActionButtons="showActionButtons"
@@ -158,6 +161,18 @@ const showDialog = () => {
158
161
  label="Full"
159
162
  class="q-pa-sm"
160
163
  />
164
+ <q-radio
165
+ dense
166
+ v-model="size"
167
+ val="custom"
168
+ label="Custom"
169
+ class="q-pa-sm"
170
+ />
171
+ <q-input
172
+ v-if="size === 'custom'"
173
+ label="Custom Size"
174
+ v-model="customSize"
175
+ />
161
176
  </div>
162
177
  </div>
163
178
  <div class="column">