@empathyco/x-components 3.0.0-alpha.138 → 3.0.0-alpha.139
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/CHANGELOG.md +14 -0
- package/design-system/full-theme.css +150 -151
- package/docs/API-reference/api/x-components.historyqueriesswitch.hashistoryqueries.md +13 -0
- package/docs/API-reference/api/x-components.historyqueriesswitch.historyqueries.md +13 -0
- package/docs/API-reference/api/x-components.historyqueriesswitch.md +7 -0
- package/docs/API-reference/components/history-queries/x-components.history-queries-switch.md +5 -1
- package/js/x-modules/history-queries/components/history-queries-switch.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/history-queries-switch.vue_rollup-plugin-vue_script.vue.js +17 -1
- package/js/x-modules/history-queries/components/history-queries-switch.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +61 -1
- package/report/x-components.api.md +2 -0
- package/types/x-modules/history-queries/components/history-queries-switch.vue.d.ts +11 -0
- package/types/x-modules/history-queries/components/history-queries-switch.vue.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.0-alpha.139](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.138...@empathyco/x-components@3.0.0-alpha.139) (2022-07-22)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **history-queries:** disable `MyHistory` without confirmation when the `history queries` list is
|
|
11
|
+
empty (#615)
|
|
12
|
+
([8b0b1d6](https://github.com/empathyco/x/commit/8b0b1d6e818557eba9482dcd149ed3882ca6c854)),
|
|
13
|
+
closes [EX-6696](https://searchbroker.atlassian.net/browse/EX-6696)
|
|
14
|
+
|
|
15
|
+
# Change Log
|
|
16
|
+
|
|
17
|
+
All notable changes to this project will be documented in this file. See
|
|
18
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
19
|
+
|
|
6
20
|
## [3.0.0-alpha.138](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.137...@empathyco/x-components@3.0.0-alpha.138) (2022-07-22)
|
|
7
21
|
|
|
8
22
|
**Note:** Version bump only for package @empathyco/x-components
|
|
@@ -3925,6 +3925,156 @@
|
|
|
3925
3925
|
--x-size-border-radius-bottom-right-tag-card: var(--x-size-border-radius-tag-card);
|
|
3926
3926
|
--x-size-border-radius-bottom-left-tag-card: var(--x-size-border-radius-tag-card);
|
|
3927
3927
|
}
|
|
3928
|
+
[dir="ltr"] .x-tag {
|
|
3929
|
+
border-left-width: var(--x-size-border-width-left-tag-default);
|
|
3930
|
+
}
|
|
3931
|
+
[dir="rtl"] .x-tag {
|
|
3932
|
+
border-right-width: var(--x-size-border-width-left-tag-default);
|
|
3933
|
+
}
|
|
3934
|
+
[dir="ltr"] .x-tag {
|
|
3935
|
+
border-right-width: var(--x-size-border-width-right-tag-default);
|
|
3936
|
+
}
|
|
3937
|
+
[dir="rtl"] .x-tag {
|
|
3938
|
+
border-left-width: var(--x-size-border-width-right-tag-default);
|
|
3939
|
+
}
|
|
3940
|
+
[dir="ltr"] .x-tag {
|
|
3941
|
+
padding-left: var(--x-size-padding-left-tag-default);
|
|
3942
|
+
}
|
|
3943
|
+
[dir="rtl"] .x-tag {
|
|
3944
|
+
padding-right: var(--x-size-padding-left-tag-default);
|
|
3945
|
+
}
|
|
3946
|
+
[dir="ltr"] .x-tag {
|
|
3947
|
+
padding-right: var(--x-size-padding-right-tag-default);
|
|
3948
|
+
}
|
|
3949
|
+
[dir="rtl"] .x-tag {
|
|
3950
|
+
padding-left: var(--x-size-padding-right-tag-default);
|
|
3951
|
+
}
|
|
3952
|
+
.x-tag {
|
|
3953
|
+
display: flex;
|
|
3954
|
+
align-items: center;
|
|
3955
|
+
justify-content: center;
|
|
3956
|
+
text-align: center;
|
|
3957
|
+
box-sizing: border-box;
|
|
3958
|
+
border-style: solid;
|
|
3959
|
+
border-top-width: var(--x-size-border-width-top-tag-default);
|
|
3960
|
+
border-bottom-width: var(--x-size-border-width-bottom-tag-default);
|
|
3961
|
+
border-radius: var(--x-size-border-radius-top-left-tag-default) var(--x-size-border-radius-top-right-tag-default) var(--x-size-border-radius-bottom-right-tag-default) var(--x-size-border-radius-bottom-left-tag-default);
|
|
3962
|
+
background-color: var(--x-color-background-tag-default);
|
|
3963
|
+
border-color: var(--x-color-border-tag-default);
|
|
3964
|
+
color: var(--x-color-text-tag-default);
|
|
3965
|
+
line-height: var(--x-size-line-height-tag-default);
|
|
3966
|
+
font-family: var(--x-font-family-tag-default);
|
|
3967
|
+
font-size: var(--x-size-font-tag-default);
|
|
3968
|
+
font-weight: var(--x-number-font-weight-tag-default);
|
|
3969
|
+
gap: var(--x-size-gap-tag-default);
|
|
3970
|
+
min-height: var(--x-size-height-tag-default);
|
|
3971
|
+
min-width: calc(3 * var(--x-size-line-height-tag-default));
|
|
3972
|
+
cursor: pointer;
|
|
3973
|
+
}
|
|
3974
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
3975
|
+
.x-tag {
|
|
3976
|
+
gap: 0;
|
|
3977
|
+
}
|
|
3978
|
+
.x-tag > *:not(:last-child) {
|
|
3979
|
+
margin-right: var(--x-size-gap-tag-default);
|
|
3980
|
+
}
|
|
3981
|
+
}
|
|
3982
|
+
.x-tag.x-suggestion {
|
|
3983
|
+
--x-color-background-suggestion-default: var(--x-color-background-tag-default);
|
|
3984
|
+
--x-color-text-suggestion-default: var(--x-color-text-tag-default);
|
|
3985
|
+
--x-color-border-suggestion-default: var(--x-color-border-tag-default);
|
|
3986
|
+
--x-size-padding-top-suggestion-default: 0;
|
|
3987
|
+
--x-size-padding-right-suggestion-default: var(--x-size-padding-right-tag-default);
|
|
3988
|
+
--x-size-padding-bottom-suggestion-default: 0;
|
|
3989
|
+
--x-size-padding-left-suggestion-default: var(--x-size-padding-left-tag-default);
|
|
3990
|
+
--x-size-gap-suggestion-default: var(--x-size-gap-tag-default);
|
|
3991
|
+
--x-size-border-width-suggestion-default: var(--x-size-border-width-tag-default);
|
|
3992
|
+
--x-size-border-width-top-suggestion-default: var(--x-size-border-width-tag-default);
|
|
3993
|
+
--x-size-border-width-right-suggestion-default: var(--x-size-border-width-tag-default);
|
|
3994
|
+
--x-size-border-width-bottom-suggestion-default: var(--x-size-border-width-tag-default);
|
|
3995
|
+
--x-size-border-width-left-suggestion-default: var(--x-size-border-width-tag-default);
|
|
3996
|
+
--x-size-border-radius-bottom-right-suggestion-default: var(--x-size-border-radius-bottom-right-tag-default);
|
|
3997
|
+
--x-size-border-radius-bottom-left-suggestion-default: var(--x-size-border-radius-bottom-leftt-tag-default);
|
|
3998
|
+
--x-size-border-radius-top-right-suggestion-default: var(--x-size-border-radius-top-right-tag-default);
|
|
3999
|
+
--x-size-border-radius-top-left-suggestion-default: var(--x-size-border-radius-top-left-tag-default);
|
|
4000
|
+
--x-font-family-suggestion-default: var(--x-font-family-tag-default);
|
|
4001
|
+
--x-size-font-suggestion-default: var(--x-size-font-tag-default);
|
|
4002
|
+
--x-size-line-height-suggestion-default: var(--x-size-line-height-tag-default);
|
|
4003
|
+
--x-number-font-weight-suggestion-default: var(--x-number-font-weight-tag-default);
|
|
4004
|
+
}
|
|
4005
|
+
.x-tag.x-suggestion-group {
|
|
4006
|
+
--x-color-background-suggestion-group-default: var(--x-color-background-tag-default);
|
|
4007
|
+
--x-color-text-suggestion-group-default: var(--x-color-text-tag-default);
|
|
4008
|
+
--x-color-border-suggestion-group-default: var(--x-color-border-tag-default);
|
|
4009
|
+
--x-size-padding-top-suggestion-group-default: 0;
|
|
4010
|
+
--x-size-padding-right-suggestion-group-default: var(--x-size-padding-right-tag-default);
|
|
4011
|
+
--x-size-padding-bottom-suggestion-group-default: 0;
|
|
4012
|
+
--x-size-padding-left-suggestion-group-default: var(--x-size-padding-left-tag-default);
|
|
4013
|
+
--x-size-gap-suggestion-group-default: var(--x-size-gap-tag-default);
|
|
4014
|
+
--x-size-border-width-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
4015
|
+
--x-size-border-width-top-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
4016
|
+
--x-size-border-width-right-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
4017
|
+
--x-size-border-width-bottom-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
4018
|
+
--x-size-border-width-left-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
4019
|
+
--x-size-border-radius-bottom-right-suggestion-group-default: var(--x-size-border-radius-bottom-right-tag-default);
|
|
4020
|
+
--x-size-border-radius-bottom-left-suggestion-group-default: var(--x-size-border-radius-bottom-leftt-tag-default);
|
|
4021
|
+
--x-size-border-radius-top-right-suggestion-group-default: var(--x-size-border-radius-top-right-tag-default);
|
|
4022
|
+
--x-size-border-radius-top-left-suggestion-group-default: var(--x-size-border-radius-top-left-tag-default);
|
|
4023
|
+
--x-font-family-suggestion-group-default: var(--x-font-family-tag-default);
|
|
4024
|
+
--x-size-font-suggestion-group-default: var(--x-size-font-tag-default);
|
|
4025
|
+
--x-size-line-height-suggestion-group-default: var(--x-size-line-height-tag-default);
|
|
4026
|
+
--x-number-font-weight-suggestion-group-default: var(--x-number-font-weight-tag-default);
|
|
4027
|
+
}
|
|
4028
|
+
.x-tag.x-filter {
|
|
4029
|
+
--x-color-background-filter-default: transparent;
|
|
4030
|
+
--x-size-border-width-filter-default: 0;
|
|
4031
|
+
--x-color-text-filter-default: var(--x-color-text-tag-default);
|
|
4032
|
+
--x-size-padding-top-filter-default: 0;
|
|
4033
|
+
--x-size-padding-right-filter-default: var(--x-size-padding-right-tag-default);
|
|
4034
|
+
--x-size-padding-bottom-filter-default: 0;
|
|
4035
|
+
--x-size-padding-left-filter-default: var(--x-size-padding-left-tag-default);
|
|
4036
|
+
--x-size-gap-filter-default: var(--x-size-gap-tag-default);
|
|
4037
|
+
--x-font-family-filter-default: var(--x-font-family-tag-default);
|
|
4038
|
+
--x-size-font-filter-default: var(--x-size-font-tag-default);
|
|
4039
|
+
--x-number-font-weight-filter-count-default: var(--x-number-font-weight-tag-default);
|
|
4040
|
+
--x-size-line-height-filter-default: var(--x-size-line-height-tag-default);
|
|
4041
|
+
}
|
|
4042
|
+
.x-tag.x-tag.x-tag--is-curated {
|
|
4043
|
+
background-color: var(--x-color-background-tag-default-curated);
|
|
4044
|
+
border-color: var(--x-color-border-tag-default-curated);
|
|
4045
|
+
color: var(--x-color-text-tag-default-curated);
|
|
4046
|
+
line-height: var(--x-size-line-height-tag-default-curated);
|
|
4047
|
+
font-family: var(--x-font-family-tag-default-curated);
|
|
4048
|
+
font-size: var(--x-size-font-tag-default-curated);
|
|
4049
|
+
font-weight: var(--x-number-font-weight-tag-default-curated);
|
|
4050
|
+
}
|
|
4051
|
+
.x-tag.x-tag.x-tag--is-selected {
|
|
4052
|
+
background-color: var(--x-color-background-tag-default-selected);
|
|
4053
|
+
border-color: var(--x-color-border-tag-default-selected);
|
|
4054
|
+
color: var(--x-color-text-tag-default-selected);
|
|
4055
|
+
line-height: var(--x-size-line-height-tag-default-selected);
|
|
4056
|
+
font-family: var(--x-font-family-tag-default-selected);
|
|
4057
|
+
font-size: var(--x-size-font-tag-default-selected);
|
|
4058
|
+
font-weight: var(--x-number-font-weight-tag-default-selected);
|
|
4059
|
+
}
|
|
4060
|
+
.x-tag.x-tag.x-tag--is-selected.x-tag--is-curated {
|
|
4061
|
+
background-color: var(--x-color-background-tag-default-curated-selected);
|
|
4062
|
+
border-color: var(--x-color-border-tag-default-curated-selected);
|
|
4063
|
+
color: var(--x-color-text-tag-default-curated-selected);
|
|
4064
|
+
line-height: var(--x-size-line-height-tag-default-curated-selected);
|
|
4065
|
+
font-family: var(--x-font-family-tag-default-curated-selected);
|
|
4066
|
+
font-size: var(--x-size-font-tag-default-curated-selected);
|
|
4067
|
+
font-weight: var(--x-number-font-weight-tag-default-curated-selected);
|
|
4068
|
+
}
|
|
4069
|
+
.x-tag.x-tag.x-tag--is-selected.x-filter {
|
|
4070
|
+
--x-color-text-filter-default-selected: var(--x-color-text-tag-default-selected);
|
|
4071
|
+
--x-font-family-filter-default-selected: var(--x-font-family-tag-default-selected);
|
|
4072
|
+
--x-size-font-filter-default-selected: var(--x-size-font-tag-default-selected);
|
|
4073
|
+
--x-number-font-weight-filter-count-default-selected: var(
|
|
4074
|
+
--x-number-font-weight-tag-default-selected
|
|
4075
|
+
);
|
|
4076
|
+
--x-size-line-height-filter-default-selected: var(--x-size-line-height-tag-default-selected);
|
|
4077
|
+
}
|
|
3928
4078
|
:root {
|
|
3929
4079
|
--x-color-background-tag-default: var(--x-color-base-neutral-100);
|
|
3930
4080
|
--x-color-border-tag-default: var(--x-color-text-tag-default);
|
|
@@ -7463,154 +7613,3 @@
|
|
|
7463
7613
|
.x-normal-case {
|
|
7464
7614
|
text-transform: none;
|
|
7465
7615
|
}
|
|
7466
|
-
|
|
7467
|
-
[dir="ltr"] .x-tag {
|
|
7468
|
-
border-left-width: var(--x-size-border-width-left-tag-default);
|
|
7469
|
-
}
|
|
7470
|
-
[dir="rtl"] .x-tag {
|
|
7471
|
-
border-right-width: var(--x-size-border-width-left-tag-default);
|
|
7472
|
-
}
|
|
7473
|
-
[dir="ltr"] .x-tag {
|
|
7474
|
-
border-right-width: var(--x-size-border-width-right-tag-default);
|
|
7475
|
-
}
|
|
7476
|
-
[dir="rtl"] .x-tag {
|
|
7477
|
-
border-left-width: var(--x-size-border-width-right-tag-default);
|
|
7478
|
-
}
|
|
7479
|
-
[dir="ltr"] .x-tag {
|
|
7480
|
-
padding-left: var(--x-size-padding-left-tag-default);
|
|
7481
|
-
}
|
|
7482
|
-
[dir="rtl"] .x-tag {
|
|
7483
|
-
padding-right: var(--x-size-padding-left-tag-default);
|
|
7484
|
-
}
|
|
7485
|
-
[dir="ltr"] .x-tag {
|
|
7486
|
-
padding-right: var(--x-size-padding-right-tag-default);
|
|
7487
|
-
}
|
|
7488
|
-
[dir="rtl"] .x-tag {
|
|
7489
|
-
padding-left: var(--x-size-padding-right-tag-default);
|
|
7490
|
-
}
|
|
7491
|
-
.x-tag {
|
|
7492
|
-
display: flex;
|
|
7493
|
-
align-items: center;
|
|
7494
|
-
justify-content: center;
|
|
7495
|
-
text-align: center;
|
|
7496
|
-
box-sizing: border-box;
|
|
7497
|
-
border-style: solid;
|
|
7498
|
-
border-top-width: var(--x-size-border-width-top-tag-default);
|
|
7499
|
-
border-bottom-width: var(--x-size-border-width-bottom-tag-default);
|
|
7500
|
-
border-radius: var(--x-size-border-radius-top-left-tag-default) var(--x-size-border-radius-top-right-tag-default) var(--x-size-border-radius-bottom-right-tag-default) var(--x-size-border-radius-bottom-left-tag-default);
|
|
7501
|
-
background-color: var(--x-color-background-tag-default);
|
|
7502
|
-
border-color: var(--x-color-border-tag-default);
|
|
7503
|
-
color: var(--x-color-text-tag-default);
|
|
7504
|
-
line-height: var(--x-size-line-height-tag-default);
|
|
7505
|
-
font-family: var(--x-font-family-tag-default);
|
|
7506
|
-
font-size: var(--x-size-font-tag-default);
|
|
7507
|
-
font-weight: var(--x-number-font-weight-tag-default);
|
|
7508
|
-
gap: var(--x-size-gap-tag-default);
|
|
7509
|
-
min-height: var(--x-size-height-tag-default);
|
|
7510
|
-
min-width: calc(3 * var(--x-size-line-height-tag-default));
|
|
7511
|
-
cursor: pointer;
|
|
7512
|
-
}
|
|
7513
|
-
@media not all and (min-resolution: 0.001dpcm) {
|
|
7514
|
-
.x-tag {
|
|
7515
|
-
gap: 0;
|
|
7516
|
-
}
|
|
7517
|
-
.x-tag > *:not(:last-child) {
|
|
7518
|
-
margin-right: var(--x-size-gap-tag-default);
|
|
7519
|
-
}
|
|
7520
|
-
}
|
|
7521
|
-
.x-tag.x-suggestion {
|
|
7522
|
-
--x-color-background-suggestion-default: var(--x-color-background-tag-default);
|
|
7523
|
-
--x-color-text-suggestion-default: var(--x-color-text-tag-default);
|
|
7524
|
-
--x-color-border-suggestion-default: var(--x-color-border-tag-default);
|
|
7525
|
-
--x-size-padding-top-suggestion-default: 0;
|
|
7526
|
-
--x-size-padding-right-suggestion-default: var(--x-size-padding-right-tag-default);
|
|
7527
|
-
--x-size-padding-bottom-suggestion-default: 0;
|
|
7528
|
-
--x-size-padding-left-suggestion-default: var(--x-size-padding-left-tag-default);
|
|
7529
|
-
--x-size-gap-suggestion-default: var(--x-size-gap-tag-default);
|
|
7530
|
-
--x-size-border-width-suggestion-default: var(--x-size-border-width-tag-default);
|
|
7531
|
-
--x-size-border-width-top-suggestion-default: var(--x-size-border-width-tag-default);
|
|
7532
|
-
--x-size-border-width-right-suggestion-default: var(--x-size-border-width-tag-default);
|
|
7533
|
-
--x-size-border-width-bottom-suggestion-default: var(--x-size-border-width-tag-default);
|
|
7534
|
-
--x-size-border-width-left-suggestion-default: var(--x-size-border-width-tag-default);
|
|
7535
|
-
--x-size-border-radius-bottom-right-suggestion-default: var(--x-size-border-radius-bottom-right-tag-default);
|
|
7536
|
-
--x-size-border-radius-bottom-left-suggestion-default: var(--x-size-border-radius-bottom-leftt-tag-default);
|
|
7537
|
-
--x-size-border-radius-top-right-suggestion-default: var(--x-size-border-radius-top-right-tag-default);
|
|
7538
|
-
--x-size-border-radius-top-left-suggestion-default: var(--x-size-border-radius-top-left-tag-default);
|
|
7539
|
-
--x-font-family-suggestion-default: var(--x-font-family-tag-default);
|
|
7540
|
-
--x-size-font-suggestion-default: var(--x-size-font-tag-default);
|
|
7541
|
-
--x-size-line-height-suggestion-default: var(--x-size-line-height-tag-default);
|
|
7542
|
-
--x-number-font-weight-suggestion-default: var(--x-number-font-weight-tag-default);
|
|
7543
|
-
}
|
|
7544
|
-
.x-tag.x-suggestion-group {
|
|
7545
|
-
--x-color-background-suggestion-group-default: var(--x-color-background-tag-default);
|
|
7546
|
-
--x-color-text-suggestion-group-default: var(--x-color-text-tag-default);
|
|
7547
|
-
--x-color-border-suggestion-group-default: var(--x-color-border-tag-default);
|
|
7548
|
-
--x-size-padding-top-suggestion-group-default: 0;
|
|
7549
|
-
--x-size-padding-right-suggestion-group-default: var(--x-size-padding-right-tag-default);
|
|
7550
|
-
--x-size-padding-bottom-suggestion-group-default: 0;
|
|
7551
|
-
--x-size-padding-left-suggestion-group-default: var(--x-size-padding-left-tag-default);
|
|
7552
|
-
--x-size-gap-suggestion-group-default: var(--x-size-gap-tag-default);
|
|
7553
|
-
--x-size-border-width-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
7554
|
-
--x-size-border-width-top-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
7555
|
-
--x-size-border-width-right-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
7556
|
-
--x-size-border-width-bottom-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
7557
|
-
--x-size-border-width-left-suggestion-group-default: var(--x-size-border-width-tag-default);
|
|
7558
|
-
--x-size-border-radius-bottom-right-suggestion-group-default: var(--x-size-border-radius-bottom-right-tag-default);
|
|
7559
|
-
--x-size-border-radius-bottom-left-suggestion-group-default: var(--x-size-border-radius-bottom-leftt-tag-default);
|
|
7560
|
-
--x-size-border-radius-top-right-suggestion-group-default: var(--x-size-border-radius-top-right-tag-default);
|
|
7561
|
-
--x-size-border-radius-top-left-suggestion-group-default: var(--x-size-border-radius-top-left-tag-default);
|
|
7562
|
-
--x-font-family-suggestion-group-default: var(--x-font-family-tag-default);
|
|
7563
|
-
--x-size-font-suggestion-group-default: var(--x-size-font-tag-default);
|
|
7564
|
-
--x-size-line-height-suggestion-group-default: var(--x-size-line-height-tag-default);
|
|
7565
|
-
--x-number-font-weight-suggestion-group-default: var(--x-number-font-weight-tag-default);
|
|
7566
|
-
}
|
|
7567
|
-
.x-tag.x-filter {
|
|
7568
|
-
--x-color-background-filter-default: transparent;
|
|
7569
|
-
--x-size-border-width-filter-default: 0;
|
|
7570
|
-
--x-color-text-filter-default: var(--x-color-text-tag-default);
|
|
7571
|
-
--x-size-padding-top-filter-default: 0;
|
|
7572
|
-
--x-size-padding-right-filter-default: var(--x-size-padding-right-tag-default);
|
|
7573
|
-
--x-size-padding-bottom-filter-default: 0;
|
|
7574
|
-
--x-size-padding-left-filter-default: var(--x-size-padding-left-tag-default);
|
|
7575
|
-
--x-size-gap-filter-default: var(--x-size-gap-tag-default);
|
|
7576
|
-
--x-font-family-filter-default: var(--x-font-family-tag-default);
|
|
7577
|
-
--x-size-font-filter-default: var(--x-size-font-tag-default);
|
|
7578
|
-
--x-number-font-weight-filter-count-default: var(--x-number-font-weight-tag-default);
|
|
7579
|
-
--x-size-line-height-filter-default: var(--x-size-line-height-tag-default);
|
|
7580
|
-
}
|
|
7581
|
-
.x-tag.x-tag.x-tag--is-curated {
|
|
7582
|
-
background-color: var(--x-color-background-tag-default-curated);
|
|
7583
|
-
border-color: var(--x-color-border-tag-default-curated);
|
|
7584
|
-
color: var(--x-color-text-tag-default-curated);
|
|
7585
|
-
line-height: var(--x-size-line-height-tag-default-curated);
|
|
7586
|
-
font-family: var(--x-font-family-tag-default-curated);
|
|
7587
|
-
font-size: var(--x-size-font-tag-default-curated);
|
|
7588
|
-
font-weight: var(--x-number-font-weight-tag-default-curated);
|
|
7589
|
-
}
|
|
7590
|
-
.x-tag.x-tag.x-tag--is-selected {
|
|
7591
|
-
background-color: var(--x-color-background-tag-default-selected);
|
|
7592
|
-
border-color: var(--x-color-border-tag-default-selected);
|
|
7593
|
-
color: var(--x-color-text-tag-default-selected);
|
|
7594
|
-
line-height: var(--x-size-line-height-tag-default-selected);
|
|
7595
|
-
font-family: var(--x-font-family-tag-default-selected);
|
|
7596
|
-
font-size: var(--x-size-font-tag-default-selected);
|
|
7597
|
-
font-weight: var(--x-number-font-weight-tag-default-selected);
|
|
7598
|
-
}
|
|
7599
|
-
.x-tag.x-tag.x-tag--is-selected.x-tag--is-curated {
|
|
7600
|
-
background-color: var(--x-color-background-tag-default-curated-selected);
|
|
7601
|
-
border-color: var(--x-color-border-tag-default-curated-selected);
|
|
7602
|
-
color: var(--x-color-text-tag-default-curated-selected);
|
|
7603
|
-
line-height: var(--x-size-line-height-tag-default-curated-selected);
|
|
7604
|
-
font-family: var(--x-font-family-tag-default-curated-selected);
|
|
7605
|
-
font-size: var(--x-size-font-tag-default-curated-selected);
|
|
7606
|
-
font-weight: var(--x-number-font-weight-tag-default-curated-selected);
|
|
7607
|
-
}
|
|
7608
|
-
.x-tag.x-tag.x-tag--is-selected.x-filter {
|
|
7609
|
-
--x-color-text-filter-default-selected: var(--x-color-text-tag-default-selected);
|
|
7610
|
-
--x-font-family-filter-default-selected: var(--x-font-family-tag-default-selected);
|
|
7611
|
-
--x-size-font-filter-default-selected: var(--x-size-font-tag-default-selected);
|
|
7612
|
-
--x-number-font-weight-filter-count-default-selected: var(
|
|
7613
|
-
--x-number-font-weight-tag-default-selected
|
|
7614
|
-
);
|
|
7615
|
-
--x-size-line-height-filter-default-selected: var(--x-size-line-height-tag-default-selected);
|
|
7616
|
-
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [HistoryQueriesSwitch](./x-components.historyqueriesswitch.md) > [hasHistoryQueries](./x-components.historyqueriesswitch.hashistoryqueries.md)
|
|
4
|
+
|
|
5
|
+
## HistoryQueriesSwitch.hasHistoryQueries property
|
|
6
|
+
|
|
7
|
+
Checks if there are history queries.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
protected get hasHistoryQueries(): boolean;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [HistoryQueriesSwitch](./x-components.historyqueriesswitch.md) > [historyQueries](./x-components.historyqueriesswitch.historyqueries.md)
|
|
4
|
+
|
|
5
|
+
## HistoryQueriesSwitch.historyQueries property
|
|
6
|
+
|
|
7
|
+
The history queries from the state.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
historyQueries: HistoryQuery[];
|
|
13
|
+
```
|
|
@@ -13,3 +13,10 @@ export default class HistoryQueriesSwitch extends Vue
|
|
|
13
13
|
```
|
|
14
14
|
<b>Extends:</b> Vue
|
|
15
15
|
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
| Property | Modifiers | Type | Description |
|
|
19
|
+
| --- | --- | --- | --- |
|
|
20
|
+
| [hasHistoryQueries](./x-components.historyqueriesswitch.hashistoryqueries.md) | | boolean | Checks if there are history queries. |
|
|
21
|
+
| [historyQueries](./x-components.historyqueriesswitch.historyqueries.md) | | HistoryQuery\[\] | The history queries from the state. |
|
|
22
|
+
|
package/docs/API-reference/components/history-queries/x-components.history-queries-switch.md
CHANGED
|
@@ -16,7 +16,11 @@ A list of events that the component will emit:
|
|
|
16
16
|
- [`UserClickedEnableHistoryQueries`](x-components.historyqueriesxevents.userclickedenablehistoryqueries.md): the event is emitted
|
|
17
17
|
whenever the user clicks the switch and the history queries are disabled.
|
|
18
18
|
- [`UserClickedDisableHistoryQueries`](x-components.historyqueriesxevents.userclickeddisablehistoryqueries.md): the event is emitted
|
|
19
|
-
whenever the user clicks the switch
|
|
19
|
+
whenever the user clicks the switch when the history queries are enabled and the list of history
|
|
20
|
+
queries is not empty.
|
|
21
|
+
- [`UserClickedConfirmDisableHistoryQueries`](x-components.historyqueriesxevents.userclickedconfirmdisablehistoryqueries.md): the event is
|
|
22
|
+
emitted whenever the user clicks the switch when the history queries are enabled and the list of
|
|
23
|
+
history queries is empty.
|
|
20
24
|
|
|
21
25
|
## See it in action
|
|
22
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-queries-switch.vue.js","sources":["../../../../../src/x-modules/history-queries/components/history-queries-switch.vue"],"sourcesContent":["<template>\n <BaseSwitch @change=\"toggle\" :value=\"isEnabled\" />\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import BaseSwitch from '../../../components/base-switch.vue';\n import { State } from '../../../components/decorators/store.decorators';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { historyQueriesXModule } from '../x-module';\n\n /**\n * History Queries Switch is a component to enable or disable the history queries.\n * This component emits events depending on the `isEnabled` value.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(historyQueriesXModule)],\n components: { BaseSwitch }\n })\n export default class HistoryQueriesSwitch extends Vue {\n /**\n * A boolean with the isEnabled value coming from the store state.\n *\n * @internal\n */\n @State('historyQueries', 'isEnabled')\n public isEnabled!: boolean;\n\n /**\n * Emits an event based on the switch state.\n *\n * @internal\n */\n protected toggle(): void {\n this.$x.emit(\n this.isEnabled ? 'UserClickedDisableHistoryQueries' : 'UserClickedEnableHistoryQueries'\n );\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`UserClickedEnableHistoryQueries`]\n (x-components.historyqueriesxevents.userclickedenablehistoryqueries.md): the event is emitted\n whenever the user clicks the switch and the history queries are disabled.\n- [`UserClickedDisableHistoryQueries`]\n (x-components.historyqueriesxevents.userclickeddisablehistoryqueries.md): the event is emitted\n whenever the user clicks the switch and the history queries are enabled.\n\n## See it in action\n\nHere you have a basic example of how the switch is rendered.\n\n_Try clicking it to see how it changes its state_\n\n```vue live\n<template>\n <HistoryQueriesSwitch />\n</template>\n\n<script>\n import { HistoryQueriesSwitch } from '@empathyco/x-components';\n\n export default {\n name: 'HistoryQueriesSwitchDemo',\n components: {\n HistoryQueriesSwitch\n }\n };\n</script>\n```\n\nHere you have a more complex example.\n\n```vue live\n<template>\n <div>\n <div>\n <SearchInput :instant=\"false\" />\n <SearchButton>Search</SearchButton>\n </div>\n <label>\n History queries:\n <HistoryQueriesSwitch />\n <HistoryQueries />\n <BaseEventsModal :eventsToOpenModal=\"eventsToOpenModal\">\n <BaseEventButton :events=\"disableEvents\">Disable</BaseEventButton>\n <BaseEventButton :events=\"cancelEvents\">Cancel</BaseEventButton>\n </BaseEventsModal>\n </label>\n </div>\n</template>\n\n<script>\n import { BaseEventButton, BaseEventsModal } from '@empathyco/x-components';\n import { HistoryQueriesSwitch, HistoryQueries } from '@empathyco/x-components/history-queries';\n import { SearchInput, SearchButton } from '@empathyco/x-components/search';\n export default {\n name: 'HistoryQueriesSwitchDemo',\n components: {\n BaseEventButton,\n BaseEventsModal,\n HistoryQueriesSwitch,\n HistoryQueries,\n SearchInput,\n SearchButton\n },\n data() {\n return {\n eventsToOpenModal: ['UserClickedDisableHistoryQueries'],\n disableEvents: {\n UserClickedConfirmDisableHistoryQueries: undefined,\n UserClickedCloseEventsModal: undefined\n },\n cancelEvents: {\n UserClickedCloseEventsModal: undefined\n }\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"history-queries-switch.vue.js","sources":["../../../../../src/x-modules/history-queries/components/history-queries-switch.vue"],"sourcesContent":["<template>\n <BaseSwitch @change=\"toggle\" :value=\"isEnabled\" />\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import { HistoryQuery } from '@empathyco/x-types';\n import BaseSwitch from '../../../components/base-switch.vue';\n import { State } from '../../../components/decorators/store.decorators';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { historyQueriesXModule } from '../x-module';\n import { isArrayEmpty } from '../../../utils/array';\n\n /**\n * History Queries Switch is a component to enable or disable the history queries.\n * This component emits events depending on the `isEnabled` value.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(historyQueriesXModule)],\n components: { BaseSwitch }\n })\n export default class HistoryQueriesSwitch extends Vue {\n /**\n * A boolean with the isEnabled value coming from the store state.\n *\n * @internal\n */\n @State('historyQueries', 'isEnabled')\n public isEnabled!: boolean;\n\n /**\n * The history queries from the state.\n */\n @State('historyQueries', 'historyQueries')\n public historyQueries!: HistoryQuery[];\n\n /**\n * Checks if there are history queries.\n *\n * @returns True if there are history queries; false otherwise.\n */\n protected get hasHistoryQueries(): boolean {\n return !isArrayEmpty(this.historyQueries);\n }\n\n /**\n * Emits an event based on the switch state.\n *\n * @internal\n */\n protected toggle(): void {\n this.$x.emit(\n this.isEnabled\n ? this.hasHistoryQueries\n ? 'UserClickedDisableHistoryQueries'\n : 'UserClickedConfirmDisableHistoryQueries'\n : 'UserClickedEnableHistoryQueries'\n );\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`UserClickedEnableHistoryQueries`]\n (x-components.historyqueriesxevents.userclickedenablehistoryqueries.md): the event is emitted\n whenever the user clicks the switch and the history queries are disabled.\n- [`UserClickedDisableHistoryQueries`]\n (x-components.historyqueriesxevents.userclickeddisablehistoryqueries.md): the event is emitted\n whenever the user clicks the switch when the history queries are enabled and the list of history\n queries is not empty.\n- [`UserClickedConfirmDisableHistoryQueries`]\n (x-components.historyqueriesxevents.userclickedconfirmdisablehistoryqueries.md): the event is\n emitted whenever the user clicks the switch when the history queries are enabled and the list of\n history queries is empty.\n\n## See it in action\n\nHere you have a basic example of how the switch is rendered.\n\n_Try clicking it to see how it changes its state_\n\n```vue live\n<template>\n <HistoryQueriesSwitch />\n</template>\n\n<script>\n import { HistoryQueriesSwitch } from '@empathyco/x-components';\n\n export default {\n name: 'HistoryQueriesSwitchDemo',\n components: {\n HistoryQueriesSwitch\n }\n };\n</script>\n```\n\nHere you have a more complex example.\n\n```vue live\n<template>\n <div>\n <div>\n <SearchInput :instant=\"false\" />\n <SearchButton>Search</SearchButton>\n </div>\n <label>\n History queries:\n <HistoryQueriesSwitch />\n <HistoryQueries />\n <BaseEventsModal :eventsToOpenModal=\"eventsToOpenModal\">\n <BaseEventButton :events=\"disableEvents\">Disable</BaseEventButton>\n <BaseEventButton :events=\"cancelEvents\">Cancel</BaseEventButton>\n </BaseEventsModal>\n </label>\n </div>\n</template>\n\n<script>\n import { BaseEventButton, BaseEventsModal } from '@empathyco/x-components';\n import { HistoryQueriesSwitch, HistoryQueries } from '@empathyco/x-components/history-queries';\n import { SearchInput, SearchButton } from '@empathyco/x-components/search';\n export default {\n name: 'HistoryQueriesSwitchDemo',\n components: {\n BaseEventButton,\n BaseEventsModal,\n HistoryQueriesSwitch,\n HistoryQueries,\n SearchInput,\n SearchButton\n },\n data() {\n return {\n eventsToOpenModal: ['UserClickedDisableHistoryQueries'],\n disableEvents: {\n UserClickedConfirmDisableHistoryQueries: undefined,\n UserClickedCloseEventsModal: undefined\n },\n cancelEvents: {\n UserClickedCloseEventsModal: undefined\n }\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,6 +5,7 @@ import __vue_component__ from '../../../components/base-switch.vue.js';
|
|
|
5
5
|
import { State } from '../../../components/decorators/store.decorators.js';
|
|
6
6
|
import { xComponentMixin } from '../../../components/x-component.mixin.js';
|
|
7
7
|
import { historyQueriesXModule } from '../x-module.js';
|
|
8
|
+
import { isArrayEmpty } from '../../../utils/array.js';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* History Queries Switch is a component to enable or disable the history queries.
|
|
@@ -13,18 +14,33 @@ import { historyQueriesXModule } from '../x-module.js';
|
|
|
13
14
|
* @public
|
|
14
15
|
*/
|
|
15
16
|
let HistoryQueriesSwitch = class HistoryQueriesSwitch extends Vue {
|
|
17
|
+
/**
|
|
18
|
+
* Checks if there are history queries.
|
|
19
|
+
*
|
|
20
|
+
* @returns True if there are history queries; false otherwise.
|
|
21
|
+
*/
|
|
22
|
+
get hasHistoryQueries() {
|
|
23
|
+
return !isArrayEmpty(this.historyQueries);
|
|
24
|
+
}
|
|
16
25
|
/**
|
|
17
26
|
* Emits an event based on the switch state.
|
|
18
27
|
*
|
|
19
28
|
* @internal
|
|
20
29
|
*/
|
|
21
30
|
toggle() {
|
|
22
|
-
this.$x.emit(this.isEnabled
|
|
31
|
+
this.$x.emit(this.isEnabled
|
|
32
|
+
? this.hasHistoryQueries
|
|
33
|
+
? 'UserClickedDisableHistoryQueries'
|
|
34
|
+
: 'UserClickedConfirmDisableHistoryQueries'
|
|
35
|
+
: 'UserClickedEnableHistoryQueries');
|
|
23
36
|
}
|
|
24
37
|
};
|
|
25
38
|
__decorate([
|
|
26
39
|
State('historyQueries', 'isEnabled')
|
|
27
40
|
], HistoryQueriesSwitch.prototype, "isEnabled", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
State('historyQueries', 'historyQueries')
|
|
43
|
+
], HistoryQueriesSwitch.prototype, "historyQueries", void 0);
|
|
28
44
|
HistoryQueriesSwitch = __decorate([
|
|
29
45
|
Component({
|
|
30
46
|
mixins: [xComponentMixin(historyQueriesXModule)],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-queries-switch.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../../src/x-modules/history-queries/components/history-queries-switch.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport BaseSwitch from '../../../components/base-switch.vue';\nimport { State } from '../../../components/decorators/store.decorators';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { historyQueriesXModule } from '../x-module';\n\n/**\n * History Queries Switch is a component to enable or disable the history queries.\n * This component emits events depending on the `isEnabled` value.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(historyQueriesXModule)],\n components: { BaseSwitch }\n})\nexport default class HistoryQueriesSwitch extends Vue {\n /**\n * A boolean with the isEnabled value coming from the store state.\n *\n * @internal\n */\n @State('historyQueries', 'isEnabled')\n public isEnabled!: boolean;\n\n /**\n * Emits an event based on the switch state.\n *\n * @internal\n */\n protected toggle(): void {\n this.$x.emit(\n this.isEnabled ? 'UserClickedDisableHistoryQueries' : 'UserClickedEnableHistoryQueries'\n );\n }\n}\n"],"names":["BaseSwitch"],"mappings":"
|
|
1
|
+
{"version":3,"file":"history-queries-switch.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../../src/x-modules/history-queries/components/history-queries-switch.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { HistoryQuery } from '@empathyco/x-types';\nimport BaseSwitch from '../../../components/base-switch.vue';\nimport { State } from '../../../components/decorators/store.decorators';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { historyQueriesXModule } from '../x-module';\nimport { isArrayEmpty } from '../../../utils/array';\n\n/**\n * History Queries Switch is a component to enable or disable the history queries.\n * This component emits events depending on the `isEnabled` value.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(historyQueriesXModule)],\n components: { BaseSwitch }\n})\nexport default class HistoryQueriesSwitch extends Vue {\n /**\n * A boolean with the isEnabled value coming from the store state.\n *\n * @internal\n */\n @State('historyQueries', 'isEnabled')\n public isEnabled!: boolean;\n\n /**\n * The history queries from the state.\n */\n @State('historyQueries', 'historyQueries')\n public historyQueries!: HistoryQuery[];\n\n /**\n * Checks if there are history queries.\n *\n * @returns True if there are history queries; false otherwise.\n */\n protected get hasHistoryQueries(): boolean {\n return !isArrayEmpty(this.historyQueries);\n }\n\n /**\n * Emits an event based on the switch state.\n *\n * @internal\n */\n protected toggle(): void {\n this.$x.emit(\n this.isEnabled\n ? this.hasHistoryQueries\n ? 'UserClickedDisableHistoryQueries'\n : 'UserClickedConfirmDisableHistoryQueries'\n : 'UserClickedEnableHistoryQueries'\n );\n }\n}\n"],"names":["BaseSwitch"],"mappings":";;;;;;;;;AAcA;;;;;;AAUA,IAAqB,oBAAoB,GAAzC,MAAqB,oBAAqB,SAAQ,GAAG;;;;;;IAoBnD,IAAc,iBAAiB;QAC7B,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;KAC3C;;;;;;IAOS,MAAM;QACd,IAAI,CAAC,EAAE,CAAC,IAAI,CACV,IAAI,CAAC,SAAS;cACV,IAAI,CAAC,iBAAiB;kBACpB,kCAAkC;kBAClC,yCAAyC;cAC3C,iCAAiC,CACtC,CAAC;KACH;CACF,CAAA;AA/BC;IADC,KAAK,CAAC,gBAAgB,EAAE,WAAW,CAAC;uDACV;AAM3B;IADC,KAAK,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;4DACH;AAbpB,oBAAoB;IAJxC,SAAS,CAAC;QACT,MAAM,EAAE,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC;QAChD,UAAU,EAAE,cAAEA,iBAAU,EAAE;KAC3B,CAAC;GACmB,oBAAoB,CAsCxC;aAtCoB,oBAAoB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.139",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"access": "public",
|
|
126
126
|
"directory": "dist"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "a09e6ff5149bd33c0ee0ebb88e5bde22058c4fe7"
|
|
129
129
|
}
|
|
@@ -19957,7 +19957,67 @@
|
|
|
19957
19957
|
],
|
|
19958
19958
|
"releaseTag": "Public",
|
|
19959
19959
|
"name": "HistoryQueriesSwitch",
|
|
19960
|
-
"members": [
|
|
19960
|
+
"members": [
|
|
19961
|
+
{
|
|
19962
|
+
"kind": "Property",
|
|
19963
|
+
"canonicalReference": "@empathyco/x-components!HistoryQueriesSwitch#hasHistoryQueries:member",
|
|
19964
|
+
"docComment": "/**\n * Checks if there are history queries.\n *\n * @returns True if there are history queries; false otherwise.\n */\n",
|
|
19965
|
+
"excerptTokens": [
|
|
19966
|
+
{
|
|
19967
|
+
"kind": "Content",
|
|
19968
|
+
"text": "protected get hasHistoryQueries(): "
|
|
19969
|
+
},
|
|
19970
|
+
{
|
|
19971
|
+
"kind": "Content",
|
|
19972
|
+
"text": "boolean"
|
|
19973
|
+
},
|
|
19974
|
+
{
|
|
19975
|
+
"kind": "Content",
|
|
19976
|
+
"text": ";"
|
|
19977
|
+
}
|
|
19978
|
+
],
|
|
19979
|
+
"isOptional": false,
|
|
19980
|
+
"releaseTag": "Public",
|
|
19981
|
+
"name": "hasHistoryQueries",
|
|
19982
|
+
"propertyTypeTokenRange": {
|
|
19983
|
+
"startIndex": 1,
|
|
19984
|
+
"endIndex": 2
|
|
19985
|
+
},
|
|
19986
|
+
"isStatic": false
|
|
19987
|
+
},
|
|
19988
|
+
{
|
|
19989
|
+
"kind": "Property",
|
|
19990
|
+
"canonicalReference": "@empathyco/x-components!HistoryQueriesSwitch#historyQueries:member",
|
|
19991
|
+
"docComment": "/**\n * The history queries from the state.\n */\n",
|
|
19992
|
+
"excerptTokens": [
|
|
19993
|
+
{
|
|
19994
|
+
"kind": "Content",
|
|
19995
|
+
"text": "historyQueries: "
|
|
19996
|
+
},
|
|
19997
|
+
{
|
|
19998
|
+
"kind": "Reference",
|
|
19999
|
+
"text": "HistoryQuery",
|
|
20000
|
+
"canonicalReference": "@empathyco/x-components!HistoryQuery:interface"
|
|
20001
|
+
},
|
|
20002
|
+
{
|
|
20003
|
+
"kind": "Content",
|
|
20004
|
+
"text": "[]"
|
|
20005
|
+
},
|
|
20006
|
+
{
|
|
20007
|
+
"kind": "Content",
|
|
20008
|
+
"text": ";"
|
|
20009
|
+
}
|
|
20010
|
+
],
|
|
20011
|
+
"isOptional": false,
|
|
20012
|
+
"releaseTag": "Public",
|
|
20013
|
+
"name": "historyQueries",
|
|
20014
|
+
"propertyTypeTokenRange": {
|
|
20015
|
+
"startIndex": 1,
|
|
20016
|
+
"endIndex": 3
|
|
20017
|
+
},
|
|
20018
|
+
"isStatic": false
|
|
20019
|
+
}
|
|
20020
|
+
],
|
|
19961
20021
|
"extendsTokenRange": {
|
|
19962
20022
|
"startIndex": 1,
|
|
19963
20023
|
"endIndex": 3
|
|
@@ -1925,6 +1925,8 @@ export interface HistoryQueriesState extends QueryState {
|
|
|
1925
1925
|
|
|
1926
1926
|
// @public
|
|
1927
1927
|
export class HistoryQueriesSwitch extends Vue_2 {
|
|
1928
|
+
protected get hasHistoryQueries(): boolean;
|
|
1929
|
+
historyQueries: HistoryQuery_2[];
|
|
1928
1930
|
// @internal
|
|
1929
1931
|
isEnabled: boolean;
|
|
1930
1932
|
// @internal
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
|
+
import { HistoryQuery } from '@empathyco/x-types';
|
|
2
3
|
/**
|
|
3
4
|
* History Queries Switch is a component to enable or disable the history queries.
|
|
4
5
|
* This component emits events depending on the `isEnabled` value.
|
|
@@ -12,6 +13,16 @@ export default class HistoryQueriesSwitch extends Vue {
|
|
|
12
13
|
* @internal
|
|
13
14
|
*/
|
|
14
15
|
isEnabled: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The history queries from the state.
|
|
18
|
+
*/
|
|
19
|
+
historyQueries: HistoryQuery[];
|
|
20
|
+
/**
|
|
21
|
+
* Checks if there are history queries.
|
|
22
|
+
*
|
|
23
|
+
* @returns True if there are history queries; false otherwise.
|
|
24
|
+
*/
|
|
25
|
+
protected get hasHistoryQueries(): boolean;
|
|
15
26
|
/**
|
|
16
27
|
* Emits an event based on the switch state.
|
|
17
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-queries-switch.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/history-queries/components/history-queries-switch.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAKA,OAAO,GAAG,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"history-queries-switch.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/history-queries/components/history-queries-switch.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAKA,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAOlD;;;;;GAKG;AAKH,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,GAAG;IACnD;;;;OAIG;IAEI,SAAS,EAAG,OAAO,CAAC;IAE3B;;OAEG;IAEI,cAAc,EAAG,YAAY,EAAE,CAAC;IAEvC;;;;OAIG;IACH,SAAS,KAAK,iBAAiB,IAAI,OAAO,CAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,MAAM,IAAI,IAAI;CASzB"}
|