quasar-factory-lib 0.0.62 → 0.0.63

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
@@ -97,6 +97,6 @@
97
97
  "release": "standard-version"
98
98
  },
99
99
  "type": "module",
100
- "version": "0.0.62",
100
+ "version": "0.0.63",
101
101
  "author": ""
102
102
  }
@@ -331,19 +331,27 @@ export default defineComponent({
331
331
  return (hours * 3600) + (minutes * 60) + seconds;
332
332
  };
333
333
 
334
+ const parsePercentage = (percentageString: string): number => {
335
+ return parseFloat(percentageString.replace('%', '')) / 100;
336
+ };
337
+
334
338
  if (typeof xValue === 'string' && typeof yValue === 'string') {
335
339
  const xDate = parseDate(xValue);
336
340
  const yDate = parseDate(yValue);
337
-
341
+
338
342
  if (!isNaN(xDate.getTime()) && !isNaN(yDate.getTime())) {
339
343
  return xDate.getTime() - yDate.getTime();
340
344
  }
341
345
 
342
346
  const xTime = parseTime(xValue);
343
347
  const yTime = parseTime(yValue);
344
-
348
+
345
349
  if (!isNaN(xTime) && !isNaN(yTime)) {
346
350
  return xTime - yTime;
351
+ } else if (xValue.includes('%') && yValue.includes('%')) {
352
+ const xPercent = parsePercentage(xValue);
353
+ const yPercent = parsePercentage(yValue);
354
+ return xPercent - yPercent;
347
355
  } else {
348
356
  return xValue.localeCompare(yValue);
349
357
  }
@@ -352,6 +360,7 @@ export default defineComponent({
352
360
  return xValue - yValue;
353
361
  }
354
362
  else if (typeof xValue === 'boolean' && typeof yValue === 'boolean') {
363
+ console.log(xValue, yValue)
355
364
  return xValue === yValue ? 0 : xValue ? 1 : -1;
356
365
  }
357
366
  else {
@@ -30,6 +30,11 @@ export default {
30
30
  tablePropsData: this.tableProps,
31
31
  modelData: this.model
32
32
  }
33
+ },
34
+ watch: {
35
+ model (val) {
36
+ this.modelData = val
37
+ }
33
38
  }
34
39
  }
35
40
  </script>
@@ -51,6 +51,11 @@ export default {
51
51
  tablePropsData: this.tableProps,
52
52
  modelData: this.model
53
53
  }
54
+ },
55
+ watch: {
56
+ model (val) {
57
+ this.modelData = val
58
+ }
54
59
  }
55
60
  }
56
61
  </script>
@@ -16,7 +16,7 @@
16
16
  : tablePropsData.row.rowBgColor || 'bg-main-color'
17
17
  "
18
18
  >
19
- <q-card-section>
19
+ <q-card-section class="q-py-sm">
20
20
  <q-checkbox
21
21
  :data-cy="'checkbox-' + tablePropsData.row.id"
22
22
  size="sm"
package/src/css/app.css CHANGED
@@ -56,12 +56,9 @@
56
56
  .text-color-negative-bold {
57
57
  color: var(--negative);
58
58
  font-weight: bold;
59
- font-size: 30px;
59
+ font-size: 18px;
60
60
  }
61
61
 
62
62
  .border-bottom-darkGrey{
63
63
  border-bottom: 0.7px solid var(--dark-gray);
64
64
  }
65
-
66
- /* const labelTextColor = 'color: #597765 !important;'
67
- const labelTextColorBold = 'color: #597765 !important; font-weight: bold;' */
@@ -2,6 +2,7 @@
2
2
  <div class="column full-height justify-center">
3
3
  <q-btn
4
4
  label="Table"
5
+ data-cy="table"
5
6
  @click="() => {
6
7
  router.push('tablePage')
7
8
  }"
@@ -55,7 +55,7 @@
55
55
  position="bottom"
56
56
  expand
57
57
  >
58
- <q-btn class="full-width" color="accent" icon="arrow_forward" />
58
+ <q-btn class="full-width" color="black" icon="arrow_forward" />
59
59
  </q-page-sticky>
60
60
  </q-page>
61
61
  </q-page-container>