@ds-autonomie/web-components 1.14.0 → 1.15.0
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 +19 -0
- package/dist/chunks/{chunk.DREYXOUA.js → chunk.352FP4B2.js} +1 -1
- package/dist/chunks/{chunk.B4GUOE72.js → chunk.3UNYRJRK.js} +1 -1
- package/dist/chunks/{chunk.LHG7BUMQ.js → chunk.45B5UA3U.js} +1 -1
- package/dist/chunks/{chunk.H7HTI7EF.js → chunk.5RA2HDQK.js} +1 -1
- package/dist/chunks/{chunk.BASSTNYX.js → chunk.66GR4TVJ.js} +1 -1
- package/dist/chunks/{chunk.53XHLD3O.js → chunk.6L6CZSQX.js} +2 -0
- package/dist/chunks/{chunk.AVKISRNV.js → chunk.7FEHNWG3.js} +4 -2
- package/dist/chunks/{chunk.ZP4ZUSYY.js → chunk.7J3HDP6J.js} +1 -1
- package/dist/chunks/{chunk.DGCTOS4V.js → chunk.7KF6Z37I.js} +1 -1
- package/dist/chunks/{chunk.JOBG5D6J.js → chunk.A2AK34DU.js} +1 -1
- package/dist/chunks/{chunk.WD5NYPRU.js → chunk.A3RCXT25.js} +1 -1
- package/dist/chunks/{chunk.G5IWQN6H.js → chunk.AWHBPZCA.js} +1 -1
- package/dist/chunks/{chunk.MF2J4QPF.js → chunk.BHQ3BNQA.js} +2 -2
- package/dist/chunks/{chunk.VIVGDHH6.js → chunk.BJAMGNY4.js} +10 -3
- package/dist/chunks/chunk.BOUCFBIX.js +130 -0
- package/dist/chunks/{chunk.RYST5DLX.js → chunk.BROIFXIH.js} +1 -1
- package/dist/chunks/{chunk.L6QHSHTE.js → chunk.E475BLMD.js} +1 -1
- package/dist/chunks/{chunk.LKSELKOS.js → chunk.EOOFG4A2.js} +1 -1
- package/dist/chunks/{chunk.LWMCUNON.js → chunk.FZODQJBF.js} +1 -1
- package/dist/chunks/{chunk.AUXSVYQC.js → chunk.GE2PTQVM.js} +1 -1
- package/dist/chunks/{chunk.AV6BLB3U.js → chunk.GYJZ3E7K.js} +1 -1
- package/dist/chunks/{chunk.J7M5WD53.js → chunk.I2FEKI3M.js} +1 -1
- package/dist/chunks/{chunk.VULWM6KJ.js → chunk.IQTKA4UT.js} +1 -1
- package/dist/chunks/chunk.IZENKIMQ.js +73 -0
- package/dist/chunks/{chunk.QQNPHQVQ.js → chunk.JR77AUQ7.js} +7 -2
- package/dist/chunks/{chunk.43KHRHCJ.js → chunk.JVIVUQCT.js} +2 -2
- package/dist/chunks/{chunk.WFOJPGUQ.js → chunk.JXWCUSV3.js} +1 -1
- package/dist/chunks/chunk.KGEIBGLH.js +62 -0
- package/dist/chunks/{chunk.3LQJ4HTL.js → chunk.M6LJDR7Y.js} +1 -1
- package/dist/chunks/{chunk.JMLADVIB.js → chunk.MUGCPHYQ.js} +1 -1
- package/dist/chunks/{chunk.JO4AYV3I.js → chunk.N2H4K44W.js} +1 -1
- package/dist/chunks/{chunk.2QB7W6VY.js → chunk.N43R5DJN.js} +1 -1
- package/dist/chunks/chunk.O2OMAMMI.js +283 -0
- package/dist/chunks/{chunk.2C45BHXL.js → chunk.OKCAGL2Q.js} +2 -2
- package/dist/chunks/{chunk.3ZP64TS5.js → chunk.OXM5EF3F.js} +1 -1
- package/dist/chunks/chunk.PXRMLBOK.js +120 -0
- package/dist/chunks/{chunk.P64WV2DK.js → chunk.PZ74GMZS.js} +40 -34
- package/dist/chunks/{chunk.2U4RXFLP.js → chunk.PZX2GVB6.js} +1 -1
- package/dist/chunks/{chunk.NB6ENUWR.js → chunk.Q2NBHHPB.js} +1 -1
- package/dist/chunks/chunk.Q5QRE3JL.js +31 -0
- package/dist/chunks/{chunk.M7S5EIFY.js → chunk.QCQK5HWX.js} +11 -3
- package/dist/chunks/{chunk.RWAFDSKF.js → chunk.QFABPHRY.js} +23 -5
- package/dist/chunks/{chunk.Z4TH72PN.js → chunk.QR4Z7SWH.js} +1 -1
- package/dist/chunks/{chunk.YMN2CJKW.js → chunk.QSZUSQD2.js} +1 -1
- package/dist/chunks/chunk.QU64AVO6.js +345 -0
- package/dist/chunks/{chunk.TKXIDCEL.js → chunk.R6572W75.js} +1 -1
- package/dist/chunks/{chunk.XUTOSHTK.js → chunk.RBXTMFL6.js} +1 -1
- package/dist/chunks/{chunk.OYPQON5P.js → chunk.U7V5J6UX.js} +6 -1
- package/dist/chunks/{chunk.VVNA7Y7D.js → chunk.UDXQ2LSX.js} +38 -5
- package/dist/chunks/{chunk.REWH7WVN.js → chunk.ULHEP5Y6.js} +1 -1
- package/dist/chunks/chunk.UYGZPSDY.js +107 -0
- package/dist/chunks/{chunk.A2BYM36Q.js → chunk.UYRUX2NB.js} +1 -1
- package/dist/chunks/{chunk.DJHHWDWB.js → chunk.VFWCJMJG.js} +1 -1
- package/dist/chunks/{chunk.Y3ZUFLVS.js → chunk.VXQMFXV5.js} +40 -12
- package/dist/chunks/{chunk.SAIK4UJY.js → chunk.W7S6L5EM.js} +4 -4
- package/dist/chunks/{chunk.2LVBE3YQ.js → chunk.WBYLDAEX.js} +2 -2
- package/dist/chunks/{chunk.55BHJWBE.js → chunk.WFCZZ5Y7.js} +1 -1
- package/dist/chunks/{chunk.5CFOFIJY.js → chunk.WPYZYOD5.js} +1 -1
- package/dist/chunks/{chunk.GLBKWDW3.js → chunk.XBPMZAOW.js} +26 -6
- package/dist/chunks/{chunk.NL4UMTLM.js → chunk.Y2FHTUAN.js} +0 -2
- package/dist/chunks/{chunk.WYS5YU2K.js → chunk.YCOCNU2O.js} +1 -1
- package/dist/chunks/{chunk.OLYDGRDO.js → chunk.YG7TOAY3.js} +1 -1
- package/dist/chunks/{chunk.766CM2CF.js → chunk.YOLAIUYX.js} +1 -1
- package/dist/chunks/{chunk.YLER36F3.js → chunk.Z74FEBJS.js} +1 -1
- package/dist/chunks/{chunk.OIREUW7O.js → chunk.ZLGBX4RI.js} +1 -1
- package/dist/chunks/{chunk.YW2SV66X.js → chunk.ZYY6O4PU.js} +2 -2
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/alert/alert.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +1 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/button/button.js +3 -3
- package/dist/components/calendar/calendar.js +3 -3
- package/dist/components/card/card.d.ts +19 -1
- package/dist/components/card/card.js +2 -2
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -0
- package/dist/components/combobox/combobox.js +6 -6
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/dialog/dialog.js +2 -2
- package/dist/components/drawer/drawer.js +2 -2
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +2 -2
- package/dist/components/filter/filter-button/filter-button.js +2 -2
- package/dist/components/filter/filter-counter/filter-counter.js +3 -3
- package/dist/components/filter/filter-counter/filter-counter.styles.js +1 -1
- package/dist/components/filter/filter-date/filter-date.d.ts +5 -0
- package/dist/components/filter/filter-date/filter-date.js +7 -7
- package/dist/components/filter/filter-date/filter-date.styles.js +1 -1
- package/dist/components/filter/filter-range/filter-range.js +8 -8
- package/dist/components/filter/filter-range/filter-range.styles.js +1 -1
- package/dist/components/filter/filter-select/filter-select.js +7 -5
- package/dist/components/filter/filter-select/filter-select.styles.js +1 -1
- package/dist/components/footer/footer.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +2 -2
- package/dist/components/format-date/format-date.js +2 -2
- package/dist/components/format-number/format-number.js +2 -2
- package/dist/components/header/header.js +2 -2
- package/dist/components/header-search/header-search.js +2 -2
- package/dist/components/input/input.d.ts +1 -0
- package/dist/components/input/input.js +5 -5
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/input-mask/input-mask.js +2 -2
- package/dist/components/input-phone/input-phone.js +10 -8
- package/dist/components/menu-accordion/menu-accordion.js +2 -2
- package/dist/components/menu-navigation/menu-navigation.js +2 -2
- package/dist/components/menu-navigation/menu-navigation.styles.js +1 -1
- package/dist/components/navbar/navbar/navbar.d.ts +36 -0
- package/dist/components/navbar/navbar/navbar.js +11 -0
- package/dist/components/navbar/navbar/navbar.styles.d.ts +2 -0
- package/dist/components/navbar/navbar/navbar.styles.js +8 -0
- package/dist/components/navbar/navbar-link/navbar-link.d.ts +31 -0
- package/dist/components/navbar/navbar-link/navbar-link.js +21 -0
- package/dist/components/navbar/navbar-link/navbar-link.styles.d.ts +2 -0
- package/dist/components/navbar/navbar-link/navbar-link.styles.js +8 -0
- package/dist/components/navbar/navbar-menu/navbar-menu.d.ts +56 -0
- package/dist/components/navbar/navbar-menu/navbar-menu.js +26 -0
- package/dist/components/navbar/navbar-menu/navbar-menu.styles.d.ts +2 -0
- package/dist/components/navbar/navbar-menu/navbar-menu.styles.js +8 -0
- package/dist/components/option/option.d.ts +2 -0
- package/dist/components/option/option.js +4 -2
- package/dist/components/pagination/pagination.d.ts +1 -0
- package/dist/components/pagination/pagination.js +7 -7
- package/dist/components/pagination/pagination.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/select/select.js +4 -4
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/step/step.js +4 -4
- package/dist/components/tab/tab.js +2 -2
- package/dist/components/tab-group/tab-group.js +2 -2
- package/dist/components/table/table-action/table-action.js +2 -2
- package/dist/components/table/table-caption/table-caption.js +2 -2
- package/dist/components/table/table-header-row/table-header-row.js +3 -3
- package/dist/components/table/table-row/table-row.js +2 -2
- package/dist/components/table-of-contents/table-of-contents.d.ts +64 -0
- package/dist/components/table-of-contents/table-of-contents.js +14 -0
- package/dist/components/table-of-contents/table-of-contents.styles.d.ts +2 -0
- package/dist/components/table-of-contents/table-of-contents.styles.js +8 -0
- package/dist/components/tag/tag.js +2 -2
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +5 -5
- package/dist/components/tree-item/tree-item.js +3 -3
- package/dist/custom-elements.json +1079 -76
- package/dist/design-system.d.ts +4 -0
- package/dist/design-system.js +90 -70
- package/dist/themes/dsa-wc-theme.css +68 -12
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +74 -15
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/utilities/helpers.d.ts +1 -0
- package/dist/utilities/helpers.js +3 -1
- package/dist/utilities/localize.d.ts +1 -0
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +131 -2
- package/dist/web-types.json +609 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 1.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8158f31: `table-of-contents` : ajout du sommaire
|
|
8
|
+
- 4c02db0: `navbar`, `navbar-link`, `navbar-menu` : ajout de la barre de navigation
|
|
9
|
+
- f6c3562: `card` : possibilité de transformer les cartes en liens"
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 24deb81: `combobox`: amélioration du comportement asynchrone
|
|
14
|
+
- 613a68e: `breadcrumb`, `breadcrumb-item` : amélioration a11y et ajout de tests
|
|
15
|
+
- db1ce43: `radio-group` : propagation de l'état d'erreur aux enfants
|
|
16
|
+
- d97c8c6: Mise à jour des design tokens
|
|
17
|
+
- c303346: `pagination` : correction de l'ordre de tabulation
|
|
18
|
+
- 2a7173f: `filter-date`: possibilité d'ajouter un minimum et un maximum
|
|
19
|
+
- Updated dependencies [d97c8c6]
|
|
20
|
+
- @ds-autonomie/assets@1.4.1
|
|
21
|
+
|
|
3
22
|
## 1.14.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -117,7 +117,7 @@ var filter_date_styles_default = css`
|
|
|
117
117
|
padding: var(--dsa-wc-filter-date-panel-padding);
|
|
118
118
|
border-radius: var(--dsa-wc-filter-date-panel-border-radius);
|
|
119
119
|
background: var(--dsa-wc-select-listbox-background-color);
|
|
120
|
-
box-shadow: var(--dsa-wc-shadow-
|
|
120
|
+
box-shadow: var(--dsa-wc-shadow-small);
|
|
121
121
|
}
|
|
122
122
|
`;
|
|
123
123
|
|
|
@@ -101,6 +101,7 @@ var translation = {
|
|
|
101
101
|
firefoxLimitation: (buttonLabel) => `Utiliser le bouton intitul\xE9 "${buttonLabel}" pour ouvrir le calendrier (les autres ne fonctionnent pas sur Firefox)`,
|
|
102
102
|
startDate: "Date de d\xE9but",
|
|
103
103
|
endDate: "Date de fin",
|
|
104
|
+
tableOfContents: "Sommaire :",
|
|
104
105
|
// countries and regions
|
|
105
106
|
fr_FR: "France",
|
|
106
107
|
fr_GP: "Guadeloupe, Saint-Barth\xE9lemy et Saint-Martin",
|
|
@@ -220,6 +221,7 @@ var translation2 = {
|
|
|
220
221
|
firefoxLimitation: (buttonLabel) => `Use the button entitled "${buttonLabel}" to open the calendar (the others are not working on Firefox)`,
|
|
221
222
|
startDate: "Start date",
|
|
222
223
|
endDate: "End date",
|
|
224
|
+
tableOfContents: "Table of contents :",
|
|
223
225
|
// countries and regions
|
|
224
226
|
fr_FR: "France",
|
|
225
227
|
fr_GP: "Guadeloupe",
|
|
@@ -175,11 +175,12 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
175
175
|
const radios = this.getAllRadios();
|
|
176
176
|
let hasAtLeastOneCheckedRadio = false;
|
|
177
177
|
radios.forEach((radio) => {
|
|
178
|
+
radio.error = this.error;
|
|
178
179
|
if (this.readonly) {
|
|
179
|
-
radio.readonly =
|
|
180
|
+
radio.readonly = this.readonly;
|
|
180
181
|
}
|
|
181
182
|
if (this.disabled) {
|
|
182
|
-
radio.disabled =
|
|
183
|
+
radio.disabled = this.disabled;
|
|
183
184
|
}
|
|
184
185
|
this.hasRadioButtons = radio.tagName.toLowerCase() === "dsa-radio-button";
|
|
185
186
|
if (radio.tagName.toLowerCase() === "dsa-radio-button" && radio.readonly) {
|
|
@@ -245,6 +246,7 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
245
246
|
} else {
|
|
246
247
|
this.removeAttribute("aria-invalid");
|
|
247
248
|
}
|
|
249
|
+
this.getAllRadios().forEach((radio) => radio.error = this.error);
|
|
248
250
|
}
|
|
249
251
|
handleDisabledChange() {
|
|
250
252
|
if (this.disabled) {
|
|
@@ -356,7 +356,7 @@ var combobox_styles_default = css`
|
|
|
356
356
|
display: block;
|
|
357
357
|
position: relative;
|
|
358
358
|
font: var(--dsa-wc-input-text-field-font);
|
|
359
|
-
box-shadow: var(--dsa-wc-shadow-
|
|
359
|
+
box-shadow: var(--dsa-wc-shadow-small);
|
|
360
360
|
background: var(--dsa-wc-combobox-listbox-background-color);
|
|
361
361
|
border: solid var(--dsa-wc-combobox-listbox-border-width)
|
|
362
362
|
var(--dsa-wc-combobox-listbox-border-color);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getISOFormattedDate
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.U7V5J6UX.js";
|
|
4
4
|
import {
|
|
5
5
|
calendar_styles_default
|
|
6
6
|
} from "./chunk.2P44D5YL.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.6L6CZSQX.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -24,9 +24,6 @@ var pagination_styles_default = css`
|
|
|
24
24
|
color: var(--dsa-wc-pagination-color);
|
|
25
25
|
container-type: inline-size;
|
|
26
26
|
}
|
|
27
|
-
.pagination--desktop {
|
|
28
|
-
flex-direction: row-reverse;
|
|
29
|
-
}
|
|
30
27
|
.pagination--desktop,
|
|
31
28
|
.skeleton--desktop {
|
|
32
29
|
height: var(--dsa-wc-pagination-height-desktop);
|
|
@@ -126,6 +123,16 @@ var pagination_styles_default = css`
|
|
|
126
123
|
.skeleton__itemsperpage {
|
|
127
124
|
grid-area: itemsperpage;
|
|
128
125
|
}
|
|
126
|
+
|
|
127
|
+
::slotted(dsa-select) {
|
|
128
|
+
--dsa-wc-input-on-layer-border-color: var(
|
|
129
|
+
--dsa-wc-pagination-select-border-color
|
|
130
|
+
);
|
|
131
|
+
--dsa-wc-select-input-font-small: var(--dsa-wc-pagination-select-font);
|
|
132
|
+
--dsa-wc-input-on-base-text-field-input-color: var(
|
|
133
|
+
--dsa-wc-pagination-select-color
|
|
134
|
+
);
|
|
135
|
+
}
|
|
129
136
|
`;
|
|
130
137
|
|
|
131
138
|
export {
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/table-of-contents/table-of-contents.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var table_of_contents_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.toc.toc--mobile {
|
|
15
|
+
position: relative;
|
|
16
|
+
box-shadow: var(--dsa-wc-shadow-small);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.header {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: var(--dsa-spacing-8);
|
|
23
|
+
background-color: var(--dsa-wc-table-of-contents-header-background);
|
|
24
|
+
}
|
|
25
|
+
.toc--mobile .header {
|
|
26
|
+
padding: var(--dsa-wc-table-of-contents-header-padding-mobile);
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
.toc--mobile .header:focus-visible {
|
|
30
|
+
outline: var(--dsa-wc-focus-ring);
|
|
31
|
+
outline-offset: -3px;
|
|
32
|
+
}
|
|
33
|
+
.toc--desktop .header {
|
|
34
|
+
padding: var(--dsa-wc-table-of-contents-header-padding-desktop);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.label {
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
font: var(--dsa-wc-table-of-contents-label-font);
|
|
40
|
+
color: var(--dsa-wc-table-of-contents-label-color);
|
|
41
|
+
}
|
|
42
|
+
.header__current-section {
|
|
43
|
+
font: var(--dsa-wc-table-of-contents-current-section-font);
|
|
44
|
+
color: var(--dsa-wc-table-of-contents-current-section-color);
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
overflow: auto;
|
|
48
|
+
}
|
|
49
|
+
.header__icon {
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
margin-inline-start: auto;
|
|
52
|
+
transition: var(--dsa-wc-transition-medium) rotate ease;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.toc--open .header__icon {
|
|
56
|
+
rotate: 180deg;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Progress Bar */
|
|
60
|
+
.progress-bar {
|
|
61
|
+
background: var(--dsa-color-progress-bar-background);
|
|
62
|
+
height: 4px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.progress-bar__indicator {
|
|
66
|
+
height: 100%;
|
|
67
|
+
background-color: var(--dsa-color-progress-bar-on-background-indicator);
|
|
68
|
+
transition: 400ms width, 400ms background-color;
|
|
69
|
+
user-select: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Content */
|
|
73
|
+
.content {
|
|
74
|
+
background-color: var(--dsa-wc-table-of-contents-content-background);
|
|
75
|
+
}
|
|
76
|
+
.toc--mobile .content {
|
|
77
|
+
position: absolute;
|
|
78
|
+
inset-inline: 0;
|
|
79
|
+
height: 0;
|
|
80
|
+
padding: var(--dsa-wc-table-of-contents-content-padding-mobile);
|
|
81
|
+
box-shadow: var(--dsa-wc-shadow-small);
|
|
82
|
+
max-height: 60vh;
|
|
83
|
+
overflow: auto;
|
|
84
|
+
}
|
|
85
|
+
.content__indicator {
|
|
86
|
+
position: absolute;
|
|
87
|
+
transition: var(--dsa-wc-transition-fast) translate ease,
|
|
88
|
+
var(--dsa-wc-transition-fast) width ease;
|
|
89
|
+
border-inline-start: var(--dsa-wc-table-of-contents-indicator-border);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Item */
|
|
93
|
+
a {
|
|
94
|
+
display: flex;
|
|
95
|
+
color: var(--dsa-wc-table-of-contents-link-color);
|
|
96
|
+
transition: var(--dsa-wc-transition-fast) fill;
|
|
97
|
+
user-select: none;
|
|
98
|
+
|
|
99
|
+
text-decoration: none;
|
|
100
|
+
font: var(--dsa-wc-menu-item-font);
|
|
101
|
+
padding: var(--dsa-wc-table-of-contents-link-padding-desktop);
|
|
102
|
+
border-inline-start: var(--dsa-wc-table-of-contents-link-border-left);
|
|
103
|
+
}
|
|
104
|
+
a:hover {
|
|
105
|
+
color: var(--dsa-wc-table-of-contents-link-color-hover);
|
|
106
|
+
}
|
|
107
|
+
a:focus-visible {
|
|
108
|
+
outline: var(--dsa-wc-focus-ring);
|
|
109
|
+
outline-offset: var(--dsa-wc-table-of-contents-link-focus-ring-offset);
|
|
110
|
+
opacity: 1;
|
|
111
|
+
}
|
|
112
|
+
a[aria-current='true'] {
|
|
113
|
+
color: var(--dsa-wc-table-of-contents-link-color-active);
|
|
114
|
+
}
|
|
115
|
+
@media (forced-colors: active) {
|
|
116
|
+
a:hover,
|
|
117
|
+
a:focus-visible {
|
|
118
|
+
outline: var(--dsa-wc-focus-ring);
|
|
119
|
+
outline-offset: var(--dsa-wc-table-of-contents-link-focus-ring-offset);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.slotted_items {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
`;
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
table_of_contents_styles_default
|
|
130
|
+
};
|
|
@@ -30,7 +30,7 @@ var filter_range_styles_default = css`
|
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
position: relative;
|
|
32
32
|
font: var(--dsa-wc-input-text-field-font);
|
|
33
|
-
box-shadow: var(--dsa-wc-shadow-
|
|
33
|
+
box-shadow: var(--dsa-wc-shadow-small);
|
|
34
34
|
background: var(--dsa-wc-select-listbox-background-color);
|
|
35
35
|
border: solid var(--dsa-wc-select-listbox-border-width)
|
|
36
36
|
var(--dsa-wc-select-listbox-border-color);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
navbar_link_styles_default
|
|
3
|
+
} from "./chunk.KGEIBGLH.js";
|
|
4
|
+
import {
|
|
5
|
+
ShoelaceElement
|
|
6
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
7
|
+
import {
|
|
8
|
+
__decorateClass
|
|
9
|
+
} from "./chunk.6M63UXML.js";
|
|
10
|
+
|
|
11
|
+
// src/components/navbar/navbar-link/navbar-link.ts
|
|
12
|
+
import { html } from "lit";
|
|
13
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
14
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
15
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
16
|
+
var DSANavbarLink = class extends ShoelaceElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.mobile = false;
|
|
20
|
+
this.href = "";
|
|
21
|
+
this.rel = "noreferrer noopener";
|
|
22
|
+
}
|
|
23
|
+
connectedCallback() {
|
|
24
|
+
super.connectedCallback();
|
|
25
|
+
this.setAttribute("role", "listitem");
|
|
26
|
+
}
|
|
27
|
+
handleFocus() {
|
|
28
|
+
this.emit("dsa-focus");
|
|
29
|
+
}
|
|
30
|
+
handleBlur() {
|
|
31
|
+
this.emit("dsa-blur");
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return html`
|
|
35
|
+
<a
|
|
36
|
+
class=${classMap({
|
|
37
|
+
"navbar-link": true,
|
|
38
|
+
"navbar-link--mobile": this.mobile,
|
|
39
|
+
"navbar-link--desktop": !this.mobile
|
|
40
|
+
})}
|
|
41
|
+
href=${this.href}
|
|
42
|
+
target="${ifDefined(this.target)}"
|
|
43
|
+
rel=${ifDefined(this.rel)}
|
|
44
|
+
@focus=${this.handleFocus}
|
|
45
|
+
@blur=${this.handleBlur}
|
|
46
|
+
><slot></slot
|
|
47
|
+
></a>
|
|
48
|
+
`;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
DSANavbarLink.styles = navbar_link_styles_default;
|
|
52
|
+
__decorateClass([
|
|
53
|
+
query(".navbar-link")
|
|
54
|
+
], DSANavbarLink.prototype, "link", 2);
|
|
55
|
+
__decorateClass([
|
|
56
|
+
property({ type: Boolean, reflect: true })
|
|
57
|
+
], DSANavbarLink.prototype, "mobile", 2);
|
|
58
|
+
__decorateClass([
|
|
59
|
+
property()
|
|
60
|
+
], DSANavbarLink.prototype, "href", 2);
|
|
61
|
+
__decorateClass([
|
|
62
|
+
property()
|
|
63
|
+
], DSANavbarLink.prototype, "target", 2);
|
|
64
|
+
__decorateClass([
|
|
65
|
+
property()
|
|
66
|
+
], DSANavbarLink.prototype, "rel", 2);
|
|
67
|
+
DSANavbarLink = __decorateClass([
|
|
68
|
+
customElement("dsa-navbar-link")
|
|
69
|
+
], DSANavbarLink);
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
DSANavbarLink
|
|
73
|
+
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.YIY5RM53.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.6L6CZSQX.js";
|
|
10
10
|
import {
|
|
11
11
|
ShoelaceElement
|
|
12
12
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -30,11 +30,16 @@ var DSABreadcrumbItem = class extends ShoelaceElement {
|
|
|
30
30
|
);
|
|
31
31
|
this.rel = "noreferrer noopener";
|
|
32
32
|
}
|
|
33
|
+
connectedCallback() {
|
|
34
|
+
super.connectedCallback();
|
|
35
|
+
if (!this.hasAttribute("role")) {
|
|
36
|
+
this.setAttribute("role", "listitem");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
33
39
|
render() {
|
|
34
40
|
const isLink = this.href ? true : false;
|
|
35
41
|
return html`
|
|
36
42
|
<div
|
|
37
|
-
role="listitem"
|
|
38
43
|
part="base"
|
|
39
44
|
class=${classMap({
|
|
40
45
|
"breadcrumb-item": true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filter_counter_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OXM5EF3F.js";
|
|
4
4
|
import {
|
|
5
5
|
waitForEvent
|
|
6
6
|
} from "./chunk.B4BZKR24.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk.V7RJROLH.js";
|
|
15
15
|
import {
|
|
16
16
|
LocalizeController
|
|
17
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.6L6CZSQX.js";
|
|
18
18
|
import {
|
|
19
19
|
watch
|
|
20
20
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/navbar/navbar-link/navbar-link.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var navbar_link_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.navbar-link {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--dsa-spacing-4);
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
background-color: var(--dsa-wc-button-navigation-on-base-color);
|
|
20
|
+
border: none;
|
|
21
|
+
font: var(--dsa-wc-navbar-font);
|
|
22
|
+
color: var(--dsa-wc-button-navigation-on-base-font-color);
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
}
|
|
25
|
+
.navbar-link:focus-visible {
|
|
26
|
+
outline: var(--dsa-wc-focus-ring);
|
|
27
|
+
outline-offset: -3px;
|
|
28
|
+
}
|
|
29
|
+
.navbar-link:hover {
|
|
30
|
+
background-color: var(--dsa-wc-navbar-button-background-hover);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.navbar-link[aria-current='page'] {
|
|
34
|
+
color: var(--dsa-wc-menu-navigation-item-current-color);
|
|
35
|
+
background-color: var(
|
|
36
|
+
--dsa-wc-menu-navigation-item-current-background-color
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
* Desktop
|
|
42
|
+
*/
|
|
43
|
+
.navbar-link--desktop {
|
|
44
|
+
height: var(--dsa-wc-navbar-button-height-desktop);
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
border-bottom: 1px solid transparent;
|
|
47
|
+
padding: var(--dsa-wc-navbar-button-padding-desktop);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
* Mobile
|
|
52
|
+
*/
|
|
53
|
+
.navbar-link--mobile {
|
|
54
|
+
width: 100%;
|
|
55
|
+
min-height: var(--dsa-wc-navbar-button-height-mobile);
|
|
56
|
+
padding: var(--dsa-wc-navbar-link-padding-mobile);
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
navbar_link_styles_default
|
|
62
|
+
};
|