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/dist/quasar-factory-lib.js +385 -369
- package/dist/quasar-factory-lib.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.vue +11 -2
- package/src/components/Table/components/BasicCheckBox.vue +5 -0
- package/src/components/Table/components/CustomizedCheckBox.vue +5 -0
- package/src/components/Table/components/TableSlotGrid.vue +1 -1
- package/src/css/app.css +1 -4
- package/src/layouts/MenuLayout.vue +1 -0
- package/src/layouts/PdaLayout.vue +1 -1
package/package.json
CHANGED
|
@@ -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 {
|
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:
|
|
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;' */
|