@pisell/private-materials 3.4.156 → 3.4.158

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.
Files changed (70) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +14 -14
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +14 -14
  9. package/es/index.d.ts +7 -1
  10. package/es/index.js +5 -1
  11. package/es/plus/inventory/BindingModal.js +94 -0
  12. package/es/plus/inventory/InventoryItemManagement.d.ts +7 -0
  13. package/es/plus/inventory/InventoryItemManagement.js +204 -0
  14. package/es/plus/inventory/InventoryLocationManagement.d.ts +7 -0
  15. package/es/plus/inventory/InventoryLocationManagement.js +296 -0
  16. package/es/plus/inventory/InventoryUnitManagement.d.ts +7 -0
  17. package/es/plus/inventory/InventoryUnitManagement.js +144 -0
  18. package/es/plus/inventory/ItemDrawer.js +266 -0
  19. package/es/plus/inventory/RecordDialog.js +141 -0
  20. package/es/plus/inventory/StockList.js +132 -0
  21. package/es/plus/inventory/api.js +66 -0
  22. package/es/plus/inventory/components.js +172 -0
  23. package/es/plus/inventory/context.js +118 -0
  24. package/es/plus/inventory/forms.js +46 -0
  25. package/es/plus/inventory/hooks.js +235 -0
  26. package/es/plus/inventory/index.less +559 -0
  27. package/es/plus/inventory/locales.js +277 -0
  28. package/es/plus/inventory/types.d.ts +10 -0
  29. package/es/plus/inventory/utils.js +24 -0
  30. package/es/plus/pisellSupersetDashboard/README.md +291 -0
  31. package/es/plus/pisellSupersetDashboard/index.d.ts +15 -0
  32. package/es/plus/pisellSupersetDashboard/index.js +187 -0
  33. package/es/plus/pisellSupersetDashboard/index.less +83 -0
  34. package/es/plus/pisellSupersetDashboard/locales.js +36 -0
  35. package/es/plus/pisellSupersetDashboard/serve.js +51 -0
  36. package/es/plus/pisellSupersetDashboard/types.d.ts +17 -0
  37. package/es/plus/skuOptionsSelection/store/createStore.js +2 -2
  38. package/lib/index.d.ts +7 -1
  39. package/lib/index.js +134 -126
  40. package/lib/plus/inventory/BindingModal.js +96 -0
  41. package/lib/plus/inventory/InventoryItemManagement.d.ts +7 -0
  42. package/lib/plus/inventory/InventoryItemManagement.js +206 -0
  43. package/lib/plus/inventory/InventoryLocationManagement.d.ts +7 -0
  44. package/lib/plus/inventory/InventoryLocationManagement.js +298 -0
  45. package/lib/plus/inventory/InventoryUnitManagement.d.ts +7 -0
  46. package/lib/plus/inventory/InventoryUnitManagement.js +146 -0
  47. package/lib/plus/inventory/ItemDrawer.js +268 -0
  48. package/lib/plus/inventory/RecordDialog.js +143 -0
  49. package/lib/plus/inventory/StockList.js +134 -0
  50. package/lib/plus/inventory/api.js +66 -0
  51. package/lib/plus/inventory/components.js +181 -0
  52. package/lib/plus/inventory/context.js +121 -0
  53. package/lib/plus/inventory/forms.js +50 -0
  54. package/lib/plus/inventory/hooks.js +240 -0
  55. package/lib/plus/inventory/index.less +559 -0
  56. package/lib/plus/inventory/locales.js +277 -0
  57. package/lib/plus/inventory/types.d.ts +10 -0
  58. package/lib/plus/inventory/utils.js +30 -0
  59. package/lib/plus/pisellSupersetDashboard/README.md +291 -0
  60. package/lib/plus/pisellSupersetDashboard/index.d.ts +15 -0
  61. package/lib/plus/pisellSupersetDashboard/index.js +189 -0
  62. package/lib/plus/pisellSupersetDashboard/index.less +83 -0
  63. package/lib/plus/pisellSupersetDashboard/locales.js +36 -0
  64. package/lib/plus/pisellSupersetDashboard/serve.js +52 -0
  65. package/lib/plus/pisellSupersetDashboard/types.d.ts +17 -0
  66. package/lowcode/inventory-item-management/meta.ts +20 -0
  67. package/lowcode/inventory-location-management/meta.ts +20 -0
  68. package/lowcode/inventory-unit-management/meta.ts +20 -0
  69. package/lowcode/pisell-superset-dashboard/meta.ts +75 -0
  70. package/package.json +5 -3
@@ -0,0 +1,559 @@
1
+ .inventory-page {
2
+ box-sizing: border-box;
3
+ display: flex;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ height: 100%;
7
+ min-height: 480px;
8
+ padding: 24px;
9
+ overflow: auto;
10
+ color: #1d2939;
11
+ background: #fff;
12
+
13
+ h2,
14
+ h3 {
15
+ margin: 0;
16
+ font-weight: 600;
17
+ }
18
+ h2 {
19
+ font-size: 22px;
20
+ }
21
+ h3 {
22
+ font-size: 16px;
23
+ }
24
+ > .pisell-lowcode-alert {
25
+ margin-bottom: 12px;
26
+ }
27
+ }
28
+
29
+ .inventory-header {
30
+ display: flex;
31
+ justify-content: space-between;
32
+ align-items: flex-start;
33
+ gap: 16px;
34
+ padding-bottom: 20px;
35
+ margin-bottom: 20px;
36
+ border-bottom: 1px solid #eaecf0;
37
+ p {
38
+ margin: 6px 0 0;
39
+ color: #667085;
40
+ }
41
+ }
42
+
43
+ .inventory-toolbar {
44
+ display: flex;
45
+ align-items: center;
46
+ flex-wrap: wrap;
47
+ gap: 12px;
48
+ margin-bottom: 16px;
49
+ &-end {
50
+ justify-content: flex-end;
51
+ }
52
+ &-primary {
53
+ margin-left: auto;
54
+ }
55
+ }
56
+
57
+ .inventory-search {
58
+ width: 280px;
59
+ max-width: 100%;
60
+ }
61
+ .inventory-filter {
62
+ min-width: 145px;
63
+ }
64
+ .inventory-muted {
65
+ color: #667085;
66
+ font-size: 13px;
67
+ }
68
+ .inventory-notice {
69
+ margin: 0 0 16px;
70
+ }
71
+ .inventory-table {
72
+ min-width: 0;
73
+ }
74
+ .inventory-table-loading-placeholder {
75
+ min-height: 160px;
76
+ }
77
+ .inventory-table-loading {
78
+ > div > .pisell-lowcode-spin .pisell-lowcode-spin-dot {
79
+ margin-top: -12px;
80
+ margin-left: -12px;
81
+ }
82
+ > div > .pisell-lowcode-spin .pisell-lowcode-spin-text {
83
+ margin-top: 8px;
84
+ font-size: 13px;
85
+ color: #667085;
86
+ }
87
+ }
88
+ .inventory-pagination {
89
+ margin-top: 16px;
90
+ text-align: right;
91
+ }
92
+ .inventory-table .pisell-lowcode-table-cell {
93
+ font-variant-numeric: tabular-nums;
94
+ }
95
+ .inventory-table .pisell-lowcode-table-cell .pisell-lowcode-btn-link {
96
+ padding-inline: 6px;
97
+ }
98
+ .inventory-table
99
+ .pisell-lowcode-table-cell:first-child
100
+ .pisell-lowcode-btn-link {
101
+ padding-left: 0;
102
+ }
103
+
104
+ .inventory-item-link,
105
+ .inventory-text-button,
106
+ .inventory-nav-label {
107
+ border: 0;
108
+ background: transparent;
109
+ padding: 0;
110
+ text-align: left;
111
+ color: inherit;
112
+ cursor: pointer;
113
+ font: inherit;
114
+ &:focus-visible {
115
+ outline: 2px solid #1677ff;
116
+ outline-offset: 3px;
117
+ border-radius: 4px;
118
+ }
119
+ }
120
+ .inventory-item-link {
121
+ display: inline-flex;
122
+ align-items: center;
123
+ gap: 12px;
124
+ color: #1677ff;
125
+ max-width: 280px;
126
+ white-space: normal;
127
+ overflow-wrap: anywhere;
128
+ }
129
+ .inventory-cover {
130
+ width: 64px;
131
+ height: 64px;
132
+ border-radius: 8px;
133
+ object-fit: cover;
134
+ background: #f2f4f7;
135
+ &-small {
136
+ width: 36px;
137
+ height: 36px;
138
+ flex-shrink: 0;
139
+ }
140
+ }
141
+ .inventory-metrics {
142
+ display: grid;
143
+ grid-template-columns: repeat(2, minmax(0, 1fr));
144
+ margin-top: 20px;
145
+ padding: 16px 20px;
146
+ border: 1px solid #eaecf0;
147
+ border-radius: 8px;
148
+ background: #f9fafb;
149
+ > div {
150
+ display: flex;
151
+ flex-direction: column;
152
+ gap: 6px;
153
+ }
154
+ span {
155
+ color: #667085;
156
+ font-size: 13px;
157
+ }
158
+ strong {
159
+ font-size: 23px;
160
+ font-variant-numeric: tabular-nums;
161
+ overflow-wrap: anywhere;
162
+ }
163
+ }
164
+ .inventory-form-columns {
165
+ display: grid;
166
+ grid-template-columns: repeat(2, minmax(0, 1fr));
167
+ gap: 0 20px;
168
+ }
169
+ .inventory-path {
170
+ display: flex;
171
+ flex-direction: column;
172
+ gap: 6px;
173
+ white-space: normal;
174
+ max-width: 360px;
175
+ }
176
+ .inventory-section-heading {
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: space-between;
180
+ gap: 12px;
181
+ margin: 20px 0;
182
+ h3 {
183
+ margin: 0;
184
+ }
185
+ }
186
+ .inventory-location-layout {
187
+ display: flex;
188
+ flex: 1;
189
+ min-height: 360px;
190
+ gap: 24px;
191
+ }
192
+ .inventory-navigation {
193
+ flex: 0 0 235px;
194
+ max-height: 75vh;
195
+ overflow-y: auto;
196
+ border-right: 1px solid #eaecf0;
197
+ padding-right: 16px;
198
+ }
199
+ .inventory-location-main {
200
+ flex: 1;
201
+ min-width: 0;
202
+ }
203
+ .inventory-location-main > .inventory-toolbar {
204
+ margin-top: 20px;
205
+ }
206
+ .inventory-nav-row {
207
+ box-sizing: border-box;
208
+ display: flex;
209
+ align-items: center;
210
+ gap: 6px;
211
+ width: 100%;
212
+ min-height: 38px;
213
+ padding: 6px 8px;
214
+ margin: 2px 0;
215
+ border: 0;
216
+ border-radius: 6px;
217
+ color: #344054;
218
+ background: transparent;
219
+ font: inherit;
220
+ text-align: left;
221
+ &.is-selected {
222
+ background: #e6f4ff;
223
+ color: #0958d9;
224
+ font-weight: 500;
225
+ }
226
+ &:hover {
227
+ background: #f2f4f7;
228
+ }
229
+ }
230
+ .inventory-nav-label {
231
+ flex: 1;
232
+ min-width: 0;
233
+ overflow-wrap: anywhere;
234
+ }
235
+ .inventory-nav-root,
236
+ .inventory-nav-shelf {
237
+ cursor: pointer;
238
+ }
239
+ .inventory-nav-shelves {
240
+ margin-left: 28px;
241
+ border-left: 1px solid #eaecf0;
242
+ padding-left: 8px;
243
+ }
244
+ .inventory-inactive-dot {
245
+ color: #8c8c8c;
246
+ font-size: 12px;
247
+ font-weight: 400;
248
+ }
249
+ .inventory-nav-empty {
250
+ display: block;
251
+ padding: 12px;
252
+ color: #8c8c8c;
253
+ font-size: 13px;
254
+ }
255
+ .inventory-nav-loading {
256
+ display: flex;
257
+ align-items: center;
258
+ gap: 8px;
259
+ box-sizing: border-box;
260
+ min-height: 38px;
261
+ padding: 8px;
262
+ color: #667085;
263
+ font-size: 13px;
264
+
265
+ > .pisell-lowcode-spin {
266
+ display: inline-flex;
267
+ flex: 0 0 16px;
268
+ align-items: center;
269
+ justify-content: center;
270
+ width: 16px;
271
+ height: 16px;
272
+ line-height: 1;
273
+ }
274
+ }
275
+ .inventory-modal-body {
276
+ padding: 20px 0;
277
+
278
+ > .pisell-lowcode-alert {
279
+ margin-bottom: 16px;
280
+ }
281
+ }
282
+
283
+ .inventory-drawer-root {
284
+ .pisell-lowcode-drawer-content,
285
+ .pisell-lowcode-drawer-body {
286
+ height: 100%;
287
+ }
288
+ }
289
+
290
+ .inventory-drawer {
291
+ --inventory-drawer-header-height: 88px;
292
+
293
+ &__root {
294
+ display: flex;
295
+ width: 100%;
296
+ height: 100%;
297
+ min-height: 0;
298
+ }
299
+
300
+ &__sidebar {
301
+ display: flex;
302
+ flex: 0 0 72px;
303
+ flex-direction: column;
304
+ align-items: stretch;
305
+ border-right: 1px solid #f0f0f0;
306
+ background: #fafafa;
307
+ }
308
+
309
+ &__sidebar-slot {
310
+ display: block;
311
+ }
312
+
313
+ &__sidebar-item {
314
+ position: relative;
315
+ display: flex;
316
+ flex-direction: column;
317
+ align-items: center;
318
+ justify-content: center;
319
+ gap: 4px;
320
+ box-sizing: border-box;
321
+ width: 100%;
322
+ min-height: var(--inventory-drawer-header-height);
323
+ padding: 8px 4px;
324
+ border: 0;
325
+ background: transparent;
326
+ color: rgba(0, 0, 0, 0.55);
327
+ font: inherit;
328
+ cursor: pointer;
329
+ transition: color 0.2s, background 0.2s;
330
+
331
+ > .anticon {
332
+ font-size: 18px;
333
+ }
334
+
335
+ > span:last-child {
336
+ font-size: 12px;
337
+ line-height: 16px;
338
+ }
339
+
340
+ &::before {
341
+ position: absolute;
342
+ top: 0;
343
+ left: 0;
344
+ width: 2px;
345
+ height: 100%;
346
+ background: transparent;
347
+ content: '';
348
+ }
349
+
350
+ &:hover:not(:disabled),
351
+ &.is-active {
352
+ color: #1677ff;
353
+ background: #fff;
354
+ }
355
+
356
+ &.is-active::before {
357
+ background: #1677ff;
358
+ }
359
+
360
+ &:disabled {
361
+ color: #bfbfbf;
362
+ cursor: not-allowed;
363
+ }
364
+
365
+ &:focus-visible {
366
+ outline: 2px solid #1677ff;
367
+ outline-offset: -2px;
368
+ }
369
+ }
370
+
371
+ &__main {
372
+ display: flex;
373
+ flex: 1;
374
+ flex-direction: column;
375
+ min-width: 0;
376
+ min-height: 0;
377
+ }
378
+
379
+ &__header {
380
+ display: flex;
381
+ align-items: center;
382
+ flex-shrink: 0;
383
+ gap: 12px;
384
+ box-sizing: border-box;
385
+ min-height: var(--inventory-drawer-header-height);
386
+ padding: 16px;
387
+ background: #e6f4ff;
388
+ }
389
+
390
+ &__icon {
391
+ display: flex;
392
+ flex: 0 0 40px;
393
+ align-items: center;
394
+ justify-content: center;
395
+ height: 40px;
396
+ border-radius: 8px;
397
+ overflow: hidden;
398
+ background: #dbeafe;
399
+ color: #1677ff;
400
+ font-size: 20px;
401
+
402
+ img {
403
+ width: 100%;
404
+ height: 100%;
405
+ object-fit: cover;
406
+ }
407
+ }
408
+
409
+ &__heading {
410
+ flex: 1;
411
+ min-width: 0;
412
+
413
+ h2 {
414
+ margin: 0;
415
+ font-size: 16px;
416
+ font-weight: 600;
417
+ color: #101828;
418
+ overflow-wrap: anywhere;
419
+ }
420
+ }
421
+
422
+ &__subtitle {
423
+ margin-top: 2px;
424
+ color: #667085;
425
+ font-size: 12px;
426
+ overflow-wrap: anywhere;
427
+ }
428
+
429
+ &__content {
430
+ flex: 1;
431
+ min-height: 0;
432
+ padding: 16px;
433
+ overflow: auto;
434
+ background: #fff;
435
+
436
+ > .pisell-lowcode-alert {
437
+ margin-bottom: 16px;
438
+ }
439
+
440
+ > .pisell-lowcode-spin-nested-loading {
441
+ min-height: 80px;
442
+ }
443
+ }
444
+
445
+ &__card {
446
+ border-color: #eaecf0;
447
+ border-radius: 10px;
448
+
449
+ & + & {
450
+ margin-top: 12px;
451
+ }
452
+
453
+ > .pisell-lowcode-card-head {
454
+ min-height: 42px;
455
+ padding: 0 16px;
456
+ font-size: 14px;
457
+ font-weight: 600;
458
+ border-bottom-color: #eaecf0;
459
+ }
460
+
461
+ > .pisell-lowcode-card-body {
462
+ padding: 16px;
463
+ }
464
+
465
+ .inventory-metrics {
466
+ margin: 0;
467
+ padding: 0;
468
+ border: 0;
469
+ background: transparent;
470
+ gap: 16px;
471
+ }
472
+ }
473
+
474
+ &__info-list {
475
+ display: flex;
476
+ flex-direction: column;
477
+ gap: 12px;
478
+ margin: 0;
479
+ }
480
+
481
+ &__info-row {
482
+ display: flex;
483
+ align-items: baseline;
484
+ justify-content: space-between;
485
+ gap: 16px;
486
+ font-size: 14px;
487
+
488
+ dt {
489
+ flex-shrink: 0;
490
+ color: #667085;
491
+ }
492
+
493
+ dd {
494
+ min-width: 0;
495
+ margin: 0;
496
+ color: #101828;
497
+ font-weight: 500;
498
+ text-align: right;
499
+ white-space: pre-wrap;
500
+ overflow-wrap: anywhere;
501
+ }
502
+
503
+ .pisell-lowcode-tag {
504
+ margin-inline-end: 0;
505
+ }
506
+ }
507
+
508
+ &__footer {
509
+ display: grid;
510
+ grid-template-columns: auto minmax(0, 1fr);
511
+ flex-shrink: 0;
512
+ gap: 8px;
513
+ padding: 24px;
514
+ border-top: 1px solid #f0f0f0;
515
+ background: #fff;
516
+ }
517
+ }
518
+
519
+ @media (max-width: 900px) {
520
+ .inventory-page {
521
+ padding: 16px;
522
+ }
523
+ .inventory-navigation {
524
+ flex-basis: 195px;
525
+ }
526
+ .inventory-location-layout {
527
+ gap: 16px;
528
+ }
529
+ }
530
+ @media (max-width: 640px) {
531
+ .inventory-drawer__sidebar {
532
+ flex-basis: 64px;
533
+ }
534
+ .inventory-drawer__footer {
535
+ padding: 16px;
536
+ }
537
+ .inventory-header {
538
+ flex-wrap: wrap;
539
+ }
540
+ .inventory-location-layout {
541
+ flex-direction: column;
542
+ }
543
+ .inventory-navigation {
544
+ flex-basis: auto;
545
+ max-height: 220px;
546
+ border-right: 0;
547
+ border-bottom: 1px solid #eaecf0;
548
+ padding-bottom: 12px;
549
+ }
550
+ .inventory-form-columns {
551
+ grid-template-columns: 1fr;
552
+ }
553
+ .inventory-metrics strong {
554
+ font-size: 18px;
555
+ }
556
+ .inventory-section-heading {
557
+ flex-wrap: wrap;
558
+ }
559
+ }