tosijs-ui 1.4.6 → 1.4.8
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/dialog.d.ts +2 -4
- package/dist/dialog.js +2 -4
- package/dist/float.js +3 -0
- package/dist/iife.js +4 -4
- package/dist/iife.js.map +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/dialog.d.ts
CHANGED
|
@@ -48,10 +48,8 @@ export declare class TosiDialog extends Component<DialogParts> {
|
|
|
48
48
|
static alert(message: string, title?: string): Promise<void>;
|
|
49
49
|
static confirm(message: string, title?: string): Promise<boolean>;
|
|
50
50
|
static prompt(message: string, title?: string, currentValue?: string): Promise<string | null>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
closeOnBackgroundClick: boolean;
|
|
54
|
-
};
|
|
51
|
+
removeOnClose: boolean;
|
|
52
|
+
closeOnBackgroundClick: boolean;
|
|
55
53
|
constructor();
|
|
56
54
|
dialogWillClose: (reason?: string) => void;
|
|
57
55
|
initialFocus(): void;
|
package/dist/dialog.js
CHANGED
|
@@ -221,10 +221,8 @@ export class TosiDialog extends Component {
|
|
|
221
221
|
promptDialog.showModal();
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
closeOnBackgroundClick: false,
|
|
227
|
-
};
|
|
224
|
+
removeOnClose = false;
|
|
225
|
+
closeOnBackgroundClick = false;
|
|
228
226
|
constructor() {
|
|
229
227
|
super();
|
|
230
228
|
on(this, 'click', () => {
|
package/dist/float.js
CHANGED
|
@@ -106,6 +106,9 @@ export class TosiFloat extends WebComponent {
|
|
|
106
106
|
},
|
|
107
107
|
};
|
|
108
108
|
reposition = (event) => {
|
|
109
|
+
if (event instanceof MouseEvent && event.button !== 0) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
109
112
|
const target = event.target;
|
|
110
113
|
if (target?.closest('.no-drag')) {
|
|
111
114
|
return;
|