@maggioli-design-system/mds-input-select 3.4.0 → 3.4.2
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/collection/common/floating-controller.js +7 -4
- package/dist/collection/dictionary/button.js +2 -0
- package/dist/documentation.json +1 -1
- package/dist/stats.json +1 -1
- package/dist/types/type/button.d.ts +1 -1
- package/documentation.json +25 -10
- package/package.json +3 -3
- package/src/common/floating-controller.ts +6 -3
- package/src/dictionary/button.ts +2 -0
- package/src/fixtures/icons.json +6 -0
- package/src/type/button.ts +2 -0
|
@@ -117,6 +117,7 @@ export class FloatingController {
|
|
|
117
117
|
left: `${x}px`,
|
|
118
118
|
top: `${y}px`,
|
|
119
119
|
transformOrigin: this.convertToTransformOrigin(placement),
|
|
120
|
+
position: this._host.strategy,
|
|
120
121
|
});
|
|
121
122
|
const arrowStyle = {};
|
|
122
123
|
const arrowPosition = {
|
|
@@ -151,12 +152,14 @@ export class FloatingController {
|
|
|
151
152
|
return caller;
|
|
152
153
|
}
|
|
153
154
|
updatePosition() {
|
|
154
|
-
if (this.
|
|
155
|
-
this.
|
|
156
|
-
|
|
155
|
+
if (this._host.visible) {
|
|
156
|
+
this.dismiss(); // to clean the old update function before update function
|
|
157
|
+
this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition);
|
|
158
|
+
}
|
|
157
159
|
}
|
|
158
160
|
dismiss() {
|
|
159
|
-
this.cleanupAutoUpdate
|
|
161
|
+
if (this.cleanupAutoUpdate)
|
|
162
|
+
this.cleanupAutoUpdate();
|
|
160
163
|
}
|
|
161
164
|
}
|
|
162
165
|
export class Backdrop {
|
package/dist/documentation.json
CHANGED
package/dist/stats.json
CHANGED
|
@@ -2,4 +2,4 @@ export type ButtonType = 'a' | 'button' | 'reset' | 'submit';
|
|
|
2
2
|
export type ButtonTargetType = 'self' | 'blank';
|
|
3
3
|
export type ButtonSizeType = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export type ButtonIconPositionType = 'left' | 'right';
|
|
5
|
-
export type ButtonVariantType = 'primary' | 'secondary' | 'dark' | 'light' | 'error' | 'info' | 'success' | 'warning';
|
|
5
|
+
export type ButtonVariantType = 'primary' | 'secondary' | 'dark' | 'light' | 'error' | 'info' | 'success' | 'warning' | 'google' | 'apple';
|
package/documentation.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
2
|
+
"timestamp": "2025-04-02T08:30:40",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.27.2",
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
"path": "src/type/button.ts"
|
|
468
468
|
},
|
|
469
469
|
"src/type/button.ts::ButtonVariantType": {
|
|
470
|
-
"declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
|
|
470
|
+
"declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'\n | 'google'\n | 'apple'",
|
|
471
471
|
"docstring": "",
|
|
472
472
|
"path": "src/type/button.ts"
|
|
473
473
|
},
|
|
@@ -566,6 +566,11 @@
|
|
|
566
566
|
"docstring": "",
|
|
567
567
|
"path": "src/components/mds-horizontal-scroll/meta/types.ts"
|
|
568
568
|
},
|
|
569
|
+
"src/components/mds-horizontal-scroll/meta/types.ts::NavigationType": {
|
|
570
|
+
"declaration": "export type NavigationType =\n | 'none'\n | 'scrollbar'\n | 'position'",
|
|
571
|
+
"docstring": "",
|
|
572
|
+
"path": "src/components/mds-horizontal-scroll/meta/types.ts"
|
|
573
|
+
},
|
|
569
574
|
"src/components/mds-horizontal-scroll/meta/types.ts::SnapType": {
|
|
570
575
|
"declaration": "export type SnapType =\n | 'center'\n | 'end'\n | 'none'\n | 'start'",
|
|
571
576
|
"docstring": "",
|
|
@@ -706,6 +711,11 @@
|
|
|
706
711
|
"docstring": "",
|
|
707
712
|
"path": "src/components/mds-modal/meta/types.ts"
|
|
708
713
|
},
|
|
714
|
+
"src/components/mds-modal/meta/types.ts::ModalAnimationStyleType": {
|
|
715
|
+
"declaration": "export type ModalAnimationStyleType =\n | 'slide'\n | 'custom'\n | '3d'",
|
|
716
|
+
"docstring": "",
|
|
717
|
+
"path": "src/components/mds-modal/meta/types.ts"
|
|
718
|
+
},
|
|
709
719
|
"src/components/mds-modal/meta/types.ts::ModalOverflowType": {
|
|
710
720
|
"declaration": "export type ModalOverflowType =\n | 'auto'\n | 'manual'",
|
|
711
721
|
"docstring": "",
|
|
@@ -771,20 +781,25 @@
|
|
|
771
781
|
"docstring": "",
|
|
772
782
|
"path": "src/components/mds-progress/meta/types.ts"
|
|
773
783
|
},
|
|
774
|
-
"src/components/mds-push-notification/meta/
|
|
784
|
+
"src/components/mds-push-notification/meta/event-detail.ts::MdsPushNotificationEventDetail": {
|
|
785
|
+
"declaration": "export interface MdsPushNotificationEventDetail {\n visible: boolean\n}",
|
|
786
|
+
"docstring": "",
|
|
787
|
+
"path": "src/components/mds-push-notification/meta/event-detail.ts"
|
|
788
|
+
},
|
|
789
|
+
"src/components/mds-push-notification-item/meta/types.ts::NotificationItemDateFormatType": {
|
|
775
790
|
"declaration": "string",
|
|
776
791
|
"docstring": "",
|
|
777
|
-
"path": "src/components/mds-push-notification/meta/types.ts"
|
|
792
|
+
"path": "src/components/mds-push-notification-item/meta/types.ts"
|
|
778
793
|
},
|
|
779
|
-
"src/components/mds-push-notification/meta/types.ts::
|
|
780
|
-
"declaration": "export type
|
|
794
|
+
"src/components/mds-push-notification-item/meta/types.ts::NotificationItemPreviewType": {
|
|
795
|
+
"declaration": "export type NotificationItemPreviewType =\n | 'avatar'\n | 'image'",
|
|
781
796
|
"docstring": "",
|
|
782
|
-
"path": "src/components/mds-push-notification/meta/types.ts"
|
|
797
|
+
"path": "src/components/mds-push-notification-item/meta/types.ts"
|
|
783
798
|
},
|
|
784
|
-
"src/components/mds-push-notification/meta/event-detail.ts::
|
|
785
|
-
"declaration": "export interface
|
|
799
|
+
"src/components/mds-push-notification-item/meta/event-detail.ts::MdsPushNotificationItemEventDetail": {
|
|
800
|
+
"declaration": "export interface MdsPushNotificationItemEventDetail {\n id: string;\n}",
|
|
786
801
|
"docstring": "",
|
|
787
|
-
"path": "src/components/mds-push-notification/meta/event-detail.ts"
|
|
802
|
+
"path": "src/components/mds-push-notification-item/meta/event-detail.ts"
|
|
788
803
|
},
|
|
789
804
|
"src/type/text.ts::TypographyHeadingTagType": {
|
|
790
805
|
"declaration": "export type TypographyHeadingTagType =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-input-select",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "mds-input-select is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"test": "stencil test --spec --e2e"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@maggioli-design-system/styles": "15.9.
|
|
28
|
-
"@maggioli-design-system/mds-input-tip": "1.5.
|
|
27
|
+
"@maggioli-design-system/styles": "15.9.1",
|
|
28
|
+
"@maggioli-design-system/mds-input-tip": "1.5.2",
|
|
29
29
|
"@stencil/core": "4.27.2",
|
|
30
30
|
"clsx": "2.1.0"
|
|
31
31
|
},
|
|
@@ -201,6 +201,7 @@ export class FloatingController {
|
|
|
201
201
|
left: `${x}px`,
|
|
202
202
|
top: `${y}px`,
|
|
203
203
|
transformOrigin: this.convertToTransformOrigin(placement),
|
|
204
|
+
position: this._host.strategy,
|
|
204
205
|
})
|
|
205
206
|
|
|
206
207
|
const arrowStyle = {}
|
|
@@ -224,12 +225,14 @@ export class FloatingController {
|
|
|
224
225
|
}
|
|
225
226
|
|
|
226
227
|
updatePosition (): void {
|
|
227
|
-
if (this.
|
|
228
|
-
|
|
228
|
+
if (this._host.visible) {
|
|
229
|
+
this.dismiss() // to clean the old update function before update function
|
|
230
|
+
this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition)
|
|
231
|
+
}
|
|
229
232
|
}
|
|
230
233
|
|
|
231
234
|
dismiss (): void {
|
|
232
|
-
this.cleanupAutoUpdate()
|
|
235
|
+
if (this.cleanupAutoUpdate) this.cleanupAutoUpdate()
|
|
233
236
|
}
|
|
234
237
|
}
|
|
235
238
|
|
package/src/dictionary/button.ts
CHANGED
package/src/fixtures/icons.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[
|
|
2
2
|
"mdi/alien",
|
|
3
|
+
"mdi/apple",
|
|
3
4
|
"mdi/apple-keyboard-shift",
|
|
4
5
|
"mdi/barley",
|
|
5
6
|
"mdi/baseball",
|
|
@@ -7,6 +8,7 @@
|
|
|
7
8
|
"mdi/delete",
|
|
8
9
|
"mdi/dots-vertical",
|
|
9
10
|
"mdi/email",
|
|
11
|
+
"mdi/eye-off-outline",
|
|
10
12
|
"mdi/file-document-remove-outline",
|
|
11
13
|
"mdi/file-download-outline",
|
|
12
14
|
"mdi/file-upload-outline",
|
|
@@ -337,12 +339,14 @@
|
|
|
337
339
|
"mi/baseline/audiotrack",
|
|
338
340
|
"mi/baseline/auto-awesome",
|
|
339
341
|
"mi/baseline/badge",
|
|
342
|
+
"mi/baseline/block",
|
|
340
343
|
"mi/baseline/book",
|
|
341
344
|
"mi/baseline/border-all",
|
|
342
345
|
"mi/baseline/broken-image",
|
|
343
346
|
"mi/baseline/call",
|
|
344
347
|
"mi/baseline/cancel",
|
|
345
348
|
"mi/baseline/category",
|
|
349
|
+
"mi/baseline/check",
|
|
346
350
|
"mi/baseline/check-box",
|
|
347
351
|
"mi/baseline/check-box-outline-blank",
|
|
348
352
|
"mi/baseline/check-circle",
|
|
@@ -400,6 +404,7 @@
|
|
|
400
404
|
"mi/baseline/radio-button-unchecked",
|
|
401
405
|
"mi/baseline/remove",
|
|
402
406
|
"mi/baseline/remove-circle",
|
|
407
|
+
"mi/baseline/remove-red-eye",
|
|
403
408
|
"mi/baseline/route",
|
|
404
409
|
"mi/baseline/send",
|
|
405
410
|
"mi/baseline/settings",
|
|
@@ -410,6 +415,7 @@
|
|
|
410
415
|
"mi/baseline/terminal",
|
|
411
416
|
"mi/baseline/timer",
|
|
412
417
|
"mi/baseline/tv",
|
|
418
|
+
"mi/baseline/undo",
|
|
413
419
|
"mi/baseline/unfold-less",
|
|
414
420
|
"mi/baseline/unfold-more",
|
|
415
421
|
"mi/baseline/vertical-align-bottom",
|