@alfadocs/ui-kit 0.89.0 → 0.93.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/_chunks/{antenatal-schedule-timeline-UiZQze4P.js → antenatal-schedule-timeline-BMMpi2lb.js} +17 -17
- package/dist/_chunks/{appointment-timeline-CwpbQGC1.js → appointment-timeline-BB-c1LeR.js} +2 -2
- package/dist/_chunks/{ar-C9FRRqJs.js → ar-THMLfSoN.js} +22 -22
- package/dist/_chunks/{booking-DEwmDprH.js → booking-BSpSMmJ2.js} +4 -4
- package/dist/_chunks/{cycle-calculator-DXSNIWFk.js → cycle-calculator-DNvvr0bP.js} +3 -3
- package/dist/_chunks/date-picker-BP_W6VtE.js +265 -0
- package/dist/_chunks/{date-picker-variants-D9B6hg15.js → date-picker-variants-eL6HjWvw.js} +966 -841
- package/dist/_chunks/date-range-picker-Cc4DLAL2.js +824 -0
- package/dist/_chunks/{date-time-picker-BU-j0qj4.js → date-time-picker-695QvBGj.js} +2 -2
- package/dist/_chunks/{de-C3_KZ6mR.js → de-DmZ-8rTN.js} +4 -4
- package/dist/_chunks/{due-date-calculator-BR_GuqHH.js → due-date-calculator-BEcdoy_E.js} +3 -3
- package/dist/_chunks/{el-v9xDKHgu.js → el-Bela9mxs.js} +6 -6
- package/dist/_chunks/{es-Lgmjq9Rp.js → es-BNncHKex.js} +10 -10
- package/dist/_chunks/{fr-INS1OD7m.js → fr-CH8ADfhN.js} +12 -12
- package/dist/_chunks/{gestational-age-calculator-DBIcxfjP.js → gestational-age-calculator-CuGkVqKp.js} +5 -5
- package/dist/_chunks/{hcg-doubling-BgCkds8R.js → hcg-doubling-fZ6qQN08.js} +2 -2
- package/dist/_chunks/{hi-BUYtlosF.js → hi-Bppfxp8l.js} +16 -16
- package/dist/_chunks/{isSameWeek-BUNsv4OO.js → isSameWeek-CK4HS9lH.js} +2 -2
- package/dist/_chunks/{it-VfsdUqeV.js → it-B4ySaRyK.js} +24 -24
- package/dist/_chunks/{ja-Dfk9qwzE.js → ja-CGF6Io9P.js} +12 -12
- package/dist/_chunks/{link-cell-renderer-BzITwSXq.js → link-cell-renderer-DQjZeoAr.js} +214 -197
- package/dist/_chunks/{nl-Crxwg0IZ.js → nl-DuShqwuV.js} +12 -12
- package/dist/_chunks/parse-DvA97ro9.js +1601 -0
- package/dist/_chunks/{patient-details-Dggsz-ki.js → patient-details-DrhlTrLf.js} +2 -2
- package/dist/_chunks/{patient-table-ps4byVwA.js → patient-table-DU_zFZoq.js} +2 -2
- package/dist/_chunks/{pl-IdHtxWTl.js → pl-CKQwX9Fk.js} +22 -22
- package/dist/_chunks/{pregnancy-dating-CvIRwWaG.js → pregnancy-dating-BdFl-rB1.js} +5 -5
- package/dist/_chunks/{pt-CY2m2bBz.js → pt-_njpXyOZ.js} +16 -16
- package/dist/_chunks/{radiograph-panel.agent-C93AXgtV.js → radiograph-panel.agent-rnrQZtK3.js} +3 -3
- package/dist/_chunks/{ro-qoxLkXED.js → ro-3X6_4FcN.js} +14 -14
- package/dist/_chunks/{ru-BVZlxoKf.js → ru-bAcgmnS-.js} +20 -20
- package/dist/_chunks/{sq--eT8hIiD.js → sq-jYFqr4Ga.js} +6 -6
- package/dist/_chunks/subDays-BcNi04uf.js +8 -0
- package/dist/_chunks/{sv-BGNQ5gX6.js → sv-BSGEJ-8B.js} +10 -10
- package/dist/_chunks/{tr-B2NEu6Gy.js → tr-CTpgUtw6.js} +14 -14
- package/dist/_chunks/{zh-CN-DClT1wDk.js → zh-CN-BgM0Io2O.js} +22 -22
- package/dist/agent-catalog.json +93 -2
- package/dist/agent-i18n/en.json +8 -2
- package/dist/components/_shared/calendar-class-names.d.ts +5 -0
- package/dist/components/_shared/date-picker-variants.d.ts +23 -1
- package/dist/components/_shared/index.d.ts +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/filters/date-range-filter.d.ts +13 -0
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +79 -1
- package/dist/components/date-range-picker/index.d.ts +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +24 -0
- package/dist/i18n/locales/ar.js +24 -0
- package/dist/i18n/locales/de.d.ts +24 -0
- package/dist/i18n/locales/de.js +24 -0
- package/dist/i18n/locales/el.d.ts +24 -0
- package/dist/i18n/locales/el.js +24 -0
- package/dist/i18n/locales/en.d.ts +24 -0
- package/dist/i18n/locales/en.js +24 -0
- package/dist/i18n/locales/es.d.ts +24 -0
- package/dist/i18n/locales/es.js +24 -0
- package/dist/i18n/locales/fr.d.ts +24 -0
- package/dist/i18n/locales/fr.js +24 -0
- package/dist/i18n/locales/hi.d.ts +24 -0
- package/dist/i18n/locales/hi.js +24 -0
- package/dist/i18n/locales/it.d.ts +24 -0
- package/dist/i18n/locales/it.js +24 -0
- package/dist/i18n/locales/ja.d.ts +24 -0
- package/dist/i18n/locales/ja.js +24 -0
- package/dist/i18n/locales/nl.d.ts +24 -0
- package/dist/i18n/locales/nl.js +24 -0
- package/dist/i18n/locales/pl.d.ts +24 -0
- package/dist/i18n/locales/pl.js +24 -0
- package/dist/i18n/locales/pt.d.ts +24 -0
- package/dist/i18n/locales/pt.js +24 -0
- package/dist/i18n/locales/ro.d.ts +24 -0
- package/dist/i18n/locales/ro.js +24 -0
- package/dist/i18n/locales/ru.d.ts +24 -0
- package/dist/i18n/locales/ru.js +24 -0
- package/dist/i18n/locales/sq.d.ts +24 -0
- package/dist/i18n/locales/sq.js +24 -0
- package/dist/i18n/locales/sv.d.ts +24 -0
- package/dist/i18n/locales/sv.js +24 -0
- package/dist/i18n/locales/tr.d.ts +24 -0
- package/dist/i18n/locales/tr.js +24 -0
- package/dist/i18n/locales/zh.d.ts +24 -0
- package/dist/i18n/locales/zh.js +24 -0
- package/dist/index.js +15 -15
- package/dist/locales/ar.json +24 -0
- package/dist/locales/de.json +24 -0
- package/dist/locales/el.json +24 -0
- package/dist/locales/en.json +24 -0
- package/dist/locales/es.json +24 -0
- package/dist/locales/fr.json +24 -0
- package/dist/locales/hi.json +24 -0
- package/dist/locales/it.json +24 -0
- package/dist/locales/ja.json +24 -0
- package/dist/locales/nl.json +24 -0
- package/dist/locales/pl.json +24 -0
- package/dist/locales/pt.json +24 -0
- package/dist/locales/ro.json +24 -0
- package/dist/locales/ru.json +24 -0
- package/dist/locales/sq.json +24 -0
- package/dist/locales/sv.json +24 -0
- package/dist/locales/tr.json +24 -0
- package/dist/locales/zh.json +24 -0
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/date-picker-ffmyjvlI.js +0 -1845
- package/dist/_chunks/date-range-picker-DSOH50-f.js +0 -325
- package/dist/_chunks/subDays-fEHRx4hg.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o,
|
|
1
|
+
import { A as o, B as n, E as i, F as m } from "./date-picker-variants-eL6HjWvw.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "bir saniyeden az",
|
|
@@ -238,13 +238,13 @@ const d = {
|
|
|
238
238
|
formattingValues: w,
|
|
239
239
|
defaultFormattingWidth: "wide"
|
|
240
240
|
})
|
|
241
|
-
}, W = /^(\d+)(\.)?/i, S = /\d+/i,
|
|
241
|
+
}, W = /^(\d+)(\.)?/i, S = /\d+/i, E = {
|
|
242
242
|
narrow: /^(mö|ms)/i,
|
|
243
243
|
abbreviated: /^(mö|ms)/i,
|
|
244
244
|
wide: /^(milattan önce|milattan sonra)/i
|
|
245
|
-
},
|
|
245
|
+
}, H = {
|
|
246
246
|
any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i]
|
|
247
|
-
},
|
|
247
|
+
}, C = {
|
|
248
248
|
narrow: /^[1234]/i,
|
|
249
249
|
abbreviated: /^[1234]ç/i,
|
|
250
250
|
wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i
|
|
@@ -295,7 +295,7 @@ const d = {
|
|
|
295
295
|
short: /^(pz|pt|sa|ça|pe|cu|ct)/i,
|
|
296
296
|
abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i,
|
|
297
297
|
wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i
|
|
298
|
-
},
|
|
298
|
+
}, A = {
|
|
299
299
|
narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i],
|
|
300
300
|
any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i],
|
|
301
301
|
wide: [
|
|
@@ -307,10 +307,10 @@ const d = {
|
|
|
307
307
|
/^cuma(?!rtesi)/i,
|
|
308
308
|
/^cumartesi/i
|
|
309
309
|
]
|
|
310
|
-
},
|
|
310
|
+
}, V = {
|
|
311
311
|
narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i,
|
|
312
312
|
any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i
|
|
313
|
-
},
|
|
313
|
+
}, X = {
|
|
314
314
|
any: {
|
|
315
315
|
am: /^ö\.?ö\.?/i,
|
|
316
316
|
pm: /^ö\.?s\.?/i,
|
|
@@ -330,13 +330,13 @@ const d = {
|
|
|
330
330
|
}
|
|
331
331
|
}),
|
|
332
332
|
era: i({
|
|
333
|
-
matchPatterns:
|
|
333
|
+
matchPatterns: E,
|
|
334
334
|
defaultMatchWidth: "wide",
|
|
335
|
-
parsePatterns:
|
|
335
|
+
parsePatterns: H,
|
|
336
336
|
defaultParseWidth: "any"
|
|
337
337
|
}),
|
|
338
338
|
quarter: i({
|
|
339
|
-
matchPatterns:
|
|
339
|
+
matchPatterns: C,
|
|
340
340
|
defaultMatchWidth: "wide",
|
|
341
341
|
parsePatterns: D,
|
|
342
342
|
defaultParseWidth: "any",
|
|
@@ -351,13 +351,13 @@ const d = {
|
|
|
351
351
|
day: i({
|
|
352
352
|
matchPatterns: N,
|
|
353
353
|
defaultMatchWidth: "wide",
|
|
354
|
-
parsePatterns:
|
|
354
|
+
parsePatterns: A,
|
|
355
355
|
defaultParseWidth: "any"
|
|
356
356
|
}),
|
|
357
357
|
dayPeriod: i({
|
|
358
|
-
matchPatterns:
|
|
358
|
+
matchPatterns: V,
|
|
359
359
|
defaultMatchWidth: "any",
|
|
360
|
-
parsePatterns:
|
|
360
|
+
parsePatterns: X,
|
|
361
361
|
defaultParseWidth: "any"
|
|
362
362
|
})
|
|
363
363
|
}, O = {
|
|
@@ -375,4 +375,4 @@ const d = {
|
|
|
375
375
|
export {
|
|
376
376
|
O as tr
|
|
377
377
|
};
|
|
378
|
-
//# sourceMappingURL=tr-
|
|
378
|
+
//# sourceMappingURL=tr-CTpgUtw6.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as u } from "./isSameWeek-
|
|
1
|
+
import { A as s, B as i, E as o, F as m } from "./date-picker-variants-eL6HjWvw.js";
|
|
2
|
+
import { i as u } from "./isSameWeek-CK4HS9lH.js";
|
|
3
3
|
const c = {
|
|
4
4
|
lessThanXSeconds: {
|
|
5
5
|
one: "不到 1 秒",
|
|
@@ -229,7 +229,7 @@ const b = {
|
|
|
229
229
|
evening: "晚上",
|
|
230
230
|
night: "夜间"
|
|
231
231
|
}
|
|
232
|
-
},
|
|
232
|
+
}, F = (e, n) => {
|
|
233
233
|
const t = Number(e);
|
|
234
234
|
switch (n == null ? void 0 : n.unit) {
|
|
235
235
|
case "date":
|
|
@@ -243,8 +243,8 @@ const b = {
|
|
|
243
243
|
default:
|
|
244
244
|
return "第 " + t.toString();
|
|
245
245
|
}
|
|
246
|
-
},
|
|
247
|
-
ordinalNumber:
|
|
246
|
+
}, S = {
|
|
247
|
+
ordinalNumber: F,
|
|
248
248
|
era: i({
|
|
249
249
|
values: w,
|
|
250
250
|
defaultWidth: "wide"
|
|
@@ -268,7 +268,7 @@ const b = {
|
|
|
268
268
|
formattingValues: k,
|
|
269
269
|
defaultFormattingWidth: "wide"
|
|
270
270
|
})
|
|
271
|
-
},
|
|
271
|
+
}, x = /^(第\s*)?\d+(日|时|分|秒)?/i, z = /\d+/i, D = {
|
|
272
272
|
narrow: /^(前)/i,
|
|
273
273
|
abbreviated: /^(前)/i,
|
|
274
274
|
wide: /^(公元前|公元)/i
|
|
@@ -278,13 +278,13 @@ const b = {
|
|
|
278
278
|
narrow: /^[1234]/i,
|
|
279
279
|
abbreviated: /^第[一二三四]刻/i,
|
|
280
280
|
wide: /^第[一二三四]刻钟/i
|
|
281
|
-
},
|
|
281
|
+
}, E = {
|
|
282
282
|
any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i]
|
|
283
|
-
},
|
|
283
|
+
}, N = {
|
|
284
284
|
narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
|
|
285
285
|
abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
|
|
286
286
|
wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
|
|
287
|
-
},
|
|
287
|
+
}, C = {
|
|
288
288
|
narrow: [
|
|
289
289
|
/^一/i,
|
|
290
290
|
/^二/i,
|
|
@@ -320,9 +320,9 @@ const b = {
|
|
|
320
320
|
wide: /^星期[一二三四五六日]/i
|
|
321
321
|
}, T = {
|
|
322
322
|
any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i]
|
|
323
|
-
}, q = {
|
|
324
|
-
any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i
|
|
325
323
|
}, Y = {
|
|
324
|
+
any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i
|
|
325
|
+
}, q = {
|
|
326
326
|
any: {
|
|
327
327
|
am: /^上午?/i,
|
|
328
328
|
pm: /^下午?/i,
|
|
@@ -335,8 +335,8 @@ const b = {
|
|
|
335
335
|
}
|
|
336
336
|
}, O = {
|
|
337
337
|
ordinalNumber: m({
|
|
338
|
-
matchPattern:
|
|
339
|
-
parsePattern:
|
|
338
|
+
matchPattern: x,
|
|
339
|
+
parsePattern: z,
|
|
340
340
|
valueCallback: (e) => parseInt(e, 10)
|
|
341
341
|
}),
|
|
342
342
|
era: o({
|
|
@@ -348,14 +348,14 @@ const b = {
|
|
|
348
348
|
quarter: o({
|
|
349
349
|
matchPatterns: X,
|
|
350
350
|
defaultMatchWidth: "wide",
|
|
351
|
-
parsePatterns:
|
|
351
|
+
parsePatterns: E,
|
|
352
352
|
defaultParseWidth: "any",
|
|
353
353
|
valueCallback: (e) => e + 1
|
|
354
354
|
}),
|
|
355
355
|
month: o({
|
|
356
|
-
matchPatterns:
|
|
356
|
+
matchPatterns: N,
|
|
357
357
|
defaultMatchWidth: "wide",
|
|
358
|
-
parsePatterns:
|
|
358
|
+
parsePatterns: C,
|
|
359
359
|
defaultParseWidth: "any"
|
|
360
360
|
}),
|
|
361
361
|
day: o({
|
|
@@ -365,17 +365,17 @@ const b = {
|
|
|
365
365
|
defaultParseWidth: "any"
|
|
366
366
|
}),
|
|
367
367
|
dayPeriod: o({
|
|
368
|
-
matchPatterns:
|
|
368
|
+
matchPatterns: Y,
|
|
369
369
|
defaultMatchWidth: "any",
|
|
370
|
-
parsePatterns:
|
|
370
|
+
parsePatterns: q,
|
|
371
371
|
defaultParseWidth: "any"
|
|
372
372
|
})
|
|
373
|
-
},
|
|
373
|
+
}, H = {
|
|
374
374
|
code: "zh-CN",
|
|
375
375
|
formatDistance: h,
|
|
376
376
|
formatLong: P,
|
|
377
377
|
formatRelative: y,
|
|
378
|
-
localize:
|
|
378
|
+
localize: S,
|
|
379
379
|
match: O,
|
|
380
380
|
options: {
|
|
381
381
|
weekStartsOn: 1,
|
|
@@ -383,6 +383,6 @@ const b = {
|
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
export {
|
|
386
|
-
|
|
386
|
+
H as zhCN
|
|
387
387
|
};
|
|
388
|
-
//# sourceMappingURL=zh-CN-
|
|
388
|
+
//# sourceMappingURL=zh-CN-BgM0Io2O.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "0.
|
|
3
|
+
"packageVersion": "0.93.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -3463,7 +3463,10 @@
|
|
|
3463
3463
|
"capabilities": [
|
|
3464
3464
|
"range_pick",
|
|
3465
3465
|
"open",
|
|
3466
|
-
"close"
|
|
3466
|
+
"close",
|
|
3467
|
+
"confirm",
|
|
3468
|
+
"dismiss",
|
|
3469
|
+
"set_value"
|
|
3467
3470
|
],
|
|
3468
3471
|
"state": [
|
|
3469
3472
|
{
|
|
@@ -3477,6 +3480,18 @@
|
|
|
3477
3480
|
"type": "boolean",
|
|
3478
3481
|
"description": "Whether the range calendar popover is open.",
|
|
3479
3482
|
"descriptionKey": "ui.agent.dateRangePicker.state.isOpen"
|
|
3483
|
+
},
|
|
3484
|
+
{
|
|
3485
|
+
"name": "granularity",
|
|
3486
|
+
"type": "'day' | 'week' | 'month' | 'quarter' | null",
|
|
3487
|
+
"description": "Selected time granularity (Range Cockpit), or null when the control is disabled.",
|
|
3488
|
+
"descriptionKey": "ui.agent.dateRangePicker.state.granularity"
|
|
3489
|
+
},
|
|
3490
|
+
{
|
|
3491
|
+
"name": "compareRange",
|
|
3492
|
+
"type": "{ from: iso-date | null, to: iso-date | null } | null",
|
|
3493
|
+
"description": "Resolved comparison period when compare-to-previous-period is on, else null.",
|
|
3494
|
+
"descriptionKey": "ui.agent.dateRangePicker.state.compareRange"
|
|
3480
3495
|
}
|
|
3481
3496
|
],
|
|
3482
3497
|
"actions": [
|
|
@@ -3536,6 +3551,82 @@
|
|
|
3536
3551
|
"idempotent": true,
|
|
3537
3552
|
"description": "Close the range calendar popover.",
|
|
3538
3553
|
"descriptionKey": "ui.agent.dateRangePicker.actions.close"
|
|
3554
|
+
},
|
|
3555
|
+
{
|
|
3556
|
+
"name": "apply",
|
|
3557
|
+
"safety": "write",
|
|
3558
|
+
"idempotent": true,
|
|
3559
|
+
"description": "Commit the current draft range (as the Apply / Done button).",
|
|
3560
|
+
"descriptionKey": "ui.agent.dateRangePicker.actions.apply"
|
|
3561
|
+
},
|
|
3562
|
+
{
|
|
3563
|
+
"name": "cancel",
|
|
3564
|
+
"safety": "read",
|
|
3565
|
+
"idempotent": true,
|
|
3566
|
+
"description": "Discard the draft and close without committing.",
|
|
3567
|
+
"descriptionKey": "ui.agent.dateRangePicker.actions.cancel"
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
"name": "set_granularity",
|
|
3571
|
+
"safety": "write",
|
|
3572
|
+
"argsType": "{ granularity: 'day' | 'week' | 'month' | 'quarter' }",
|
|
3573
|
+
"argsSchema": {
|
|
3574
|
+
"type": "object",
|
|
3575
|
+
"properties": {
|
|
3576
|
+
"granularity": {
|
|
3577
|
+
"type": "string",
|
|
3578
|
+
"enum": [
|
|
3579
|
+
"day",
|
|
3580
|
+
"week",
|
|
3581
|
+
"month",
|
|
3582
|
+
"quarter"
|
|
3583
|
+
],
|
|
3584
|
+
"description": "Time grain to query the range at."
|
|
3585
|
+
}
|
|
3586
|
+
},
|
|
3587
|
+
"required": [
|
|
3588
|
+
"granularity"
|
|
3589
|
+
]
|
|
3590
|
+
},
|
|
3591
|
+
"idempotent": true,
|
|
3592
|
+
"examples": [
|
|
3593
|
+
{
|
|
3594
|
+
"args": {
|
|
3595
|
+
"granularity": "month"
|
|
3596
|
+
},
|
|
3597
|
+
"note": "Query by month."
|
|
3598
|
+
}
|
|
3599
|
+
],
|
|
3600
|
+
"description": "Set the time granularity (Range Cockpit).",
|
|
3601
|
+
"descriptionKey": "ui.agent.dateRangePicker.actions.setGranularity"
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
"name": "toggle_compare",
|
|
3605
|
+
"safety": "write",
|
|
3606
|
+
"argsType": "{ enabled: boolean }",
|
|
3607
|
+
"argsSchema": {
|
|
3608
|
+
"type": "object",
|
|
3609
|
+
"properties": {
|
|
3610
|
+
"enabled": {
|
|
3611
|
+
"type": "boolean",
|
|
3612
|
+
"description": "Whether to compare against the previous period."
|
|
3613
|
+
}
|
|
3614
|
+
},
|
|
3615
|
+
"required": [
|
|
3616
|
+
"enabled"
|
|
3617
|
+
]
|
|
3618
|
+
},
|
|
3619
|
+
"idempotent": true,
|
|
3620
|
+
"examples": [
|
|
3621
|
+
{
|
|
3622
|
+
"args": {
|
|
3623
|
+
"enabled": true
|
|
3624
|
+
},
|
|
3625
|
+
"note": "Enable period comparison."
|
|
3626
|
+
}
|
|
3627
|
+
],
|
|
3628
|
+
"description": "Turn compare-to-previous-period on or off (Range Cockpit).",
|
|
3629
|
+
"descriptionKey": "ui.agent.dateRangePicker.actions.toggleCompare"
|
|
3539
3630
|
}
|
|
3540
3631
|
],
|
|
3541
3632
|
"domHooks": {
|
package/dist/agent-i18n/en.json
CHANGED
|
@@ -385,13 +385,19 @@
|
|
|
385
385
|
"dateRangePicker": {
|
|
386
386
|
"state": {
|
|
387
387
|
"range": "Currently-selected ISO date range endpoints, each possibly null.",
|
|
388
|
-
"isOpen": "Whether the range calendar popover is open."
|
|
388
|
+
"isOpen": "Whether the range calendar popover is open.",
|
|
389
|
+
"granularity": "Selected time granularity (Range Cockpit), or null when the control is disabled.",
|
|
390
|
+
"compareRange": "Resolved comparison period when compare-to-previous-period is on, else null."
|
|
389
391
|
},
|
|
390
392
|
"actions": {
|
|
391
393
|
"setRange": "Replace the selected range with the given ISO endpoints.",
|
|
392
394
|
"clear": "Clear the selected range.",
|
|
393
395
|
"open": "Open the range calendar popover.",
|
|
394
|
-
"close": "Close the range calendar popover."
|
|
396
|
+
"close": "Close the range calendar popover.",
|
|
397
|
+
"apply": "Commit the current draft range (as the Apply / Done button).",
|
|
398
|
+
"cancel": "Discard the draft and close without committing.",
|
|
399
|
+
"setGranularity": "Set the time granularity (Range Cockpit).",
|
|
400
|
+
"toggleCompare": "Turn compare-to-previous-period on or off (Range Cockpit)."
|
|
395
401
|
}
|
|
396
402
|
},
|
|
397
403
|
"dateTimePicker": {
|
|
@@ -5,4 +5,9 @@ import type { ClassNames } from 'react-day-picker';
|
|
|
5
5
|
* keys at the type level.
|
|
6
6
|
*/
|
|
7
7
|
export declare const calendarClassNames: Partial<ClassNames>;
|
|
8
|
+
export declare const calendarCompareModifierClassNames: {
|
|
9
|
+
compareStart: string;
|
|
10
|
+
compareMiddle: string;
|
|
11
|
+
compareEnd: string;
|
|
12
|
+
};
|
|
8
13
|
//# sourceMappingURL=calendar-class-names.d.ts.map
|
|
@@ -3,9 +3,31 @@ export declare const triggerVariants: (props?: ({
|
|
|
3
3
|
tone?: "default" | "error" | null | undefined;
|
|
4
4
|
chrome?: "button" | "input" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
/**
|
|
7
|
+
* A small editable endpoint field for the DateRangePicker header (Start / End).
|
|
8
|
+
* `state` is a single enum so exactly one border rule wins: `active` marks the
|
|
9
|
+
* endpoint the next calendar click will set; `error` marks an unparseable typed
|
|
10
|
+
* value. Shares the input fill + halo with the other form fields.
|
|
11
|
+
*/
|
|
12
|
+
export declare const rangeFieldVariants: (props?: ({
|
|
13
|
+
state?: "default" | "error" | "active" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
|
+
/** Ghost / primary footer actions (Clear · Cancel · Done · Apply). */
|
|
16
|
+
export declare const rangeActionVariants: (props?: ({
|
|
17
|
+
intent?: "primary" | "ghost" | null | undefined;
|
|
18
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
|
+
/** The granularity segmented control shell — a Radix RadioGroup styled as a
|
|
20
|
+
* single-select segmented control (Day / Week / Month / Quarter). */
|
|
21
|
+
export declare const granularityGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
22
|
+
/** One segment. `data-[state=checked]` (Radix RadioGroupItem) fills it. */
|
|
23
|
+
export declare const granularityItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
24
|
+
/** Sub-heading above a group of presets in the grouped rail. */
|
|
25
|
+
export declare const presetGroupHeadingVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
6
26
|
export declare const calendarIconVariants: (props?: ({
|
|
7
27
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
8
28
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
29
|
export declare const popoverContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
|
-
export declare const presetButtonVariants: (props?:
|
|
30
|
+
export declare const presetButtonVariants: (props?: ({
|
|
31
|
+
active?: boolean | null | undefined;
|
|
32
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
33
|
//# sourceMappingURL=date-picker-variants.d.ts.map
|
|
@@ -17,8 +17,8 @@ export { INPUT_SURFACE_CHROME, INPUT_SURFACE_TONE, INPUT_SURFACE_HEIGHT, INPUT_S
|
|
|
17
17
|
export { getDateFnsLocale, getShortDateFormat, useDateFnsLocale, } from './date-locale';
|
|
18
18
|
export { buildDisabledMatcher } from './date-utils';
|
|
19
19
|
export { CalendarChevron } from './calendar-chevron';
|
|
20
|
-
export { calendarClassNames } from './calendar-class-names';
|
|
21
|
-
export { triggerVariants, calendarIconVariants, popoverContentVariants, presetButtonVariants, } from './date-picker-variants';
|
|
20
|
+
export { calendarClassNames, calendarCompareModifierClassNames, } from './calendar-class-names';
|
|
21
|
+
export { triggerVariants, calendarIconVariants, popoverContentVariants, presetButtonVariants, rangeFieldVariants, rangeActionVariants, granularityGroupVariants, granularityItemVariants, presetGroupHeadingVariants, } from './date-picker-variants';
|
|
22
22
|
export type { OptionShape } from './option';
|
|
23
23
|
export type { TimeValue } from './time';
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -19,6 +19,19 @@ export interface DateRangeFilterModel {
|
|
|
19
19
|
dateFrom: string | null;
|
|
20
20
|
dateTo: string | null;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* `filterParams` a colDef may pass to `DateRangeFilter` /
|
|
24
|
+
* `DateRangeFloatingFilter`.
|
|
25
|
+
*
|
|
26
|
+
* `commitMode` is forwarded to the wrapped `DateRangePicker`. Leave it unset
|
|
27
|
+
* (picker default `'auto'`, commit-on-complete-range) for cheap client-side row
|
|
28
|
+
* models; set `'apply'` for SERVER-side row models so each range edit defers to
|
|
29
|
+
* one Apply and fires a single datasource round-trip instead of one per commit.
|
|
30
|
+
*/
|
|
31
|
+
export interface DateRangeFilterParams {
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
commitMode?: 'auto' | 'apply';
|
|
34
|
+
}
|
|
22
35
|
export declare function DateRangeFilter(props: CustomFilterProps<unknown, unknown, DateRangeFilterModel>): import("react/jsx-runtime").JSX.Element;
|
|
23
36
|
/**
|
|
24
37
|
* Floating-filter companion for `DateRangeFilter`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as r, D as l, T as t, a as s, b as n, c as o, d, e as i, f as C } from "../../_chunks/actions-cell-renderer-DaL80uqL.js";
|
|
2
2
|
import { B as T, C as F, E as g, a as b, R as u, T as c, b as m, r as f, u as x } from "../../_chunks/editable-currency-cell-renderer-Dus_sBvX.js";
|
|
3
|
-
import { C as p, D as h, a as y, b as E, I as S, L as A, N as L, c as N, S as B, d as I, e as P, T as U, f as W, g as k, U as v } from "../../_chunks/link-cell-renderer-
|
|
3
|
+
import { C as p, D as h, a as y, b as E, I as S, L as A, N as L, c as N, S as B, d as I, e as P, T as U, f as W, g as k, U as v } from "../../_chunks/link-cell-renderer-DQjZeoAr.js";
|
|
4
4
|
export {
|
|
5
5
|
r as ActionsCellRenderer,
|
|
6
6
|
T as BalanceCellRenderer,
|
|
@@ -6,11 +6,22 @@ export interface DateRangePreset {
|
|
|
6
6
|
from: Date;
|
|
7
7
|
to: Date;
|
|
8
8
|
};
|
|
9
|
+
/** Optional group name — presets sharing a group render under one sub-heading. */
|
|
10
|
+
group?: string;
|
|
9
11
|
}
|
|
10
12
|
export interface DateRangeValue {
|
|
11
13
|
from?: Date;
|
|
12
14
|
to?: Date;
|
|
13
15
|
}
|
|
16
|
+
/** Time grain the range is queried at (Range Cockpit). */
|
|
17
|
+
export type DateRangeGranularity = 'day' | 'week' | 'month' | 'quarter';
|
|
18
|
+
/** How the comparison period is derived from the selected range. */
|
|
19
|
+
export type DateRangeCompareMode = 'previous' | 'lastYear';
|
|
20
|
+
/** Extra data emitted alongside a committed range (Range Cockpit). */
|
|
21
|
+
export interface DateRangeApplyMeta {
|
|
22
|
+
granularity?: DateRangeGranularity;
|
|
23
|
+
compareRange?: DateRangeValue;
|
|
24
|
+
}
|
|
14
25
|
/** Curated imperative handle exposed via `ref` — also consumed by the agent adapter. */
|
|
15
26
|
export interface DateRangePickerHandle {
|
|
16
27
|
/** Get the current selected range. */
|
|
@@ -25,14 +36,81 @@ export interface DateRangePickerHandle {
|
|
|
25
36
|
open: () => void;
|
|
26
37
|
/** Close the range calendar popover. */
|
|
27
38
|
close: () => void;
|
|
39
|
+
/** Current granularity, or undefined when the control is disabled. */
|
|
40
|
+
getGranularity: () => DateRangeGranularity | undefined;
|
|
41
|
+
/** Set the time granularity. */
|
|
42
|
+
setGranularity: (granularity: DateRangeGranularity) => void;
|
|
43
|
+
/** Current comparison period, or undefined when compare is off/incomplete. */
|
|
44
|
+
getCompareRange: () => DateRangeValue | undefined;
|
|
45
|
+
/** Turn compare-to-previous-period on or off. */
|
|
46
|
+
setCompare: (enabled: boolean) => void;
|
|
47
|
+
/** Label of the preset matching the committed range, or undefined for a custom range. */
|
|
48
|
+
getActivePreset: () => string | undefined;
|
|
49
|
+
/** Which endpoint the next calendar click will set, or null when the draft is complete. */
|
|
50
|
+
getActiveEnd: () => 'start' | 'end' | null;
|
|
51
|
+
/** Commit the current draft (as the Apply / Done button does). */
|
|
52
|
+
apply: () => void;
|
|
53
|
+
/** Discard the draft and close (as Cancel / Escape does). */
|
|
54
|
+
cancel: () => void;
|
|
28
55
|
}
|
|
29
56
|
export interface DateRangePickerProps extends Pick<VariantProps<typeof triggerVariants>, 'size'> {
|
|
30
57
|
/** Current range — controlled. */
|
|
31
58
|
value?: DateRangeValue;
|
|
32
59
|
/** Default range — uncontrolled. */
|
|
33
60
|
defaultValue?: DateRangeValue;
|
|
34
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Called when the range is committed. In `commitMode="auto"` (default) this
|
|
63
|
+
* fires the instant the range becomes COMPLETE (both ends) — never on a
|
|
64
|
+
* start-only partial. In `commitMode="apply"` it fires once, on Apply.
|
|
65
|
+
*/
|
|
35
66
|
onChange?: (range: DateRangeValue) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Commit model.
|
|
69
|
+
* - `'auto'` (default): manual selection updates a popover-local draft and
|
|
70
|
+
* commits (`onChange`) the moment both ends exist; the popover stays open so
|
|
71
|
+
* the user can refine, and the footer's Done button dismisses it. A preset
|
|
72
|
+
* commits and closes. Right for cheap client-side filters.
|
|
73
|
+
* - `'apply'`: every edit (presets, calendar, typed fields) mutates the draft
|
|
74
|
+
* only; nothing commits until the Apply button. Escape / outside-click /
|
|
75
|
+
* Cancel revert to the last committed value. Right for expensive queries
|
|
76
|
+
* that must not fire on a half-picked range.
|
|
77
|
+
*/
|
|
78
|
+
commitMode?: 'auto' | 'apply';
|
|
79
|
+
/**
|
|
80
|
+
* Called when the range is committed by a decisive action that CLOSES the
|
|
81
|
+
* popover — a preset click, or the Apply button. Completing a range on the
|
|
82
|
+
* calendar in `'auto'` mode fires `onChange` but keeps the popover open, so it
|
|
83
|
+
* does not fire `onApply`. The optional second argument carries the Range
|
|
84
|
+
* Cockpit metadata (granularity + resolved comparison range) when enabled.
|
|
85
|
+
*/
|
|
86
|
+
onApply?: (range: DateRangeValue, meta?: DateRangeApplyMeta) => void;
|
|
87
|
+
/** Called when an `'apply'`-mode edit is cancelled (Cancel / Escape / dismiss). */
|
|
88
|
+
onCancel?: () => void;
|
|
89
|
+
/** Show the footer Clear action. Defaults to `true`. */
|
|
90
|
+
showClear?: boolean;
|
|
91
|
+
/** Number of month grids to render. Defaults to `2`. */
|
|
92
|
+
numberOfMonths?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Range Cockpit — granularity. Passing `granularity` (controlled) or
|
|
95
|
+
* `defaultGranularity` (uncontrolled) shows a Day / Week / Month / Quarter
|
|
96
|
+
* segmented control in the header and names the queried grain.
|
|
97
|
+
*/
|
|
98
|
+
granularity?: DateRangeGranularity;
|
|
99
|
+
defaultGranularity?: DateRangeGranularity;
|
|
100
|
+
onGranularityChange?: (granularity: DateRangeGranularity) => void;
|
|
101
|
+
/**
|
|
102
|
+
* Range Cockpit — compare. When `true`, a compare-to-previous-period toggle
|
|
103
|
+
* appears; enabling it overlays a neutral secondary band on the calendar and
|
|
104
|
+
* (on Apply) reports the resolved comparison range via `onApply` meta and
|
|
105
|
+
* `onCompareChange`.
|
|
106
|
+
*/
|
|
107
|
+
compare?: boolean;
|
|
108
|
+
/** Start with compare enabled (only meaningful when `compare` is set). */
|
|
109
|
+
defaultCompare?: boolean;
|
|
110
|
+
defaultCompareMode?: DateRangeCompareMode;
|
|
111
|
+
onCompareChange?: (enabled: boolean, compareRange?: DateRangeValue) => void;
|
|
112
|
+
/** Week start (0 = Sunday). Defaults to the locale's first day. */
|
|
113
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
36
114
|
/** Minimum selectable date. */
|
|
37
115
|
minDate?: Date;
|
|
38
116
|
/** Maximum selectable date. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { DateRangePicker } from './date-range-picker';
|
|
2
|
-
export type { DateRangePickerProps, DateRangePreset, DateRangeValue, DateRangePickerHandle, } from './date-range-picker';
|
|
2
|
+
export type { DateRangePickerProps, DateRangePreset, DateRangeValue, DateRangePickerHandle, DateRangeGranularity, DateRangeCompareMode, DateRangeApplyMeta, } from './date-range-picker';
|
|
3
3
|
export { dateRangePickerAgent } from './date-range-picker.agent';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as e } from "../../_chunks/due-date-calculator-
|
|
2
|
-
import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-
|
|
1
|
+
import { D as e } from "../../_chunks/due-date-calculator-BEcdoy_E.js";
|
|
2
|
+
import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-BMMpi2lb.js";
|
|
3
3
|
export {
|
|
4
4
|
r as CRL_DATING_MAX_MM,
|
|
5
5
|
o as CRL_DATING_MIN_MM,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-
|
|
1
|
+
import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-DU_zFZoq.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BalanceBadgeCell,
|
|
4
4
|
l as CarePlanStatusCell,
|