@quidgest/ui 0.14.17 → 0.14.19
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/manifest/components.json +3 -0
- package/dist/ui.css +90 -27
- package/dist/ui.esm.js +5867 -5517
- package/dist/ui.js +16 -16
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +222 -198
- package/dist/ui.scss +94 -30
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +42 -48
- package/esm/components/QCheckbox/QCheckbox.d.ts +2 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +4 -4
- package/esm/components/QCheckbox/constants.d.ts +9 -0
- package/esm/components/QCheckbox/constants.d.ts.map +1 -0
- package/esm/components/QCheckbox/index.d.ts +6 -6
- package/esm/components/QCheckbox/types.d.ts +1 -8
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +9 -8
- package/esm/components/QCombobox/QCombobox.d.ts +24 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +1 -0
- package/esm/components/QCombobox/index.d.ts +45 -3
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +12 -10
- package/esm/components/QDateTimePicker/index.d.ts +6 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +47 -39
- package/esm/components/QField/types.d.ts +6 -10
- package/esm/components/QField/types.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +15 -13
- package/esm/components/QFileUpload/index.d.ts +6 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +2 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +40 -32
- package/esm/components/QInputGroup/index.d.ts +2 -0
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.d.ts +20 -0
- package/esm/components/QLabel/QLabel.d.ts.map +1 -0
- package/esm/components/QLabel/QLabel.vue.js +27 -0
- package/esm/components/QLabel/QLabel.vue2.js +4 -0
- package/esm/components/QLabel/index.d.ts +22 -0
- package/esm/components/QLabel/index.d.ts.map +1 -0
- package/esm/components/QLabel/index.js +6 -0
- package/esm/components/QLabel/types.d.ts +12 -0
- package/esm/components/QLabel/types.d.ts.map +1 -0
- package/esm/components/QMeter/QMeter.d.ts +14 -0
- package/esm/components/QMeter/QMeter.d.ts.map +1 -0
- package/esm/components/QMeter/QMeter.vue.js +60 -0
- package/esm/components/QMeter/QMeter.vue2.js +4 -0
- package/esm/components/QMeter/index.d.ts +29 -0
- package/esm/components/QMeter/index.d.ts.map +1 -0
- package/esm/components/QMeter/index.js +6 -0
- package/esm/components/QMeter/types.d.ts +20 -0
- package/esm/components/QMeter/types.d.ts.map +1 -0
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +94 -102
- package/esm/components/QOverlay/index.d.ts +2 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +413 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -0
- package/esm/components/QPasswordField/QPasswordField.vue.js +162 -0
- package/esm/components/QPasswordField/QPasswordField.vue2.js +4 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts +4 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts.map +1 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.vue.js +28 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.vue2.js +4 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts +12 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +97 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue2.js +4 -0
- package/esm/components/QPasswordField/constants.d.ts +9 -0
- package/esm/components/QPasswordField/constants.d.ts.map +1 -0
- package/esm/components/QPasswordField/constants.js +11 -0
- package/esm/components/QPasswordField/index.d.ts +264 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -0
- package/esm/components/QPasswordField/index.js +6 -0
- package/esm/components/QPasswordField/types.d.ts +100 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -0
- package/esm/components/QSelect/QSelect.d.ts +2 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +31 -29
- package/esm/components/QSelect/index.d.ts +7 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +10 -9
- package/esm/components/QTextArea/index.d.ts +6 -0
- package/esm/components/QTextArea/index.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +2 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +8 -6
- package/esm/components/QTextField/index.d.ts +9 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -9
- package/esm/components/index.d.ts +3 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +51 -45
- package/esm/composables/theme.d.ts +2 -0
- package/esm/composables/theme.d.ts.map +1 -1
- package/esm/composables/useColorStyle/index.d.ts +11 -0
- package/esm/composables/useColorStyle/index.d.ts.map +1 -0
- package/esm/composables/useColorStyle/index.js +33 -0
- package/esm/composables/useColorStyle/types.d.ts +36 -0
- package/esm/composables/useColorStyle/types.d.ts.map +1 -0
- package/esm/index.d.ts +3 -0
- package/esm/utils/theme.d.ts.map +1 -1
- package/esm/utils/theme.js +27 -26
- package/package.json +1 -1
- /package/esm/components/QCheckbox/{types.js → constants.js} +0 -0
package/dist/ui.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.14.
|
|
2
|
+
* Quidgest UI v0.14.19
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -319,6 +319,9 @@ body {
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
+
.q-icon {
|
|
323
|
+
color: currentcolor;
|
|
324
|
+
}
|
|
322
325
|
|
|
323
326
|
&--large {
|
|
324
327
|
font-size: 0.9rem;
|
|
@@ -519,6 +522,9 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
519
522
|
pointer-events: none;
|
|
520
523
|
line-height: 1;
|
|
521
524
|
}
|
|
525
|
+
.q-icon {
|
|
526
|
+
color: currentcolor;
|
|
527
|
+
}
|
|
522
528
|
.q-spinner-loader {
|
|
523
529
|
color: currentcolor;
|
|
524
530
|
}
|
|
@@ -803,6 +809,7 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
803
809
|
justify-content: center;
|
|
804
810
|
width: var(--box-size);
|
|
805
811
|
height: var(--box-size);
|
|
812
|
+
font-size: calc(var(--box-size) * 0.75);
|
|
806
813
|
border: 1px solid $border;
|
|
807
814
|
border-radius: var(--border-radius);
|
|
808
815
|
padding: 0;
|
|
@@ -926,16 +933,15 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
926
933
|
margin: 0;
|
|
927
934
|
padding: 0;
|
|
928
935
|
.q-btn__content {
|
|
929
|
-
width: 100%;
|
|
930
936
|
gap: 0;
|
|
931
937
|
padding: $btn-padding;
|
|
932
938
|
display: flex;
|
|
933
939
|
flex-direction: column;
|
|
934
940
|
align-items: start;
|
|
935
941
|
letter-spacing: 0.02rem;
|
|
936
|
-
color: var(--q-theme-on-background);
|
|
937
942
|
h4 {
|
|
938
943
|
margin: 0;
|
|
944
|
+
text-transform: uppercase;
|
|
939
945
|
}
|
|
940
946
|
}
|
|
941
947
|
}
|
|
@@ -995,8 +1001,6 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
995
1001
|
}
|
|
996
1002
|
|
|
997
1003
|
&--required {
|
|
998
|
-
margin-top: -0.3rem;
|
|
999
|
-
margin-left: 0.1rem;
|
|
1000
1004
|
font-weight: 700;
|
|
1001
1005
|
color: var(--q-theme-danger);
|
|
1002
1006
|
}
|
|
@@ -1049,10 +1053,10 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
1049
1053
|
cursor: inherit;
|
|
1050
1054
|
}
|
|
1051
1055
|
}
|
|
1052
|
-
.
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
+
.dp__menu.dp__theme_light,
|
|
1057
|
+
.dp__menu.dp__theme_dark {
|
|
1058
|
+
--dp-hover-color: rgb(var(--q-theme-primary-light-rgb) / 50%);
|
|
1059
|
+
--dp-primary-color: var(--q-theme-primary);
|
|
1056
1060
|
}
|
|
1057
1061
|
.dp__main {
|
|
1058
1062
|
font-family: inherit;
|
|
@@ -1163,13 +1167,6 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
1163
1167
|
flex-direction: column;
|
|
1164
1168
|
border-radius: var(--border-radius);
|
|
1165
1169
|
width: fit-content;
|
|
1166
|
-
&__label {
|
|
1167
|
-
display: flex;
|
|
1168
|
-
gap: $space-base;
|
|
1169
|
-
align-items: center;
|
|
1170
|
-
color: var(--q-theme-neutral-dark);
|
|
1171
|
-
line-height: 1.5;
|
|
1172
|
-
}
|
|
1173
1170
|
&__control {
|
|
1174
1171
|
display: flex;
|
|
1175
1172
|
align-items: center;
|
|
@@ -1189,6 +1186,9 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
1189
1186
|
color: var(--q-theme-neutral);
|
|
1190
1187
|
margin-top: $space-base;
|
|
1191
1188
|
font-size: calc(0.9 * $font-size-base);
|
|
1189
|
+
.q-icon {
|
|
1190
|
+
color: currentcolor;
|
|
1191
|
+
}
|
|
1192
1192
|
}
|
|
1193
1193
|
&__prepend,
|
|
1194
1194
|
&__append {
|
|
@@ -1225,6 +1225,13 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
+
&--invalid {
|
|
1229
|
+
#{$this}__control {
|
|
1230
|
+
&:not(:focus-within) {
|
|
1231
|
+
border-color: var(--q-theme-danger);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1228
1235
|
&:not(#{$this}--disabled) {
|
|
1229
1236
|
#{$this}__control {
|
|
1230
1237
|
&:focus-within {
|
|
@@ -1346,6 +1353,7 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
1346
1353
|
}
|
|
1347
1354
|
.q-icon {
|
|
1348
1355
|
display: inline-block;
|
|
1356
|
+
color: var(--q-theme-primary);
|
|
1349
1357
|
&__svg {
|
|
1350
1358
|
fill: currentcolor;
|
|
1351
1359
|
}
|
|
@@ -1419,6 +1427,16 @@ $input-group-addon-background: rgb(var(--q-theme-neutral-light-rgb) / 25%);
|
|
|
1419
1427
|
}
|
|
1420
1428
|
}
|
|
1421
1429
|
}
|
|
1430
|
+
.q-label {
|
|
1431
|
+
display: flex;
|
|
1432
|
+
gap: $space-base;
|
|
1433
|
+
align-items: center;
|
|
1434
|
+
color: var(--q-theme-neutral-dark);
|
|
1435
|
+
line-height: 1.5;
|
|
1436
|
+
.q-icon {
|
|
1437
|
+
color: currentcolor;
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1422
1440
|
$line-color: var(--q-theme-primary);
|
|
1423
1441
|
.q-line-loader {
|
|
1424
1442
|
width: 100%;
|
|
@@ -1548,6 +1566,7 @@ $line-color: var(--q-theme-primary);
|
|
|
1548
1566
|
color: var(--q-theme-neutral);
|
|
1549
1567
|
font-size: 0.75em;
|
|
1550
1568
|
.q-icon {
|
|
1569
|
+
color: currentcolor;
|
|
1551
1570
|
font-size: inherit;
|
|
1552
1571
|
flex-shrink: 0;
|
|
1553
1572
|
height: 1lh;
|
|
@@ -1557,6 +1576,32 @@ $line-color: var(--q-theme-primary);
|
|
|
1557
1576
|
margin-top: 1px;
|
|
1558
1577
|
}
|
|
1559
1578
|
}
|
|
1579
|
+
.q-meter {
|
|
1580
|
+
display: flex;
|
|
1581
|
+
flex-direction: column;
|
|
1582
|
+
gap: 0.25rem;
|
|
1583
|
+
&__labels {
|
|
1584
|
+
display: flex;
|
|
1585
|
+
justify-content: space-between;
|
|
1586
|
+
}
|
|
1587
|
+
&__value-label {
|
|
1588
|
+
color: var(--q-theme-neutral);
|
|
1589
|
+
}
|
|
1590
|
+
&__track {
|
|
1591
|
+
position: relative;
|
|
1592
|
+
width: 100%;
|
|
1593
|
+
height: 0.5rem;
|
|
1594
|
+
overflow: hidden;
|
|
1595
|
+
border-radius: $border-radius;
|
|
1596
|
+
background-color: rgb(var(--q-theme-neutral-light-rgb) / 50%);
|
|
1597
|
+
}
|
|
1598
|
+
&__fill {
|
|
1599
|
+
height: 100%;
|
|
1600
|
+
width: 100%;
|
|
1601
|
+
transition: all 0.3s ease;
|
|
1602
|
+
background-color: var(--q-theme-primary);
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1560
1605
|
$overlay-border-width: 1px;
|
|
1561
1606
|
$overlay-arrow-width: 11.31px;
|
|
1562
1607
|
$overlay-arrow-height: 11.31px;
|
|
@@ -1649,36 +1694,55 @@ $arrow-tip-radius: 0.1rem;
|
|
|
1649
1694
|
--q-overlay-border-color: var(--q-theme-neutral-dark);
|
|
1650
1695
|
}
|
|
1651
1696
|
}
|
|
1652
|
-
|
|
1697
|
+
.q-password-field {
|
|
1698
|
+
&__meter {
|
|
1699
|
+
display: flex;
|
|
1700
|
+
flex-direction: column;
|
|
1701
|
+
gap: 1rem;
|
|
1702
|
+
padding: 1rem;
|
|
1703
|
+
&-score {
|
|
1704
|
+
display: flex;
|
|
1705
|
+
flex-direction: column;
|
|
1706
|
+
gap: 0.5rem;
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
&__messages {
|
|
1710
|
+
display: flex;
|
|
1711
|
+
flex-direction: column;
|
|
1712
|
+
list-style: none;
|
|
1713
|
+
color: var(--q-theme-danger);
|
|
1714
|
+
padding: 0;
|
|
1715
|
+
margin: 0;
|
|
1716
|
+
font-size: 0.75rem;
|
|
1717
|
+
gap: 0.25rem;
|
|
1718
|
+
}
|
|
1719
|
+
&__inline-messages {
|
|
1720
|
+
padding: 0.25rem 0;
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1653
1723
|
.q-popover {
|
|
1654
1724
|
.q-overlay__content {
|
|
1655
|
-
z-index: 1070;
|
|
1656
1725
|
position: relative;
|
|
1726
|
+
z-index: 1070;
|
|
1727
|
+
display: flex;
|
|
1728
|
+
flex-direction: column;
|
|
1729
|
+
gap: $space-base * 2;
|
|
1657
1730
|
max-width: 276px;
|
|
1731
|
+
padding: $space-base * 4;
|
|
1732
|
+
font-size: calc($font-size-base * 0.9);
|
|
1658
1733
|
line-height: 1.5;
|
|
1659
1734
|
word-break: normal;
|
|
1660
1735
|
word-spacing: normal;
|
|
1661
1736
|
word-wrap: break-word;
|
|
1662
1737
|
white-space: normal;
|
|
1663
1738
|
line-break: auto;
|
|
1664
|
-
font-size: calc($font-size-base * 0.9);
|
|
1665
1739
|
}
|
|
1666
1740
|
&__header {
|
|
1667
|
-
padding: 0.5rem 1rem;
|
|
1668
1741
|
margin: 0;
|
|
1742
|
+
border-radius: 0.25rem;
|
|
1669
1743
|
font-size: $font-size-base;
|
|
1670
|
-
background-color: $popover-header-bg;
|
|
1671
|
-
border-bottom: 1px solid var(--q-overlay-border-color);
|
|
1672
|
-
border-top-left-radius: inherit;
|
|
1673
|
-
border-top-right-radius: inherit;
|
|
1674
|
-
}
|
|
1675
|
-
&__body {
|
|
1676
|
-
padding: 1rem;
|
|
1677
1744
|
}
|
|
1678
1745
|
}
|
|
1679
|
-
.q-popover.q-overlay--bottom .q-overlay__arrow::after {
|
|
1680
|
-
border-bottom-color: $popover-header-bg;
|
|
1681
|
-
}
|
|
1682
1746
|
$table-header-bg: rgb(var(--q-theme-neutral-light-rgb) / 25%);
|
|
1683
1747
|
$row-hover-bg: rgb(var(--q-theme-primary-light-rgb) / 50%);
|
|
1684
1748
|
$row-selected-bg: rgb(var(--q-theme-primary-rgb) / 15%);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAuBA;
|
|
1
|
+
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAuBA;AA4GC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AA8EvD,iBAAS,cAAc;WAsET,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;yFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QButton as
|
|
3
|
-
import { QIcon as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as q, useAttrs as y, computed as r, toRef as d, createElementBlock as x, openBlock as c, withKeys as h, normalizeStyle as B, normalizeClass as z, withModifiers as w, createElementVNode as u, renderSlot as E, createBlock as S, createCommentVNode as T, unref as m, withCtx as N, createVNode as V, normalizeProps as $, guardReactiveProps as A } from "vue";
|
|
2
|
+
import { QButton as I } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as K } from "../QIcon/index.js";
|
|
4
|
+
import { DEFAULT_TEXTS as P, DEFAULT_ICONS as Q } from "./types.js";
|
|
5
|
+
import { useColorStyle as R } from "../../composables/useColorStyle/index.js";
|
|
6
|
+
const U = ["id", "role", "tabindex", "onKeydown"], D = { class: "q-badge__content" }, j = /* @__PURE__ */ q({
|
|
7
7
|
__name: "QBadge",
|
|
8
8
|
props: {
|
|
9
9
|
id: {},
|
|
@@ -13,15 +13,13 @@ const O = ["id", "role", "tabindex", "onKeydown"], X = { class: "q-badge__conten
|
|
|
13
13
|
removable: { type: Boolean },
|
|
14
14
|
pill: { type: Boolean },
|
|
15
15
|
size: { default: "default" },
|
|
16
|
-
icons: { default: () =>
|
|
17
|
-
texts: { default: () =>
|
|
16
|
+
icons: { default: () => Q },
|
|
17
|
+
texts: { default: () => P }
|
|
18
18
|
},
|
|
19
19
|
emits: ["click:remove"],
|
|
20
|
-
setup(
|
|
21
|
-
const e =
|
|
22
|
-
|
|
23
|
-
), g = n(() => {
|
|
24
|
-
const o = r.value ? `q-badge--${e.color}` : void 0, t = e.size !== "default" ? `q-badge--${e.size}` : void 0;
|
|
20
|
+
setup(v, { emit: f }) {
|
|
21
|
+
const e = v, p = f, b = y(), a = r(() => !!b.onClick), g = r(() => {
|
|
22
|
+
const o = n.value ? `q-badge--${e.color}` : void 0, t = e.size !== "default" ? `q-badge--${e.size}` : void 0;
|
|
25
23
|
return [
|
|
26
24
|
"q-badge",
|
|
27
25
|
`q-badge--${e.variant}`,
|
|
@@ -29,37 +27,33 @@ const O = ["id", "role", "tabindex", "onKeydown"], X = { class: "q-badge__conten
|
|
|
29
27
|
t,
|
|
30
28
|
{
|
|
31
29
|
"q-badge--pill": e.pill,
|
|
32
|
-
"q-badge--clickable":
|
|
30
|
+
"q-badge--clickable": a.value
|
|
33
31
|
},
|
|
34
32
|
e.class
|
|
35
33
|
];
|
|
36
|
-
}), C =
|
|
37
|
-
|
|
38
|
-
if (!
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"--q-badge-text-color": t,
|
|
46
|
-
"--q-badge-text-hover-color": i,
|
|
47
|
-
"--q-badge-hover-color": a
|
|
48
|
-
};
|
|
34
|
+
}), { isUtilityColor: n, style: l } = R(d(e, "color"), d(e, "variant")), C = r(() => {
|
|
35
|
+
var o, t, s, i;
|
|
36
|
+
if (!n.value)
|
|
37
|
+
return {
|
|
38
|
+
"--q-badge-color": (o = l.value) == null ? void 0 : o.backgroundColor,
|
|
39
|
+
"--q-badge-text-color": (t = l.value) == null ? void 0 : t.color,
|
|
40
|
+
"--q-badge-hover-color": (s = l.value) == null ? void 0 : s.hoverBackgroundColor,
|
|
41
|
+
"--q-badge-text-hover-color": (i = l.value) == null ? void 0 : i.hoverColor
|
|
42
|
+
};
|
|
49
43
|
});
|
|
50
|
-
function _() {
|
|
51
|
-
v("click:remove");
|
|
52
|
-
}
|
|
53
|
-
function k(o) {
|
|
44
|
+
function _(o) {
|
|
54
45
|
o.stopImmediatePropagation();
|
|
55
46
|
}
|
|
56
|
-
|
|
47
|
+
function k() {
|
|
48
|
+
p("click:remove");
|
|
49
|
+
}
|
|
50
|
+
return (o, t) => (c(), x("span", {
|
|
57
51
|
id: e.id,
|
|
58
|
-
class:
|
|
59
|
-
role:
|
|
60
|
-
style:
|
|
61
|
-
tabindex:
|
|
62
|
-
onKeydown:
|
|
52
|
+
class: z(g.value),
|
|
53
|
+
role: a.value ? "button" : "presentation",
|
|
54
|
+
style: B(C.value),
|
|
55
|
+
tabindex: a.value ? 0 : void 0,
|
|
56
|
+
onKeydown: h(w(_, ["stop", "prevent"]), ["enter"])
|
|
63
57
|
}, [
|
|
64
58
|
t[0] || (t[0] = u(
|
|
65
59
|
"div",
|
|
@@ -68,20 +62,20 @@ const O = ["id", "role", "tabindex", "onKeydown"], X = { class: "q-badge__conten
|
|
|
68
62
|
-1
|
|
69
63
|
/* HOISTED */
|
|
70
64
|
)),
|
|
71
|
-
u("div",
|
|
72
|
-
|
|
73
|
-
e.removable ? (c(), S(m(
|
|
65
|
+
u("div", D, [
|
|
66
|
+
E(o.$slots, "default"),
|
|
67
|
+
e.removable ? (c(), S(m(I), {
|
|
74
68
|
key: 0,
|
|
75
69
|
class: "q-badge__remove",
|
|
76
70
|
borderless: "",
|
|
77
71
|
tabindex: "0",
|
|
78
72
|
"aria-label": e.texts.removeText,
|
|
79
|
-
onClick:
|
|
73
|
+
onClick: k
|
|
80
74
|
}, {
|
|
81
|
-
default:
|
|
82
|
-
|
|
83
|
-
m(
|
|
84
|
-
|
|
75
|
+
default: N(() => [
|
|
76
|
+
V(
|
|
77
|
+
m(K),
|
|
78
|
+
$(A(e.icons.remove)),
|
|
85
79
|
null,
|
|
86
80
|
16
|
|
87
81
|
/* FULL_PROPS */
|
|
@@ -89,11 +83,11 @@ const O = ["id", "role", "tabindex", "onKeydown"], X = { class: "q-badge__conten
|
|
|
89
83
|
]),
|
|
90
84
|
_: 1
|
|
91
85
|
/* STABLE */
|
|
92
|
-
}, 8, ["aria-label"])) :
|
|
86
|
+
}, 8, ["aria-label"])) : T("v-if", !0)
|
|
93
87
|
])
|
|
94
|
-
], 46,
|
|
88
|
+
], 46, U));
|
|
95
89
|
}
|
|
96
90
|
});
|
|
97
91
|
export {
|
|
98
|
-
|
|
92
|
+
j as default
|
|
99
93
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAiDA;
|
|
1
|
+
{"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAiDA;AAwGC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAO3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,KAAK,WAAW,GAAG,cAAc,CAAC;AA+CnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkGT,OAAO,IAA6B;;wBAZtB,GAAG;wBACF,GAAG;;;;EAgB/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as y, mergeModels as x, useModel as v, computed as _, createElementBlock as q, openBlock as a, Fragment as g, createElementVNode as o, normalizeClass as $, createBlock as n, createCommentVNode as i, createSlots as u, withCtx as m, renderSlot as b, mergeProps as h, withKeys as k, withModifiers as d, unref as B } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { DEFAULT_ICONS as C } from "./constants.js";
|
|
3
|
+
import { QIcon as w } from "../QIcon/index.js";
|
|
3
4
|
import p from "./QCheckboxLabel.vue.js";
|
|
4
|
-
import { DEFAULT_ICONS as w } from "./types.js";
|
|
5
5
|
const V = ["id"], M = ["aria-checked", "disabled", "onKeydown"], P = ["checked", "disabled"], S = /* @__PURE__ */ y({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QCheckbox",
|
|
@@ -15,7 +15,7 @@ const V = ["id"], M = ["aria-checked", "disabled", "onKeydown"], P = ["checked",
|
|
|
15
15
|
indeterminate: { type: Boolean },
|
|
16
16
|
color: { default: "primary" },
|
|
17
17
|
size: { default: "regular" },
|
|
18
|
-
icons: { default: () =>
|
|
18
|
+
icons: { default: () => C }
|
|
19
19
|
}, {
|
|
20
20
|
modelValue: { type: Boolean },
|
|
21
21
|
modelModifiers: {}
|
|
@@ -75,7 +75,7 @@ const V = ["id"], M = ["aria-checked", "disabled", "onKeydown"], P = ["checked",
|
|
|
75
75
|
]
|
|
76
76
|
}), [
|
|
77
77
|
l.value || t.indeterminate ? (a(), n(
|
|
78
|
-
B(
|
|
78
|
+
B(w),
|
|
79
79
|
h({ key: 0 }, l.value ? e.icons.checked : e.icons.indeterminate, { class: "q-checkbox__input-icon" }),
|
|
80
80
|
null,
|
|
81
81
|
16
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;CAOM,CAAA"}
|
|
@@ -10,7 +10,7 @@ declare const QCheckbox: {
|
|
|
10
10
|
indeterminate?: boolean;
|
|
11
11
|
color?: string;
|
|
12
12
|
size?: import('./types').QCheckboxLabelSize;
|
|
13
|
-
icons?: typeof import('./
|
|
13
|
+
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
14
14
|
}> & Readonly<{
|
|
15
15
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -18,7 +18,7 @@ declare const QCheckbox: {
|
|
|
18
18
|
}, import('vue').PublicProps, {
|
|
19
19
|
size: import('./types').QCheckboxLabelSize;
|
|
20
20
|
color: string;
|
|
21
|
-
icons: typeof import('./
|
|
21
|
+
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
22
22
|
labelPlacement: import('./types').QCheckboxLabelPlacement;
|
|
23
23
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
24
24
|
P: {};
|
|
@@ -38,13 +38,13 @@ declare const QCheckbox: {
|
|
|
38
38
|
indeterminate?: boolean;
|
|
39
39
|
color?: string;
|
|
40
40
|
size?: import('./types').QCheckboxLabelSize;
|
|
41
|
-
icons?: typeof import('./
|
|
41
|
+
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
42
42
|
}> & Readonly<{
|
|
43
43
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
44
44
|
}>, {}, {}, {}, {}, {
|
|
45
45
|
size: import('./types').QCheckboxLabelSize;
|
|
46
46
|
color: string;
|
|
47
|
-
icons: typeof import('./
|
|
47
|
+
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
48
48
|
labelPlacement: import('./types').QCheckboxLabelPlacement;
|
|
49
49
|
}>;
|
|
50
50
|
__isFragment?: never;
|
|
@@ -61,7 +61,7 @@ declare const QCheckbox: {
|
|
|
61
61
|
indeterminate?: boolean;
|
|
62
62
|
color?: string;
|
|
63
63
|
size?: import('./types').QCheckboxLabelSize;
|
|
64
|
-
icons?: typeof import('./
|
|
64
|
+
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
65
65
|
}> & Readonly<{
|
|
66
66
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
67
67
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -69,7 +69,7 @@ declare const QCheckbox: {
|
|
|
69
69
|
}, string, {
|
|
70
70
|
size: import('./types').QCheckboxLabelSize;
|
|
71
71
|
color: string;
|
|
72
|
-
icons: typeof import('./
|
|
72
|
+
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
73
73
|
labelPlacement: import('./types').QCheckboxLabelPlacement;
|
|
74
74
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
75
75
|
$slots: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DEFAULT_ICONS } from './constants';
|
|
1
2
|
import { QBaseComponentProps } from '../../types/component';
|
|
2
3
|
export type QCheckboxLabelProps = QBaseComponentProps & {
|
|
3
4
|
/**
|
|
@@ -37,12 +38,4 @@ export type QCheckboxProps = QCheckboxLabelProps & {
|
|
|
37
38
|
*/
|
|
38
39
|
icons?: typeof DEFAULT_ICONS;
|
|
39
40
|
};
|
|
40
|
-
export declare const DEFAULT_ICONS: {
|
|
41
|
-
checked: {
|
|
42
|
-
icon: string;
|
|
43
|
-
};
|
|
44
|
-
indeterminate: {
|
|
45
|
-
icon: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
41
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACvD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAA;IAExC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"AAwEA;AAuJC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAQvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAOhD,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAkEtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6IT,OAAO,IAA6B;;sBAfvB,GAAG;sBAGH,GAAG;iCAFQ,GAAG;gCACJ,GAAG;0BAET,GAAG;yBACJ,GAAG;;;;EAehC;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, mergeModels as T, useModel as w, computed as r, watch as N, createBlock as $, openBlock as c, unref as a, normalizeClass as
|
|
1
|
+
import { defineComponent as y, mergeModels as T, useModel as w, computed as r, watch as N, createBlock as $, openBlock as c, unref as a, normalizeClass as b, withCtx as d, createElementVNode as n, renderSlot as i, createElementBlock as u, createCommentVNode as o, createVNode as p, toDisplayString as _, createTextVNode as B } from "vue";
|
|
2
2
|
import { DEFAULT_ICONS as E } from "./types.js";
|
|
3
3
|
import { QButton as I } from "../QButton/index.js";
|
|
4
4
|
import { QCard as V } from "../QCard/index.js";
|
|
@@ -44,13 +44,13 @@ const L = {
|
|
|
44
44
|
},
|
|
45
45
|
l.class
|
|
46
46
|
];
|
|
47
|
-
}),
|
|
47
|
+
}), k = r(() => [
|
|
48
48
|
"q-collapsible__content-wrapper",
|
|
49
49
|
{
|
|
50
50
|
"q-collapsible__content-show": s.value
|
|
51
51
|
}
|
|
52
52
|
]);
|
|
53
|
-
function
|
|
53
|
+
function C() {
|
|
54
54
|
s.value = !s.value, t == null || t.toggle();
|
|
55
55
|
}
|
|
56
56
|
return N(
|
|
@@ -58,15 +58,16 @@ const L = {
|
|
|
58
58
|
() => s.value = t == null ? void 0 : t.isActive.value
|
|
59
59
|
), (e, f) => (c(), $(a(V), {
|
|
60
60
|
id: a(m),
|
|
61
|
-
class:
|
|
61
|
+
class: b(g.value),
|
|
62
62
|
width: q.value
|
|
63
63
|
}, {
|
|
64
64
|
header: d(() => [
|
|
65
65
|
e.title ? (c(), u("div", L, [
|
|
66
66
|
p(a(I), {
|
|
67
67
|
"b-style": "tertiary",
|
|
68
|
+
block: "",
|
|
68
69
|
class: "q-collapsible__btn",
|
|
69
|
-
onClick:
|
|
70
|
+
onClick: C
|
|
70
71
|
}, {
|
|
71
72
|
default: d(() => [
|
|
72
73
|
o(" TITLE "),
|
|
@@ -82,7 +83,7 @@ const L = {
|
|
|
82
83
|
n(
|
|
83
84
|
"h4",
|
|
84
85
|
S,
|
|
85
|
-
|
|
86
|
+
_(e.title),
|
|
86
87
|
1
|
|
87
88
|
/* TEXT */
|
|
88
89
|
),
|
|
@@ -101,7 +102,7 @@ const L = {
|
|
|
101
102
|
e.$slots.subtitle || e.subtitle ? (c(), u("div", H, [
|
|
102
103
|
i(e.$slots, "subtitle", {}, () => [
|
|
103
104
|
B(
|
|
104
|
-
|
|
105
|
+
_(e.subtitle),
|
|
105
106
|
1
|
|
106
107
|
/* TEXT */
|
|
107
108
|
)
|
|
@@ -117,7 +118,7 @@ const L = {
|
|
|
117
118
|
n(
|
|
118
119
|
"div",
|
|
119
120
|
{
|
|
120
|
-
class:
|
|
121
|
+
class: b(k.value)
|
|
121
122
|
},
|
|
122
123
|
[
|
|
123
124
|
n("div", M, [
|