@ship-ui/core 0.16.2 → 0.16.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/fesm2022/ship-ui-core.mjs +119 -125
- package/fesm2022/ship-ui-core.mjs.map +1 -1
- package/index.d.ts +10 -2
- package/package.json +1 -1
- package/styles/components/ship-menu.scss +12 -5
- package/styles/components/ship-popover.scss +65 -5
package/index.d.ts
CHANGED
|
@@ -456,7 +456,7 @@ declare class ShipMenu {
|
|
|
456
456
|
destroy: () => void;
|
|
457
457
|
};
|
|
458
458
|
optionsEl: _angular_core.Signal<HTMLButtonElement[]>;
|
|
459
|
-
inputValue: _angular_core.WritableSignal<string |
|
|
459
|
+
inputValue: _angular_core.WritableSignal<string | undefined>;
|
|
460
460
|
abortController: AbortController | null;
|
|
461
461
|
optionsEffect: _angular_core.EffectRef;
|
|
462
462
|
keyDownEventListener: (e: KeyboardEvent) => void;
|
|
@@ -792,6 +792,14 @@ declare class ShipVirtualScroll {
|
|
|
792
792
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipVirtualScroll, "sh-virtual-scroll", never, {}, {}, never, ["*"], true, never>;
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
+
declare class ShipFormFieldExperimental {
|
|
796
|
+
firstInput: _angular_core.WritableSignal<string | undefined>;
|
|
797
|
+
hello: _angular_core.EffectRef;
|
|
798
|
+
myClick(): void;
|
|
799
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipFormFieldExperimental, never>;
|
|
800
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipFormFieldExperimental, "sh-form-field-experimental", never, {}, {}, never, ["*"], true, never>;
|
|
801
|
+
}
|
|
802
|
+
|
|
795
803
|
declare class ShipFileDragDrop {
|
|
796
804
|
filesOver: _angular_core.WritableSignal<boolean>;
|
|
797
805
|
filesDropped: _angular_core.OutputEmitterRef<FileList>;
|
|
@@ -858,5 +866,5 @@ interface ShipConfig {
|
|
|
858
866
|
sidenavType?: 'overlay' | 'simple';
|
|
859
867
|
}
|
|
860
868
|
|
|
861
|
-
export { GridSortable, SHIP_CONFIG, ShipAlert, ShipAlertContainer, ShipAlertModule, ShipAlertService, ShipBlueprint, ShipButton, ShipButtonGroup, ShipCard, ShipCheckbox, ShipChip, ShipColorPicker, ShipDatepicker, ShipDatepickerInput, ShipDaterangeInput, ShipDialog, ShipDialogService, ShipDivider, ShipEventCard, ShipFileDragDrop, ShipFileUpload, ShipFormField, ShipIcon, ShipInputMask, ShipList, ShipMenu, ShipPopover, ShipPreventWheel, ShipProgressBar, ShipRadio, ShipRangeSlider, ShipResize, ShipSelect, ShipSidenav, ShipSort, ShipSortable, ShipSpinner, ShipStepper, ShipStickyColumns, ShipTable, ShipTabs, ShipToggle, ShipToggleCard, ShipTooltip, ShipTooltipWrapper, ShipVirtualScroll, TEST_NODES, moveIndex, watchHostClass };
|
|
869
|
+
export { GridSortable, SHIP_CONFIG, ShipAlert, ShipAlertContainer, ShipAlertModule, ShipAlertService, ShipBlueprint, ShipButton, ShipButtonGroup, ShipCard, ShipCheckbox, ShipChip, ShipColorPicker, ShipDatepicker, ShipDatepickerInput, ShipDaterangeInput, ShipDialog, ShipDialogService, ShipDivider, ShipEventCard, ShipFileDragDrop, ShipFileUpload, ShipFormField, ShipFormFieldExperimental, ShipIcon, ShipInputMask, ShipList, ShipMenu, ShipPopover, ShipPreventWheel, ShipProgressBar, ShipRadio, ShipRangeSlider, ShipResize, ShipSelect, ShipSidenav, ShipSort, ShipSortable, ShipSpinner, ShipStepper, ShipStickyColumns, ShipTable, ShipTabs, ShipToggle, ShipToggleCard, ShipTooltip, ShipTooltipWrapper, ShipVirtualScroll, TEST_NODES, moveIndex, watchHostClass };
|
|
862
870
|
export type { AfterDropResponse, BlueprintNode, ComponentClosedType, ComponentDataType, Coordinates, Exact, ShipAlertItem, ShipAlertItemInternal, ShipAlertType, ShipConfig, ShipDialogInstance, ShipDialogOptions, ShipDialogServiceOptions, ShipPopoverOptions, ShipProgressBarMode, ShipSidenavType };
|
package/package.json
CHANGED
|
@@ -133,7 +133,7 @@ $shipMenu: true !default;
|
|
|
133
133
|
display: none;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
*:not(button) {
|
|
136
|
+
> *:not(button) {
|
|
137
137
|
display: none;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -160,13 +160,13 @@ $shipMenu: true !default;
|
|
|
160
160
|
|
|
161
161
|
button {
|
|
162
162
|
display: flex;
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
justify-content: center;
|
|
165
165
|
text-align: left;
|
|
166
166
|
min-height: p2r(32);
|
|
167
167
|
margin: p2r(0 8);
|
|
168
|
-
padding: p2r(
|
|
169
|
-
gap: p2r(8);
|
|
168
|
+
padding: p2r(4 8);
|
|
169
|
+
gap: p2r(0 8);
|
|
170
170
|
width: calc(100% - #{p2r(16)});
|
|
171
171
|
border-radius: var(--shape-2);
|
|
172
172
|
appearance: none;
|
|
@@ -177,6 +177,13 @@ $shipMenu: true !default;
|
|
|
177
177
|
transition: transform 125ms linear;
|
|
178
178
|
transform: scale(1);
|
|
179
179
|
|
|
180
|
+
&.as-row,
|
|
181
|
+
&:has([suffix]) {
|
|
182
|
+
justify-content: flex-start;
|
|
183
|
+
align-items: center;
|
|
184
|
+
flex-direction: row;
|
|
185
|
+
}
|
|
186
|
+
|
|
180
187
|
&:active {
|
|
181
188
|
transform: scale(0.98);
|
|
182
189
|
}
|
|
@@ -36,10 +36,7 @@ $shipPopover: true !default;
|
|
|
36
36
|
|
|
37
37
|
.trigger-anchor {
|
|
38
38
|
position: absolute;
|
|
39
|
-
|
|
40
|
-
bottom: p2r(-4);
|
|
41
|
-
left: 0;
|
|
42
|
-
right: 0;
|
|
39
|
+
inset: 0;
|
|
43
40
|
z-index: -1;
|
|
44
41
|
}
|
|
45
42
|
}
|
|
@@ -82,9 +79,12 @@ $shipPopover: true !default;
|
|
|
82
79
|
|
|
83
80
|
@supports (anchor-name: --anchor) {
|
|
84
81
|
inset: auto;
|
|
82
|
+
top: p2r(4);
|
|
85
83
|
position: fixed;
|
|
86
84
|
position-area: bottom span-right;
|
|
87
|
-
position-try-fallbacks:
|
|
85
|
+
position-try-fallbacks:
|
|
86
|
+
--top-span-right, --bottom-span-left, --top-span-left, --right-span-bottom, --left-span-bottom,
|
|
87
|
+
--right-center, --left-center, --right-span-top, --left-span-top;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -99,3 +99,63 @@ $shipPopover: true !default;
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
+
|
|
103
|
+
@position-try --bottom-span-right {
|
|
104
|
+
position-area: bottom span-right;
|
|
105
|
+
inset: auto;
|
|
106
|
+
top: p2r(4);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@position-try --bottom-span-left {
|
|
110
|
+
position-area: bottom span-left;
|
|
111
|
+
inset: auto;
|
|
112
|
+
top: p2r(4);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@position-try --top-span-right {
|
|
116
|
+
position-area: top span-right;
|
|
117
|
+
inset: auto;
|
|
118
|
+
bottom: p2r(4);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@position-try --top-span-left {
|
|
122
|
+
position-area: top span-left;
|
|
123
|
+
inset: auto;
|
|
124
|
+
bottom: p2r(4);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@position-try --right-span-top {
|
|
128
|
+
position-area: right span-top;
|
|
129
|
+
inset: auto;
|
|
130
|
+
left: p2r(4);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@position-try --left-span-top {
|
|
134
|
+
position-area: left span-top;
|
|
135
|
+
inset: auto;
|
|
136
|
+
right: p2r(4);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@position-try --right-center {
|
|
140
|
+
position-area: right center;
|
|
141
|
+
inset: auto;
|
|
142
|
+
left: p2r(4);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@position-try --left-center {
|
|
146
|
+
position-area: left center;
|
|
147
|
+
inset: auto;
|
|
148
|
+
right: p2r(4);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@position-try --right-span-bottom {
|
|
152
|
+
position-area: right span-bottom;
|
|
153
|
+
inset: auto;
|
|
154
|
+
left: p2r(4);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@position-try --left-span-bottom {
|
|
158
|
+
position-area: left span-bottom;
|
|
159
|
+
inset: auto;
|
|
160
|
+
right: p2r(4);
|
|
161
|
+
}
|