@ticatec/uniface-element 0.3.13 → 0.3.14

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.
@@ -141,6 +141,7 @@
141
141
  // 仅在数值合法时同步 value,此处不触发格式化
142
142
  if (!isNaN(parsed) && utils.isValidNumber(parsed, precision, allowNegative, max, min)) {
143
143
  value = parsed;
144
+ onchange?.(value);
144
145
  }
145
146
  }
146
147
 
@@ -13,6 +13,8 @@
13
13
  export let closeConfirm: DialogCloseConfirm | null = null;
14
14
  export let content$style: string = '';
15
15
 
16
+ export let hideClose: boolean = false;
17
+
16
18
  export let closeAction: ButtonAction | null = null;
17
19
  export let onClose: OnClose | null = null;
18
20
 
@@ -76,7 +78,9 @@
76
78
  }
77
79
  })
78
80
  }
79
- wa.push(closeAction);
81
+ if (!hideClose) {
82
+ wa.push(closeAction);
83
+ }
80
84
  return wa;
81
85
  }
82
86
 
@@ -91,9 +95,11 @@
91
95
  <div class="uniface-dialog-box" style="{dialog$style}; top: {top}px; left: {left}px; width: {width}; height: {height}; ">
92
96
  <div class="title-bar" on:mousedown={handleMouseDown} on:mouseup={handleMouseUp} aria-hidden="true">
93
97
  <div style="flex: 1 1 auto"><span>{title ?? 'New window'}</span></div>
94
- <div style="flex: 0 0 auto; padding-left: 12px">
95
- <i class="icon_google_clear dialog-action-button" aria-hidden="true" on:click={()=>close(ModalResult.Cancel)}></i>
96
- </div>
98
+ {#if !hideClose}
99
+ <div style="flex: 0 0 auto; padding-left: 12px">
100
+ <i class="icon_google_clear dialog-action-button" aria-hidden="true" on:click={()=>close(ModalResult.Cancel)}></i>
101
+ </div>
102
+ {/if}
97
103
  </div>
98
104
  <div class="dialog-content" style={content$style}>
99
105
  <slot></slot>
@@ -26,6 +26,7 @@ declare const Dialog: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWit
26
26
  actions?: ButtonActions | null;
27
27
  closeConfirm?: DialogCloseConfirm | null;
28
28
  content$style?: string;
29
+ hideClose?: boolean;
29
30
  closeAction?: ButtonAction | null;
30
31
  onClose?: OnClose | null;
31
32
  dialog$style?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ticatec/uniface-element",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "A comprehensive UI component library for Svelte applications with rich form controls, data tables, layouts and interactive elements",
5
5
  "keywords": [
6
6
  "svelte",