@cumulus-ui/components 0.5.2 → 0.5.3
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/alert/interfaces.d.ts +30 -6
- package/dist/alert/interfaces.d.ts.map +1 -1
- package/dist/anchor-navigation/interfaces.d.ts +12 -0
- package/dist/anchor-navigation/interfaces.d.ts.map +1 -1
- package/dist/annotation-context/interfaces.d.ts +31 -5
- package/dist/annotation-context/interfaces.d.ts.map +1 -1
- package/dist/app-layout/interfaces.d.ts +59 -10
- package/dist/app-layout/interfaces.d.ts.map +1 -1
- package/dist/attribute-editor/interfaces.d.ts +22 -5
- package/dist/attribute-editor/interfaces.d.ts.map +1 -1
- package/dist/autosuggest/interfaces.d.ts +11 -3
- package/dist/autosuggest/interfaces.d.ts.map +1 -1
- package/dist/badge/interfaces.d.ts +5 -1
- package/dist/badge/interfaces.d.ts.map +1 -1
- package/dist/box/interfaces.d.ts +6 -0
- package/dist/box/interfaces.d.ts.map +1 -1
- package/dist/breadcrumb-group/interfaces.d.ts +18 -3
- package/dist/breadcrumb-group/interfaces.d.ts.map +1 -1
- package/dist/button/interfaces.d.ts +37 -5
- package/dist/button/interfaces.d.ts.map +1 -1
- package/dist/button-dropdown/interfaces.d.ts +15 -4
- package/dist/button-dropdown/interfaces.d.ts.map +1 -1
- package/dist/button-group/interfaces.d.ts +9 -2
- package/dist/button-group/interfaces.d.ts.map +1 -1
- package/dist/calendar/interfaces.d.ts +6 -1
- package/dist/calendar/interfaces.d.ts.map +1 -1
- package/dist/cards/interfaces.d.ts +26 -6
- package/dist/cards/interfaces.d.ts.map +1 -1
- package/dist/checkbox/base-checkbox.d.ts +14 -4
- package/dist/checkbox/base-checkbox.d.ts.map +1 -1
- package/dist/checkbox/interfaces.d.ts +10 -2
- package/dist/checkbox/interfaces.d.ts.map +1 -1
- package/dist/code-editor/interfaces.d.ts +33 -6
- package/dist/code-editor/interfaces.d.ts.map +1 -1
- package/dist/collection-preferences/interfaces.d.ts +25 -0
- package/dist/collection-preferences/interfaces.d.ts.map +1 -1
- package/dist/column-layout/interfaces.d.ts +5 -0
- package/dist/column-layout/interfaces.d.ts.map +1 -1
- package/dist/container/interfaces.d.ts +13 -3
- package/dist/container/interfaces.d.ts.map +1 -1
- package/dist/content-layout/interfaces.d.ts +31 -4
- package/dist/content-layout/interfaces.d.ts.map +1 -1
- package/dist/copy-to-clipboard/interfaces.d.ts +11 -0
- package/dist/copy-to-clipboard/interfaces.d.ts.map +1 -1
- package/dist/date-picker/interfaces.d.ts +9 -2
- package/dist/date-picker/interfaces.d.ts.map +1 -1
- package/dist/date-picker/internal.d.ts +1 -0
- package/dist/date-picker/internal.d.ts.map +1 -1
- package/dist/date-range-picker/interfaces.d.ts +14 -3
- package/dist/date-range-picker/interfaces.d.ts.map +1 -1
- package/dist/drawer/interfaces.d.ts +23 -2
- package/dist/drawer/interfaces.d.ts.map +1 -1
- package/dist/dropdown/interfaces.d.ts +56 -8
- package/dist/dropdown/interfaces.d.ts.map +1 -1
- package/dist/error-boundary/interfaces.d.ts +6 -1
- package/dist/error-boundary/interfaces.d.ts.map +1 -1
- package/dist/expandable-section/interfaces.d.ts +26 -3
- package/dist/expandable-section/interfaces.d.ts.map +1 -1
- package/dist/file-dropzone/interfaces.d.ts +10 -0
- package/dist/file-dropzone/interfaces.d.ts.map +1 -1
- package/dist/file-input/interfaces.d.ts +6 -1
- package/dist/file-input/interfaces.d.ts.map +1 -1
- package/dist/file-input/internal.d.ts +1 -0
- package/dist/file-input/internal.d.ts.map +1 -1
- package/dist/file-token-group/interfaces.d.ts +6 -1
- package/dist/file-token-group/interfaces.d.ts.map +1 -1
- package/dist/file-upload/interfaces.d.ts +18 -4
- package/dist/file-upload/interfaces.d.ts.map +1 -1
- package/dist/file-upload/internal.d.ts +1 -0
- package/dist/file-upload/internal.d.ts.map +1 -1
- package/dist/form/interfaces.d.ts +21 -5
- package/dist/form/interfaces.d.ts.map +1 -1
- package/dist/form-field/interfaces.d.ts +37 -8
- package/dist/form-field/interfaces.d.ts.map +1 -1
- package/dist/grid/interfaces.d.ts +9 -0
- package/dist/grid/interfaces.d.ts.map +1 -1
- package/dist/header/interfaces.d.ts +24 -1
- package/dist/header/interfaces.d.ts.map +1 -1
- package/dist/help-panel/interfaces.d.ts +18 -3
- package/dist/help-panel/interfaces.d.ts.map +1 -1
- package/dist/hotspot/interfaces.d.ts +15 -0
- package/dist/hotspot/interfaces.d.ts.map +1 -1
- package/dist/icon/interfaces.d.ts +23 -0
- package/dist/icon/interfaces.d.ts.map +1 -1
- package/dist/index.js +143 -94
- package/dist/input/interfaces.d.ts +26 -1
- package/dist/input/interfaces.d.ts.map +1 -1
- package/dist/input/internal.d.ts +1 -0
- package/dist/input/internal.d.ts.map +1 -1
- package/dist/internal/generated/cloudscape-types.d.ts +2 -0
- package/dist/internal/generated/cloudscape-types.d.ts.map +1 -1
- package/dist/internal/generated/component-manifest.d.ts +54 -54
- package/dist/internal/types.d.ts +14 -0
- package/dist/internal/types.d.ts.map +1 -0
- package/dist/item-card/interfaces.d.ts +25 -6
- package/dist/item-card/interfaces.d.ts.map +1 -1
- package/dist/link/interfaces.d.ts +17 -4
- package/dist/link/interfaces.d.ts.map +1 -1
- package/dist/list/interfaces.d.ts +5 -1
- package/dist/list/interfaces.d.ts.map +1 -1
- package/dist/live-region/interfaces.d.ts +7 -0
- package/dist/live-region/interfaces.d.ts.map +1 -1
- package/dist/modal/interfaces.d.ts +20 -4
- package/dist/modal/interfaces.d.ts.map +1 -1
- package/dist/multiselect/interfaces.d.ts +6 -2
- package/dist/multiselect/interfaces.d.ts.map +1 -1
- package/dist/navigable-group/interfaces.d.ts +12 -1
- package/dist/navigable-group/interfaces.d.ts.map +1 -1
- package/dist/pagination/interfaces.d.ts +18 -0
- package/dist/pagination/interfaces.d.ts.map +1 -1
- package/dist/panel-layout/interfaces.d.ts +10 -0
- package/dist/panel-layout/interfaces.d.ts.map +1 -1
- package/dist/pie-chart/interfaces.d.ts +29 -6
- package/dist/pie-chart/interfaces.d.ts.map +1 -1
- package/dist/popover/interfaces.d.ts +10 -2
- package/dist/popover/interfaces.d.ts.map +1 -1
- package/dist/progress-bar/interfaces.d.ts +26 -5
- package/dist/progress-bar/interfaces.d.ts.map +1 -1
- package/dist/prompt-input/interfaces.d.ts +43 -6
- package/dist/prompt-input/interfaces.d.ts.map +1 -1
- package/dist/property-filter/interfaces.d.ts +35 -6
- package/dist/property-filter/interfaces.d.ts.map +1 -1
- package/dist/radio-group/interfaces.d.ts +5 -1
- package/dist/radio-group/interfaces.d.ts.map +1 -1
- package/dist/s3-resource-selector/interfaces.d.ts +18 -1
- package/dist/s3-resource-selector/interfaces.d.ts.map +1 -1
- package/dist/segmented-control/interfaces.d.ts +5 -1
- package/dist/segmented-control/interfaces.d.ts.map +1 -1
- package/dist/select/interfaces.d.ts +18 -5
- package/dist/select/interfaces.d.ts.map +1 -1
- package/dist/select/internal.d.ts +2 -0
- package/dist/select/internal.d.ts.map +1 -1
- package/dist/side-navigation/interfaces.d.ts +30 -2
- package/dist/side-navigation/interfaces.d.ts.map +1 -1
- package/dist/slider/interfaces.d.ts +6 -1
- package/dist/slider/interfaces.d.ts.map +1 -1
- package/dist/slider/internal.d.ts +1 -0
- package/dist/slider/internal.d.ts.map +1 -1
- package/dist/space-between/interfaces.d.ts +5 -1
- package/dist/space-between/interfaces.d.ts.map +1 -1
- package/dist/split-panel/interfaces.d.ts +21 -4
- package/dist/split-panel/interfaces.d.ts.map +1 -1
- package/dist/split-panel/internal.d.ts +1 -0
- package/dist/split-panel/internal.d.ts.map +1 -1
- package/dist/status-indicator/interfaces.d.ts +5 -1
- package/dist/status-indicator/interfaces.d.ts.map +1 -1
- package/dist/steps/interfaces.d.ts +6 -1
- package/dist/steps/interfaces.d.ts.map +1 -1
- package/dist/table/interfaces.d.ts +62 -13
- package/dist/table/interfaces.d.ts.map +1 -1
- package/dist/tabs/interfaces.d.ts +13 -2
- package/dist/tabs/interfaces.d.ts.map +1 -1
- package/dist/tabs/internal.d.ts +2 -0
- package/dist/tabs/internal.d.ts.map +1 -1
- package/dist/tag-editor/interfaces.d.ts +7 -0
- package/dist/tag-editor/interfaces.d.ts.map +1 -1
- package/dist/text-content/interfaces.d.ts +6 -0
- package/dist/text-content/interfaces.d.ts.map +1 -1
- package/dist/text-filter/interfaces.d.ts +10 -2
- package/dist/text-filter/interfaces.d.ts.map +1 -1
- package/dist/tiles/interfaces.d.ts +5 -1
- package/dist/tiles/interfaces.d.ts.map +1 -1
- package/dist/toggle/interfaces.d.ts +7 -2
- package/dist/toggle/interfaces.d.ts.map +1 -1
- package/dist/toggle-button/interfaces.d.ts +28 -1
- package/dist/toggle-button/interfaces.d.ts.map +1 -1
- package/dist/token/interfaces.d.ts +9 -3
- package/dist/token/interfaces.d.ts.map +1 -1
- package/dist/token-group/interfaces.d.ts +6 -1
- package/dist/token-group/interfaces.d.ts.map +1 -1
- package/dist/tooltip/interfaces.d.ts +9 -1
- package/dist/tooltip/interfaces.d.ts.map +1 -1
- package/dist/top-navigation/interfaces.d.ts +5 -1
- package/dist/top-navigation/interfaces.d.ts.map +1 -1
- package/dist/tree-view/interfaces.d.ts +5 -1
- package/dist/tree-view/interfaces.d.ts.map +1 -1
- package/dist/tutorial-panel/interfaces.d.ts +5 -0
- package/dist/tutorial-panel/interfaces.d.ts.map +1 -1
- package/dist/wizard/interfaces.d.ts +29 -0
- package/dist/wizard/interfaces.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9068,7 +9068,7 @@ __decorateClass([
|
|
|
9068
9068
|
property24({ type: Boolean, reflect: true })
|
|
9069
9069
|
], CsPaginationInternal.prototype, "disabled", 2);
|
|
9070
9070
|
__decorateClass([
|
|
9071
|
-
property24({
|
|
9071
|
+
property24({ attribute: false })
|
|
9072
9072
|
], CsPaginationInternal.prototype, "ariaLabels", 2);
|
|
9073
9073
|
|
|
9074
9074
|
// src/pagination/index.ts
|
|
@@ -12447,6 +12447,7 @@ var CsSliderInternal = class extends CsBaseElement {
|
|
|
12447
12447
|
this.step = 1;
|
|
12448
12448
|
this.disabled = false;
|
|
12449
12449
|
this.ariaLabel = null;
|
|
12450
|
+
this.ariaDescription = null;
|
|
12450
12451
|
this._onInput = (e) => {
|
|
12451
12452
|
if (this.disabled) return;
|
|
12452
12453
|
const input = e.target;
|
|
@@ -12497,6 +12498,7 @@ var CsSliderInternal = class extends CsBaseElement {
|
|
|
12497
12498
|
step=${this.step}
|
|
12498
12499
|
?disabled=${this.disabled}
|
|
12499
12500
|
aria-label=${ifDefined17(this.ariaLabel || void 0)}
|
|
12501
|
+
aria-description=${ifDefined17(this.ariaDescription || void 0)}
|
|
12500
12502
|
aria-valuemin=${this.min}
|
|
12501
12503
|
aria-valuemax=${this.max}
|
|
12502
12504
|
aria-valuenow=${this.value}
|
|
@@ -12529,6 +12531,9 @@ __decorateClass([
|
|
|
12529
12531
|
__decorateClass([
|
|
12530
12532
|
property34({ type: String })
|
|
12531
12533
|
], CsSliderInternal.prototype, "ariaLabel", 2);
|
|
12534
|
+
__decorateClass([
|
|
12535
|
+
property34({ type: String })
|
|
12536
|
+
], CsSliderInternal.prototype, "ariaDescription", 2);
|
|
12532
12537
|
|
|
12533
12538
|
// src/slider/index.ts
|
|
12534
12539
|
var CsSlider = class extends CsSliderInternal {
|
|
@@ -13123,6 +13128,7 @@ var CsFileInputInternal = class extends CsBaseElement {
|
|
|
13123
13128
|
this.multiple = false;
|
|
13124
13129
|
this.variant = "button";
|
|
13125
13130
|
this.ariaLabel = "Choose file";
|
|
13131
|
+
this.ariaRequired = null;
|
|
13126
13132
|
this.disabled = false;
|
|
13127
13133
|
this._onButtonClick = () => {
|
|
13128
13134
|
if (this.disabled) return;
|
|
@@ -13170,6 +13176,7 @@ var CsFileInputInternal = class extends CsBaseElement {
|
|
|
13170
13176
|
icon-name=${isIconOnly ? "upload" : ""}
|
|
13171
13177
|
?disabled=${this.disabled}
|
|
13172
13178
|
aria-label=${label}
|
|
13179
|
+
aria-required=${ifDefined19(this.ariaRequired || void 0)}
|
|
13173
13180
|
@click=${this._onButtonClick}
|
|
13174
13181
|
>${!isIconOnly ? html38`<slot>${label}</slot>` : ""}</cs-button>
|
|
13175
13182
|
</span>
|
|
@@ -13188,6 +13195,9 @@ __decorateClass([
|
|
|
13188
13195
|
__decorateClass([
|
|
13189
13196
|
property37({ type: String })
|
|
13190
13197
|
], CsFileInputInternal.prototype, "ariaLabel", 2);
|
|
13198
|
+
__decorateClass([
|
|
13199
|
+
property37({ type: Boolean })
|
|
13200
|
+
], CsFileInputInternal.prototype, "ariaRequired", 2);
|
|
13191
13201
|
__decorateClass([
|
|
13192
13202
|
property37({ type: Boolean, reflect: true })
|
|
13193
13203
|
], CsFileInputInternal.prototype, "disabled", 2);
|
|
@@ -13201,6 +13211,7 @@ customElements.define("cs-file-input", CsFileInput);
|
|
|
13201
13211
|
import { css as css84, html as html39, nothing as nothing16 } from "lit";
|
|
13202
13212
|
import { property as property38, state as state9 } from "lit/decorators.js";
|
|
13203
13213
|
import { classMap as classMap34 } from "lit/directives/class-map.js";
|
|
13214
|
+
import { ifDefined as ifDefined20 } from "lit/directives/if-defined.js";
|
|
13204
13215
|
|
|
13205
13216
|
// src/tabs/styles.ts
|
|
13206
13217
|
import { css as css83 } from "lit";
|
|
@@ -13528,6 +13539,8 @@ var CsTabsInternal = class extends CsBaseElement {
|
|
|
13528
13539
|
this.variant = "default";
|
|
13529
13540
|
this.disableContentPaddings = false;
|
|
13530
13541
|
this.fitHeight = false;
|
|
13542
|
+
this.ariaLabel = null;
|
|
13543
|
+
this.ariaLabelledby = null;
|
|
13531
13544
|
this._internalActiveTabId = "";
|
|
13532
13545
|
this._onTabKeyDown = (e) => {
|
|
13533
13546
|
const enabledTabs = this.tabs.filter((t) => !t.disabled);
|
|
@@ -13643,7 +13656,9 @@ var CsTabsInternal = class extends CsBaseElement {
|
|
|
13643
13656
|
<div class=${classMap34(rootClasses)}>
|
|
13644
13657
|
<div class=${classMap34(headerClasses)}>
|
|
13645
13658
|
<div class="tab-header-scroll-container">
|
|
13646
|
-
<ul class="tabs-header-list" role="tablist"
|
|
13659
|
+
<ul class="tabs-header-list" role="tablist"
|
|
13660
|
+
aria-label=${ifDefined20(this.ariaLabel || void 0)}
|
|
13661
|
+
aria-labelledby=${ifDefined20(!this.ariaLabel && this.ariaLabelledby ? this.ariaLabelledby : void 0)}>
|
|
13647
13662
|
${this.tabs.map((tab) => this._renderTab(tab))}
|
|
13648
13663
|
</ul>
|
|
13649
13664
|
</div>
|
|
@@ -13700,6 +13715,12 @@ __decorateClass([
|
|
|
13700
13715
|
__decorateClass([
|
|
13701
13716
|
property38({ type: Boolean, reflect: true })
|
|
13702
13717
|
], CsTabsInternal.prototype, "fitHeight", 2);
|
|
13718
|
+
__decorateClass([
|
|
13719
|
+
property38({ type: String })
|
|
13720
|
+
], CsTabsInternal.prototype, "ariaLabel", 2);
|
|
13721
|
+
__decorateClass([
|
|
13722
|
+
property38({ type: String })
|
|
13723
|
+
], CsTabsInternal.prototype, "ariaLabelledby", 2);
|
|
13703
13724
|
__decorateClass([
|
|
13704
13725
|
state9()
|
|
13705
13726
|
], CsTabsInternal.prototype, "_internalActiveTabId", 2);
|
|
@@ -14199,7 +14220,7 @@ customElements.define("cs-expandable-section", CsExpandableSection);
|
|
|
14199
14220
|
import { css as css89, html as html41, nothing as nothing18 } from "lit";
|
|
14200
14221
|
import { property as property40, state as state11, query as query3 } from "lit/decorators.js";
|
|
14201
14222
|
import { classMap as classMap36 } from "lit/directives/class-map.js";
|
|
14202
|
-
import { ifDefined as
|
|
14223
|
+
import { ifDefined as ifDefined21 } from "lit/directives/if-defined.js";
|
|
14203
14224
|
|
|
14204
14225
|
// src/button-dropdown/styles.ts
|
|
14205
14226
|
import { css as css87 } from "lit";
|
|
@@ -14693,8 +14714,8 @@ var CsButtonDropdownInternal = class extends CsBaseElement {
|
|
|
14693
14714
|
type="button"
|
|
14694
14715
|
aria-haspopup="true"
|
|
14695
14716
|
aria-expanded=${this._open}
|
|
14696
|
-
aria-label=${
|
|
14697
|
-
aria-disabled=${
|
|
14717
|
+
aria-label=${ifDefined21(this.ariaLabel || "Actions")}
|
|
14718
|
+
aria-disabled=${ifDefined21(ariaDisabled)}
|
|
14698
14719
|
tabindex=${tabIndex}
|
|
14699
14720
|
@click=${this._onTriggerClick}
|
|
14700
14721
|
>
|
|
@@ -14712,8 +14733,8 @@ var CsButtonDropdownInternal = class extends CsBaseElement {
|
|
|
14712
14733
|
type="button"
|
|
14713
14734
|
aria-haspopup="true"
|
|
14714
14735
|
aria-expanded=${this._open}
|
|
14715
|
-
aria-label=${
|
|
14716
|
-
aria-disabled=${
|
|
14736
|
+
aria-label=${ifDefined21(this.ariaLabel || void 0)}
|
|
14737
|
+
aria-disabled=${ifDefined21(ariaDisabled)}
|
|
14717
14738
|
tabindex=${tabIndex}
|
|
14718
14739
|
@click=${this._onTriggerClick}
|
|
14719
14740
|
>
|
|
@@ -14823,7 +14844,7 @@ customElements.define("cs-button-dropdown", CsButtonDropdown);
|
|
|
14823
14844
|
// src/button-group/internal.ts
|
|
14824
14845
|
import { css as css91, html as html42 } from "lit";
|
|
14825
14846
|
import { property as property41 } from "lit/decorators.js";
|
|
14826
|
-
import { ifDefined as
|
|
14847
|
+
import { ifDefined as ifDefined22 } from "lit/directives/if-defined.js";
|
|
14827
14848
|
|
|
14828
14849
|
// src/button-group/styles.ts
|
|
14829
14850
|
import { css as css90 } from "lit";
|
|
@@ -14908,9 +14929,9 @@ var CsButtonGroupInternal = class extends CsBaseElement {
|
|
|
14908
14929
|
data-item-id=${item.id}
|
|
14909
14930
|
?pressed=${item.pressed}
|
|
14910
14931
|
?disabled=${!!item.disabled}
|
|
14911
|
-
icon-name=${
|
|
14912
|
-
pressed-icon-name=${
|
|
14913
|
-
aria-label=${
|
|
14932
|
+
icon-name=${ifDefined22(item.iconName)}
|
|
14933
|
+
pressed-icon-name=${ifDefined22(item.pressedIconName)}
|
|
14934
|
+
aria-label=${ifDefined22(item.text)}
|
|
14914
14935
|
@change=${() => this._onToggleButtonChange(item)}
|
|
14915
14936
|
></cs-toggle-button>
|
|
14916
14937
|
</div>
|
|
@@ -14924,8 +14945,8 @@ var CsButtonGroupInternal = class extends CsBaseElement {
|
|
|
14924
14945
|
data-item-id=${item.id}
|
|
14925
14946
|
?disabled=${!!item.disabled}
|
|
14926
14947
|
?loading=${!!item.loading}
|
|
14927
|
-
icon-name=${
|
|
14928
|
-
aria-label=${
|
|
14948
|
+
icon-name=${ifDefined22(item.iconName)}
|
|
14949
|
+
aria-label=${ifDefined22(item.text)}
|
|
14929
14950
|
@click=${(e) => {
|
|
14930
14951
|
if (e instanceof CustomEvent) {
|
|
14931
14952
|
this._onIconButtonClick(item);
|
|
@@ -14947,13 +14968,13 @@ var CsButtonGroupInternal = class extends CsBaseElement {
|
|
|
14947
14968
|
<div
|
|
14948
14969
|
class="root"
|
|
14949
14970
|
role="toolbar"
|
|
14950
|
-
aria-label=${
|
|
14971
|
+
aria-label=${ifDefined22(this.ariaLabel || void 0)}
|
|
14951
14972
|
>
|
|
14952
14973
|
${this.items.map((itemOrGroup, groupIndex) => {
|
|
14953
14974
|
if (isGroup(itemOrGroup)) {
|
|
14954
14975
|
return html42`
|
|
14955
14976
|
${groupIndex > 0 ? html42`<div class="divider" role="separator"></div>` : ""}
|
|
14956
|
-
<div class="group" role="group" aria-label=${
|
|
14977
|
+
<div class="group" role="group" aria-label=${ifDefined22(itemOrGroup.text)}>
|
|
14957
14978
|
${this._renderGroupItems(itemOrGroup.items)}
|
|
14958
14979
|
</div>
|
|
14959
14980
|
`;
|
|
@@ -14987,7 +15008,7 @@ customElements.define("cs-button-group", CsButtonGroup);
|
|
|
14987
15008
|
import { css as css94, html as html43 } from "lit";
|
|
14988
15009
|
import { property as property42 } from "lit/decorators.js";
|
|
14989
15010
|
import { classMap as classMap37 } from "lit/directives/class-map.js";
|
|
14990
|
-
import { ifDefined as
|
|
15011
|
+
import { ifDefined as ifDefined23 } from "lit/directives/if-defined.js";
|
|
14991
15012
|
|
|
14992
15013
|
// src/breadcrumb-group/styles.ts
|
|
14993
15014
|
import { css as css92 } from "lit";
|
|
@@ -15289,7 +15310,7 @@ var CsBreadcrumbGroupInternal = class extends CsBaseElement {
|
|
|
15289
15310
|
return html43`
|
|
15290
15311
|
<nav
|
|
15291
15312
|
class="breadcrumb-group"
|
|
15292
|
-
aria-label=${
|
|
15313
|
+
aria-label=${ifDefined23(this.ariaLabel || "Breadcrumbs")}
|
|
15293
15314
|
>
|
|
15294
15315
|
<ol class="breadcrumb-group-list">
|
|
15295
15316
|
${this.items.map((item, i) => this._renderItem(item, i))}
|
|
@@ -15314,7 +15335,7 @@ customElements.define("cs-breadcrumb-group", CsBreadcrumbGroup);
|
|
|
15314
15335
|
import { css as css97, html as html44, nothing as nothing19 } from "lit";
|
|
15315
15336
|
import { property as property43, state as state12, query as query4 } from "lit/decorators.js";
|
|
15316
15337
|
import { classMap as classMap38 } from "lit/directives/class-map.js";
|
|
15317
|
-
import { ifDefined as
|
|
15338
|
+
import { ifDefined as ifDefined24 } from "lit/directives/if-defined.js";
|
|
15318
15339
|
|
|
15319
15340
|
// src/select/styles.ts
|
|
15320
15341
|
import { css as css95 } from "lit";
|
|
@@ -15628,6 +15649,8 @@ var CsSelectInternal = class extends Base6 {
|
|
|
15628
15649
|
this.filteringType = "none";
|
|
15629
15650
|
this.placeholder = "";
|
|
15630
15651
|
this.ariaLabel = null;
|
|
15652
|
+
this.ariaRequired = null;
|
|
15653
|
+
this.ariaLabelledby = null;
|
|
15631
15654
|
this.invalid = false;
|
|
15632
15655
|
this.filteringPlaceholder = "";
|
|
15633
15656
|
this.selectedAriaLabel = "";
|
|
@@ -15845,7 +15868,7 @@ var CsSelectInternal = class extends Base6 {
|
|
|
15845
15868
|
class=${classMap38(classes)}
|
|
15846
15869
|
role="option"
|
|
15847
15870
|
aria-selected=${isSelected}
|
|
15848
|
-
aria-disabled=${
|
|
15871
|
+
aria-disabled=${ifDefined24(opt.disabled ? "true" : void 0)}
|
|
15849
15872
|
@click=${(e) => this._onOptionClick(opt, e)}
|
|
15850
15873
|
@mouseenter=${() => {
|
|
15851
15874
|
if (!opt.disabled) this._highlightedIndex = index;
|
|
@@ -15891,7 +15914,7 @@ var CsSelectInternal = class extends Base6 {
|
|
|
15891
15914
|
/>
|
|
15892
15915
|
</div>
|
|
15893
15916
|
` : nothing19}
|
|
15894
|
-
<ul class="option-list" role="listbox" aria-label=${
|
|
15917
|
+
<ul class="option-list" role="listbox" aria-label=${ifDefined24(this.ariaLabel || void 0)}>
|
|
15895
15918
|
${items}
|
|
15896
15919
|
</ul>
|
|
15897
15920
|
`;
|
|
@@ -15912,8 +15935,9 @@ var CsSelectInternal = class extends Base6 {
|
|
|
15912
15935
|
type="button"
|
|
15913
15936
|
aria-haspopup="listbox"
|
|
15914
15937
|
aria-expanded=${this._open}
|
|
15915
|
-
aria-label=${
|
|
15916
|
-
aria-
|
|
15938
|
+
aria-label=${ifDefined24(this.ariaLabel || void 0)}
|
|
15939
|
+
aria-required=${ifDefined24(this.ariaRequired || void 0)}
|
|
15940
|
+
aria-disabled=${ifDefined24(this.disabled ? "true" : void 0)}
|
|
15917
15941
|
?disabled=${false}
|
|
15918
15942
|
tabindex=${this.disabled ? -1 : 0}
|
|
15919
15943
|
@click=${this._onTriggerClick}
|
|
@@ -15949,6 +15973,12 @@ __decorateClass([
|
|
|
15949
15973
|
__decorateClass([
|
|
15950
15974
|
property43({ type: String })
|
|
15951
15975
|
], CsSelectInternal.prototype, "ariaLabel", 2);
|
|
15976
|
+
__decorateClass([
|
|
15977
|
+
property43({ type: String })
|
|
15978
|
+
], CsSelectInternal.prototype, "ariaRequired", 2);
|
|
15979
|
+
__decorateClass([
|
|
15980
|
+
property43({ type: String })
|
|
15981
|
+
], CsSelectInternal.prototype, "ariaLabelledby", 2);
|
|
15952
15982
|
__decorateClass([
|
|
15953
15983
|
property43({ type: Boolean })
|
|
15954
15984
|
], CsSelectInternal.prototype, "invalid", 2);
|
|
@@ -15986,7 +16016,7 @@ customElements.define("cs-select", CsSelect);
|
|
|
15986
16016
|
import { css as css99, html as html45, nothing as nothing20 } from "lit";
|
|
15987
16017
|
import { property as property44, state as state13, query as query5 } from "lit/decorators.js";
|
|
15988
16018
|
import { classMap as classMap39 } from "lit/directives/class-map.js";
|
|
15989
|
-
import { ifDefined as
|
|
16019
|
+
import { ifDefined as ifDefined25 } from "lit/directives/if-defined.js";
|
|
15990
16020
|
|
|
15991
16021
|
// src/multiselect/styles.ts
|
|
15992
16022
|
import { css as css98 } from "lit";
|
|
@@ -16461,7 +16491,7 @@ var CsMultiselectInternal = class extends Base7 {
|
|
|
16461
16491
|
class=${classMap39(classes)}
|
|
16462
16492
|
role="option"
|
|
16463
16493
|
aria-selected=${isSelected}
|
|
16464
|
-
aria-disabled=${
|
|
16494
|
+
aria-disabled=${ifDefined25(opt.disabled ? "true" : void 0)}
|
|
16465
16495
|
@click=${(e) => this._onOptionClick(opt, e)}
|
|
16466
16496
|
@mouseenter=${() => {
|
|
16467
16497
|
if (!opt.disabled) this._highlightedIndex = index;
|
|
@@ -16506,7 +16536,7 @@ var CsMultiselectInternal = class extends Base7 {
|
|
|
16506
16536
|
/>
|
|
16507
16537
|
</div>
|
|
16508
16538
|
` : nothing20}
|
|
16509
|
-
<ul class="option-list" role="listbox" aria-multiselectable="true" aria-label=${
|
|
16539
|
+
<ul class="option-list" role="listbox" aria-multiselectable="true" aria-label=${ifDefined25(this.ariaLabel || void 0)}>
|
|
16510
16540
|
${items}
|
|
16511
16541
|
</ul>
|
|
16512
16542
|
`;
|
|
@@ -16545,8 +16575,8 @@ var CsMultiselectInternal = class extends Base7 {
|
|
|
16545
16575
|
type="button"
|
|
16546
16576
|
aria-haspopup="listbox"
|
|
16547
16577
|
aria-expanded=${this._open}
|
|
16548
|
-
aria-label=${
|
|
16549
|
-
aria-disabled=${
|
|
16578
|
+
aria-label=${ifDefined25(this.ariaLabel || void 0)}
|
|
16579
|
+
aria-disabled=${ifDefined25(this.disabled ? "true" : void 0)}
|
|
16550
16580
|
?disabled=${false}
|
|
16551
16581
|
tabindex=${this.disabled ? -1 : 0}
|
|
16552
16582
|
@click=${this._onTriggerClick}
|
|
@@ -16629,7 +16659,7 @@ customElements.define("cs-multiselect", CsMultiselect);
|
|
|
16629
16659
|
import { css as css102, html as html46, nothing as nothing21 } from "lit";
|
|
16630
16660
|
import { property as property45, state as state14, query as query6 } from "lit/decorators.js";
|
|
16631
16661
|
import { classMap as classMap40 } from "lit/directives/class-map.js";
|
|
16632
|
-
import { ifDefined as
|
|
16662
|
+
import { ifDefined as ifDefined26 } from "lit/directives/if-defined.js";
|
|
16633
16663
|
|
|
16634
16664
|
// src/autosuggest/styles.ts
|
|
16635
16665
|
import { css as css100 } from "lit";
|
|
@@ -17029,14 +17059,14 @@ var CsAutosuggestInternal = class extends Base8 {
|
|
|
17029
17059
|
class=${classMap40(inputClasses)}
|
|
17030
17060
|
type="text"
|
|
17031
17061
|
.value=${this.value}
|
|
17032
|
-
placeholder=${
|
|
17062
|
+
placeholder=${ifDefined26(this.placeholder || void 0)}
|
|
17033
17063
|
?disabled=${this.disabled}
|
|
17034
17064
|
?readonly=${this.readOnly}
|
|
17035
|
-
aria-label=${
|
|
17065
|
+
aria-label=${ifDefined26(this.ariaLabel || void 0)}
|
|
17036
17066
|
aria-autocomplete="list"
|
|
17037
17067
|
aria-expanded=${showDropdown ? "true" : "false"}
|
|
17038
|
-
aria-controls=${
|
|
17039
|
-
aria-activedescendant=${
|
|
17068
|
+
aria-controls=${ifDefined26(showDropdown ? this._listboxId : void 0)}
|
|
17069
|
+
aria-activedescendant=${ifDefined26(
|
|
17040
17070
|
showDropdown && this._highlightedIndex >= 0 ? `${this._listboxId}-option-${this._highlightedIndex}` : void 0
|
|
17041
17071
|
)}
|
|
17042
17072
|
role="combobox"
|
|
@@ -17074,7 +17104,7 @@ var CsAutosuggestInternal = class extends Base8 {
|
|
|
17074
17104
|
id=${`${this._listboxId}-option-${index}`}
|
|
17075
17105
|
role="option"
|
|
17076
17106
|
aria-selected=${isHighlighted ? "true" : "false"}
|
|
17077
|
-
aria-disabled=${
|
|
17107
|
+
aria-disabled=${ifDefined26(isDisabled ? "true" : void 0)}
|
|
17078
17108
|
@click=${() => this._onOptionClick(option)}
|
|
17079
17109
|
>
|
|
17080
17110
|
${option.label || option.value || ""}
|
|
@@ -17128,7 +17158,7 @@ customElements.define("cs-autosuggest", CsAutosuggest);
|
|
|
17128
17158
|
import { css as css104, html as html47 } from "lit";
|
|
17129
17159
|
import { property as property46 } from "lit/decorators.js";
|
|
17130
17160
|
import { classMap as classMap41 } from "lit/directives/class-map.js";
|
|
17131
|
-
import { ifDefined as
|
|
17161
|
+
import { ifDefined as ifDefined27 } from "lit/directives/if-defined.js";
|
|
17132
17162
|
|
|
17133
17163
|
// src/segmented-control/styles.ts
|
|
17134
17164
|
import { css as css103 } from "lit";
|
|
@@ -17401,8 +17431,8 @@ var CsSegmentedControlInternal = class extends CsBaseElement {
|
|
|
17401
17431
|
<div
|
|
17402
17432
|
class=${classMap41({ "segment-part": true, [segmentCountClass]: true })}
|
|
17403
17433
|
role="group"
|
|
17404
|
-
aria-label=${
|
|
17405
|
-
aria-labelledby=${
|
|
17434
|
+
aria-label=${ifDefined27(this.label || void 0)}
|
|
17435
|
+
aria-labelledby=${ifDefined27(!this.label && this.ariaLabelledby ? this.ariaLabelledby : void 0)}
|
|
17406
17436
|
>
|
|
17407
17437
|
${this.options.map((option, index) => this._renderSegment(option, index))}
|
|
17408
17438
|
</div>
|
|
@@ -17423,7 +17453,7 @@ var CsSegmentedControlInternal = class extends CsBaseElement {
|
|
|
17423
17453
|
type="button"
|
|
17424
17454
|
?disabled=${isDisabled}
|
|
17425
17455
|
aria-pressed=${isSelected ? "true" : "false"}
|
|
17426
|
-
aria-label=${
|
|
17456
|
+
aria-label=${ifDefined27(option.iconName && !option.text ? option.iconAlt || void 0 : void 0)}
|
|
17427
17457
|
tabindex=${this._getTabIndex(index)}
|
|
17428
17458
|
@click=${() => this._onSegmentClick(option)}
|
|
17429
17459
|
@focus=${() => this._onSegmentFocus(index)}
|
|
@@ -20100,7 +20130,7 @@ customElements.define("cs-form", CsForm);
|
|
|
20100
20130
|
import { css as css122, html as html56 } from "lit";
|
|
20101
20131
|
import { property as property55 } from "lit/decorators.js";
|
|
20102
20132
|
import { classMap as classMap46 } from "lit/directives/class-map.js";
|
|
20103
|
-
import { ifDefined as
|
|
20133
|
+
import { ifDefined as ifDefined28 } from "lit/directives/if-defined.js";
|
|
20104
20134
|
|
|
20105
20135
|
// src/modal/styles.ts
|
|
20106
20136
|
import { css as css121 } from "lit";
|
|
@@ -20443,7 +20473,7 @@ var CsModalInternal = class extends CsBaseElement {
|
|
|
20443
20473
|
class=${classMap46(dialogClasses)}
|
|
20444
20474
|
role="dialog"
|
|
20445
20475
|
aria-modal="true"
|
|
20446
|
-
aria-label=${
|
|
20476
|
+
aria-label=${ifDefined28(this.header || void 0)}
|
|
20447
20477
|
>
|
|
20448
20478
|
<div class="container">
|
|
20449
20479
|
<div class="header">
|
|
@@ -20500,7 +20530,7 @@ customElements.define("cs-modal", CsModal);
|
|
|
20500
20530
|
import { css as css124, html as html57, nothing as nothing30 } from "lit";
|
|
20501
20531
|
import { property as property56 } from "lit/decorators.js";
|
|
20502
20532
|
import { classMap as classMap47 } from "lit/directives/class-map.js";
|
|
20503
|
-
import { ifDefined as
|
|
20533
|
+
import { ifDefined as ifDefined29 } from "lit/directives/if-defined.js";
|
|
20504
20534
|
|
|
20505
20535
|
// src/file-upload/styles.ts
|
|
20506
20536
|
import { css as css123 } from "lit";
|
|
@@ -20617,6 +20647,7 @@ var CsFileUploadInternal = class extends CsBaseElement {
|
|
|
20617
20647
|
this.errorText = "";
|
|
20618
20648
|
this.constraintText = "";
|
|
20619
20649
|
this.ariaLabel = null;
|
|
20650
|
+
this.ariaRequired = null;
|
|
20620
20651
|
this.label = "";
|
|
20621
20652
|
this.fileTokenAlignment = "vertical";
|
|
20622
20653
|
this._thumbnailUrls = /* @__PURE__ */ new Map();
|
|
@@ -20728,10 +20759,11 @@ var CsFileUploadInternal = class extends CsBaseElement {
|
|
|
20728
20759
|
|
|
20729
20760
|
<cs-file-input
|
|
20730
20761
|
variant="button"
|
|
20731
|
-
accept=${
|
|
20762
|
+
accept=${ifDefined29(this.accept || void 0)}
|
|
20732
20763
|
?multiple=${this.multiple}
|
|
20733
20764
|
?disabled=${this.disabled}
|
|
20734
20765
|
aria-label=${this.ariaLabel || uploadButtonText}
|
|
20766
|
+
aria-required=${ifDefined29(this.ariaRequired || void 0)}
|
|
20735
20767
|
@change=${this._onFileInputChange}
|
|
20736
20768
|
>${uploadButtonText}</cs-file-input>
|
|
20737
20769
|
|
|
@@ -20781,6 +20813,9 @@ __decorateClass([
|
|
|
20781
20813
|
__decorateClass([
|
|
20782
20814
|
property56({ type: String })
|
|
20783
20815
|
], CsFileUploadInternal.prototype, "ariaLabel", 2);
|
|
20816
|
+
__decorateClass([
|
|
20817
|
+
property56({ type: Boolean })
|
|
20818
|
+
], CsFileUploadInternal.prototype, "ariaRequired", 2);
|
|
20784
20819
|
__decorateClass([
|
|
20785
20820
|
property56({ type: String })
|
|
20786
20821
|
], CsFileUploadInternal.prototype, "label", 2);
|
|
@@ -20800,7 +20835,7 @@ customElements.define("cs-file-upload", CsFileUpload);
|
|
|
20800
20835
|
import { css as css126, html as html58, nothing as nothing31 } from "lit";
|
|
20801
20836
|
import { property as property57, state as state18 } from "lit/decorators.js";
|
|
20802
20837
|
import { classMap as classMap48 } from "lit/directives/class-map.js";
|
|
20803
|
-
import { ifDefined as
|
|
20838
|
+
import { ifDefined as ifDefined30 } from "lit/directives/if-defined.js";
|
|
20804
20839
|
|
|
20805
20840
|
// src/calendar/styles.ts
|
|
20806
20841
|
import { css as css125 } from "lit";
|
|
@@ -21233,11 +21268,11 @@ var CsCalendarInternal = class extends CsBaseElement {
|
|
|
21233
21268
|
<div
|
|
21234
21269
|
class="calendar"
|
|
21235
21270
|
role="group"
|
|
21236
|
-
aria-label=${
|
|
21237
|
-
aria-labelledby=${
|
|
21271
|
+
aria-label=${ifDefined30(this.ariaLabel || void 0)}
|
|
21272
|
+
aria-labelledby=${ifDefined30(
|
|
21238
21273
|
!this.ariaLabel ? this.ariaLabelledby || void 0 : void 0
|
|
21239
21274
|
)}
|
|
21240
|
-
aria-describedby=${
|
|
21275
|
+
aria-describedby=${ifDefined30(this.ariaDescribedby || void 0)}
|
|
21241
21276
|
>
|
|
21242
21277
|
<div class="calendar-inner">
|
|
21243
21278
|
<div class="calendar-header">
|
|
@@ -21360,7 +21395,7 @@ customElements.define("cs-calendar", CsCalendar);
|
|
|
21360
21395
|
import { css as css128, html as html59 } from "lit";
|
|
21361
21396
|
import { property as property58 } from "lit/decorators.js";
|
|
21362
21397
|
import { classMap as classMap49 } from "lit/directives/class-map.js";
|
|
21363
|
-
import { ifDefined as
|
|
21398
|
+
import { ifDefined as ifDefined31 } from "lit/directives/if-defined.js";
|
|
21364
21399
|
import { consume as consume2 } from "@lit/context";
|
|
21365
21400
|
|
|
21366
21401
|
// src/date-input/styles.ts
|
|
@@ -21443,17 +21478,17 @@ var CsDateInputInternal = class extends Base9 {
|
|
|
21443
21478
|
class=${classMap49(inputClasses)}
|
|
21444
21479
|
type="text"
|
|
21445
21480
|
.value=${this.value}
|
|
21446
|
-
placeholder=${
|
|
21481
|
+
placeholder=${ifDefined31(this.placeholder || void 0)}
|
|
21447
21482
|
?disabled=${this.disabled}
|
|
21448
21483
|
?readonly=${this.readOnly}
|
|
21449
21484
|
?autofocus=${this.autoFocus}
|
|
21450
|
-
id=${
|
|
21451
|
-
aria-label=${
|
|
21452
|
-
aria-labelledby=${
|
|
21485
|
+
id=${ifDefined31(controlId)}
|
|
21486
|
+
aria-label=${ifDefined31(this.ariaLabel || void 0)}
|
|
21487
|
+
aria-labelledby=${ifDefined31(
|
|
21453
21488
|
!this.ariaLabel ? ariaLabelledby : void 0
|
|
21454
21489
|
)}
|
|
21455
|
-
aria-describedby=${
|
|
21456
|
-
aria-invalid=${
|
|
21490
|
+
aria-describedby=${ifDefined31(this._resolvedAriaDescribedby)}
|
|
21491
|
+
aria-invalid=${ifDefined31(this._isInvalid ? "true" : void 0)}
|
|
21457
21492
|
@input=${this._onInput}
|
|
21458
21493
|
@blur=${this._onBlur}
|
|
21459
21494
|
@focus=${this._onFocus}
|
|
@@ -21499,7 +21534,7 @@ customElements.define("cs-date-input", CsDateInput);
|
|
|
21499
21534
|
// src/date-picker/internal.ts
|
|
21500
21535
|
import { css as css130, html as html60, nothing as nothing32 } from "lit";
|
|
21501
21536
|
import { property as property59, state as state19, query as query7 } from "lit/decorators.js";
|
|
21502
|
-
import { ifDefined as
|
|
21537
|
+
import { ifDefined as ifDefined32 } from "lit/directives/if-defined.js";
|
|
21503
21538
|
import { consume as consume3 } from "@lit/context";
|
|
21504
21539
|
|
|
21505
21540
|
// src/date-picker/styles.ts
|
|
@@ -21578,6 +21613,7 @@ var CsDatePickerInternal = class extends Base10 {
|
|
|
21578
21613
|
this.warning = false;
|
|
21579
21614
|
this.autoFocus = false;
|
|
21580
21615
|
this.ariaLabel = null;
|
|
21616
|
+
this.ariaRequired = null;
|
|
21581
21617
|
this._open = false;
|
|
21582
21618
|
this._cleanupOutsideClick = null;
|
|
21583
21619
|
this._onInputChange = (e) => {
|
|
@@ -21707,7 +21743,8 @@ var CsDatePickerInternal = class extends Base10 {
|
|
|
21707
21743
|
?read-only=${this.readOnly}
|
|
21708
21744
|
?invalid=${this._isInvalid}
|
|
21709
21745
|
?warning=${this._isWarning}
|
|
21710
|
-
aria-label=${
|
|
21746
|
+
aria-label=${ifDefined32(this.ariaLabel || void 0)}
|
|
21747
|
+
aria-required=${ifDefined32(this.ariaRequired || void 0)}
|
|
21711
21748
|
@change=${this._onInputChange}
|
|
21712
21749
|
></cs-date-input>
|
|
21713
21750
|
</div>
|
|
@@ -21729,7 +21766,7 @@ var CsDatePickerInternal = class extends Base10 {
|
|
|
21729
21766
|
start-of-week=${this.startOfWeek}
|
|
21730
21767
|
.isDateEnabled=${this.isDateEnabled}
|
|
21731
21768
|
.i18nStrings=${this.i18nStrings}
|
|
21732
|
-
aria-label=${
|
|
21769
|
+
aria-label=${ifDefined32(this.ariaLabel || void 0)}
|
|
21733
21770
|
@change=${this._onCalendarChange}
|
|
21734
21771
|
></cs-calendar>
|
|
21735
21772
|
</div>
|
|
@@ -21779,6 +21816,9 @@ __decorateClass([
|
|
|
21779
21816
|
__decorateClass([
|
|
21780
21817
|
property59({ type: String })
|
|
21781
21818
|
], CsDatePickerInternal.prototype, "ariaLabel", 2);
|
|
21819
|
+
__decorateClass([
|
|
21820
|
+
property59({ type: Boolean })
|
|
21821
|
+
], CsDatePickerInternal.prototype, "ariaRequired", 2);
|
|
21782
21822
|
__decorateClass([
|
|
21783
21823
|
property59({ attribute: false })
|
|
21784
21824
|
], CsDatePickerInternal.prototype, "i18nStrings", 2);
|
|
@@ -21801,7 +21841,7 @@ customElements.define("cs-date-picker", CsDatePicker);
|
|
|
21801
21841
|
import { css as css133, html as html61, nothing as nothing33 } from "lit";
|
|
21802
21842
|
import { property as property60, state as state20, query as query8 } from "lit/decorators.js";
|
|
21803
21843
|
import { classMap as classMap50 } from "lit/directives/class-map.js";
|
|
21804
|
-
import { ifDefined as
|
|
21844
|
+
import { ifDefined as ifDefined33 } from "lit/directives/if-defined.js";
|
|
21805
21845
|
|
|
21806
21846
|
// src/date-range-picker/styles.ts
|
|
21807
21847
|
import { css as css131 } from "lit";
|
|
@@ -22533,8 +22573,8 @@ var CsDateRangePickerInternal = class extends Base11 {
|
|
|
22533
22573
|
type="button"
|
|
22534
22574
|
aria-haspopup="dialog"
|
|
22535
22575
|
aria-expanded=${this._open ? "true" : "false"}
|
|
22536
|
-
aria-label=${
|
|
22537
|
-
aria-disabled=${
|
|
22576
|
+
aria-label=${ifDefined33(this.ariaLabel || void 0)}
|
|
22577
|
+
aria-disabled=${ifDefined33(this.disabled ? "true" : void 0)}
|
|
22538
22578
|
?disabled=${false}
|
|
22539
22579
|
tabindex=${this.disabled ? -1 : 0}
|
|
22540
22580
|
@click=${this._onTriggerClick}
|
|
@@ -22551,7 +22591,7 @@ var CsDateRangePickerInternal = class extends Base11 {
|
|
|
22551
22591
|
</div>
|
|
22552
22592
|
${this._open ? html61`
|
|
22553
22593
|
<div class=${classMap50(dropdownClasses)} role="dialog"
|
|
22554
|
-
aria-label=${
|
|
22594
|
+
aria-label=${ifDefined33(this.ariaLabel || "Date range picker")}
|
|
22555
22595
|
aria-modal="true">
|
|
22556
22596
|
${this._renderModeSwitch()}
|
|
22557
22597
|
<div class="dropdown-body">
|
|
@@ -22771,7 +22811,7 @@ var componentStyles60 = css134`
|
|
|
22771
22811
|
import { css as css135, html as html62, nothing as nothing34 } from "lit";
|
|
22772
22812
|
import { property as property61 } from "lit/decorators.js";
|
|
22773
22813
|
import { classMap as classMap51 } from "lit/directives/class-map.js";
|
|
22774
|
-
import { ifDefined as
|
|
22814
|
+
import { ifDefined as ifDefined34 } from "lit/directives/if-defined.js";
|
|
22775
22815
|
import { consume as consume4 } from "@lit/context";
|
|
22776
22816
|
var Base12 = FormAssociatedMixin(CsBaseElement);
|
|
22777
22817
|
var hostStyles61 = css135`:host { display: block; }`;
|
|
@@ -22788,6 +22828,7 @@ var CsInputInternal = class extends Base12 {
|
|
|
22788
22828
|
this.autoFocus = false;
|
|
22789
22829
|
this.inputMode = "";
|
|
22790
22830
|
this.ariaLabel = null;
|
|
22831
|
+
this.ariaRequired = null;
|
|
22791
22832
|
this.ariaDescribedby = null;
|
|
22792
22833
|
this.clearAriaLabel = "";
|
|
22793
22834
|
this._onInput = (e) => {
|
|
@@ -22886,17 +22927,18 @@ var CsInputInternal = class extends Base12 {
|
|
|
22886
22927
|
class=${classMap51(inputClasses)}
|
|
22887
22928
|
type=${this.type}
|
|
22888
22929
|
.value=${this.value}
|
|
22889
|
-
placeholder=${
|
|
22930
|
+
placeholder=${ifDefined34(this.placeholder || void 0)}
|
|
22890
22931
|
?disabled=${this.disabled}
|
|
22891
22932
|
?readonly=${this.readOnly}
|
|
22892
22933
|
?autofocus=${this.autoFocus}
|
|
22893
|
-
inputmode=${
|
|
22894
|
-
step=${
|
|
22895
|
-
id=${
|
|
22896
|
-
aria-label=${
|
|
22897
|
-
aria-labelledby=${
|
|
22898
|
-
aria-describedby=${
|
|
22899
|
-
aria-
|
|
22934
|
+
inputmode=${ifDefined34(this.inputMode || void 0)}
|
|
22935
|
+
step=${ifDefined34(this.step)}
|
|
22936
|
+
id=${ifDefined34(controlId)}
|
|
22937
|
+
aria-label=${ifDefined34(this.ariaLabel || void 0)}
|
|
22938
|
+
aria-labelledby=${ifDefined34(!this.ariaLabel ? ariaLabelledby : void 0)}
|
|
22939
|
+
aria-describedby=${ifDefined34(this._resolvedAriaDescribedby)}
|
|
22940
|
+
aria-required=${ifDefined34(this.ariaRequired || void 0)}
|
|
22941
|
+
aria-invalid=${ifDefined34(this._isInvalid ? "true" : void 0)}
|
|
22900
22942
|
@input=${this._onInput}
|
|
22901
22943
|
@blur=${this._onBlur}
|
|
22902
22944
|
@focus=${this._onFocus}
|
|
@@ -22952,6 +22994,9 @@ __decorateClass([
|
|
|
22952
22994
|
__decorateClass([
|
|
22953
22995
|
property61({ type: String })
|
|
22954
22996
|
], CsInputInternal.prototype, "ariaLabel", 2);
|
|
22997
|
+
__decorateClass([
|
|
22998
|
+
property61({ type: Boolean })
|
|
22999
|
+
], CsInputInternal.prototype, "ariaRequired", 2);
|
|
22955
23000
|
__decorateClass([
|
|
22956
23001
|
property61({ type: String })
|
|
22957
23002
|
], CsInputInternal.prototype, "ariaDescribedby", 2);
|
|
@@ -24383,7 +24428,7 @@ customElements.define("cs-code-editor", CsCodeEditor);
|
|
|
24383
24428
|
import { css as css144, html as html67, nothing as nothing38 } from "lit";
|
|
24384
24429
|
import { property as property66 } from "lit/decorators.js";
|
|
24385
24430
|
import { classMap as classMap55 } from "lit/directives/class-map.js";
|
|
24386
|
-
import { ifDefined as
|
|
24431
|
+
import { ifDefined as ifDefined35 } from "lit/directives/if-defined.js";
|
|
24387
24432
|
|
|
24388
24433
|
// src/top-navigation/styles.ts
|
|
24389
24434
|
import { css as css143 } from "lit";
|
|
@@ -24791,10 +24836,10 @@ var CsTopNavigationInternal = class extends CsBaseElement {
|
|
|
24791
24836
|
<div class=${classMap55(identityClasses)}>
|
|
24792
24837
|
<a
|
|
24793
24838
|
class="identity-link"
|
|
24794
|
-
href=${
|
|
24839
|
+
href=${ifDefined35(this.identity.href)}
|
|
24795
24840
|
@click=${(e) => this._onIdentityClick(e)}
|
|
24796
24841
|
>
|
|
24797
|
-
${hasLogo ? html67`<img class="logo" src=${this.identity.logo.src} alt=${
|
|
24842
|
+
${hasLogo ? html67`<img class="logo" src=${this.identity.logo.src} alt=${ifDefined35(this.identity.logo.alt)} />` : nothing38}
|
|
24798
24843
|
${this.identity.title ? html67`<span class="title">${this.identity.title}</span>` : nothing38}
|
|
24799
24844
|
</a>
|
|
24800
24845
|
</div>
|
|
@@ -24813,9 +24858,9 @@ var CsTopNavigationInternal = class extends CsBaseElement {
|
|
|
24813
24858
|
<a
|
|
24814
24859
|
class="overflow-menu-control overflow-menu-control-link"
|
|
24815
24860
|
href=${utility.href}
|
|
24816
|
-
target=${
|
|
24817
|
-
rel=${
|
|
24818
|
-
aria-label=${
|
|
24861
|
+
target=${ifDefined35(utility.target)}
|
|
24862
|
+
rel=${ifDefined35(utility.rel || (utility.target === "_blank" ? "noopener noreferrer" : void 0))}
|
|
24863
|
+
aria-label=${ifDefined35(utility.ariaLabel)}
|
|
24819
24864
|
@click=${(e) => this._onUtilityButtonClick(utility, e)}
|
|
24820
24865
|
>
|
|
24821
24866
|
${utility.iconName ? html67`<span class="utility-link-icon"><cs-icon name=${utility.iconName}></cs-icon></span>` : nothing38}
|
|
@@ -24830,7 +24875,7 @@ var CsTopNavigationInternal = class extends CsBaseElement {
|
|
|
24830
24875
|
<button
|
|
24831
24876
|
type="button"
|
|
24832
24877
|
class="overflow-menu-control"
|
|
24833
|
-
aria-label=${
|
|
24878
|
+
aria-label=${ifDefined35(utility.ariaLabel)}
|
|
24834
24879
|
@click=${(e) => this._onUtilityButtonClick(utility, e)}
|
|
24835
24880
|
>
|
|
24836
24881
|
${utility.iconName ? html67`<span class="utility-link-icon"><cs-icon name=${utility.iconName}></cs-icon></span>` : nothing38}
|
|
@@ -24849,7 +24894,7 @@ var CsTopNavigationInternal = class extends CsBaseElement {
|
|
|
24849
24894
|
<cs-button-dropdown
|
|
24850
24895
|
.items=${utility.items}
|
|
24851
24896
|
variant="normal"
|
|
24852
|
-
aria-label=${
|
|
24897
|
+
aria-label=${ifDefined35(utility.ariaLabel)}
|
|
24853
24898
|
>
|
|
24854
24899
|
${utility.iconName ? html67`<cs-icon name=${utility.iconName}></cs-icon>` : nothing38}
|
|
24855
24900
|
${utility.text ?? ""}
|
|
@@ -24865,7 +24910,7 @@ var CsTopNavigationInternal = class extends CsBaseElement {
|
|
|
24865
24910
|
}
|
|
24866
24911
|
render() {
|
|
24867
24912
|
return html67`
|
|
24868
|
-
<nav class="top-navigation" aria-label=${
|
|
24913
|
+
<nav class="top-navigation" aria-label=${ifDefined35(this.ariaLabel || "Site")}>
|
|
24869
24914
|
<div class="padding-box">
|
|
24870
24915
|
${this._renderIdentity()}
|
|
24871
24916
|
<div class="inputs">
|
|
@@ -24900,7 +24945,7 @@ customElements.define("cs-top-navigation", CsTopNavigation);
|
|
|
24900
24945
|
import { css as css146, html as html68, nothing as nothing39 } from "lit";
|
|
24901
24946
|
import { property as property67, state as state21 } from "lit/decorators.js";
|
|
24902
24947
|
import { classMap as classMap56 } from "lit/directives/class-map.js";
|
|
24903
|
-
import { ifDefined as
|
|
24948
|
+
import { ifDefined as ifDefined36 } from "lit/directives/if-defined.js";
|
|
24904
24949
|
|
|
24905
24950
|
// src/side-navigation/styles.ts
|
|
24906
24951
|
import { css as css145 } from "lit";
|
|
@@ -25229,7 +25274,7 @@ var CsSideNavigationInternal = class extends CsBaseElement {
|
|
|
25229
25274
|
e
|
|
25230
25275
|
)}
|
|
25231
25276
|
>
|
|
25232
|
-
${hasLogo ? html68`<img class="header-logo" src=${this.header.logo.src} alt=${
|
|
25277
|
+
${hasLogo ? html68`<img class="header-logo" src=${this.header.logo.src} alt=${ifDefined36(this.header.logo.alt)} />` : nothing39}
|
|
25233
25278
|
${this.header.text ? html68`<span class="header-link-text">${this.header.text}</span>` : nothing39}
|
|
25234
25279
|
</a>
|
|
25235
25280
|
</div>
|
|
@@ -25371,7 +25416,7 @@ var CsSideNavigationInternal = class extends CsBaseElement {
|
|
|
25371
25416
|
}
|
|
25372
25417
|
render() {
|
|
25373
25418
|
return html68`
|
|
25374
|
-
<nav class="root" aria-label=${
|
|
25419
|
+
<nav class="root" aria-label=${ifDefined36(this.ariaLabel || "Side navigation")}>
|
|
25375
25420
|
${this._renderHeader()}
|
|
25376
25421
|
<slot name="itemsControl"></slot>
|
|
25377
25422
|
<div class="list-container">
|
|
@@ -26248,6 +26293,7 @@ var CsSplitPanelInternal = class extends CsBaseElement {
|
|
|
26248
26293
|
constructor() {
|
|
26249
26294
|
super(...arguments);
|
|
26250
26295
|
this.header = "";
|
|
26296
|
+
this.ariaLabel = null;
|
|
26251
26297
|
this.hidePreferencesButton = false;
|
|
26252
26298
|
this.closeBehavior = "collapse";
|
|
26253
26299
|
this.size = 250;
|
|
@@ -26272,7 +26318,7 @@ var CsSplitPanelInternal = class extends CsBaseElement {
|
|
|
26272
26318
|
this.styles = [sharedStyles, componentStyles68, hostStyles70];
|
|
26273
26319
|
}
|
|
26274
26320
|
get _regionLabel() {
|
|
26275
|
-
return this.panelAriaLabel || this.header;
|
|
26321
|
+
return this.ariaLabel || this.panelAriaLabel || this.header;
|
|
26276
26322
|
}
|
|
26277
26323
|
render() {
|
|
26278
26324
|
const closeLabel = this.i18nStrings?.closeButtonAriaLabel ?? "Close";
|
|
@@ -26421,6 +26467,9 @@ var CsSplitPanelInternal = class extends CsBaseElement {
|
|
|
26421
26467
|
__decorateClass([
|
|
26422
26468
|
property70({ type: String })
|
|
26423
26469
|
], CsSplitPanelInternal.prototype, "header", 2);
|
|
26470
|
+
__decorateClass([
|
|
26471
|
+
property70({ type: String })
|
|
26472
|
+
], CsSplitPanelInternal.prototype, "ariaLabel", 2);
|
|
26424
26473
|
__decorateClass([
|
|
26425
26474
|
property70({ type: Boolean, reflect: true })
|
|
26426
26475
|
], CsSplitPanelInternal.prototype, "hidePreferencesButton", 2);
|
|
@@ -26508,7 +26557,7 @@ customElements.define("cs-annotation-context", CsAnnotationContext);
|
|
|
26508
26557
|
import { css as css154, html as html73 } from "lit";
|
|
26509
26558
|
import { property as property72 } from "lit/decorators.js";
|
|
26510
26559
|
import { classMap as classMap59 } from "lit/directives/class-map.js";
|
|
26511
|
-
import { ifDefined as
|
|
26560
|
+
import { ifDefined as ifDefined37 } from "lit/directives/if-defined.js";
|
|
26512
26561
|
import { consume as consume5 } from "@lit/context";
|
|
26513
26562
|
|
|
26514
26563
|
// src/textarea/styles.ts
|
|
@@ -26702,16 +26751,16 @@ var CsTextareaInternal = class extends Base13 {
|
|
|
26702
26751
|
<textarea
|
|
26703
26752
|
class=${classMap59(textareaClasses)}
|
|
26704
26753
|
.value=${this.value}
|
|
26705
|
-
placeholder=${
|
|
26754
|
+
placeholder=${ifDefined37(this.placeholder || void 0)}
|
|
26706
26755
|
rows=${this.rows}
|
|
26707
26756
|
?disabled=${this.disabled}
|
|
26708
26757
|
?readonly=${this.readOnly}
|
|
26709
26758
|
?autofocus=${this.autoFocus}
|
|
26710
|
-
id=${
|
|
26711
|
-
aria-label=${
|
|
26712
|
-
aria-labelledby=${
|
|
26713
|
-
aria-describedby=${
|
|
26714
|
-
aria-invalid=${
|
|
26759
|
+
id=${ifDefined37(controlId)}
|
|
26760
|
+
aria-label=${ifDefined37(this.ariaLabel || void 0)}
|
|
26761
|
+
aria-labelledby=${ifDefined37(!this.ariaLabel ? ariaLabelledby : void 0)}
|
|
26762
|
+
aria-describedby=${ifDefined37(this._resolvedAriaDescribedby)}
|
|
26763
|
+
aria-invalid=${ifDefined37(this._isInvalid ? "true" : void 0)}
|
|
26715
26764
|
@input=${this._onInput}
|
|
26716
26765
|
@blur=${this._onBlur}
|
|
26717
26766
|
@focus=${this._onFocus}
|
|
@@ -26883,7 +26932,7 @@ customElements.define("cs-text-filter", CsTextFilter);
|
|
|
26883
26932
|
import { css as css158, html as html75 } from "lit";
|
|
26884
26933
|
import { property as property74 } from "lit/decorators.js";
|
|
26885
26934
|
import { classMap as classMap60 } from "lit/directives/class-map.js";
|
|
26886
|
-
import { ifDefined as
|
|
26935
|
+
import { ifDefined as ifDefined38 } from "lit/directives/if-defined.js";
|
|
26887
26936
|
import { consume as consume6 } from "@lit/context";
|
|
26888
26937
|
|
|
26889
26938
|
// src/time-input/styles.ts
|
|
@@ -26962,11 +27011,11 @@ var CsTimeInputInternal = class extends Base14 {
|
|
|
26962
27011
|
?disabled=${this.disabled}
|
|
26963
27012
|
?readonly=${this.readOnly}
|
|
26964
27013
|
?autofocus=${this.autoFocus}
|
|
26965
|
-
id=${
|
|
26966
|
-
aria-label=${
|
|
26967
|
-
aria-labelledby=${
|
|
26968
|
-
aria-describedby=${
|
|
26969
|
-
aria-invalid=${
|
|
27014
|
+
id=${ifDefined38(controlId)}
|
|
27015
|
+
aria-label=${ifDefined38(this.ariaLabel || void 0)}
|
|
27016
|
+
aria-labelledby=${ifDefined38(!this.ariaLabel ? ariaLabelledby : void 0)}
|
|
27017
|
+
aria-describedby=${ifDefined38(this._resolvedAriaDescribedby)}
|
|
27018
|
+
aria-invalid=${ifDefined38(this._isInvalid ? "true" : void 0)}
|
|
26970
27019
|
@input=${this._onInput}
|
|
26971
27020
|
@blur=${this._onBlur}
|
|
26972
27021
|
@focus=${this._onFocus}
|