@medyll/idae-slotui-svelte 0.36.0 → 0.38.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.
- package/dist/base/icon/Icon.svelte +1 -0
- package/dist/controls/button/Button.svelte +31 -52
- package/dist/controls/button/ButtonAction.svelte +30 -50
- package/dist/controls/button/IconButton.svelte +5 -3
- package/dist/controls/button/button.scss +29 -26
- package/dist/controls/confirm/Confirm.demo.svelte +17 -7
- package/dist/controls/confirm/Confirm.svelte +35 -21
- package/dist/controls/confirm/Confirm.svelte.d.ts +5 -1
- package/dist/controls/confirm/confirm.scss +1 -1
- package/dist/controls/confirm/types.d.ts +20 -14
- package/dist/controls/confirm/types.js +31 -21
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/slotui-css/button.css +30 -45
- package/dist/slotui-css/button.min.css +30 -45
- package/dist/slotui-css/confirm.css +1 -1
- package/dist/slotui-css/confirm.min.css +1 -1
- package/dist/slotui-css/slotui-combined.css +31 -46
- package/dist/ui/chromeFrame/chromeFrame.store.d.ts +28 -0
- package/dist/ui/chromeFrame/chromeFrame.utils.d.ts +4 -1
- package/dist/ui/login/store.d.ts +5 -0
- package/dist/ui/window/store.d.ts +8 -2
- package/dist/utils/engine/wactions.utils.d.ts +3 -0
- package/package.json +6 -6
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
}: ButtonProps = $props();
|
|
36
36
|
|
|
37
37
|
let startRef: HTMLDivElement | undefined = $state<HTMLDivElement | undefined>(undefined);
|
|
38
|
-
|
|
39
|
-
$inspect(startRef?.clientWidth)
|
|
38
|
+
|
|
40
39
|
</script>
|
|
41
40
|
|
|
42
41
|
<button
|
|
@@ -140,9 +139,30 @@
|
|
|
140
139
|
transition: all 0.2s ease-in-out;
|
|
141
140
|
overflow: hidden;
|
|
142
141
|
cursor: pointer;
|
|
143
|
-
align-content:
|
|
144
|
-
align-items:
|
|
142
|
+
align-content: center;
|
|
143
|
+
align-items: center;
|
|
145
144
|
background: var(--sld-button-background);
|
|
145
|
+
/* :focus {
|
|
146
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
147
|
+
outline-offset: 2px;
|
|
148
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
149
|
+
}
|
|
150
|
+
:focus-visible {
|
|
151
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
152
|
+
outline-offset: -2px;
|
|
153
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
154
|
+
}
|
|
155
|
+
:hover {
|
|
156
|
+
background-color: var(--sld-button-hover-background);
|
|
157
|
+
box-shadow: var(--sld-button-hover-shadow);
|
|
158
|
+
}
|
|
159
|
+
:active {
|
|
160
|
+
transform: translateY(1px);
|
|
161
|
+
box-shadow: var(--sld-button-active-shadow);
|
|
162
|
+
}
|
|
163
|
+
:focus:not(:focus-visible) {
|
|
164
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
165
|
+
} */
|
|
146
166
|
--preset-width: var(--sld-width-small);
|
|
147
167
|
width: var(--preset-width-small);
|
|
148
168
|
}
|
|
@@ -424,52 +444,6 @@
|
|
|
424
444
|
box-shadow: var(--sld-elevation-5);
|
|
425
445
|
}
|
|
426
446
|
|
|
427
|
-
:global(button) :focus,
|
|
428
|
-
:global(.button) :focus,
|
|
429
|
-
:global(button.button) :focus,
|
|
430
|
-
:global(input[type="button"]) :focus,
|
|
431
|
-
:global(input[type="submit"]) :focus {
|
|
432
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
433
|
-
outline-offset: 2px;
|
|
434
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
:global(button) :focus-visible,
|
|
438
|
-
:global(.button) :focus-visible,
|
|
439
|
-
:global(button.button) :focus-visible,
|
|
440
|
-
:global(input[type="button"]) :focus-visible,
|
|
441
|
-
:global(input[type="submit"]) :focus-visible {
|
|
442
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
443
|
-
outline-offset: -2px;
|
|
444
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
:global(button) :hover,
|
|
448
|
-
:global(.button) :hover,
|
|
449
|
-
:global(button.button) :hover,
|
|
450
|
-
:global(input[type="button"]) :hover,
|
|
451
|
-
:global(input[type="submit"]) :hover {
|
|
452
|
-
background-color: var(--sld-button-hover-background);
|
|
453
|
-
box-shadow: var(--sld-button-hover-shadow);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
:global(button) :active,
|
|
457
|
-
:global(.button) :active,
|
|
458
|
-
:global(button.button) :active,
|
|
459
|
-
:global(input[type="button"]) :active,
|
|
460
|
-
:global(input[type="submit"]) :active {
|
|
461
|
-
transform: translateY(1px);
|
|
462
|
-
box-shadow: var(--sld-button-active-shadow);
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
:global(button) :focus:not(:focus-visible),
|
|
466
|
-
:global(.button) :focus:not(:focus-visible),
|
|
467
|
-
:global(button.button) :focus:not(:focus-visible),
|
|
468
|
-
:global(input[type="button"]) :focus:not(:focus-visible),
|
|
469
|
-
:global(input[type="submit"]) :focus:not(:focus-visible) {
|
|
470
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
447
|
:global(button) .button-start,
|
|
474
448
|
:global(.button) .button-start,
|
|
475
449
|
:global(button.button) .button-start,
|
|
@@ -481,7 +455,7 @@
|
|
|
481
455
|
max-height: 100%;
|
|
482
456
|
align-items: center;
|
|
483
457
|
align-content: center;
|
|
484
|
-
padding: 0 0.
|
|
458
|
+
padding: 0 0.5rem;
|
|
485
459
|
display: block;
|
|
486
460
|
}
|
|
487
461
|
|
|
@@ -499,13 +473,18 @@
|
|
|
499
473
|
:global(input[type="button"]) .button-central,
|
|
500
474
|
:global(input[type="submit"]) .button-central {
|
|
501
475
|
--preset-ellipsis-line: 1;
|
|
476
|
+
display: block;
|
|
502
477
|
max-width: 100%;
|
|
503
478
|
max-height: 100%;
|
|
504
479
|
flex: 1;
|
|
505
480
|
align-items: center;
|
|
506
481
|
align-content: center;
|
|
507
|
-
|
|
482
|
+
justify-content: center;
|
|
483
|
+
justify-items: center;
|
|
484
|
+
padding-left: 0.25rem;
|
|
485
|
+
padding-right: 0.25rem;
|
|
508
486
|
text-align: var(--sld-button-text-align, center);
|
|
487
|
+
overflow: hidden;
|
|
509
488
|
}
|
|
510
489
|
|
|
511
490
|
:global(button) .button-central[ellipsis], :global(button) .button-central.ellipsis,
|
|
@@ -99,9 +99,30 @@
|
|
|
99
99
|
transition: all 0.2s ease-in-out;
|
|
100
100
|
overflow: hidden;
|
|
101
101
|
cursor: pointer;
|
|
102
|
-
align-content:
|
|
103
|
-
align-items:
|
|
102
|
+
align-content: center;
|
|
103
|
+
align-items: center;
|
|
104
104
|
background: var(--sld-button-background);
|
|
105
|
+
/* :focus {
|
|
106
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
107
|
+
outline-offset: 2px;
|
|
108
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
109
|
+
}
|
|
110
|
+
:focus-visible {
|
|
111
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
112
|
+
outline-offset: -2px;
|
|
113
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
114
|
+
}
|
|
115
|
+
:hover {
|
|
116
|
+
background-color: var(--sld-button-hover-background);
|
|
117
|
+
box-shadow: var(--sld-button-hover-shadow);
|
|
118
|
+
}
|
|
119
|
+
:active {
|
|
120
|
+
transform: translateY(1px);
|
|
121
|
+
box-shadow: var(--sld-button-active-shadow);
|
|
122
|
+
}
|
|
123
|
+
:focus:not(:focus-visible) {
|
|
124
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
125
|
+
} */
|
|
105
126
|
--preset-width: var(--sld-width-small);
|
|
106
127
|
width: var(--preset-width-small);
|
|
107
128
|
}
|
|
@@ -383,52 +404,6 @@
|
|
|
383
404
|
box-shadow: var(--sld-elevation-5);
|
|
384
405
|
}
|
|
385
406
|
|
|
386
|
-
:global(button) :focus,
|
|
387
|
-
:global(.button) :focus,
|
|
388
|
-
:global(button.button) :focus,
|
|
389
|
-
:global(input[type="button"]) :focus,
|
|
390
|
-
:global(input[type="submit"]) :focus {
|
|
391
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
392
|
-
outline-offset: 2px;
|
|
393
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
:global(button) :focus-visible,
|
|
397
|
-
:global(.button) :focus-visible,
|
|
398
|
-
:global(button.button) :focus-visible,
|
|
399
|
-
:global(input[type="button"]) :focus-visible,
|
|
400
|
-
:global(input[type="submit"]) :focus-visible {
|
|
401
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
402
|
-
outline-offset: -2px;
|
|
403
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
:global(button) :hover,
|
|
407
|
-
:global(.button) :hover,
|
|
408
|
-
:global(button.button) :hover,
|
|
409
|
-
:global(input[type="button"]) :hover,
|
|
410
|
-
:global(input[type="submit"]) :hover {
|
|
411
|
-
background-color: var(--sld-button-hover-background);
|
|
412
|
-
box-shadow: var(--sld-button-hover-shadow);
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
:global(button) :active,
|
|
416
|
-
:global(.button) :active,
|
|
417
|
-
:global(button.button) :active,
|
|
418
|
-
:global(input[type="button"]) :active,
|
|
419
|
-
:global(input[type="submit"]) :active {
|
|
420
|
-
transform: translateY(1px);
|
|
421
|
-
box-shadow: var(--sld-button-active-shadow);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
:global(button) :focus:not(:focus-visible),
|
|
425
|
-
:global(.button) :focus:not(:focus-visible),
|
|
426
|
-
:global(button.button) :focus:not(:focus-visible),
|
|
427
|
-
:global(input[type="button"]) :focus:not(:focus-visible),
|
|
428
|
-
:global(input[type="submit"]) :focus:not(:focus-visible) {
|
|
429
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
430
|
-
}
|
|
431
|
-
|
|
432
407
|
:global(button) .button-start,
|
|
433
408
|
:global(.button) .button-start,
|
|
434
409
|
:global(button.button) .button-start,
|
|
@@ -440,7 +415,7 @@
|
|
|
440
415
|
max-height: 100%;
|
|
441
416
|
align-items: center;
|
|
442
417
|
align-content: center;
|
|
443
|
-
padding: 0 0.
|
|
418
|
+
padding: 0 0.5rem;
|
|
444
419
|
display: block;
|
|
445
420
|
}
|
|
446
421
|
|
|
@@ -458,13 +433,18 @@
|
|
|
458
433
|
:global(input[type="button"]) .button-central,
|
|
459
434
|
:global(input[type="submit"]) .button-central {
|
|
460
435
|
--preset-ellipsis-line: 1;
|
|
436
|
+
display: block;
|
|
461
437
|
max-width: 100%;
|
|
462
438
|
max-height: 100%;
|
|
463
439
|
flex: 1;
|
|
464
440
|
align-items: center;
|
|
465
441
|
align-content: center;
|
|
466
|
-
|
|
442
|
+
justify-content: center;
|
|
443
|
+
justify-items: center;
|
|
444
|
+
padding-left: 0.25rem;
|
|
445
|
+
padding-right: 0.25rem;
|
|
467
446
|
text-align: var(--sld-button-text-align, center);
|
|
447
|
+
overflow: hidden;
|
|
468
448
|
}
|
|
469
449
|
|
|
470
450
|
:global(button) .button-central[ellipsis], :global(button) .button-central.ellipsis,
|
|
@@ -36,8 +36,10 @@
|
|
|
36
36
|
children,
|
|
37
37
|
...rest
|
|
38
38
|
}: IconButtonProps = $props();
|
|
39
|
+
|
|
40
|
+
let finalIcon = $derived(typeof icon === 'object' ? {...icon,iconSize:iconFontSize} : {icon,iconSize:iconFontSize});
|
|
39
41
|
</script>
|
|
40
42
|
|
|
41
|
-
|
|
42
|
-
<Icon style="display:
|
|
43
|
-
</Button>
|
|
43
|
+
<Button variant="square" bind:element width={size} tall="unset" {ratio} {...rest}>
|
|
44
|
+
<Icon style="display:inline; " {rotation} icon={finalIcon} />
|
|
45
|
+
</Button>
|
|
@@ -55,34 +55,32 @@
|
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
|
|
58
|
-
align-content:
|
|
59
|
-
align-items:
|
|
58
|
+
align-content: center;
|
|
59
|
+
align-items: center;
|
|
60
60
|
|
|
61
61
|
background: var(--sld-button-background);
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
:focus
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
:focus-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
:hover
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:
|
|
79
|
-
|
|
80
|
-
box-shadow: var(--sld-button-active-shadow);
|
|
81
|
-
}
|
|
82
|
-
:focus:not(:focus-visible) {
|
|
83
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
84
|
-
}
|
|
63
|
+
/* :focus {
|
|
64
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
65
|
+
outline-offset: 2px;
|
|
66
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
67
|
+
}
|
|
68
|
+
:focus-visible {
|
|
69
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
70
|
+
outline-offset: -2px;
|
|
71
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
72
|
+
}
|
|
73
|
+
:hover {
|
|
74
|
+
background-color: var(--sld-button-hover-background);
|
|
75
|
+
box-shadow: var(--sld-button-hover-shadow);
|
|
76
|
+
}
|
|
77
|
+
:active {
|
|
78
|
+
transform: translateY(1px);
|
|
79
|
+
box-shadow: var(--sld-button-active-shadow);
|
|
85
80
|
}
|
|
81
|
+
:focus:not(:focus-visible) {
|
|
82
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
83
|
+
} */
|
|
86
84
|
|
|
87
85
|
.button-start {
|
|
88
86
|
position: relative;
|
|
@@ -91,7 +89,7 @@
|
|
|
91
89
|
max-height: 100%;
|
|
92
90
|
align-items: center;
|
|
93
91
|
align-content: center;
|
|
94
|
-
padding: 0 0.
|
|
92
|
+
padding: 0 0.5rem;
|
|
95
93
|
display: block;
|
|
96
94
|
&:empty {
|
|
97
95
|
display: none;
|
|
@@ -100,13 +98,18 @@
|
|
|
100
98
|
|
|
101
99
|
.button-central {
|
|
102
100
|
@include ui-ellipsises-presets;
|
|
101
|
+
display: block;
|
|
103
102
|
max-width: 100%;
|
|
104
103
|
max-height: 100%;
|
|
105
104
|
flex: 1;
|
|
106
105
|
align-items: center;
|
|
107
106
|
align-content: center;
|
|
108
|
-
|
|
107
|
+
justify-content: center;
|
|
108
|
+
justify-items: center;
|
|
109
|
+
padding-left: 0.25rem; //calc(var(--content-padding, 0.25rem) / 2);
|
|
110
|
+
padding-right: 0.25rem; //calc(var(--content-padding, 0.25rem) / 2);
|
|
109
111
|
text-align: var(--sld-button-text-align, center);
|
|
112
|
+
overflow: hidden;
|
|
110
113
|
&:empty {
|
|
111
114
|
display: none;
|
|
112
115
|
}
|
|
@@ -16,8 +16,15 @@
|
|
|
16
16
|
</Confirm>`;
|
|
17
17
|
|
|
18
18
|
let codeProps = `
|
|
19
|
-
<Confirm
|
|
20
|
-
|
|
19
|
+
<Confirm
|
|
20
|
+
buttonInitial={{
|
|
21
|
+
icon: {icon:'fa-solid:question', size:'auto',color:'green'},
|
|
22
|
+
value: 'Would you please click me once ?',
|
|
23
|
+
ellipsis: true
|
|
24
|
+
}}
|
|
25
|
+
>
|
|
26
|
+
<Button type="submit" icon="fa-solid:check" >confirm</Button>
|
|
27
|
+
</Confirm>`;
|
|
21
28
|
</script>
|
|
22
29
|
|
|
23
30
|
<ComponentDemo
|
|
@@ -30,11 +37,14 @@ V.Hugo 1850"
|
|
|
30
37
|
<DemoPage component="Chipper" code={codeSlot}>
|
|
31
38
|
<Demoer {parameters} {componentArgs}>
|
|
32
39
|
{#snippet children({ activeParams })}
|
|
33
|
-
<Confirm {...activeParams}
|
|
34
|
-
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
<Confirm {...activeParams}
|
|
41
|
+
buttonInitial={{
|
|
42
|
+
icon: {icon:'fa-solid:question', size:'auto',color:'green'},
|
|
43
|
+
value: 'Would you please click me once ?',
|
|
44
|
+
ellipsis: true
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
47
|
+
<Button type="submit" icon="fa-solid:check" >confirm</Button>
|
|
38
48
|
</Confirm>
|
|
39
49
|
{/snippet}
|
|
40
50
|
</Demoer>
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<script lang="ts" generics="T=any">
|
|
2
2
|
import { fade } from 'svelte/transition';
|
|
3
3
|
import Button from '../button/Button.svelte';
|
|
4
|
-
import IconButton from '../button/IconButton.svelte';
|
|
5
4
|
import { onDestroy } from 'svelte';
|
|
6
5
|
import Slotted from '../../utils/slotted/Slotted.svelte';
|
|
7
6
|
import type { ConfirmProps } from './types.js';
|
|
8
7
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
9
8
|
|
|
10
|
-
let step: string = $state('initial');
|
|
9
|
+
let step: string = $state('initial');
|
|
11
10
|
|
|
12
11
|
let {
|
|
13
12
|
class: className = '',
|
|
@@ -26,7 +25,11 @@
|
|
|
26
25
|
loading,
|
|
27
26
|
data,
|
|
28
27
|
action = () => {},
|
|
29
|
-
iconCancel = { icon: '
|
|
28
|
+
iconCancel = { icon: 'mdi:cancel-bold', color: 'red',iconSize:'large' },
|
|
29
|
+
variant,
|
|
30
|
+
buttonInitial,
|
|
31
|
+
buttonConfirm,
|
|
32
|
+
buttonCancel,
|
|
30
33
|
children,
|
|
31
34
|
confirmInitial,
|
|
32
35
|
...rest
|
|
@@ -87,8 +90,7 @@
|
|
|
87
90
|
});
|
|
88
91
|
</script>
|
|
89
92
|
|
|
90
|
-
<!-- #todo <Content>somecontent</Content> -->
|
|
91
|
-
|
|
93
|
+
<!-- #todo <Content>somecontent</Content> -->
|
|
92
94
|
<div {...rost} class="confirm {className}">
|
|
93
95
|
{#if step === 'initial'}
|
|
94
96
|
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
|
@@ -101,48 +103,60 @@
|
|
|
101
103
|
title={tooltipInitial}
|
|
102
104
|
>
|
|
103
105
|
<Slotted child={confirmInitial} slotArgs={{ step }}>
|
|
106
|
+
{#if buttonInitial}
|
|
107
|
+
<Button {tall} {variant} {...buttonInitial} />
|
|
108
|
+
{:else}
|
|
104
109
|
<Button
|
|
105
110
|
{tall}
|
|
106
|
-
variant=
|
|
111
|
+
variant= {variant}
|
|
107
112
|
width="full"
|
|
108
113
|
icon={{ icon: iconInitial, color: iconColorInitial }}
|
|
109
114
|
title={tooltipInitial}
|
|
110
115
|
>
|
|
111
|
-
{primaryInitial}
|
|
116
|
+
{primaryInitial}
|
|
112
117
|
</Button>
|
|
118
|
+
{/if}
|
|
113
119
|
</Slotted>
|
|
114
120
|
</div>
|
|
115
121
|
{/if}
|
|
116
122
|
{#if step === 'confirm'}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
{#if buttonCancel}
|
|
124
|
+
<Button {tall} {...buttonCancel} onclick={(event:any)=>{handleClickCancel(event);buttonCancel?.onclick?.(event)}} />
|
|
125
|
+
{:else}
|
|
126
|
+
<Button
|
|
127
|
+
onclick={handleClickCancel}
|
|
128
|
+
variant= {'naked'}
|
|
129
|
+
icon={iconCancel}
|
|
130
|
+
{tall}
|
|
131
|
+
title="cancel"
|
|
132
|
+
value="cancel"
|
|
133
|
+
width="auto"
|
|
134
|
+
/>
|
|
135
|
+
{/if}
|
|
136
|
+
<div class={className + ' confirm-validate'} in:fade|global bind:this={contentRef}>
|
|
127
137
|
<Slotted child={children} slotArgs={{ step }}>
|
|
128
|
-
|
|
138
|
+
{#if buttonConfirm}
|
|
139
|
+
<Button {tall} {variant} {...buttonConfirm} onclick={(event:any)=>{handleAction(event);buttonConfirm?.onclick?.(event)}} />
|
|
140
|
+
{:else}
|
|
141
|
+
<Button
|
|
129
142
|
title="confirm"
|
|
130
143
|
loading={loadingState}
|
|
131
144
|
{tall}
|
|
132
145
|
onclick={handleAction}
|
|
133
|
-
{icon}
|
|
134
|
-
|
|
146
|
+
{icon}
|
|
147
|
+
variant= {variant}
|
|
135
148
|
value={primaryConfirm}
|
|
136
149
|
/>
|
|
150
|
+
{/if}
|
|
137
151
|
</Slotted>
|
|
138
152
|
</div>
|
|
139
153
|
{/if}
|
|
140
154
|
</div>
|
|
141
155
|
|
|
142
156
|
<style>.confirm {
|
|
143
|
-
display: contents;
|
|
144
157
|
display: flex;
|
|
145
158
|
align-items: center;
|
|
159
|
+
gap: 0.5rem;
|
|
146
160
|
}
|
|
147
161
|
.confirm-validate {
|
|
148
162
|
display: flex;
|
|
@@ -4,13 +4,14 @@ declare class __sveltets_Render<T = any> {
|
|
|
4
4
|
initialRef?: HTMLElement | null;
|
|
5
5
|
contentRef?: HTMLElement | null;
|
|
6
6
|
tooltipInitial?: string | null;
|
|
7
|
-
primaryInitial
|
|
7
|
+
primaryInitial?: string;
|
|
8
8
|
primaryConfirm: string;
|
|
9
9
|
iconInitial?: string;
|
|
10
10
|
iconColorInitial?: string;
|
|
11
11
|
primary?: string;
|
|
12
12
|
icon?: import("../../types/index.js").ElementProps["icon"];
|
|
13
13
|
tall?: import("../../types/index.js").ElementProps["tall"];
|
|
14
|
+
variant: import("../../types/index.js").ElementProps["buttonVariant"];
|
|
14
15
|
iconColor?: string;
|
|
15
16
|
iconSize?: string;
|
|
16
17
|
autoClose?: boolean;
|
|
@@ -18,6 +19,9 @@ declare class __sveltets_Render<T = any> {
|
|
|
18
19
|
iconLoading?: import("../../types/index.js").ElementProps["icon"];
|
|
19
20
|
action?: Promise<T> | ((data?: T | undefined) => void) | undefined;
|
|
20
21
|
iconCancel?: import("../../types/index.js").ElementProps["icon"];
|
|
22
|
+
buttonInitial?: import("../button/types.js").ButtonProps;
|
|
23
|
+
buttonConfirm?: import("../button/types.js").ButtonProps;
|
|
24
|
+
buttonCancel?: import("../button/types.js").ButtonProps;
|
|
21
25
|
children?: import("svelte").Snippet;
|
|
22
26
|
confirmInitial?: import("svelte").Snippet;
|
|
23
27
|
} & Partial<Omit<HTMLDivElement, "style">>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { DemoerStoryProps } from
|
|
2
|
-
import { type CommonProps, type ElementProps } from
|
|
3
|
-
import type { Snippet } from
|
|
1
|
+
import type { DemoerStoryProps } from "../../base/demoer/types.js";
|
|
2
|
+
import { type CommonProps, type ElementProps } from "../../types/index.js";
|
|
3
|
+
import type { Snippet } from "svelte";
|
|
4
|
+
import type { ButtonProps } from "../button/types.js";
|
|
4
5
|
export type ConfirmProps<T = any> = CommonProps & {
|
|
5
6
|
/** element data sent on confirm */
|
|
6
7
|
data?: T;
|
|
@@ -8,22 +9,24 @@ export type ConfirmProps<T = any> = CommonProps & {
|
|
|
8
9
|
initialRef?: HTMLElement | null;
|
|
9
10
|
/** element confirm HTMLDivElement props */
|
|
10
11
|
contentRef?: HTMLElement | null;
|
|
11
|
-
/** text displayed on initial button */
|
|
12
|
+
/** @deprecated text displayed on initial button */
|
|
12
13
|
tooltipInitial?: string | null;
|
|
13
|
-
/** text displayed on initial button */
|
|
14
|
-
primaryInitial
|
|
15
|
-
/** text displayed on the confirm phase */
|
|
14
|
+
/** @deprecated text displayed on initial button */
|
|
15
|
+
primaryInitial?: string;
|
|
16
|
+
/** @deprecated text displayed on the confirm phase */
|
|
16
17
|
primaryConfirm: string;
|
|
17
|
-
/** icon displayed on the initial button */
|
|
18
|
+
/** @deprecated icon displayed on the initial button */
|
|
18
19
|
iconInitial?: string;
|
|
19
|
-
/** color of the icon displayed on the initial button */
|
|
20
|
+
/** @deprecated color of the icon displayed on the initial button */
|
|
20
21
|
iconColorInitial?: string;
|
|
21
22
|
/** text displayed on confirm button */
|
|
22
23
|
primary?: string;
|
|
23
24
|
/** icon displayed on the confirm button */
|
|
24
|
-
icon?: ElementProps[
|
|
25
|
+
icon?: ElementProps["icon"];
|
|
25
26
|
/** button height */
|
|
26
|
-
tall?: ElementProps[
|
|
27
|
+
tall?: ElementProps["tall"];
|
|
28
|
+
/** variant for buttons */
|
|
29
|
+
variant: ElementProps["buttonVariant"];
|
|
27
30
|
/** color of the icon displayed on the confirm button
|
|
28
31
|
* @type string
|
|
29
32
|
*/
|
|
@@ -32,11 +35,14 @@ export type ConfirmProps<T = any> = CommonProps & {
|
|
|
32
35
|
autoClose?: boolean;
|
|
33
36
|
/** loading state on validate */
|
|
34
37
|
loading?: boolean;
|
|
35
|
-
iconLoading?: ElementProps[
|
|
38
|
+
iconLoading?: ElementProps["icon"];
|
|
36
39
|
/** action initiated on confirmation */
|
|
37
40
|
action?: Promise<T> | ((data?: T) => void);
|
|
38
|
-
/** icon to display for back action */
|
|
39
|
-
iconCancel?: ElementProps[
|
|
41
|
+
/** @deprecated icon to display for back action */
|
|
42
|
+
iconCancel?: ElementProps["icon"];
|
|
43
|
+
buttonInitial?: ButtonProps;
|
|
44
|
+
buttonConfirm?: ButtonProps;
|
|
45
|
+
buttonCancel?: ButtonProps;
|
|
40
46
|
children?: Snippet;
|
|
41
47
|
confirmInitial?: Snippet;
|
|
42
48
|
};
|
|
@@ -1,39 +1,49 @@
|
|
|
1
|
-
import { demoerArgs } from
|
|
2
|
-
import { iconSize } from
|
|
1
|
+
import { demoerArgs } from "../../base/demoer/demoer.utils.js";
|
|
2
|
+
import { buttonVariant, iconSize, tallPreset, } from "../../types/index.js";
|
|
3
3
|
export const ConfirmDemoValues = {
|
|
4
4
|
primaryInitial: {
|
|
5
|
-
type:
|
|
6
|
-
values: [
|
|
7
|
-
private: true
|
|
5
|
+
type: "string",
|
|
6
|
+
values: ["Would you please click once ?"],
|
|
7
|
+
private: true,
|
|
8
8
|
},
|
|
9
9
|
tooltipInitial: {
|
|
10
|
-
type:
|
|
11
|
-
values: [
|
|
12
|
-
private: true
|
|
10
|
+
type: "string",
|
|
11
|
+
values: ["Would you please click once ?"],
|
|
12
|
+
private: true,
|
|
13
13
|
},
|
|
14
14
|
iconInitial: {
|
|
15
|
-
type:
|
|
16
|
-
values: [
|
|
15
|
+
type: "icon",
|
|
16
|
+
values: ["fa-solid:question"],
|
|
17
17
|
},
|
|
18
18
|
iconColorInitial: {
|
|
19
|
-
type:
|
|
20
|
-
values: [
|
|
19
|
+
type: "color",
|
|
20
|
+
values: ["green", "blue", undefined],
|
|
21
21
|
},
|
|
22
22
|
primary: {
|
|
23
|
-
type:
|
|
24
|
-
values: [
|
|
23
|
+
type: "icon",
|
|
24
|
+
values: ["Confirm deletion"],
|
|
25
25
|
},
|
|
26
26
|
icon: {
|
|
27
|
-
type:
|
|
28
|
-
values: [
|
|
27
|
+
type: "icon",
|
|
28
|
+
values: ["mdi:close", undefined],
|
|
29
29
|
},
|
|
30
30
|
iconColor: {
|
|
31
|
-
type:
|
|
32
|
-
values: [
|
|
31
|
+
type: "color",
|
|
32
|
+
values: ["red", "orange", undefined],
|
|
33
33
|
},
|
|
34
34
|
iconSize: {
|
|
35
|
-
type:
|
|
36
|
-
default: iconSize.medium
|
|
37
|
-
}
|
|
35
|
+
type: "iconSize",
|
|
36
|
+
default: iconSize.medium,
|
|
37
|
+
},
|
|
38
|
+
tall: {
|
|
39
|
+
type: "tall",
|
|
40
|
+
values: Object.values(tallPreset),
|
|
41
|
+
default: tallPreset.default,
|
|
42
|
+
},
|
|
43
|
+
variant: {
|
|
44
|
+
type: "buttonVariant",
|
|
45
|
+
values: Object.values(buttonVariant),
|
|
46
|
+
default: buttonVariant.contained,
|
|
47
|
+
},
|
|
38
48
|
};
|
|
39
49
|
export let { parameters, componentArgs } = demoerArgs(ConfirmDemoValues);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './componentCite.js';
|
|
2
|
-
export * from './csss/csss.js';
|
|
3
2
|
export * as windowMinCss from './slotui-css/window.min.css';
|
|
4
3
|
export * as windowCss from './slotui-css/window.css';
|
|
5
4
|
export * as treeMinCss from './slotui-css/tree.min.css';
|
|
@@ -107,15 +106,16 @@ export * as autoCompleteMinCss from './slotui-css/auto-complete.min.css';
|
|
|
107
106
|
export * as autoCompleteCss from './slotui-css/auto-complete.css';
|
|
108
107
|
export * as alertMinCss from './slotui-css/alert.min.css';
|
|
109
108
|
export * as alertCss from './slotui-css/alert.css';
|
|
109
|
+
export * from './csss/csss.js';
|
|
110
|
+
export * from './utils/stylesheet/utils.js';
|
|
111
|
+
export * from './utils/stylesheet/types.js';
|
|
112
|
+
export { default as StyleSheet } from './utils/stylesheet/StyleSheet.svelte';
|
|
110
113
|
export * from './utils/uses/toggler.js';
|
|
111
114
|
export * from './utils/uses/positioner.js';
|
|
112
115
|
export * from './utils/uses/navigation.js';
|
|
113
116
|
export * from './utils/uses/makeOnTop.js';
|
|
114
117
|
export * from './utils/uses/event.js';
|
|
115
118
|
export * from './utils/uses/draggabler.js';
|
|
116
|
-
export * from './utils/stylesheet/utils.js';
|
|
117
|
-
export * from './utils/stylesheet/types.js';
|
|
118
|
-
export { default as StyleSheet } from './utils/stylesheet/StyleSheet.svelte';
|
|
119
119
|
export { default as Slotted } from './utils/slotted/Slotted.svelte';
|
|
120
120
|
export * from './utils/looper/types.js';
|
|
121
121
|
export { default as Looper } from './utils/looper/Looper.svelte';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// auto exports of entry components
|
|
2
2
|
export * from './componentCite.js';
|
|
3
|
-
export * from './csss/csss.js';
|
|
4
3
|
export * as windowMinCss from './slotui-css/window.min.css';
|
|
5
4
|
export * as windowCss from './slotui-css/window.css';
|
|
6
5
|
export * as treeMinCss from './slotui-css/tree.min.css';
|
|
@@ -108,15 +107,16 @@ export * as autoCompleteMinCss from './slotui-css/auto-complete.min.css';
|
|
|
108
107
|
export * as autoCompleteCss from './slotui-css/auto-complete.css';
|
|
109
108
|
export * as alertMinCss from './slotui-css/alert.min.css';
|
|
110
109
|
export * as alertCss from './slotui-css/alert.css';
|
|
110
|
+
export * from './csss/csss.js';
|
|
111
|
+
export * from './utils/stylesheet/utils.js';
|
|
112
|
+
export * from './utils/stylesheet/types.js';
|
|
113
|
+
export { default as StyleSheet } from './utils/stylesheet/StyleSheet.svelte';
|
|
111
114
|
export * from './utils/uses/toggler.js';
|
|
112
115
|
export * from './utils/uses/positioner.js';
|
|
113
116
|
export * from './utils/uses/navigation.js';
|
|
114
117
|
export * from './utils/uses/makeOnTop.js';
|
|
115
118
|
export * from './utils/uses/event.js';
|
|
116
119
|
export * from './utils/uses/draggabler.js';
|
|
117
|
-
export * from './utils/stylesheet/utils.js';
|
|
118
|
-
export * from './utils/stylesheet/types.js';
|
|
119
|
-
export { default as StyleSheet } from './utils/stylesheet/StyleSheet.svelte';
|
|
120
120
|
export { default as Slotted } from './utils/slotted/Slotted.svelte';
|
|
121
121
|
export * from './utils/looper/types.js';
|
|
122
122
|
export { default as Looper } from './utils/looper/Looper.svelte';
|
|
@@ -44,9 +44,30 @@
|
|
|
44
44
|
transition: all 0.2s ease-in-out;
|
|
45
45
|
overflow: hidden;
|
|
46
46
|
cursor: pointer;
|
|
47
|
-
align-content:
|
|
48
|
-
align-items:
|
|
47
|
+
align-content: center;
|
|
48
|
+
align-items: center;
|
|
49
49
|
background: var(--sld-button-background);
|
|
50
|
+
/* :focus {
|
|
51
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
52
|
+
outline-offset: 2px;
|
|
53
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
54
|
+
}
|
|
55
|
+
:focus-visible {
|
|
56
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
57
|
+
outline-offset: -2px;
|
|
58
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
59
|
+
}
|
|
60
|
+
:hover {
|
|
61
|
+
background-color: var(--sld-button-hover-background);
|
|
62
|
+
box-shadow: var(--sld-button-hover-shadow);
|
|
63
|
+
}
|
|
64
|
+
:active {
|
|
65
|
+
transform: translateY(1px);
|
|
66
|
+
box-shadow: var(--sld-button-active-shadow);
|
|
67
|
+
}
|
|
68
|
+
:focus:not(:focus-visible) {
|
|
69
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
70
|
+
} */
|
|
50
71
|
--preset-width: var(--sld-width-small);
|
|
51
72
|
width: var(--preset-width-small);
|
|
52
73
|
}
|
|
@@ -305,47 +326,6 @@
|
|
|
305
326
|
:global(input[type="submit"])[elevation-5] {
|
|
306
327
|
box-shadow: var(--sld-elevation-5);
|
|
307
328
|
}
|
|
308
|
-
:global(button) :focus,
|
|
309
|
-
:global(.button) :focus,
|
|
310
|
-
:global(button.button) :focus,
|
|
311
|
-
:global(input[type="button"]) :focus,
|
|
312
|
-
:global(input[type="submit"]) :focus {
|
|
313
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
314
|
-
outline-offset: 2px;
|
|
315
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
316
|
-
}
|
|
317
|
-
:global(button) :focus-visible,
|
|
318
|
-
:global(.button) :focus-visible,
|
|
319
|
-
:global(button.button) :focus-visible,
|
|
320
|
-
:global(input[type="button"]) :focus-visible,
|
|
321
|
-
:global(input[type="submit"]) :focus-visible {
|
|
322
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
323
|
-
outline-offset: -2px;
|
|
324
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
325
|
-
}
|
|
326
|
-
:global(button) :hover,
|
|
327
|
-
:global(.button) :hover,
|
|
328
|
-
:global(button.button) :hover,
|
|
329
|
-
:global(input[type="button"]) :hover,
|
|
330
|
-
:global(input[type="submit"]) :hover {
|
|
331
|
-
background-color: var(--sld-button-hover-background);
|
|
332
|
-
box-shadow: var(--sld-button-hover-shadow);
|
|
333
|
-
}
|
|
334
|
-
:global(button) :active,
|
|
335
|
-
:global(.button) :active,
|
|
336
|
-
:global(button.button) :active,
|
|
337
|
-
:global(input[type="button"]) :active,
|
|
338
|
-
:global(input[type="submit"]) :active {
|
|
339
|
-
transform: translateY(1px);
|
|
340
|
-
box-shadow: var(--sld-button-active-shadow);
|
|
341
|
-
}
|
|
342
|
-
:global(button) :focus:not(:focus-visible),
|
|
343
|
-
:global(.button) :focus:not(:focus-visible),
|
|
344
|
-
:global(button.button) :focus:not(:focus-visible),
|
|
345
|
-
:global(input[type="button"]) :focus:not(:focus-visible),
|
|
346
|
-
:global(input[type="submit"]) :focus:not(:focus-visible) {
|
|
347
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
348
|
-
}
|
|
349
329
|
:global(button) .button-start,
|
|
350
330
|
:global(.button) .button-start,
|
|
351
331
|
:global(button.button) .button-start,
|
|
@@ -357,7 +337,7 @@
|
|
|
357
337
|
max-height: 100%;
|
|
358
338
|
align-items: center;
|
|
359
339
|
align-content: center;
|
|
360
|
-
padding: 0 0.
|
|
340
|
+
padding: 0 0.5rem;
|
|
361
341
|
display: block;
|
|
362
342
|
}
|
|
363
343
|
:global(button) .button-start:empty,
|
|
@@ -373,13 +353,18 @@
|
|
|
373
353
|
:global(input[type="button"]) .button-central,
|
|
374
354
|
:global(input[type="submit"]) .button-central {
|
|
375
355
|
--preset-ellipsis-line: 1;
|
|
356
|
+
display: block;
|
|
376
357
|
max-width: 100%;
|
|
377
358
|
max-height: 100%;
|
|
378
359
|
flex: 1;
|
|
379
360
|
align-items: center;
|
|
380
361
|
align-content: center;
|
|
381
|
-
|
|
362
|
+
justify-content: center;
|
|
363
|
+
justify-items: center;
|
|
364
|
+
padding-left: 0.25rem;
|
|
365
|
+
padding-right: 0.25rem;
|
|
382
366
|
text-align: var(--sld-button-text-align, center);
|
|
367
|
+
overflow: hidden;
|
|
383
368
|
}
|
|
384
369
|
:global(button) .button-central[ellipsis], :global(button) .button-central.ellipsis,
|
|
385
370
|
:global(.button) .button-central[ellipsis],
|
|
@@ -44,9 +44,30 @@
|
|
|
44
44
|
transition: all 0.2s ease-in-out;
|
|
45
45
|
overflow: hidden;
|
|
46
46
|
cursor: pointer;
|
|
47
|
-
align-content:
|
|
48
|
-
align-items:
|
|
47
|
+
align-content: center;
|
|
48
|
+
align-items: center;
|
|
49
49
|
background: var(--sld-button-background);
|
|
50
|
+
/* :focus {
|
|
51
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
52
|
+
outline-offset: 2px;
|
|
53
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
54
|
+
}
|
|
55
|
+
:focus-visible {
|
|
56
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
57
|
+
outline-offset: -2px;
|
|
58
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
59
|
+
}
|
|
60
|
+
:hover {
|
|
61
|
+
background-color: var(--sld-button-hover-background);
|
|
62
|
+
box-shadow: var(--sld-button-hover-shadow);
|
|
63
|
+
}
|
|
64
|
+
:active {
|
|
65
|
+
transform: translateY(1px);
|
|
66
|
+
box-shadow: var(--sld-button-active-shadow);
|
|
67
|
+
}
|
|
68
|
+
:focus:not(:focus-visible) {
|
|
69
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
70
|
+
} */
|
|
50
71
|
--preset-width: var(--sld-width-small);
|
|
51
72
|
width: var(--preset-width-small);
|
|
52
73
|
}
|
|
@@ -305,47 +326,6 @@
|
|
|
305
326
|
:global(input[type="submit"])[elevation-5] {
|
|
306
327
|
box-shadow: var(--sld-elevation-5);
|
|
307
328
|
}
|
|
308
|
-
:global(button) :focus,
|
|
309
|
-
:global(.button) :focus,
|
|
310
|
-
:global(button.button) :focus,
|
|
311
|
-
:global(input[type="button"]) :focus,
|
|
312
|
-
:global(input[type="submit"]) :focus {
|
|
313
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
314
|
-
outline-offset: 2px;
|
|
315
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
316
|
-
}
|
|
317
|
-
:global(button) :focus-visible,
|
|
318
|
-
:global(.button) :focus-visible,
|
|
319
|
-
:global(button.button) :focus-visible,
|
|
320
|
-
:global(input[type="button"]) :focus-visible,
|
|
321
|
-
:global(input[type="submit"]) :focus-visible {
|
|
322
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
323
|
-
outline-offset: -2px;
|
|
324
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
325
|
-
}
|
|
326
|
-
:global(button) :hover,
|
|
327
|
-
:global(.button) :hover,
|
|
328
|
-
:global(button.button) :hover,
|
|
329
|
-
:global(input[type="button"]) :hover,
|
|
330
|
-
:global(input[type="submit"]) :hover {
|
|
331
|
-
background-color: var(--sld-button-hover-background);
|
|
332
|
-
box-shadow: var(--sld-button-hover-shadow);
|
|
333
|
-
}
|
|
334
|
-
:global(button) :active,
|
|
335
|
-
:global(.button) :active,
|
|
336
|
-
:global(button.button) :active,
|
|
337
|
-
:global(input[type="button"]) :active,
|
|
338
|
-
:global(input[type="submit"]) :active {
|
|
339
|
-
transform: translateY(1px);
|
|
340
|
-
box-shadow: var(--sld-button-active-shadow);
|
|
341
|
-
}
|
|
342
|
-
:global(button) :focus:not(:focus-visible),
|
|
343
|
-
:global(.button) :focus:not(:focus-visible),
|
|
344
|
-
:global(button.button) :focus:not(:focus-visible),
|
|
345
|
-
:global(input[type="button"]) :focus:not(:focus-visible),
|
|
346
|
-
:global(input[type="submit"]) :focus:not(:focus-visible) {
|
|
347
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
348
|
-
}
|
|
349
329
|
:global(button) .button-start,
|
|
350
330
|
:global(.button) .button-start,
|
|
351
331
|
:global(button.button) .button-start,
|
|
@@ -357,7 +337,7 @@
|
|
|
357
337
|
max-height: 100%;
|
|
358
338
|
align-items: center;
|
|
359
339
|
align-content: center;
|
|
360
|
-
padding: 0 0.
|
|
340
|
+
padding: 0 0.5rem;
|
|
361
341
|
display: block;
|
|
362
342
|
}
|
|
363
343
|
:global(button) .button-start:empty,
|
|
@@ -373,13 +353,18 @@
|
|
|
373
353
|
:global(input[type="button"]) .button-central,
|
|
374
354
|
:global(input[type="submit"]) .button-central {
|
|
375
355
|
--preset-ellipsis-line: 1;
|
|
356
|
+
display: block;
|
|
376
357
|
max-width: 100%;
|
|
377
358
|
max-height: 100%;
|
|
378
359
|
flex: 1;
|
|
379
360
|
align-items: center;
|
|
380
361
|
align-content: center;
|
|
381
|
-
|
|
362
|
+
justify-content: center;
|
|
363
|
+
justify-items: center;
|
|
364
|
+
padding-left: 0.25rem;
|
|
365
|
+
padding-right: 0.25rem;
|
|
382
366
|
text-align: var(--sld-button-text-align, center);
|
|
367
|
+
overflow: hidden;
|
|
383
368
|
}
|
|
384
369
|
:global(button) .button-central[ellipsis], :global(button) .button-central.ellipsis,
|
|
385
370
|
:global(.button) .button-central[ellipsis],
|
|
@@ -3247,9 +3247,9 @@ label {
|
|
|
3247
3247
|
|
|
3248
3248
|
/** confirm.scss ----------------*/
|
|
3249
3249
|
.confirm {
|
|
3250
|
-
display: contents;
|
|
3251
3250
|
display: flex;
|
|
3252
3251
|
align-items: center;
|
|
3252
|
+
gap: 0.5rem;
|
|
3253
3253
|
}
|
|
3254
3254
|
.confirm-validate {
|
|
3255
3255
|
display: flex;
|
|
@@ -3428,9 +3428,30 @@ label {
|
|
|
3428
3428
|
transition: all 0.2s ease-in-out;
|
|
3429
3429
|
overflow: hidden;
|
|
3430
3430
|
cursor: pointer;
|
|
3431
|
-
align-content:
|
|
3432
|
-
align-items:
|
|
3431
|
+
align-content: center;
|
|
3432
|
+
align-items: center;
|
|
3433
3433
|
background: var(--sld-button-background);
|
|
3434
|
+
/* :focus {
|
|
3435
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
3436
|
+
outline-offset: 2px;
|
|
3437
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
3438
|
+
}
|
|
3439
|
+
:focus-visible {
|
|
3440
|
+
outline: 1px solid var(--sld-button-focus-border-color);
|
|
3441
|
+
outline-offset: -2px;
|
|
3442
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
3443
|
+
}
|
|
3444
|
+
:hover {
|
|
3445
|
+
background-color: var(--sld-button-hover-background);
|
|
3446
|
+
box-shadow: var(--sld-button-hover-shadow);
|
|
3447
|
+
}
|
|
3448
|
+
:active {
|
|
3449
|
+
transform: translateY(1px);
|
|
3450
|
+
box-shadow: var(--sld-button-active-shadow);
|
|
3451
|
+
}
|
|
3452
|
+
:focus:not(:focus-visible) {
|
|
3453
|
+
box-shadow: var(--sld-button-focus-shadow);
|
|
3454
|
+
} */
|
|
3434
3455
|
--preset-width: var(--sld-width-small);
|
|
3435
3456
|
width: var(--preset-width-small);
|
|
3436
3457
|
}
|
|
@@ -3689,47 +3710,6 @@ label {
|
|
|
3689
3710
|
:global(input[type="submit"])[elevation-5] {
|
|
3690
3711
|
box-shadow: var(--sld-elevation-5);
|
|
3691
3712
|
}
|
|
3692
|
-
:global(button) :focus,
|
|
3693
|
-
:global(.button) :focus,
|
|
3694
|
-
:global(button.button) :focus,
|
|
3695
|
-
:global(input[type="button"]) :focus,
|
|
3696
|
-
:global(input[type="submit"]) :focus {
|
|
3697
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
3698
|
-
outline-offset: 2px;
|
|
3699
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
3700
|
-
}
|
|
3701
|
-
:global(button) :focus-visible,
|
|
3702
|
-
:global(.button) :focus-visible,
|
|
3703
|
-
:global(button.button) :focus-visible,
|
|
3704
|
-
:global(input[type="button"]) :focus-visible,
|
|
3705
|
-
:global(input[type="submit"]) :focus-visible {
|
|
3706
|
-
outline: 1px solid var(--sld-button-focus-border-color);
|
|
3707
|
-
outline-offset: -2px;
|
|
3708
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
3709
|
-
}
|
|
3710
|
-
:global(button) :hover,
|
|
3711
|
-
:global(.button) :hover,
|
|
3712
|
-
:global(button.button) :hover,
|
|
3713
|
-
:global(input[type="button"]) :hover,
|
|
3714
|
-
:global(input[type="submit"]) :hover {
|
|
3715
|
-
background-color: var(--sld-button-hover-background);
|
|
3716
|
-
box-shadow: var(--sld-button-hover-shadow);
|
|
3717
|
-
}
|
|
3718
|
-
:global(button) :active,
|
|
3719
|
-
:global(.button) :active,
|
|
3720
|
-
:global(button.button) :active,
|
|
3721
|
-
:global(input[type="button"]) :active,
|
|
3722
|
-
:global(input[type="submit"]) :active {
|
|
3723
|
-
transform: translateY(1px);
|
|
3724
|
-
box-shadow: var(--sld-button-active-shadow);
|
|
3725
|
-
}
|
|
3726
|
-
:global(button) :focus:not(:focus-visible),
|
|
3727
|
-
:global(.button) :focus:not(:focus-visible),
|
|
3728
|
-
:global(button.button) :focus:not(:focus-visible),
|
|
3729
|
-
:global(input[type="button"]) :focus:not(:focus-visible),
|
|
3730
|
-
:global(input[type="submit"]) :focus:not(:focus-visible) {
|
|
3731
|
-
box-shadow: var(--sld-button-focus-shadow);
|
|
3732
|
-
}
|
|
3733
3713
|
:global(button) .button-start,
|
|
3734
3714
|
:global(.button) .button-start,
|
|
3735
3715
|
:global(button.button) .button-start,
|
|
@@ -3741,7 +3721,7 @@ label {
|
|
|
3741
3721
|
max-height: 100%;
|
|
3742
3722
|
align-items: center;
|
|
3743
3723
|
align-content: center;
|
|
3744
|
-
padding: 0 0.
|
|
3724
|
+
padding: 0 0.5rem;
|
|
3745
3725
|
display: block;
|
|
3746
3726
|
}
|
|
3747
3727
|
:global(button) .button-start:empty,
|
|
@@ -3757,13 +3737,18 @@ label {
|
|
|
3757
3737
|
:global(input[type="button"]) .button-central,
|
|
3758
3738
|
:global(input[type="submit"]) .button-central {
|
|
3759
3739
|
--preset-ellipsis-line: 1;
|
|
3740
|
+
display: block;
|
|
3760
3741
|
max-width: 100%;
|
|
3761
3742
|
max-height: 100%;
|
|
3762
3743
|
flex: 1;
|
|
3763
3744
|
align-items: center;
|
|
3764
3745
|
align-content: center;
|
|
3765
|
-
|
|
3746
|
+
justify-content: center;
|
|
3747
|
+
justify-items: center;
|
|
3748
|
+
padding-left: 0.25rem;
|
|
3749
|
+
padding-right: 0.25rem;
|
|
3766
3750
|
text-align: var(--sld-button-text-align, center);
|
|
3751
|
+
overflow: hidden;
|
|
3767
3752
|
}
|
|
3768
3753
|
:global(button) .button-central[ellipsis], :global(button) .button-central.ellipsis,
|
|
3769
3754
|
:global(.button) .button-central[ellipsis],
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ChromeFrameArgs, IChromeOptionsFrameArgs } from './types.js';
|
|
2
|
+
export type WindowStoreListType = Map<string | number, ChromeFrameArgs>;
|
|
3
|
+
/** used as a reference */
|
|
4
|
+
export declare const windowListObjects: Map<string | number, ChromeFrameArgs<Record<string, any>>>;
|
|
5
|
+
/** active frameId */
|
|
6
|
+
export declare const activeFrame: import("svelte/store").Writable<string | number>;
|
|
7
|
+
/** host the generic configuration */
|
|
8
|
+
export declare const chromeFrameConfigStore: import("svelte/store").Writable<IChromeOptionsFrameArgs>;
|
|
9
|
+
/** host the chromeFrame list */
|
|
10
|
+
export declare const chromeFrameListStore: import("svelte/store").Writable<WindowStoreListType>;
|
|
11
|
+
export declare const chromeFrameStore: {
|
|
12
|
+
subscribe: {
|
|
13
|
+
(this: void, run: import("svelte/store").Subscriber<WindowStoreListType>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
14
|
+
(this: void, run: import("svelte/store").Subscriber<WindowStoreListType>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
15
|
+
};
|
|
16
|
+
activeFrame: import("svelte/store").Writable<string | number>;
|
|
17
|
+
defaultConfigStore: import("svelte/store").Writable<IChromeOptionsFrameArgs>;
|
|
18
|
+
create: (payload: ChromeFrameArgs) => void;
|
|
19
|
+
open: (payload: ChromeFrameArgs) => void;
|
|
20
|
+
close: (frameId: string | number) => void;
|
|
21
|
+
minimize: (frameId: string | number) => void;
|
|
22
|
+
toggle: (frameId: string | number) => void;
|
|
23
|
+
remove: (frameId: string | number) => void;
|
|
24
|
+
updatePos: (frameId: string | number, position: ChromeFrameArgs["position"]) => void;
|
|
25
|
+
makeOnTop: (frameId: string | number) => void;
|
|
26
|
+
reset: () => void;
|
|
27
|
+
};
|
|
28
|
+
export declare const chromeFrameListRef: Record<string, any>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { ChromeFrameArgs } from './types.js';
|
|
2
2
|
export declare function getChromeFrame(frameId: string | number): {
|
|
3
|
-
subscribe:
|
|
3
|
+
subscribe: {
|
|
4
|
+
(this: void, run: import("svelte/store").Subscriber<ChromeFrameArgs<Record<string, any>> | undefined>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
5
|
+
(this: void, run: import("svelte/store").Subscriber<ChromeFrameArgs<Record<string, any>> | undefined>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
6
|
+
};
|
|
4
7
|
updatePos: (position: ChromeFrameArgs["position"]) => void;
|
|
5
8
|
remove: () => void;
|
|
6
9
|
makeOnTop: () => void;
|
|
@@ -5,8 +5,14 @@ export interface Wstore {
|
|
|
5
5
|
activatedFrame?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const wStore: {
|
|
8
|
-
subscribe:
|
|
9
|
-
|
|
8
|
+
subscribe: {
|
|
9
|
+
(this: void, run: import("svelte/store").Subscriber<Wstore>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
10
|
+
(this: void, run: import("svelte/store").Subscriber<Wstore>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
11
|
+
};
|
|
12
|
+
set: {
|
|
13
|
+
(this: void, value: Wstore): void;
|
|
14
|
+
(this: void, value: Wstore): void;
|
|
15
|
+
};
|
|
10
16
|
get: typeof get;
|
|
11
17
|
create: (payload: any) => void;
|
|
12
18
|
open: (payload: any) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medyll/idae-slotui-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"scope": "@medyll",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@medyll/idae-prettier-config": "^1.1.0",
|
|
41
41
|
"@playwright/test": "^1.45.3",
|
|
42
42
|
"@sveltejs/adapter-auto": "^3.2.2",
|
|
43
|
-
"@sveltejs/kit": "^2.5.
|
|
43
|
+
"@sveltejs/kit": "^2.5.28",
|
|
44
44
|
"@sveltejs/package": "^2.3.2",
|
|
45
45
|
"@sveltejs/vite-plugin-svelte": "^3.1.1",
|
|
46
46
|
"@types/eslint": "9.6.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"rimraf": "^6.0.1",
|
|
74
74
|
"sass": "^1.77.8",
|
|
75
75
|
"sveld": "^0.20.0",
|
|
76
|
-
"svelte": "^5.0.0-next.
|
|
76
|
+
"svelte": "^5.0.0-next.257",
|
|
77
77
|
"svelte-check": "^3.8.5",
|
|
78
78
|
"svelte2tsx": "^0.7.15",
|
|
79
79
|
"tslib": "^2.6.3",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@iconify/svelte": "^4.0.2",
|
|
89
89
|
"@medyll/cssfabric": "^0.4.2",
|
|
90
|
-
"@medyll/idae-be": "^0.
|
|
91
|
-
"@medyll/idae-engine": "^1.
|
|
90
|
+
"@medyll/idae-be": "^0.38.0",
|
|
91
|
+
"@medyll/idae-engine": "^1.36.0",
|
|
92
92
|
"d3": "^7.9.0",
|
|
93
93
|
"lerna": "^8.1.8",
|
|
94
94
|
"npm-check-updates": "^17.0.2",
|
|
@@ -97,4 +97,4 @@
|
|
|
97
97
|
"svelte-preprocess": "^6.0.2",
|
|
98
98
|
"svelte-spa-router": "^4.0.1"
|
|
99
99
|
}
|
|
100
|
-
}
|
|
100
|
+
}
|