@ticatec/uniface-element 0.1.33 → 0.1.35
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-calendar/CalendarBase.svelte +2 -2
- package/dist/base-calendar/YearPickupPanel.svelte +2 -2
- package/dist/box/Box.svelte +3 -3
- package/dist/box/Box.svelte.d.ts +1 -2
- package/dist/form-field/FormField.svelte +1 -2
- package/dist/form-field/FormField.svelte.d.ts +1 -1
- package/dist/form-panel/flex-form/CellField.svelte +1 -1
- package/dist/form-panel/flex-form/CellField.svelte.d.ts +1 -1
- package/dist/list-box/ListBox.svelte +21 -18
- package/dist/list-box/ListBox.svelte.d.ts +1 -3
- package/dist/options-select/OptionsSelect.svelte +0 -2
- package/dist/tabs/Tabs.svelte +6 -5
- package/dist/tabs/Tabs.svelte.d.ts +0 -3
- package/dist/ticatec-uniface-web.css +21 -16
- package/package.json +5 -1
|
@@ -93,14 +93,14 @@
|
|
|
93
93
|
<div>
|
|
94
94
|
<div class="uniface-title-bar">
|
|
95
95
|
<div class="action-icon" on:click={adjustMonth(-1)} aria-hidden="true">
|
|
96
|
-
<i class="
|
|
96
|
+
<i class="icon_google_keyboard_arrow_left"></i>
|
|
97
97
|
</div>
|
|
98
98
|
<div style="flex: 1 1 auto; text-align: center">
|
|
99
99
|
<span class="title-text" on:click={pickupYear} aria-hidden="true">{year}</span>
|
|
100
100
|
<span class="title-text" on:click={pickupMonth} aria-hidden="true">{month + 1}</span>
|
|
101
101
|
</div>
|
|
102
102
|
<div class="action-icon" on:click={adjustMonth(1)} aria-hidden="true">
|
|
103
|
-
<i class="
|
|
103
|
+
<i class="icon_google_keyboard_arrow_right"></i>
|
|
104
104
|
</div>
|
|
105
105
|
</div>
|
|
106
106
|
<div style="flex: 1 1 auto; overflow: hidden">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<div>
|
|
34
34
|
<div style="text-align: center">
|
|
35
35
|
<div style="display: inline-block; width: 30px; height: 10px; padding: 6px 0">
|
|
36
|
-
<i class="
|
|
36
|
+
<i class="icon_google_keyboard_arrow_up" on:click={showYears(-years)}></i>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
<div style="display: grid; grid-template-columns: auto auto auto auto; width: 100%; overflow: hidden">
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
<div style="text-align: center">
|
|
47
47
|
<div style="display: inline-block; width: 30px; height: 10px; padding: 6px 0">
|
|
48
|
-
<i class="
|
|
48
|
+
<i class="icon_google_keyboard_arrow_down" on:click={showYears(years)}></i>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
package/dist/box/Box.svelte
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
|
|
3
|
-
export let style: string =
|
|
3
|
+
export let style: string | null = null;
|
|
4
4
|
export let title: string = null as unknown as string;
|
|
5
5
|
export let round: boolean = false;
|
|
6
6
|
export let content$style: string | null = null;
|
|
7
7
|
export let header$style: string | null = null;
|
|
8
8
|
export let footer$style: string | null = null;
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
export {className as class};
|
|
11
11
|
|
|
12
12
|
let className: string | null = null;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<slot></slot>
|
|
29
29
|
</div>
|
|
30
30
|
{#if $$slots['footer']}
|
|
31
|
-
<div class="box-footer flex-container" style="{footer$style};
|
|
31
|
+
<div class="box-footer flex-container" style="{footer$style};">
|
|
32
32
|
<slot name="footer">
|
|
33
33
|
</slot>
|
|
34
34
|
</div>
|
package/dist/box/Box.svelte.d.ts
CHANGED
|
@@ -17,13 +17,12 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
17
17
|
children?: any;
|
|
18
18
|
} : {});
|
|
19
19
|
declare const Box: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
|
-
style?: string;
|
|
20
|
+
style?: string | null;
|
|
21
21
|
title?: string;
|
|
22
22
|
round?: boolean;
|
|
23
23
|
content$style?: string | null;
|
|
24
24
|
header$style?: string | null;
|
|
25
25
|
footer$style?: string | null;
|
|
26
|
-
showFooter?: boolean;
|
|
27
26
|
class?: null;
|
|
28
27
|
}, {
|
|
29
28
|
header: {};
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
export let style: string = '';
|
|
8
8
|
export let label$style: string | null = null;
|
|
9
9
|
export let required: boolean = false;
|
|
10
|
-
export let error: string =
|
|
10
|
+
export let error: string | null = null;
|
|
11
11
|
export let arrangement: 'vertical' | 'horizontal' = 'vertical';
|
|
12
12
|
export let labelSuffix: string = ':';
|
|
13
|
-
|
|
14
13
|
export let label$alignment: 'center' | 'top' = 'center'
|
|
15
14
|
|
|
16
15
|
let className: string = '';
|
|
@@ -22,7 +22,7 @@ declare const FormField: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_Props
|
|
|
22
22
|
style?: string;
|
|
23
23
|
label$style?: string | null;
|
|
24
24
|
required?: boolean;
|
|
25
|
-
error?: string;
|
|
25
|
+
error?: string | null;
|
|
26
26
|
arrangement?: "vertical" | "horizontal";
|
|
27
27
|
labelSuffix?: string;
|
|
28
28
|
label$alignment?: "center" | "top";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
export let style: string = '';
|
|
8
8
|
export let label$style: string = '';
|
|
9
9
|
export let required: boolean = false;
|
|
10
|
-
export let error: string = null;
|
|
10
|
+
export let error: string | null = null;
|
|
11
11
|
export let arrangement: 'vertical' | 'horizontal' = 'vertical' ;
|
|
12
12
|
export let labelSuffix: string = ':';
|
|
13
13
|
|
|
@@ -22,7 +22,7 @@ declare const CellField: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_Props
|
|
|
22
22
|
style?: string;
|
|
23
23
|
label$style?: string;
|
|
24
24
|
required?: boolean;
|
|
25
|
-
error?: string;
|
|
25
|
+
error?: string | null;
|
|
26
26
|
arrangement?: "vertical" | "horizontal";
|
|
27
27
|
labelSuffix?: string;
|
|
28
28
|
}, {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
let idleTime = 0;
|
|
92
92
|
const delayReload = async () => {
|
|
93
|
-
idleTime
|
|
93
|
+
idleTime++;
|
|
94
94
|
if (idleTime > 10) {
|
|
95
95
|
clearInterval(interval);
|
|
96
96
|
interval = null;
|
|
@@ -167,22 +167,20 @@
|
|
|
167
167
|
|
|
168
168
|
</script>
|
|
169
169
|
|
|
170
|
-
<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
<div class="title">
|
|
176
|
-
<span>{title}</span>
|
|
177
|
-
</div>
|
|
178
|
-
</slot>
|
|
179
|
-
{/if}
|
|
180
|
-
{#if readonly === false && (filter || lazyLoader)}
|
|
181
|
-
<div class="header-search">
|
|
182
|
-
<SearchBox bind:this={searchBox} compact variant="plain" disabled={isBusy} style="width: 100%" bind:value={filterText} onChange={handleCriteriaChange}/>
|
|
170
|
+
<div {style} class="uniface-box {className}" class:round>
|
|
171
|
+
{#if title || $$slots['header']}
|
|
172
|
+
<slot name="header">
|
|
173
|
+
<div class="title" style={boxHeaderStyle}>
|
|
174
|
+
<span>{title}</span>
|
|
183
175
|
</div>
|
|
184
|
-
|
|
185
|
-
|
|
176
|
+
</slot>
|
|
177
|
+
{/if}
|
|
178
|
+
{#if readonly === false && (filter || lazyLoader)}
|
|
179
|
+
<div class="header-search">
|
|
180
|
+
<SearchBox bind:this={searchBox} compact variant="plain" disabled={isBusy} style="width: 100%" bind:value={filterText}
|
|
181
|
+
onChange={handleCriteriaChange}/>
|
|
182
|
+
</div>
|
|
183
|
+
{/if}
|
|
186
184
|
<div class="listbox-content" class:selectable={selectMode==='single'} bind:this={scrollElement} on:scroll={handleScroll}>
|
|
187
185
|
{#if filteredList && itemRender}
|
|
188
186
|
{#each filteredList as item}
|
|
@@ -207,7 +205,12 @@
|
|
|
207
205
|
<slot name="loadMoreIndicator"></slot>
|
|
208
206
|
{/if}
|
|
209
207
|
</div>
|
|
210
|
-
|
|
208
|
+
{#if $$slots['footer']}
|
|
209
|
+
<div class="box-footer flex-container" style="{footer$style};">
|
|
210
|
+
<slot name="footer">
|
|
211
|
+
</slot>
|
|
212
|
+
</div>
|
|
213
|
+
{/if}
|
|
211
214
|
{#if isBusy}
|
|
212
215
|
<div class="list-view-mask">
|
|
213
216
|
<div style="height: 100%; height: 100%; text-align: center">
|
|
@@ -215,4 +218,4 @@
|
|
|
215
218
|
</div>
|
|
216
219
|
</div>
|
|
217
220
|
{/if}
|
|
218
|
-
</
|
|
221
|
+
</div>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import {DisplayMode} from "../common/DisplayMode";
|
|
5
4
|
import type {OnChangeHandler} from "../common/OnChangeHandler";
|
|
6
5
|
import CommonPicker from "../common/CommonPicker.svelte";
|
|
7
6
|
|
|
8
|
-
|
|
9
7
|
export let variant: '' | 'plain' | 'outlined' | 'filled' = '';
|
|
10
8
|
export let disabled: boolean = false;
|
|
11
9
|
export let readonly: boolean = false;
|
package/dist/tabs/Tabs.svelte
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
export let tabs: Array<any> = [];
|
|
15
15
|
export let closable: boolean | TabActionHandler = false;
|
|
16
16
|
export let activeTab: any = null;
|
|
17
|
-
export let refreshable: boolean = false;
|
|
18
17
|
export let tabRender: TabRender = null as unknown as TabRender;
|
|
19
18
|
export let reloadHandler: TabActionHandler = null as unknown as TabActionHandler;
|
|
20
19
|
export let closeHandler: TabCloseHandler = null as unknown as TabCloseHandler;
|
|
@@ -115,17 +114,19 @@
|
|
|
115
114
|
<div>
|
|
116
115
|
<div class="uniface-tabs-wrap" class:simple>
|
|
117
116
|
<div class="scroll-left" style="visibility: {showLeft ? 'visible' : 'hidden'}">
|
|
118
|
-
<i class="
|
|
117
|
+
<i class="icon_google_arrow_left" aria-hidden="true" on:click={() => scroll(-1)}></i>
|
|
119
118
|
</div>
|
|
120
119
|
<div class="tabs-panel" style="overflow: hidden;">
|
|
121
120
|
<div style="position: relative; left: {-scrollX.current}px" bind:this={container}>
|
|
122
121
|
{#each tabs as tab}
|
|
123
122
|
<div class="uniface-tab" class:active={tab===activeTab} on:click={handleTabClick(tab)} aria-hidden="true">
|
|
124
123
|
{#if tabRender != null}
|
|
125
|
-
<svelte:component this={tabRender} {tab} {
|
|
124
|
+
<svelte:component this={tabRender} {tab} closeTab={closeHandler != null ? closeTab(tab) : null}
|
|
125
|
+
reloadTab={reloadHandler != null ? reloadTab(tab) : null}
|
|
126
|
+
closable={closable === true || (typeof (closable) == "function" && closable(tab))} />
|
|
126
127
|
{:else}
|
|
127
128
|
<span>{tab[textField]}</span>
|
|
128
|
-
{#if
|
|
129
|
+
{#if reloadHandler != null}
|
|
129
130
|
<i class="icon_google_refresh tab-refresh" on:click={reloadTab(tab)} aria-hidden="true"></i>
|
|
130
131
|
{/if}
|
|
131
132
|
{#if closable === true || (typeof (closable) == "function" && closable(tab))}
|
|
@@ -137,7 +138,7 @@
|
|
|
137
138
|
</div>
|
|
138
139
|
</div>
|
|
139
140
|
<div class="scroll-right" style="visibility: {showRight ? 'visible' : 'hidden'}">
|
|
140
|
-
<i class="
|
|
141
|
+
<i class="icon_google_arrow_right" aria-hidden="true" on:click={() => scroll(1)}></i>
|
|
141
142
|
</div>
|
|
142
143
|
</div>
|
|
143
144
|
<div class="tab-content" style="flex: 1 1 auto; height: 100%; overflow: hidden">
|
|
@@ -25,15 +25,12 @@ declare const Tabs: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithC
|
|
|
25
25
|
tabs?: Array<any>;
|
|
26
26
|
closable?: boolean | TabActionHandler;
|
|
27
27
|
activeTab?: any;
|
|
28
|
-
refreshable?: boolean;
|
|
29
28
|
tabRender?: TabRender;
|
|
30
29
|
reloadHandler?: TabActionHandler;
|
|
31
30
|
closeHandler?: TabCloseHandler;
|
|
32
31
|
}, {
|
|
33
32
|
default: {};
|
|
34
33
|
}>, {
|
|
35
|
-
reload: any;
|
|
36
|
-
} & {
|
|
37
34
|
[evt: string]: CustomEvent<any>;
|
|
38
35
|
}, {
|
|
39
36
|
default: {};
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
.uniface-group-box {
|
|
354
|
-
border-bottom: 1px solid var(--uniface-border-color
|
|
354
|
+
border-bottom: 1px solid var(--uniface-editor-border-color);
|
|
355
355
|
padding: var(--uniface-box-padding, 0 4px);
|
|
356
356
|
width: 100%;
|
|
357
357
|
box-sizing: border-box;
|
|
@@ -363,28 +363,32 @@
|
|
|
363
363
|
}
|
|
364
364
|
.uniface-group-box:focus-within, .uniface-group-box:focus, .uniface-group-box:active {
|
|
365
365
|
outline: none;
|
|
366
|
-
border-bottom-color: var(--uniface-active-border-color
|
|
366
|
+
border-bottom-color: var(--uniface-active-border-color);
|
|
367
|
+
}
|
|
368
|
+
.uniface-group-box.filled {
|
|
369
|
+
border-top-right-radius: var(--uniface-field-round, 4px);
|
|
370
|
+
border-top-left-radius: var(--uniface-field-round, 4px);
|
|
371
|
+
background-color: var(--uniface-editor-filled-backgournd-color);
|
|
372
|
+
}
|
|
373
|
+
.uniface-group-box.disabled {
|
|
374
|
+
background-color: var(--uniface-editor-outlined-disabled-backgournd-color);
|
|
375
|
+
color: var(--uniface-editor-outlined-disabled-text-color);
|
|
367
376
|
}
|
|
368
377
|
.uniface-group-box.disabled:focus-within, .uniface-group-box.disabled:focus, .uniface-group-box.disabled:active {
|
|
369
|
-
border-bottom-color: var(--uniface-border-color
|
|
378
|
+
border-bottom-color: var(--uniface-editor-border-color);
|
|
370
379
|
}
|
|
371
380
|
.uniface-group-box.plain {
|
|
372
381
|
border: none;
|
|
373
382
|
}
|
|
374
383
|
.uniface-group-box.outlined {
|
|
375
|
-
border: 1px solid var(--uniface-border-color
|
|
384
|
+
border: 1px solid var(--uniface-editor-border-color);
|
|
376
385
|
border-radius: var(--uniface-field-round, 4px);
|
|
377
386
|
}
|
|
378
387
|
.uniface-group-box.outlined:focus-within, .uniface-group-box.outlined:focus, .uniface-group-box.outlined:active {
|
|
379
|
-
border-color: var(--uniface-
|
|
388
|
+
border-color: var(--uniface-editor-border-color);
|
|
380
389
|
}
|
|
381
390
|
.uniface-group-box.outlined.disabled:focus-within, .uniface-group-box.outlined.disabled:focus, .uniface-group-box.outlined.disabled:active {
|
|
382
|
-
border-color: var(--uniface-border-color
|
|
383
|
-
}
|
|
384
|
-
.uniface-group-box.filled {
|
|
385
|
-
border-top-right-radius: var(--uniface-field-round, 4px);
|
|
386
|
-
border-top-left-radius: var(--uniface-field-round, 4px);
|
|
387
|
-
background-color: var(--uniface-filled-color, #f7f7f7);
|
|
391
|
+
border-color: var(--uniface-editor-border-color);
|
|
388
392
|
}
|
|
389
393
|
.uniface-group-box.compact {
|
|
390
394
|
min-height: 28px;
|
|
@@ -865,6 +869,7 @@
|
|
|
865
869
|
--uniface-form-field-invalid-message-color: #ff3e00;
|
|
866
870
|
--uniface-form-field-label-width: 120px;
|
|
867
871
|
--uniface-form-field-label-alignment: right;
|
|
872
|
+
--uniface-form-field-padding: 6px 4px;
|
|
868
873
|
}
|
|
869
874
|
|
|
870
875
|
.uniface-form-field {
|
|
@@ -872,7 +877,7 @@
|
|
|
872
877
|
display: block;
|
|
873
878
|
position: relative;
|
|
874
879
|
height: auto;
|
|
875
|
-
padding:
|
|
880
|
+
padding: var(--uniface-form-field-padding);
|
|
876
881
|
}
|
|
877
882
|
.uniface-form-field .required-indicator {
|
|
878
883
|
color: var(--uniface-form-field-required-indicator-color);
|
|
@@ -1121,8 +1126,8 @@
|
|
|
1121
1126
|
.uniface-radio-button > span:after {
|
|
1122
1127
|
content: "";
|
|
1123
1128
|
position: absolute;
|
|
1124
|
-
top:
|
|
1125
|
-
left:
|
|
1129
|
+
top: 3px;
|
|
1130
|
+
left: 3px;
|
|
1126
1131
|
width: 10px;
|
|
1127
1132
|
height: 10px;
|
|
1128
1133
|
border-radius: 50%;
|
|
@@ -1169,8 +1174,8 @@
|
|
|
1169
1174
|
position: absolute;
|
|
1170
1175
|
top: 3px;
|
|
1171
1176
|
left: 3px;
|
|
1172
|
-
width:
|
|
1173
|
-
height:
|
|
1177
|
+
width: 8px;
|
|
1178
|
+
height: 8px;
|
|
1174
1179
|
}
|
|
1175
1180
|
|
|
1176
1181
|
:root {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ticatec/uniface-element",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "uniface web elements",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
@@ -132,6 +132,10 @@
|
|
|
132
132
|
"types": "./dist/date-picker/index.d.ts",
|
|
133
133
|
"import": "./dist/date-picker/index.js"
|
|
134
134
|
},
|
|
135
|
+
"./DateTimePicker": {
|
|
136
|
+
"types": "./dist/date-picker/DateTimePicker.svelte.d.ts",
|
|
137
|
+
"import": "./dist/date-picker/DateTimePicker.svelte"
|
|
138
|
+
},
|
|
135
139
|
"./DataTable": {
|
|
136
140
|
"types": "./dist/data-table/index.d.ts",
|
|
137
141
|
"import": "./dist/data-table/index.js"
|