@underlayerdev/ui 0.24.0 → 0.26.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.
|
@@ -5107,29 +5107,40 @@ var CollapseComponent = class CollapseComponent {
|
|
|
5107
5107
|
<ng-content />
|
|
5108
5108
|
</div>
|
|
5109
5109
|
@if (isCollapsible()) {
|
|
5110
|
-
<div class="ul-collapse__toggle">
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5110
|
+
<div class="ul-collapse__toggle" [class.ul-collapse__toggle--link]="variant() === 'link'">
|
|
5111
|
+
@if (variant() === 'link') {
|
|
5112
|
+
<button
|
|
5113
|
+
type="button"
|
|
5114
|
+
class="ul-collapse__link"
|
|
5115
|
+
[attr.aria-label]="collapsed() ? expandLabel() : collapseLabel()"
|
|
5116
|
+
(click)="toggle()"
|
|
5117
|
+
>
|
|
5118
|
+
{{ collapsed() ? expandLabel() : collapseLabel() }}
|
|
5119
|
+
</button>
|
|
5120
|
+
} @else {
|
|
5121
|
+
<ul-button
|
|
5122
|
+
theme="ghost-white"
|
|
5123
|
+
[iconOnly]="variant() === 'icon'"
|
|
5124
|
+
class="ul-collapse__toggle-button"
|
|
5125
|
+
(click)="toggle()"
|
|
5126
|
+
(keydown)="onToggleKeydown($event)"
|
|
5127
|
+
[attr.aria-label]="collapsed() ? expandLabel() : collapseLabel()"
|
|
5128
|
+
>
|
|
5129
|
+
@if (variant() === 'text') {
|
|
5130
|
+
<span>
|
|
5131
|
+
{{ collapsed() ? expandLabel() : collapseLabel() }}
|
|
5132
|
+
</span>
|
|
5133
|
+
} @else if (variant() === 'icon') {
|
|
5134
|
+
<ul-icon size="6" icon="chevron_up" />
|
|
5135
|
+
}
|
|
5136
|
+
</ul-button>
|
|
5137
|
+
}
|
|
5127
5138
|
</div>
|
|
5128
5139
|
}
|
|
5129
5140
|
</div>
|
|
5130
5141
|
`,
|
|
5131
5142
|
isInline: true,
|
|
5132
|
-
styles: [".ul-collapse__content{position:relative;overflow:hidden;height:var(--ul-collapse-full-height);transition:height .25s cubic-bezier(.4,0,.2,1)}.ul-collapse__toggle{display:flex;align-items:center;justify-content:center;width:100%;padding:4px 0;gap:8px}.ul-collapse__toggle:before,.ul-collapse__toggle:after{content:\"\";display:block;width:100%;height:1px;border-bottom:1px solid rgba(255,255,255,.1)}.ul-collapse__toggle-button .ul-icon{transition:transform .25s cubic-bezier(.4,0,.2,1)}.ul-collapse--collapsed .ul-collapse__content{-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);height:var(--ul-collapse-max-height)}.ul-collapse--collapsed .ul-collapse__toggle-button .ul-icon{transform:rotate(180deg)}\n"],
|
|
5143
|
+
styles: [".ul-collapse__content{position:relative;overflow:hidden;height:var(--ul-collapse-full-height);transition:height .25s cubic-bezier(.4,0,.2,1)}.ul-collapse__toggle{display:flex;align-items:center;justify-content:center;width:100%;padding:4px 0;gap:8px}.ul-collapse__toggle:before,.ul-collapse__toggle:after{content:\"\";display:block;width:100%;height:1px;border-bottom:1px solid rgba(255,255,255,.1)}.ul-collapse__toggle--link{justify-content:flex-start;width:auto}.ul-collapse__toggle--link:before,.ul-collapse__toggle--link:after{content:none}.ul-collapse__link{font-family:Underlayer Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800;padding:0;border:0;background:none;color:#ffffffb3;cursor:pointer}.ul-collapse__link:hover{text-decoration:underline}.ul-collapse__link:focus-visible{outline:2px solid rgba(255,255,255,.7);outline-offset:2px}.ul-collapse__toggle-button .ul-icon{transition:transform .25s cubic-bezier(.4,0,.2,1)}.ul-collapse--collapsed .ul-collapse__content{-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);height:var(--ul-collapse-max-height)}.ul-collapse--collapsed .ul-collapse__toggle-button .ul-icon{transform:rotate(180deg)}\n"],
|
|
5133
5144
|
dependencies: [{
|
|
5134
5145
|
kind: "component",
|
|
5135
5146
|
type: ButtonComponent,
|
|
@@ -5177,23 +5188,34 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5177
5188
|
<ng-content />
|
|
5178
5189
|
</div>
|
|
5179
5190
|
@if (isCollapsible()) {
|
|
5180
|
-
<div class="ul-collapse__toggle">
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5191
|
+
<div class="ul-collapse__toggle" [class.ul-collapse__toggle--link]="variant() === 'link'">
|
|
5192
|
+
@if (variant() === 'link') {
|
|
5193
|
+
<button
|
|
5194
|
+
type="button"
|
|
5195
|
+
class="ul-collapse__link"
|
|
5196
|
+
[attr.aria-label]="collapsed() ? expandLabel() : collapseLabel()"
|
|
5197
|
+
(click)="toggle()"
|
|
5198
|
+
>
|
|
5199
|
+
{{ collapsed() ? expandLabel() : collapseLabel() }}
|
|
5200
|
+
</button>
|
|
5201
|
+
} @else {
|
|
5202
|
+
<ul-button
|
|
5203
|
+
theme="ghost-white"
|
|
5204
|
+
[iconOnly]="variant() === 'icon'"
|
|
5205
|
+
class="ul-collapse__toggle-button"
|
|
5206
|
+
(click)="toggle()"
|
|
5207
|
+
(keydown)="onToggleKeydown($event)"
|
|
5208
|
+
[attr.aria-label]="collapsed() ? expandLabel() : collapseLabel()"
|
|
5209
|
+
>
|
|
5210
|
+
@if (variant() === 'text') {
|
|
5211
|
+
<span>
|
|
5212
|
+
{{ collapsed() ? expandLabel() : collapseLabel() }}
|
|
5213
|
+
</span>
|
|
5214
|
+
} @else if (variant() === 'icon') {
|
|
5215
|
+
<ul-icon size="6" icon="chevron_up" />
|
|
5216
|
+
}
|
|
5217
|
+
</ul-button>
|
|
5218
|
+
}
|
|
5197
5219
|
</div>
|
|
5198
5220
|
}
|
|
5199
5221
|
</div>
|
|
@@ -5203,7 +5225,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5203
5225
|
"[style.--ul-collapse-full-height.px]": "fullHeight()",
|
|
5204
5226
|
role: "region"
|
|
5205
5227
|
},
|
|
5206
|
-
styles: [".ul-collapse__content{position:relative;overflow:hidden;height:var(--ul-collapse-full-height);transition:height .25s cubic-bezier(.4,0,.2,1)}.ul-collapse__toggle{display:flex;align-items:center;justify-content:center;width:100%;padding:4px 0;gap:8px}.ul-collapse__toggle:before,.ul-collapse__toggle:after{content:\"\";display:block;width:100%;height:1px;border-bottom:1px solid rgba(255,255,255,.1)}.ul-collapse__toggle-button .ul-icon{transition:transform .25s cubic-bezier(.4,0,.2,1)}.ul-collapse--collapsed .ul-collapse__content{-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);height:var(--ul-collapse-max-height)}.ul-collapse--collapsed .ul-collapse__toggle-button .ul-icon{transform:rotate(180deg)}\n"]
|
|
5228
|
+
styles: [".ul-collapse__content{position:relative;overflow:hidden;height:var(--ul-collapse-full-height);transition:height .25s cubic-bezier(.4,0,.2,1)}.ul-collapse__toggle{display:flex;align-items:center;justify-content:center;width:100%;padding:4px 0;gap:8px}.ul-collapse__toggle:before,.ul-collapse__toggle:after{content:\"\";display:block;width:100%;height:1px;border-bottom:1px solid rgba(255,255,255,.1)}.ul-collapse__toggle--link{justify-content:flex-start;width:auto}.ul-collapse__toggle--link:before,.ul-collapse__toggle--link:after{content:none}.ul-collapse__link{font-family:Underlayer Nunito Sans;line-height:24px;font-size:16px;letter-spacing:0px;font-weight:800;padding:0;border:0;background:none;color:#ffffffb3;cursor:pointer}.ul-collapse__link:hover{text-decoration:underline}.ul-collapse__link:focus-visible{outline:2px solid rgba(255,255,255,.7);outline-offset:2px}.ul-collapse__toggle-button .ul-icon{transition:transform .25s cubic-bezier(.4,0,.2,1)}.ul-collapse--collapsed .ul-collapse__content{-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);mask-image:linear-gradient(to bottom,black calc(100% - 48px),transparent 100%);height:var(--ul-collapse-max-height)}.ul-collapse--collapsed .ul-collapse__toggle-button .ul-icon{transform:rotate(180deg)}\n"]
|
|
5207
5229
|
}]
|
|
5208
5230
|
}],
|
|
5209
5231
|
ctorParameters: () => [],
|
|
@@ -13635,6 +13657,7 @@ var SearchInputComponent = class SearchInputComponent {
|
|
|
13635
13657
|
suggestionsLabel = input(null, ...ngDevMode ? [{ debugName: "suggestionsLabel" }] : /* istanbul ignore next */ []);
|
|
13636
13658
|
results = input([], ...ngDevMode ? [{ debugName: "results" }] : /* istanbul ignore next */ []);
|
|
13637
13659
|
resultsTemplate = input(null, ...ngDevMode ? [{ debugName: "resultsTemplate" }] : /* istanbul ignore next */ []);
|
|
13660
|
+
resultsTemplateMobileOnly = input(false, ...ngDevMode ? [{ debugName: "resultsTemplateMobileOnly" }] : /* istanbul ignore next */ []);
|
|
13638
13661
|
invalid = input(false, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
13639
13662
|
errors = input([], ...ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []);
|
|
13640
13663
|
value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
@@ -13650,7 +13673,7 @@ var SearchInputComponent = class SearchInputComponent {
|
|
|
13650
13673
|
hasQuery = computed(() => this.value().trim().length > 0, ...ngDevMode ? [{ debugName: "hasQuery" }] : /* istanbul ignore next */ []);
|
|
13651
13674
|
activeList = computed(() => this.hasQuery() ? this.results() : this.suggestions(), ...ngDevMode ? [{ debugName: "activeList" }] : /* istanbul ignore next */ []);
|
|
13652
13675
|
activeListLabel = computed(() => this.hasQuery() ? null : this.suggestionsLabel(), ...ngDevMode ? [{ debugName: "activeListLabel" }] : /* istanbul ignore next */ []);
|
|
13653
|
-
hasCustomResults = computed(() => !!this.resultsTemplate(), ...ngDevMode ? [{ debugName: "hasCustomResults" }] : /* istanbul ignore next */ []);
|
|
13676
|
+
hasCustomResults = computed(() => !!this.resultsTemplate() && (!this.resultsTemplateMobileOnly() || this.isMobile()), ...ngDevMode ? [{ debugName: "hasCustomResults" }] : /* istanbul ignore next */ []);
|
|
13654
13677
|
shouldShowPanel = computed(() => this.combobox.isOpen() && (this.activeList().length > 0 || this.hasCustomResults()), ...ngDevMode ? [{ debugName: "shouldShowPanel" }] : /* istanbul ignore next */ []);
|
|
13655
13678
|
optionId = (index) => comboboxOptionId(this.ids.controlId, index);
|
|
13656
13679
|
activeDescendantId = computed(() => {
|
|
@@ -13803,6 +13826,13 @@ var SearchInputComponent = class SearchInputComponent {
|
|
|
13803
13826
|
isRequired: false,
|
|
13804
13827
|
transformFunction: null
|
|
13805
13828
|
},
|
|
13829
|
+
resultsTemplateMobileOnly: {
|
|
13830
|
+
classPropertyName: "resultsTemplateMobileOnly",
|
|
13831
|
+
publicName: "resultsTemplateMobileOnly",
|
|
13832
|
+
isSignal: true,
|
|
13833
|
+
isRequired: false,
|
|
13834
|
+
transformFunction: null
|
|
13835
|
+
},
|
|
13806
13836
|
invalid: {
|
|
13807
13837
|
classPropertyName: "invalid",
|
|
13808
13838
|
publicName: "invalid",
|
|
@@ -14103,6 +14133,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
14103
14133
|
required: false
|
|
14104
14134
|
}]
|
|
14105
14135
|
}],
|
|
14136
|
+
resultsTemplateMobileOnly: [{
|
|
14137
|
+
type: i0.Input,
|
|
14138
|
+
args: [{
|
|
14139
|
+
isSignal: true,
|
|
14140
|
+
alias: "resultsTemplateMobileOnly",
|
|
14141
|
+
required: false
|
|
14142
|
+
}]
|
|
14143
|
+
}],
|
|
14106
14144
|
invalid: [{
|
|
14107
14145
|
type: i0.Input,
|
|
14108
14146
|
args: [{
|