@redvars/peacock 3.10.1 → 3.11.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/dist/BaseInput-CV0pZgSb.js +58 -0
- package/dist/BaseInput-CV0pZgSb.js.map +1 -0
- package/dist/app-bar.js +16 -16
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles.css.map +1 -1
- package/dist/assets/theme.d.ts +66 -0
- package/dist/assets/theme.js +134 -0
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/tokens.css.map +1 -1
- package/dist/base-progress-CLZTRveO.js +33 -0
- package/dist/base-progress-CLZTRveO.js.map +1 -0
- package/dist/bottom-sheet.js +1 -1
- package/dist/button-group.js +9 -7
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +225 -187
- package/dist/button.js.map +1 -1
- package/dist/{chart-bar-CapLbc2e.js → chart-bar-D5dGFJfK.js} +2 -2
- package/dist/{chart-bar-CapLbc2e.js.map → chart-bar-D5dGFJfK.js.map} +1 -1
- package/dist/chart-bar.js +1 -1
- package/dist/chart-stacked-bar.js +1 -1
- package/dist/checkbox.js +78 -53
- package/dist/checkbox.js.map +1 -1
- package/dist/chip-set.js +52 -0
- package/dist/chip-set.js.map +1 -0
- package/dist/chip.js +8 -6
- package/dist/chip.js.map +1 -1
- package/dist/circular-progress.js +177 -0
- package/dist/circular-progress.js.map +1 -0
- package/dist/code-editor.js +129 -72
- package/dist/code-editor.js.map +1 -1
- package/dist/code-highlighter.js +2 -38
- package/dist/code-highlighter.js.map +1 -1
- package/dist/color-field.js +309 -0
- package/dist/color-field.js.map +1 -0
- package/dist/color-picker.js +26 -15
- package/dist/color-picker.js.map +1 -1
- package/dist/copy-to-clipboard-upGx-Ueo.js +39 -0
- package/dist/copy-to-clipboard-upGx-Ueo.js.map +1 -0
- package/dist/custom-elements-jsdocs.json +1044 -382
- package/dist/custom-elements.json +8615 -4726
- package/dist/date-picker.js +241 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/{element-internals-2CMts_0M.js → delegate-py-Ets8N.js} +2 -43
- package/dist/delegate-py-Ets8N.js.map +1 -0
- package/dist/element-internals-QME0yEz4.js +43 -0
- package/dist/element-internals-QME0yEz4.js.map +1 -0
- package/dist/fab.js +51 -49
- package/dist/fab.js.map +1 -1
- package/dist/field.js +25 -0
- package/dist/field.js.map +1 -1
- package/dist/flow.js +5 -5
- package/dist/form-associated-Bhwwr6dT.js +162 -0
- package/dist/form-associated-Bhwwr6dT.js.map +1 -0
- package/dist/{form-associated-BXADnjOB.js → form-submitter-DPI4L6gj.js} +3 -159
- package/dist/form-submitter-DPI4L6gj.js.map +1 -0
- package/dist/html-editor.js +3 -1
- package/dist/html-editor.js.map +1 -1
- package/dist/icon-button.js +195 -156
- package/dist/icon-button.js.map +1 -1
- package/dist/image.js +2 -2
- package/dist/index.js +32 -8
- package/dist/index.js.map +1 -1
- package/dist/input.js +259 -0
- package/dist/input.js.map +1 -0
- package/dist/item.js +2 -1
- package/dist/item.js.map +1 -1
- package/dist/linear-progress.js +192 -0
- package/dist/linear-progress.js.map +1 -0
- package/dist/{list-AdO-PUq_.js → list-item.js} +12 -222
- package/dist/list-item.js.map +1 -0
- package/dist/list.js +225 -6
- package/dist/list.js.map +1 -1
- package/dist/loader-full.js +31 -8
- package/dist/loader-full.js.map +1 -1
- package/dist/loader.js +52 -12
- package/dist/loader.js.map +1 -1
- package/dist/markdown-editor.js +5 -3
- package/dist/markdown-editor.js.map +1 -1
- package/dist/menu-item.js +30 -30
- package/dist/navigation-bar-item.js +41 -0
- package/dist/navigation-bar-item.js.map +1 -0
- package/dist/navigation-bar.js +128 -0
- package/dist/navigation-bar.js.map +1 -0
- package/dist/navigation-drawer-item.js +236 -0
- package/dist/navigation-drawer-item.js.map +1 -0
- package/dist/navigation-drawer.js +293 -0
- package/dist/navigation-drawer.js.map +1 -0
- package/dist/navigation-rail.js +1 -1
- package/dist/number-field.js +280 -0
- package/dist/number-field.js.map +1 -0
- package/dist/pagination.js +1 -1
- package/dist/radio-group.js +209 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/radio.js +47 -37
- package/dist/radio.js.map +1 -1
- package/dist/segmented-button-group.js +12 -0
- package/dist/segmented-button-group.js.map +1 -1
- package/dist/segmented-button.js +10 -6
- package/dist/segmented-button.js.map +1 -1
- package/dist/select.js +653 -0
- package/dist/select.js.map +1 -0
- package/dist/side-sheet.js +1 -1
- package/dist/sidebar-menu-item.js +273 -0
- package/dist/sidebar-menu-item.js.map +1 -0
- package/dist/sidebar-menu.js +193 -0
- package/dist/sidebar-menu.js.map +1 -0
- package/dist/sidebar-sub-menu.js +301 -0
- package/dist/sidebar-sub-menu.js.map +1 -0
- package/dist/slider.js +76 -24
- package/dist/slider.js.map +1 -1
- package/dist/snackbar.js +3 -3
- package/dist/snackbar.js.map +1 -1
- package/dist/split-button.js +2 -2
- package/dist/src/__internal/utils/size.d.ts +9 -0
- package/dist/src/button/ButtonTypes.d.ts +1 -1
- package/dist/src/checkbox/checkbox.d.ts +28 -22
- package/dist/src/chip/chip/chip.d.ts +3 -0
- package/dist/src/chip/tag/tag.d.ts +5 -1
- package/dist/src/code-editor/code-editor.d.ts +37 -10
- package/dist/src/color-field/color-field.d.ts +55 -0
- package/dist/src/color-field/index.d.ts +1 -0
- package/dist/src/color-picker/color-picker.d.ts +1 -1
- package/dist/src/date-picker/date-picker.d.ts +0 -1
- package/dist/src/index.d.ts +4 -3
- package/dist/src/input/BaseInput.d.ts +21 -3
- package/dist/src/input/input.d.ts +15 -7
- package/dist/src/navigation-bar/index.d.ts +2 -0
- package/dist/src/navigation-bar/navigation-bar-item.d.ts +23 -0
- package/dist/src/navigation-bar/navigation-bar.d.ts +44 -0
- package/dist/src/navigation-drawer/index.d.ts +2 -0
- package/dist/src/navigation-drawer/navigation-drawer-item.d.ts +48 -0
- package/dist/src/navigation-drawer/navigation-drawer.d.ts +70 -0
- package/dist/src/number-field/number-field.d.ts +0 -1
- package/dist/src/radio/index.d.ts +1 -0
- package/dist/src/radio/radio-group.d.ts +50 -0
- package/dist/src/radio/radio.d.ts +18 -18
- package/dist/src/segmented-button/segmented-button-group.d.ts +5 -0
- package/dist/src/segmented-button/segmented-button.d.ts +2 -1
- package/dist/src/select/select.d.ts +6 -0
- package/dist/src/slider/slider.d.ts +14 -5
- package/dist/src/switch/switch.d.ts +22 -26
- package/dist/src/tabs/tabs.d.ts +3 -0
- package/dist/src/textarea/textarea.d.ts +0 -1
- package/dist/src/time-picker/time-picker.d.ts +0 -1
- package/dist/src/toolbar/toolbar.d.ts +7 -4
- package/dist/src/url-field/url-field.d.ts +0 -1
- package/dist/svg.js +5 -5
- package/dist/switch.js +413 -0
- package/dist/switch.js.map +1 -0
- package/dist/tab.js +2 -1
- package/dist/tab.js.map +1 -1
- package/dist/tabs.js +10 -8
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +349 -0
- package/dist/tag.js.map +1 -0
- package/dist/test/code-editor.test.d.ts +1 -0
- package/dist/test/color-field.test.d.ts +1 -0
- package/dist/test/color-picker.test.d.ts +1 -0
- package/dist/test/field.test.d.ts +1 -0
- package/dist/test/form-controls.test.d.ts +1 -0
- package/dist/test/icon.test.d.ts +1 -1
- package/dist/test/input.test.d.ts +1 -0
- package/dist/test/navigation.test.d.ts +1 -0
- package/dist/test/segmented-button.test.d.ts +1 -0
- package/dist/test/slider.test.d.ts +1 -0
- package/dist/textarea.js +237 -0
- package/dist/textarea.js.map +1 -0
- package/dist/time-picker.js +241 -0
- package/dist/time-picker.js.map +1 -0
- package/dist/toolbar.js +26 -9
- package/dist/toolbar.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/url-field.js +298 -0
- package/dist/url-field.js.map +1 -0
- package/package.json +29 -8
- package/readme.md +2 -2
- package/scss/tokens.css +175 -18
- package/src/__internal/utils/size.ts +23 -0
- package/src/app-bar/app-bar.scss +4 -16
- package/src/bottom-sheet/bottom-sheet.scss +1 -1
- package/src/button/ButtonTypes.ts +2 -0
- package/src/button/button/button-base.scss +84 -84
- package/src/button/button/button-colors.scss +14 -2
- package/src/button/button/button-layers.scss +71 -71
- package/src/button/button/button-shapes.scss +2 -2
- package/src/button/button/button-sizes.scss +35 -35
- package/src/button/button/button.scss +1 -1
- package/src/button/button/button.ts +1 -2
- package/src/button/button-group/button-group.scss +5 -5
- package/src/button/fab/fab-sizes.scss +15 -15
- package/src/button/fab/fab.scss +32 -32
- package/src/button/icon-button/icon-button-sizes.scss +7 -7
- package/src/chart-bar/chart-bar.scss +1 -1
- package/src/checkbox/checkbox.scss +7 -6
- package/src/checkbox/checkbox.ts +92 -40
- package/src/chip/chip/chip.ts +8 -5
- package/src/chip/chip-set/chip-set.ts +2 -0
- package/src/chip/tag/tag-colors.scss +1 -1
- package/src/chip/tag/tag-sizes.scss +9 -0
- package/src/chip/tag/tag.scss +1 -1
- package/src/chip/tag/tag.ts +20 -9
- package/src/code-editor/code-editor.scss +8 -3
- package/src/code-editor/code-editor.ts +148 -79
- package/src/code-highlighter/code-highlighter.scss +1 -1
- package/src/color-field/color-field.scss +48 -0
- package/src/color-field/color-field.ts +239 -0
- package/src/color-field/index.ts +1 -0
- package/src/color-picker/color-picker.scss +33 -15
- package/src/color-picker/color-picker.ts +2 -1
- package/src/date-picker/date-picker.ts +2 -3
- package/src/field/field.scss +31 -0
- package/src/flow/flow.scss +5 -5
- package/src/image/image.scss +2 -2
- package/src/index.ts +7 -3
- package/src/input/BaseInput.ts +54 -4
- package/src/input/input.ts +104 -79
- package/src/list/list-item.ts +2 -0
- package/src/loader.ts +28 -6
- package/src/markdown-editor/markdown-editor.scss +2 -2
- package/src/menu/menu-item/menu-item.scss +30 -30
- package/src/navigation-bar/index.ts +2 -0
- package/src/navigation-bar/navigation-bar-item.ts +25 -0
- package/src/navigation-bar/navigation-bar.scss +27 -0
- package/src/navigation-bar/navigation-bar.ts +96 -0
- package/src/navigation-drawer/index.ts +2 -0
- package/src/navigation-drawer/navigation-drawer-item.scss +82 -0
- package/src/navigation-drawer/navigation-drawer-item.ts +133 -0
- package/src/navigation-drawer/navigation-drawer.scss +99 -0
- package/src/navigation-drawer/navigation-drawer.ts +196 -0
- package/src/navigation-rail/navigation-rail.scss +1 -1
- package/src/number-field/number-field.ts +2 -3
- package/src/pagination/pagination.scss +1 -1
- package/src/progress/circular-progress/circular-progress.ts +2 -0
- package/src/progress/linear-progress/linear-progress.ts +2 -0
- package/src/radio/index.ts +1 -0
- package/src/radio/radio-group.scss +39 -0
- package/src/radio/radio-group.ts +167 -0
- package/src/radio/radio.ts +74 -31
- package/src/segmented-button/segmented-button-group.ts +12 -0
- package/src/segmented-button/segmented-button.ts +12 -6
- package/src/select/select.ts +21 -1
- package/src/side-sheet/side-sheet.scss +1 -1
- package/src/sidebar-menu/sidebar-menu-item.scss +1 -1
- package/src/sidebar-menu/sidebar-menu-item.ts +2 -0
- package/src/sidebar-menu/sidebar-menu.ts +2 -0
- package/src/sidebar-menu/sidebar-sub-menu.scss +1 -1
- package/src/sidebar-menu/sidebar-sub-menu.ts +2 -0
- package/src/slider/slider.scss +3 -3
- package/src/slider/slider.ts +119 -31
- package/src/snackbar/snackbar.ts +3 -3
- package/src/split-button/split-button-colors.scss +2 -2
- package/src/svg/svg.scss +5 -5
- package/src/switch/switch.scss +0 -1
- package/src/switch/switch.ts +82 -47
- package/src/tabs/tab.scss +2 -1
- package/src/tabs/tabs.ts +14 -8
- package/src/textarea/textarea.ts +2 -3
- package/src/time-picker/time-picker.ts +2 -3
- package/src/toolbar/toolbar.scss +4 -4
- package/src/toolbar/toolbar.ts +12 -5
- package/src/url-field/url-field.ts +2 -3
- package/dist/BaseInput-CU1zZYKc.js +0 -27
- package/dist/BaseInput-CU1zZYKc.js.map +0 -1
- package/dist/brand-loader.js +0 -358
- package/dist/brand-loader.js.map +0 -1
- package/dist/element-internals-2CMts_0M.js.map +0 -1
- package/dist/form-associated-BXADnjOB.js.map +0 -1
- package/dist/list-AdO-PUq_.js.map +0 -1
- package/dist/select-DkyRqUTI.js +0 -3955
- package/dist/select-DkyRqUTI.js.map +0 -1
- package/dist/src/brand-loader/brand-loader.d.ts +0 -33
- package/dist/src/brand-loader/index.d.ts +0 -2
- package/src/brand-loader/brand-loader.scss +0 -270
- package/src/brand-loader/brand-loader.ts +0 -115
- package/src/brand-loader/index.ts +0 -2
- /package/dist/test/{brand-loader.test.d.ts → button.test.d.ts} +0 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { i, _ as __decorate, I as IndividualComponent, b } from './IndividualComponent-Bdwyrvd6.js';
|
|
2
|
+
import { e } from './class-map-DG7CA1et.js';
|
|
3
|
+
import { o } from './style-map-BQD5Et1D.js';
|
|
4
|
+
import { B as BaseProgress } from './base-progress-CLZTRveO.js';
|
|
5
|
+
import './directive-ZPhl09Yt.js';
|
|
6
|
+
import './property-B49QQ8pS.js';
|
|
7
|
+
|
|
8
|
+
var css_248z = i`:host {
|
|
9
|
+
display: block;
|
|
10
|
+
--progress-height: 0.25rem;
|
|
11
|
+
--progress-container-color: var(--color-primary);
|
|
12
|
+
--progress-track-color: var(--color-secondary-container);
|
|
13
|
+
min-width: 2.5rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.linear-progress {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
}
|
|
20
|
+
.linear-progress .progress-header {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
.linear-progress .progress-header .progress-label {
|
|
25
|
+
font-family: var(--typography-label-medium-font-family) !important;
|
|
26
|
+
font-size: var(--typography-label-medium-font-size) !important;
|
|
27
|
+
font-weight: var(--typography-label-medium-font-weight) !important;
|
|
28
|
+
line-height: var(--typography-label-medium-line-height) !important;
|
|
29
|
+
letter-spacing: var(--typography-label-medium-letter-spacing) !important;
|
|
30
|
+
color: var(--color-on-surface);
|
|
31
|
+
flex: 1;
|
|
32
|
+
}
|
|
33
|
+
.linear-progress .progress-body {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
}
|
|
37
|
+
.linear-progress .progress-body .linear-progress-container {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
width: 100%;
|
|
42
|
+
margin: var(--spacing-100) 0;
|
|
43
|
+
}
|
|
44
|
+
.linear-progress .progress-body .linear-progress-container .track {
|
|
45
|
+
position: relative;
|
|
46
|
+
}
|
|
47
|
+
.linear-progress .progress-body .linear-progress-container .track:after {
|
|
48
|
+
content: "";
|
|
49
|
+
position: absolute;
|
|
50
|
+
display: block;
|
|
51
|
+
top: 0;
|
|
52
|
+
left: 0;
|
|
53
|
+
width: calc(100% - 0.25rem);
|
|
54
|
+
height: var(--progress-height);
|
|
55
|
+
background: var(--progress-track-color);
|
|
56
|
+
border-radius: var(--shape-corner-full);
|
|
57
|
+
}
|
|
58
|
+
.linear-progress .progress-body .linear-progress-container .track-start:after {
|
|
59
|
+
margin-inline-end: 0.25rem;
|
|
60
|
+
}
|
|
61
|
+
.linear-progress .progress-body .linear-progress-container .active-indicator {
|
|
62
|
+
height: var(--progress-height);
|
|
63
|
+
background: var(--progress-container-color);
|
|
64
|
+
border-radius: var(--shape-corner-full);
|
|
65
|
+
}
|
|
66
|
+
.linear-progress .progress-body .linear-progress-container .track-end {
|
|
67
|
+
flex: 1;
|
|
68
|
+
}
|
|
69
|
+
.linear-progress .progress-body .linear-progress-container .track-end:after {
|
|
70
|
+
margin-inline-start: 0.25rem;
|
|
71
|
+
}
|
|
72
|
+
.linear-progress .progress-body .progress-helper {
|
|
73
|
+
font-family: var(--typography-body-small-font-family) !important;
|
|
74
|
+
font-size: var(--typography-body-small-font-size) !important;
|
|
75
|
+
font-weight: var(--typography-body-small-font-weight) !important;
|
|
76
|
+
line-height: var(--typography-body-small-line-height) !important;
|
|
77
|
+
letter-spacing: var(--typography-body-small-letter-spacing) !important;
|
|
78
|
+
color: var(--color-on-surface-variant);
|
|
79
|
+
}
|
|
80
|
+
.linear-progress:not(.indeterminate) .track-start {
|
|
81
|
+
transition: width var(--duration-medium2) var(--easing-standard);
|
|
82
|
+
}
|
|
83
|
+
.linear-progress:not(.indeterminate) .active-indicator {
|
|
84
|
+
transition: width var(--duration-medium2) var(--easing-standard);
|
|
85
|
+
}
|
|
86
|
+
.linear-progress.indeterminate .linear-progress-container .track-start {
|
|
87
|
+
animation-duration: 3s;
|
|
88
|
+
animation-iteration-count: infinite;
|
|
89
|
+
animation-name: track-start-indeterminate;
|
|
90
|
+
animation-timing-function: var(--easing-linear);
|
|
91
|
+
}
|
|
92
|
+
.linear-progress.indeterminate .linear-progress-container .active-indicator {
|
|
93
|
+
animation-duration: 3s;
|
|
94
|
+
animation-iteration-count: infinite;
|
|
95
|
+
animation-name: active-indicator-indeterminate;
|
|
96
|
+
animation-timing-function: var(--easing-linear);
|
|
97
|
+
}
|
|
98
|
+
.linear-progress.inline {
|
|
99
|
+
flex-direction: row;
|
|
100
|
+
gap: var(--spacing-200);
|
|
101
|
+
}
|
|
102
|
+
.linear-progress.inline .progress-body {
|
|
103
|
+
flex: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@keyframes track-start-indeterminate {
|
|
107
|
+
0% {
|
|
108
|
+
width: 0;
|
|
109
|
+
}
|
|
110
|
+
50% {
|
|
111
|
+
width: 33%;
|
|
112
|
+
}
|
|
113
|
+
80%, to {
|
|
114
|
+
width: 100%;
|
|
115
|
+
padding-inline-end: 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@keyframes active-indicator-indeterminate {
|
|
119
|
+
0% {
|
|
120
|
+
width: 0;
|
|
121
|
+
}
|
|
122
|
+
50% {
|
|
123
|
+
width: 33%;
|
|
124
|
+
}
|
|
125
|
+
80%, to {
|
|
126
|
+
width: 0;
|
|
127
|
+
}
|
|
128
|
+
}`;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @label Linear Progress
|
|
132
|
+
* @tag wc-linear-progress
|
|
133
|
+
* @rawTag linear-progress
|
|
134
|
+
* @summary A linear progress indicator is a visual representation of progress toward a specific goal.
|
|
135
|
+
* @tags display
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```html
|
|
139
|
+
* <wc-linear-progress value="30" style="width:10rem"></wc-linear-progress>
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
let LinearProgress = class LinearProgress extends BaseProgress {
|
|
143
|
+
render() {
|
|
144
|
+
return b `
|
|
145
|
+
<div
|
|
146
|
+
class="${e({
|
|
147
|
+
'linear-progress': true,
|
|
148
|
+
indeterminate: this.indeterminate,
|
|
149
|
+
inline: this.inline,
|
|
150
|
+
})}"
|
|
151
|
+
>
|
|
152
|
+
${this.label
|
|
153
|
+
? b `<div class="progress-header">
|
|
154
|
+
<label class="progress-label">${this.label}</label>
|
|
155
|
+
</div>`
|
|
156
|
+
: ''}
|
|
157
|
+
|
|
158
|
+
<div class="progress-body">
|
|
159
|
+
<div
|
|
160
|
+
class="linear-progress-container"
|
|
161
|
+
title=${this.label}
|
|
162
|
+
?aria-valuenow="${this.__getPercentageValue()}"
|
|
163
|
+
aria-valuemin="0"
|
|
164
|
+
aria-valuemax="100"
|
|
165
|
+
role="progressbar"
|
|
166
|
+
>
|
|
167
|
+
<div class="track track-start"></div>
|
|
168
|
+
<div
|
|
169
|
+
class="active-indicator"
|
|
170
|
+
style="${o({
|
|
171
|
+
width: `${this.__getPercentageValue()}%`,
|
|
172
|
+
})}"
|
|
173
|
+
></div>
|
|
174
|
+
<div class="track track-end"></div>
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
${this.helperText
|
|
178
|
+
? b `<div class="progress-helper">${this.helperText}</div>`
|
|
179
|
+
: ''}
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
`;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
// Lit components use static styles for better performance
|
|
186
|
+
LinearProgress.styles = [css_248z];
|
|
187
|
+
LinearProgress = __decorate([
|
|
188
|
+
IndividualComponent
|
|
189
|
+
], LinearProgress);
|
|
190
|
+
|
|
191
|
+
export { LinearProgress };
|
|
192
|
+
//# sourceMappingURL=linear-progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linear-progress.js","sources":["../../src/progress/linear-progress/linear-progress.ts"],"sourcesContent":["import { html } from 'lit';\nimport IndividualComponent from '@/IndividualComponent.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport styles from './linear-progress.scss';\nimport { BaseProgress } from '../base-progress.js';\n\n/**\n * @label Linear Progress\n * @tag wc-linear-progress\n * @rawTag linear-progress\n * @summary A linear progress indicator is a visual representation of progress toward a specific goal.\n * @tags display\n *\n * @example\n * ```html\n * <wc-linear-progress value=\"30\" style=\"width:10rem\"></wc-linear-progress>\n * ```\n */\n@IndividualComponent\nexport class LinearProgress extends BaseProgress {\n // Lit components use static styles for better performance\n static styles = [styles];\n\n render() {\n return html`\n <div\n class=\"${classMap({\n 'linear-progress': true,\n indeterminate: this.indeterminate,\n inline: this.inline,\n })}\"\n >\n ${this.label\n ? html`<div class=\"progress-header\">\n <label class=\"progress-label\">${this.label}</label>\n </div>`\n : ''}\n\n <div class=\"progress-body\">\n <div\n class=\"linear-progress-container\"\n title=${this.label}\n ?aria-valuenow=\"${this.__getPercentageValue()}\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n role=\"progressbar\"\n >\n <div class=\"track track-start\"></div>\n <div\n class=\"active-indicator\"\n style=\"${styleMap({\n width: `${this.__getPercentageValue()}%`,\n })}\"\n ></div>\n <div class=\"track track-end\"></div>\n </div>\n\n ${this.helperText\n ? html`<div class=\"progress-helper\">${this.helperText}</div>`\n : ''}\n </div>\n </div>\n `;\n }\n}\n"],"names":["html","classMap","styleMap","styles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;;;;;;;;;;AAWG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,YAAY,CAAA;IAI9C,MAAM,GAAA;AACJ,QAAA,OAAOA,CAAI,CAAA;;AAEE,eAAA,EAAAC,CAAQ,CAAC;AAChB,YAAA,iBAAiB,EAAE,IAAI;YACvB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CAAA;;AAEA,QAAA,EAAA,IAAI,CAAC;cACHD,CAAI,CAAA,CAAA;AAC8B,4CAAA,EAAA,IAAI,CAAC,KAAK,CAAA;AACrC,kBAAA;AACT,cAAE,EAAE;;;;;AAKM,kBAAA,EAAA,IAAI,CAAC,KAAK;8BACA,IAAI,CAAC,oBAAoB,EAAE,CAAA;;;;;;;;AAQlC,qBAAA,EAAAE,CAAQ,CAAC;AAChB,YAAA,KAAK,EAAE,CAAA,EAAG,IAAI,CAAC,oBAAoB,EAAE,CAAA,CAAA,CAAG;SACzC,CAAC,CAAA;;;;;AAKJ,UAAA,EAAA,IAAI,CAAC;AACL,cAAEF,CAAI,CAAA,gCAAgC,IAAI,CAAC,UAAU,CAAA,MAAA;AACrD,cAAE,EAAE;;;KAGX;IACH;;AA3CA;AACO,cAAA,CAAA,MAAM,GAAG,CAACG,QAAM,CAAC;AAFb,cAAc,GAAA,UAAA,CAAA;IAD1B;AACY,CAAA,EAAA,cAAc,CA6C1B;;;;"}
|
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
import { i, a as i$1, A, b, _ as __decorate, I as IndividualComponent } from './IndividualComponent-Bdwyrvd6.js';
|
|
2
2
|
import { n } from './property-B49QQ8pS.js';
|
|
3
|
-
import { r } from './state-DkTK9EGF.js';
|
|
4
|
-
import { e } from './class-map-DG7CA1et.js';
|
|
5
3
|
import { e as e$1 } from './query-CHb9Ft_d.js';
|
|
4
|
+
import { e } from './class-map-DG7CA1et.js';
|
|
6
5
|
import { i as isLink } from './is-link-Dk2OV3PM.js';
|
|
7
6
|
import { i as isActivationClick, d as dispatchActivationClick } from './dispatch-event-utils-CuEqjlPT.js';
|
|
8
7
|
import { m as mixinBaseButton, a as mixinHyperlink } from './hyperlink-DLvb6MXE.js';
|
|
9
|
-
import { m as mixinDelegatesAria
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.screen-reader-only {
|
|
17
|
-
display: none !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
[hidden] {
|
|
21
|
-
display: none !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host {
|
|
25
|
-
display: block;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.list {
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
}`;
|
|
8
|
+
import { m as mixinDelegatesAria } from './delegate-py-Ets8N.js';
|
|
9
|
+
import { m as mixinElementInternals } from './element-internals-QME0yEz4.js';
|
|
10
|
+
import './base-Cl6v8-BZ.js';
|
|
11
|
+
import './directive-ZPhl09Yt.js';
|
|
12
|
+
import './throttle-C7ZAPqtu.js';
|
|
32
13
|
|
|
33
14
|
var css_248z = i`* {
|
|
34
15
|
box-sizing: border-box;
|
|
@@ -179,7 +160,7 @@ var css_248z = i`* {
|
|
|
179
160
|
* ```
|
|
180
161
|
* @tags display
|
|
181
162
|
*/
|
|
182
|
-
class ListItem extends mixinBaseButton(mixinHyperlink(mixinDelegatesAria(mixinElementInternals(i$1)))) {
|
|
163
|
+
let ListItem = class ListItem extends mixinBaseButton(mixinHyperlink(mixinDelegatesAria(mixinElementInternals(i$1)))) {
|
|
183
164
|
constructor() {
|
|
184
165
|
super();
|
|
185
166
|
this.selected = false;
|
|
@@ -309,7 +290,7 @@ class ListItem extends mixinBaseButton(mixinHyperlink(mixinDelegatesAria(mixinEl
|
|
|
309
290
|
</wc-item>
|
|
310
291
|
`;
|
|
311
292
|
}
|
|
312
|
-
}
|
|
293
|
+
};
|
|
313
294
|
// ── Static ───────────────────────────────────────────────────────────────
|
|
314
295
|
/** @nocollapse */ // eslint-disable-next-line
|
|
315
296
|
ListItem.shadowRootOptions = {
|
|
@@ -329,200 +310,9 @@ __decorate([
|
|
|
329
310
|
__decorate([
|
|
330
311
|
e$1('#list-item')
|
|
331
312
|
], ListItem.prototype, "itemElement", void 0);
|
|
332
|
-
|
|
333
|
-
var List_1;
|
|
334
|
-
/**
|
|
335
|
-
* @label List
|
|
336
|
-
* @tag wc-list
|
|
337
|
-
* @rawTag list
|
|
338
|
-
*
|
|
339
|
-
* @summary A list container for one or more list items.
|
|
340
|
-
*
|
|
341
|
-
* @example
|
|
342
|
-
* ```html
|
|
343
|
-
* <wc-list>
|
|
344
|
-
* <wc-list-item>
|
|
345
|
-
* <wc-icon slot="leading" name="inbox"></wc-icon>
|
|
346
|
-
* Inbox
|
|
347
|
-
* <span slot="trailing">24</span>
|
|
348
|
-
* </wc-list-item>
|
|
349
|
-
* <wc-list-item>
|
|
350
|
-
* <wc-avatar slot="leading" name="Ada Lovelace"></wc-avatar>
|
|
351
|
-
* Ada Lovelace
|
|
352
|
-
* <span slot="supporting-text">Software Engineer</span>
|
|
353
|
-
* <span slot="trailing-supporting-text">7</span>
|
|
354
|
-
* <wc-icon slot="trailing" name="chevron_right"></wc-icon>
|
|
355
|
-
* </wc-list-item>
|
|
356
|
-
* </wc-list>
|
|
357
|
-
* ```
|
|
358
|
-
* @tags display
|
|
359
|
-
*/
|
|
360
|
-
let List = List_1 = class List extends i$1 {
|
|
361
|
-
constructor() {
|
|
362
|
-
super(...arguments);
|
|
363
|
-
/** */
|
|
364
|
-
this.variant = 'standard';
|
|
365
|
-
/** Index of the currently active item within the clickable items list. */
|
|
366
|
-
this.activeIndex = -1;
|
|
367
|
-
// ── Handlers ──────────────────────────────────────────────────────────────
|
|
368
|
-
this._onKeyDown = (event) => {
|
|
369
|
-
if (!this._isEventFromThisList(event))
|
|
370
|
-
return;
|
|
371
|
-
const eventItem = this._clickableItemFromEvent(event);
|
|
372
|
-
if (eventItem) {
|
|
373
|
-
this._setActiveItem(eventItem);
|
|
374
|
-
}
|
|
375
|
-
switch (event.key) {
|
|
376
|
-
case 'ArrowDown':
|
|
377
|
-
event.preventDefault();
|
|
378
|
-
this._setActiveByOffset(1);
|
|
379
|
-
break;
|
|
380
|
-
case 'ArrowUp':
|
|
381
|
-
event.preventDefault();
|
|
382
|
-
this._setActiveByOffset(-1);
|
|
383
|
-
break;
|
|
384
|
-
case 'Home':
|
|
385
|
-
event.preventDefault();
|
|
386
|
-
this._setBoundaryActive(0);
|
|
387
|
-
break;
|
|
388
|
-
case 'End':
|
|
389
|
-
event.preventDefault();
|
|
390
|
-
this._setBoundaryActive(Math.max(this._clickableItems().length - 1, 0));
|
|
391
|
-
break;
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
this._onClick = (event) => {
|
|
395
|
-
const item = this._clickableItemFromEvent(event);
|
|
396
|
-
if (!item)
|
|
397
|
-
return;
|
|
398
|
-
this._setActiveItem(item);
|
|
399
|
-
};
|
|
400
|
-
this._onSlotChange = () => {
|
|
401
|
-
this._syncRovingTabIndex();
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
connectedCallback() {
|
|
405
|
-
super.connectedCallback();
|
|
406
|
-
this.setAttribute('role', 'list');
|
|
407
|
-
this.addEventListener('keydown', this._onKeyDown);
|
|
408
|
-
this.addEventListener('click', this._onClick);
|
|
409
|
-
}
|
|
410
|
-
disconnectedCallback() {
|
|
411
|
-
this.removeEventListener('keydown', this._onKeyDown);
|
|
412
|
-
this.removeEventListener('click', this._onClick);
|
|
413
|
-
super.disconnectedCallback();
|
|
414
|
-
}
|
|
415
|
-
focus() {
|
|
416
|
-
const target = this._getActiveItem() ?? this._getFirstClickableItem();
|
|
417
|
-
target?.focus();
|
|
418
|
-
}
|
|
419
|
-
// ── Items ─────────────────────────────────────────────────────────────────
|
|
420
|
-
get items() {
|
|
421
|
-
const slot = this.shadowRoot?.querySelector('slot');
|
|
422
|
-
const elements = slot?.assignedElements({ flatten: true }) ?? [];
|
|
423
|
-
return elements.filter(el => el instanceof ListItem);
|
|
424
|
-
}
|
|
425
|
-
_clickableItems() {
|
|
426
|
-
return this.items.filter(item => item.isClickable());
|
|
427
|
-
}
|
|
428
|
-
// ── Roving tabindex ───────────────────────────────────────────────────────
|
|
429
|
-
_syncRovingTabIndex() {
|
|
430
|
-
const allItems = this.items;
|
|
431
|
-
const clickable = this._clickableItems();
|
|
432
|
-
for (const item of allItems) {
|
|
433
|
-
item.tabIndex = -1;
|
|
434
|
-
}
|
|
435
|
-
if (!clickable.length) {
|
|
436
|
-
this.activeIndex = -1;
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
if (this.activeIndex < 0 || this.activeIndex >= clickable.length) {
|
|
440
|
-
this.activeIndex = 0;
|
|
441
|
-
}
|
|
442
|
-
clickable[this.activeIndex].tabIndex = 0;
|
|
443
|
-
}
|
|
444
|
-
_setActiveByOffset(offset) {
|
|
445
|
-
const clickable = this._clickableItems();
|
|
446
|
-
if (!clickable.length)
|
|
447
|
-
return;
|
|
448
|
-
if (this.activeIndex < 0) {
|
|
449
|
-
this.activeIndex = 0;
|
|
450
|
-
}
|
|
451
|
-
else {
|
|
452
|
-
const count = clickable.length;
|
|
453
|
-
this.activeIndex = (this.activeIndex + offset + count) % count;
|
|
454
|
-
}
|
|
455
|
-
this._syncRovingTabIndex();
|
|
456
|
-
clickable[this.activeIndex]?.focus();
|
|
457
|
-
}
|
|
458
|
-
_setBoundaryActive(index) {
|
|
459
|
-
const clickable = this._clickableItems();
|
|
460
|
-
if (!clickable.length)
|
|
461
|
-
return;
|
|
462
|
-
this.activeIndex = index;
|
|
463
|
-
this._syncRovingTabIndex();
|
|
464
|
-
clickable[this.activeIndex]?.focus();
|
|
465
|
-
}
|
|
466
|
-
_getActiveItem() {
|
|
467
|
-
const clickable = this._clickableItems();
|
|
468
|
-
if (!clickable.length || this.activeIndex < 0)
|
|
469
|
-
return null;
|
|
470
|
-
return clickable[this.activeIndex] ?? null;
|
|
471
|
-
}
|
|
472
|
-
_getFirstClickableItem() {
|
|
473
|
-
return this._clickableItems()[0] ?? null;
|
|
474
|
-
}
|
|
475
|
-
// ── Event helpers ─────────────────────────────────────────────────────────
|
|
476
|
-
_isEventFromThisList(event) {
|
|
477
|
-
const path = event.composedPath();
|
|
478
|
-
const sourceList = path.find(target => target instanceof List_1);
|
|
479
|
-
return sourceList === this;
|
|
480
|
-
}
|
|
481
|
-
_clickableItemFromEvent(event) {
|
|
482
|
-
if (!this._isEventFromThisList(event))
|
|
483
|
-
return null;
|
|
484
|
-
const path = event.composedPath();
|
|
485
|
-
const clickable = this._clickableItems();
|
|
486
|
-
for (const target of path) {
|
|
487
|
-
if (target instanceof ListItem) {
|
|
488
|
-
const owned = clickable.find(item => item === target);
|
|
489
|
-
if (owned)
|
|
490
|
-
return owned;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
return null;
|
|
494
|
-
}
|
|
495
|
-
_setActiveItem(item) {
|
|
496
|
-
const clickable = this._clickableItems();
|
|
497
|
-
const nextIndex = clickable.indexOf(item);
|
|
498
|
-
if (nextIndex < 0)
|
|
499
|
-
return;
|
|
500
|
-
this.activeIndex = nextIndex;
|
|
501
|
-
this._syncRovingTabIndex();
|
|
502
|
-
}
|
|
503
|
-
render() {
|
|
504
|
-
const cssClasses = {
|
|
505
|
-
list: true,
|
|
506
|
-
[`variant-${this.variant}`]: true,
|
|
507
|
-
};
|
|
508
|
-
return b `
|
|
509
|
-
<div class=${e(cssClasses)}>
|
|
510
|
-
<slot @slotchange=${this._onSlotChange}></slot>
|
|
511
|
-
</div>
|
|
512
|
-
`;
|
|
513
|
-
}
|
|
514
|
-
};
|
|
515
|
-
List.styles = [css_248z$1];
|
|
516
|
-
List.Item = ListItem;
|
|
517
|
-
__decorate([
|
|
518
|
-
n({ type: String, reflect: true })
|
|
519
|
-
], List.prototype, "variant", void 0);
|
|
520
|
-
__decorate([
|
|
521
|
-
r()
|
|
522
|
-
], List.prototype, "activeIndex", void 0);
|
|
523
|
-
List = List_1 = __decorate([
|
|
313
|
+
ListItem = __decorate([
|
|
524
314
|
IndividualComponent
|
|
525
|
-
],
|
|
315
|
+
], ListItem);
|
|
526
316
|
|
|
527
|
-
export {
|
|
528
|
-
//# sourceMappingURL=list-
|
|
317
|
+
export { ListItem };
|
|
318
|
+
//# sourceMappingURL=list-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-item.js","sources":["../../src/list/list-item.ts"],"sourcesContent":["import { html, LitElement, nothing } from 'lit';\nimport IndividualComponent from '@/IndividualComponent.js';\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport styles from './list-item.scss';\nimport { isLink } from '@/__internal/utils/is-link.js';\nimport {\n dispatchActivationClick,\n isActivationClick,\n} from '@/__internal/utils/dispatch-event-utils.js';\nimport { ARIAMixinStrict } from '@/__internal/aria/aria.js';\nimport { mixinBaseButton } from '@/button/base-button/base-button.js';\nimport { mixinHyperlink } from '@/__internal/mixins/hyperlink.js';\nimport { mixinDelegatesAria } from '@/__internal/aria/delegate.js';\nimport { mixinElementInternals } from '@/__internal/mixins/element-internals.js';\n\n/**\n * @label List Item\n * @tag wc-list-item\n * @rawTag list-item\n *\n * @summary A list item with leading, trailing and content slots.\n *\n * @example\n * ```html\n * <wc-list-item selected>\n * <wc-icon slot=\"leading\" name=\"person\"></wc-icon>\n * Profile\n * <wc-icon slot=\"trailing\" name=\"chevron_right\"></wc-icon>\n * </wc-list-item>\n * ```\n * @tags display\n */\n@IndividualComponent\nexport class ListItem extends mixinBaseButton(\n mixinHyperlink(mixinDelegatesAria(mixinElementInternals(LitElement))),\n) {\n // ── Static ───────────────────────────────────────────────────────────────\n\n /** @nocollapse */ // eslint-disable-next-line\n static override shadowRootOptions: ShadowRootInit = {\n mode: 'open',\n delegatesFocus: true,\n };\n\n static styles = [styles];\n\n @property({ type: Boolean, reflect: true }) selected = false;\n\n /** When true, renders the list-item in a loading skeleton state. */\n @property({ type: Boolean, reflect: true }) skeleton: boolean = false;\n\n @property({ type: Boolean, reflect: true })\n actionable: boolean = false;\n\n @query('#list-item') readonly itemElement!: HTMLElement | null;\n\n constructor() {\n super();\n this.addEventListener('click', this.__dispatchClickWithThrottle);\n }\n\n connectedCallback() {\n // eslint-disable-next-line wc/guard-super-call\n super.connectedCallback();\n\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'listitem');\n }\n }\n\n override focus() {\n this.itemElement?.focus();\n }\n\n override blur() {\n this.itemElement?.blur();\n }\n\n __dispatchClick = (event: MouseEvent | KeyboardEvent) => {\n // If the button is soft-disabled or a disabled link, we need to explicitly\n // prevent the click from propagating to other event listeners as well as\n // prevent the default action.\n if (this.softDisabled || (this.disabled && this.href) || this.skeleton) {\n event.stopImmediatePropagation();\n event.preventDefault();\n return;\n }\n\n if (!isActivationClick(event) || !this.itemElement) {\n return;\n }\n\n this.focus();\n dispatchActivationClick(this.itemElement);\n };\n\n private __hasNamedSlot(...names: string[]) {\n return names.some(name =>\n Array.from(this.children).some(\n child => child.getAttribute('slot') === name,\n ),\n );\n }\n\n isClickable() {\n return this.actionable || isLink(this);\n }\n\n render() {\n const isElementLink = isLink(this);\n const clickable = this.isClickable();\n\n const cssClasses = {\n 'list-item': true,\n 'native-button': !isElementLink,\n 'native-link': isElementLink,\n };\n\n // Needed for closure conformance\n const { ariaLabel } = this as ARIAMixinStrict;\n\n if (!clickable) {\n return html`\n <div\n id=\"list-item\"\n class=${classMap(cssClasses)}\n aria-label=\"${ariaLabel || nothing}\"\n >\n ${this.renderContent(clickable)}\n </div>\n `;\n }\n\n if (!isElementLink) {\n return html`\n <button\n id=\"list-item\"\n class=${classMap(cssClasses)}\n ?disabled=${this.disabled}\n aria-label=\"${ariaLabel || nothing}\"\n ?aria-disabled=${this.softDisabled}\n @click=${this.__dispatchClick}\n >\n ${this.renderContent(clickable)}\n </button>\n `;\n }\n\n return html`\n <a\n id=\"list-item\"\n class=${classMap(cssClasses)}\n href=${this.href}\n target=${this.target}\n ?rel=${this.rel}\n ?download=${this.download}\n tabindex=${this.disabled ? '-1' : '0'}\n aria-disabled=${String(this.disabled || this.softDisabled)}\n @click=${this.__dispatchClick}\n >\n ${this.renderContent(clickable)}\n </a>\n `;\n }\n\n renderContent(clickable: boolean) {\n const hasLeading = this.__hasNamedSlot('leading');\n const hasTrailingSupportingText = this.__hasNamedSlot(\n 'trailing-supporting-text',\n );\n const hasTrailing = this.__hasNamedSlot('trailing');\n\n return html`\n <wc-item class=\"list-item-content\" ?inert=${clickable}>\n ${clickable\n ? html`<wc-focus-ring\n class=\"focus-ring\"\n for=\"list-item\"\n slot=\"container\"\n ></wc-focus-ring>\n <div class=\"background\" slot=\"container\"></div>\n <wc-ripple\n class=\"ripple\"\n for=\"list-item\"\n slot=\"container\"\n ></wc-ripple>\n <wc-skeleton class=\"skeleton\" slot=\"container\"></wc-skeleton> `\n : null}\n\n <slot name=\"leading\" slot=\"start\" ?hidden=${!hasLeading}></slot>\n <slot name=\"overline\" slot=\"overline\"></slot>\n <slot name=\"headline\" slot=\"headline\"></slot>\n <slot></slot>\n <slot name=\"supporting-text\" slot=\"supporting-text\"></slot>\n\n <slot\n name=\"trailing-supporting-text\"\n slot=\"trailing-supporting-text\"\n ?hidden=${!hasTrailingSupportingText}\n ></slot>\n <slot name=\"trailing\" slot=\"end\" ?hidden=${!hasTrailing}></slot>\n </wc-item>\n `;\n }\n}\n"],"names":["LitElement","html","classMap","nothing","styles","property","query"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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