@xleddyl/443-components-vue 0.16.19 → 0.16.21

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.
@@ -9,6 +9,7 @@
9
9
  :label="label"
10
10
  :side="side"
11
11
  :size="size"
12
+ :fill="fill"
12
13
  :tabs="tabItems"
13
14
  :trail="trail"
14
15
  :back-label="backLabel"
@@ -100,6 +101,7 @@ const props = defineProps({
100
101
  label: { type: String, required: false },
101
102
  side: { type: String, required: false },
102
103
  size: { type: String, required: false, default: "md" },
104
+ fill: { type: Boolean, required: false },
103
105
  tabs: { type: Array, required: false },
104
106
  tabRoute: { type: String, required: false },
105
107
  trail: { type: Array, required: false },
@@ -9,6 +9,7 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
9
9
  label?: string;
10
10
  side?: DrawerSide;
11
11
  size?: DrawerSize;
12
+ fill?: boolean;
12
13
  tabs?: FormDrawerTab[];
13
14
  tabRoute?: string;
14
15
  trail?: string[];
@@ -48,6 +49,7 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
48
49
  readonly hideClose?: boolean | undefined;
49
50
  readonly closeLabel?: string | undefined;
50
51
  readonly flush?: boolean | undefined;
52
+ readonly fill?: boolean | undefined;
51
53
  readonly loading?: boolean | undefined;
52
54
  readonly beforeClose?: DialogBeforeClose | undefined;
53
55
  readonly tabs?: TabItem[] | undefined;
@@ -43,6 +43,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
43
43
  key?: PropertyKey | undefined;
44
44
  loading?: boolean;
45
45
  prefix?: "k-modal" | "k-drawer" | undefined;
46
+ fill?: boolean;
46
47
  size?: import("../overlays/types").ModalSize;
47
48
  tabs?: import("../layout/types.ts").TabItem[];
48
49
  label?: string;
@@ -294,6 +295,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
294
295
  key?: PropertyKey | undefined;
295
296
  loading?: boolean;
296
297
  prefix?: "k-modal" | "k-drawer" | undefined;
298
+ fill?: boolean;
297
299
  size?: import("../overlays/types").ModalSize;
298
300
  tabs?: import("../layout/types.ts").TabItem[];
299
301
  label?: string;
@@ -86,6 +86,7 @@
86
86
  `${prefix}-body`,
87
87
  {
88
88
  'is-flush': flush,
89
+ 'is-fill': fill,
89
90
  'is-overflow-top': overflowTop,
90
91
  'is-overflow-bottom': overflowBottom
91
92
  }
@@ -120,6 +121,7 @@ const props = defineProps({
120
121
  hideClose: { type: Boolean, required: false },
121
122
  closeLabel: { type: String, required: false },
122
123
  flush: { type: Boolean, required: false },
124
+ fill: { type: Boolean, required: false },
123
125
  loading: { type: Boolean, required: false },
124
126
  beforeClose: { type: Function, required: false },
125
127
  tabs: { type: Array, required: false },
@@ -34,6 +34,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
34
34
  hideClose?: boolean;
35
35
  closeLabel?: string;
36
36
  flush?: boolean;
37
+ fill?: boolean;
37
38
  loading?: boolean;
38
39
  beforeClose?: DialogBeforeClose;
39
40
  tabs?: TabItem[];
@@ -253,6 +254,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
253
254
  hideClose?: boolean;
254
255
  closeLabel?: string;
255
256
  flush?: boolean;
257
+ fill?: boolean;
256
258
  loading?: boolean;
257
259
  beforeClose?: DialogBeforeClose;
258
260
  tabs?: TabItem[];
@@ -4,6 +4,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
4
4
  key?: PropertyKey | undefined;
5
5
  loading?: boolean;
6
6
  prefix?: "k-modal" | "k-drawer" | undefined;
7
+ fill?: boolean;
7
8
  size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
8
9
  tabs?: import("../../index.ts").TabItem[];
9
10
  label?: string;
@@ -214,13 +215,13 @@ declare const __VLS_export: import("vue").DefineComponent<{
214
215
  onCancel?: ((payload: Event) => void) | undefined;
215
216
  side?: import("../../index.ts").DrawerSide;
216
217
  onOpen?: ((() => any) & (() => any)) | undefined;
218
+ backLabel?: string;
217
219
  closeLabel?: string;
218
220
  trail?: string[];
219
221
  onNavigate?: (((index: number) => any) & ((index: number) => any)) | undefined;
220
222
  rootClass?: unknown;
221
223
  hideClose?: boolean;
222
224
  beforeClose?: import("../../index.ts").DialogBeforeClose;
223
- backLabel?: string;
224
225
  "onUpdate:tab"?: (((value: string | number | undefined) => any) & ((value: string | number | undefined) => any)) | undefined;
225
226
  closedby?: import("../../index.ts").DialogClosedBy;
226
227
  minHeight?: string;
@@ -233,6 +234,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
233
234
  key?: PropertyKey | undefined;
234
235
  loading?: boolean;
235
236
  prefix?: "k-modal" | "k-drawer" | undefined;
237
+ fill?: boolean;
236
238
  size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
237
239
  tabs?: import("../../index.ts").TabItem[];
238
240
  label?: string;
@@ -443,13 +445,13 @@ declare const __VLS_export: import("vue").DefineComponent<{
443
445
  onCancel?: ((payload: Event) => void) | undefined;
444
446
  side?: import("../../index.ts").DrawerSide;
445
447
  onOpen?: ((() => any) & (() => any)) | undefined;
448
+ backLabel?: string;
446
449
  closeLabel?: string;
447
450
  trail?: string[];
448
451
  onNavigate?: (((index: number) => any) & ((index: number) => any)) | undefined;
449
452
  rootClass?: unknown;
450
453
  hideClose?: boolean;
451
454
  beforeClose?: import("../../index.ts").DialogBeforeClose;
452
- backLabel?: string;
453
455
  "onUpdate:tab"?: (((value: string | number | undefined) => any) & ((value: string | number | undefined) => any)) | undefined;
454
456
  closedby?: import("../../index.ts").DialogClosedBy;
455
457
  minHeight?: string;
@@ -396,6 +396,13 @@ export const de = {
396
396
  indent: "{label} einr\xFCcken",
397
397
  outdent: "{label} ausr\xFCcken"
398
398
  },
399
+ treeSelect: {
400
+ placeholder: "Ausw\xE4hlen",
401
+ clear: "Auswahl leeren",
402
+ toggle: "Optionen anzeigen",
403
+ list: "Optionen",
404
+ results: "{count} Ergebnis verf\xFCgbar | {count} Ergebnisse verf\xFCgbar"
405
+ },
399
406
  meter: {
400
407
  label: "Messanzeige",
401
408
  valueText: "{value}, {state}",
@@ -396,6 +396,13 @@ export const en = {
396
396
  indent: "Indent {label}",
397
397
  outdent: "Outdent {label}"
398
398
  },
399
+ treeSelect: {
400
+ placeholder: "Select",
401
+ clear: "Clear selection",
402
+ toggle: "Show options",
403
+ list: "Options",
404
+ results: "{count} result available | {count} results available"
405
+ },
399
406
  meter: {
400
407
  label: "Meter",
401
408
  valueText: "{value}, {state}",
@@ -396,6 +396,13 @@ export const it = {
396
396
  indent: "Aumenta il rientro di {label}",
397
397
  outdent: "Riduci il rientro di {label}"
398
398
  },
399
+ treeSelect: {
400
+ placeholder: "Seleziona",
401
+ clear: "Cancella selezione",
402
+ toggle: "Mostra opzioni",
403
+ list: "Opzioni",
404
+ results: "{count} risultato disponibile | {count} risultati disponibili"
405
+ },
399
406
  meter: {
400
407
  label: "Indicatore",
401
408
  valueText: "{value}, {state}",
@@ -394,6 +394,13 @@ export interface KMessages {
394
394
  indent: string;
395
395
  outdent: string;
396
396
  };
397
+ treeSelect: {
398
+ placeholder: string;
399
+ clear: string;
400
+ toggle: string;
401
+ list: string;
402
+ results: string;
403
+ };
397
404
  meter: {
398
405
  label: string;
399
406
  valueText: string;
@@ -0,0 +1,261 @@
1
+ .k-tree-select {
2
+ --k-icon-size: 1rem;
3
+ position: relative;
4
+ display: flex;
5
+ width: 100%;
6
+ align-items: center;
7
+ }
8
+
9
+ .k-tree-select-trigger {
10
+ display: flex;
11
+ align-items: center;
12
+ gap: 0.25rem;
13
+ padding-right: 3.25rem;
14
+ text-align: left;
15
+ cursor: pointer;
16
+ }
17
+
18
+ .k-tree-select-trigger.k-field:read-only:not(:disabled, .is-readonly) {
19
+ background: var(--k-field);
20
+ }
21
+
22
+ .k-tree-select-trigger.is-readonly {
23
+ cursor: default;
24
+ }
25
+
26
+ .k-tree-select.is-open .k-tree-select-trigger {
27
+ border-color: var(--k-ring);
28
+ box-shadow: var(--k-focus-ring);
29
+ }
30
+
31
+ .k-tree-select.is-open .k-tree-select-trigger.is-invalid {
32
+ border-color: var(--k-danger);
33
+ box-shadow: var(--k-focus-ring-danger);
34
+ }
35
+
36
+ .k-tree-select-lead {
37
+ display: flex;
38
+ margin-right: 0.25rem;
39
+ color: var(--k-text-dimmed);
40
+ transition: color var(--k-duration) var(--k-ease);
41
+ }
42
+
43
+ .k-tree-select.is-open .k-tree-select-lead,
44
+ .k-tree-select-trigger:focus-visible .k-tree-select-lead {
45
+ color: var(--k-accent-text);
46
+ }
47
+
48
+ .k-tree-select-value {
49
+ display: flex;
50
+ flex: 1;
51
+ min-width: 0;
52
+ white-space: nowrap;
53
+ }
54
+
55
+ .k-tree-select-value-path {
56
+ flex: 0 1 auto;
57
+ min-width: 0;
58
+ overflow-x: clip;
59
+ text-overflow: ellipsis;
60
+ white-space: pre;
61
+ color: var(--k-text-muted);
62
+ }
63
+
64
+ .k-tree-select-value-label {
65
+ flex: 0 0 auto;
66
+ max-width: 100%;
67
+ overflow-x: clip;
68
+ text-overflow: ellipsis;
69
+ font-weight: var(--k-font-weight-medium, 500);
70
+ }
71
+
72
+ .k-tree-select-placeholder {
73
+ overflow-x: clip;
74
+ text-overflow: ellipsis;
75
+ color: var(--k-text-muted);
76
+ }
77
+
78
+ .k-tree-select-trigger:disabled .k-tree-select-value-label {
79
+ font-weight: inherit;
80
+ }
81
+
82
+ .k-tree-select-trail {
83
+ position: absolute;
84
+ top: 0;
85
+ right: 0.375rem;
86
+ bottom: 0;
87
+ display: flex;
88
+ align-items: center;
89
+ gap: 0.125rem;
90
+ color: var(--k-text-dimmed);
91
+ pointer-events: none;
92
+ }
93
+
94
+ .k-tree-select-icon-button {
95
+ --k-icon-size: 0.875rem;
96
+ display: inline-flex;
97
+ align-items: center;
98
+ justify-content: center;
99
+ width: 1.375rem;
100
+ height: 1.375rem;
101
+ border-radius: var(--k-radius-sm);
102
+ color: var(--k-text-dimmed);
103
+ pointer-events: auto;
104
+ transition:
105
+ background-color var(--k-duration) var(--k-ease),
106
+ color var(--k-duration) var(--k-ease),
107
+ scale var(--k-duration) var(--k-ease);
108
+ }
109
+
110
+ .k-tree-select-icon-button:hover:not(:disabled) {
111
+ background: var(--k-hover);
112
+ color: var(--k-text);
113
+ }
114
+
115
+ .k-tree-select-icon-button:active:not(:disabled) {
116
+ scale: 0.92;
117
+ }
118
+
119
+ .k-tree-select-icon-button:disabled {
120
+ cursor: not-allowed;
121
+ }
122
+
123
+ .k-tree-select-chevron > .k-icon {
124
+ --k-icon-size: 1rem;
125
+ transition: transform var(--k-duration-lg) var(--k-ease-out);
126
+ }
127
+
128
+ .k-tree-select.is-open .k-tree-select-chevron > .k-icon {
129
+ transform: rotate(180deg);
130
+ }
131
+
132
+ .k-floating.k-form-popover.k-tree-select-panel {
133
+ padding-top: 0;
134
+ }
135
+
136
+ .k-tree-select-header {
137
+ position: sticky;
138
+ top: 0;
139
+ z-index: 1;
140
+ display: flex;
141
+ flex-direction: column;
142
+ gap: 0.125rem;
143
+ margin: 0 -0.25rem 0.25rem;
144
+ padding: 0.25rem;
145
+ border-bottom: 1px solid var(--k-line);
146
+ background: inherit;
147
+ }
148
+
149
+ .k-tree-select-search {
150
+ --k-icon-size: 0.9375rem;
151
+ display: flex;
152
+ align-items: center;
153
+ gap: 0.5rem;
154
+ min-height: 2rem;
155
+ padding-inline: 0.5rem;
156
+ }
157
+
158
+ .k-tree-select-search-icon {
159
+ flex: none;
160
+ color: var(--k-text-dimmed);
161
+ }
162
+
163
+ .k-tree-select-search-input {
164
+ flex: 1;
165
+ min-width: 0;
166
+ padding: 0;
167
+ border: 0;
168
+ outline: none;
169
+ background: transparent;
170
+ color: var(--k-text);
171
+ font: inherit;
172
+ font-size: 0.8125rem;
173
+ }
174
+
175
+ .k-tree-select-search-input::placeholder {
176
+ color: var(--k-text-muted);
177
+ opacity: 1;
178
+ }
179
+
180
+ .k-tree-select-back {
181
+ --k-icon-size: 0.875rem;
182
+ display: flex;
183
+ align-items: center;
184
+ gap: 0.375rem;
185
+ min-height: 1.75rem;
186
+ padding: 0.25rem 0.5rem;
187
+ border-radius: var(--k-radius-sm);
188
+ font-size: 0.8125rem;
189
+ text-align: left;
190
+ color: var(--k-text-toned);
191
+ transition:
192
+ background-color var(--k-duration) var(--k-ease),
193
+ color var(--k-duration) var(--k-ease);
194
+ }
195
+
196
+ .k-tree-select-back:hover {
197
+ background: var(--k-hover);
198
+ color: var(--k-text);
199
+ }
200
+
201
+ .k-tree-select-back-icon {
202
+ flex: none;
203
+ color: var(--k-text-dimmed);
204
+ }
205
+
206
+ .k-tree-select-back-text {
207
+ display: flex;
208
+ flex: 1;
209
+ min-width: 0;
210
+ white-space: nowrap;
211
+ }
212
+
213
+ .k-tree-select-back-path {
214
+ flex: 0 1 auto;
215
+ min-width: 0;
216
+ overflow-x: clip;
217
+ text-overflow: ellipsis;
218
+ white-space: pre;
219
+ color: var(--k-text-muted);
220
+ }
221
+
222
+ .k-tree-select-back-label {
223
+ flex: 0 0 auto;
224
+ max-width: 100%;
225
+ overflow-x: clip;
226
+ text-overflow: ellipsis;
227
+ font-weight: var(--k-font-weight-medium, 500);
228
+ color: var(--k-text);
229
+ }
230
+
231
+ .k-tree-select-list {
232
+ margin: 0;
233
+ padding: 0;
234
+ list-style: none;
235
+ }
236
+
237
+ .k-tree-select-option.is-ancestor .k-combobox-option-label {
238
+ font-weight: var(--k-font-weight-medium, 500);
239
+ color: var(--k-text);
240
+ }
241
+
242
+ .k-tree-select-drill {
243
+ --k-icon-size: 0.875rem;
244
+ display: inline-flex;
245
+ flex: none;
246
+ align-items: center;
247
+ justify-content: center;
248
+ width: 1.375rem;
249
+ height: 1.375rem;
250
+ margin-right: -0.25rem;
251
+ border-radius: var(--k-radius-sm);
252
+ color: var(--k-text-dimmed);
253
+ transition:
254
+ background-color var(--k-duration) var(--k-ease),
255
+ color var(--k-duration) var(--k-ease);
256
+ }
257
+
258
+ .k-tree-select-drill.is-button:hover {
259
+ background: var(--k-hover);
260
+ color: var(--k-text);
261
+ }
@@ -6,6 +6,7 @@
6
6
  @import './forms/segmented.css';
7
7
  @import './forms/select.css';
8
8
  @import './forms/combobox.css';
9
+ @import './forms/tree-select.css';
9
10
  @import './forms/date-input.css';
10
11
  @import './forms/date-picker.css';
11
12
  @import './forms/calendar.css';
@@ -302,6 +302,17 @@
302
302
  padding: 0;
303
303
  }
304
304
 
305
+ .k-modal-body.is-fill,
306
+ .k-drawer-body.is-fill {
307
+ display: flex;
308
+ flex-direction: column;
309
+ }
310
+
311
+ :is(.k-modal-body, .k-drawer-body).is-fill > * {
312
+ flex: 1;
313
+ min-height: 0;
314
+ }
315
+
305
316
  .k-modal-footer,
306
317
  .k-drawer-footer {
307
318
  display: flex;
@@ -4,3 +4,13 @@
4
4
  gap: 0.5rem;
5
5
  margin-inline-start: auto;
6
6
  }
7
+
8
+ .k-drawer-body.is-fill > .k-form-drawer-form {
9
+ display: flex;
10
+ flex-direction: column;
11
+ }
12
+
13
+ .k-drawer-body.is-fill > .k-form-drawer-form > * {
14
+ flex: 1;
15
+ min-height: 0;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xleddyl/443-components-vue",
3
- "version": "0.16.19",
3
+ "version": "0.16.21",
4
4
  "description": "Compact, scoped dashboard components for Vue and Nuxt",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",