@npm-questionpro/wick-ui-lib 1.49.2 → 1.50.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.
|
@@ -733,7 +733,7 @@ var dt = (e) => {
|
|
|
733
733
|
}, gt = ({ buttonRef: e, handleDropdownToggle: t, handleKeyDown: n, isDropdownOpen: r, activeProductName: i, dir: a = "ltr", homeLink: o = "/" }) => /* @__PURE__ */ w("button", {
|
|
734
734
|
ref: e,
|
|
735
735
|
type: "button",
|
|
736
|
-
className: K("wu-text-base wu-font-normal wu-flex wu-items-center wu-justify-between wu-w-full focus:wu-outline-none focus-visible:wu-
|
|
736
|
+
className: K("wu-text-base wu-font-normal", "wu-flex wu-items-center wu-justify-between wu-w-full wu-h-12", "focus:wu-outline-none focus-visible:wu-outline-none", "focus-visible:wu-ring-2 focus-visible:wu-ring-transparent", "focus-visible:wu-ring-inset", "focus-visible:wu-bg-white/10", "rtl:wu-pr-2 wu-pl-2 rtl:wu-pl-1 wu-pr-1", "wu-switcher-trigger"),
|
|
737
737
|
onClick: t,
|
|
738
738
|
onKeyDown: (e) => {
|
|
739
739
|
r && e.key === "ArrowDown" && n(e, -1);
|
|
@@ -818,7 +818,8 @@ var dt = (e) => {
|
|
|
818
818
|
e379: "wp-suite-cx",
|
|
819
819
|
e382: "wp-suite-cx",
|
|
820
820
|
e308: "wp-surveys",
|
|
821
|
-
e315: "wp-workforce"
|
|
821
|
+
e315: "wp-workforce",
|
|
822
|
+
e418: "wp-digsite"
|
|
822
823
|
}, yt = ({ product: e, currentProduct: t, activeProductName: n, dir: r, focusItem: i, setFocusItem: a }) => {
|
|
823
824
|
let [o, s] = y(e.name === t), c = e.name === n, l = e.name === t, u = !e.active, d = K("wu-font-normal wu-text-xs wu-text-gray-lead wu-text-center", l && "wu-text-blue-q wu-font-normal", !e.active && "wu-text-gray-subtle", o && "wu-font-normal", e.active && o && "wu-text-blue-q"), f = K("wu-text-blue-p wu-text-base", l && "wu-text-blue-q", !e.active && "wu-text-gray-subtle", e.active && o && "wu-text-blue-q"), p = o || i === e.name || c ? "#1b3380" : "#c5cce0";
|
|
824
825
|
return /* @__PURE__ */ w("li", {
|
|
@@ -1422,7 +1423,7 @@ var Zt = (e) => /* @__PURE__ */ C(Xt, {
|
|
|
1422
1423
|
]
|
|
1423
1424
|
})]
|
|
1424
1425
|
});
|
|
1425
|
-
}, $t = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: n, disabled: r, minDate: i = z(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: a = k(/* @__PURE__ */ new Date(), { years: 1 }), dir: o = "ltr", Label: s, labelPosition: c = "top", onReset: l, showResetButton: d = !1, placeholder: f
|
|
1426
|
+
}, $t = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: n, disabled: r, minDate: i = z(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: a = k(/* @__PURE__ */ new Date(), { years: 1 }), dir: o = "ltr", Label: s, labelPosition: c = "top", onReset: l, showResetButton: d = !1, placeholder: f, CustomTrigger: m, align: h = "start", sideOffset: g = -.5, side: _, alignOffset: v, ...b }) => {
|
|
1426
1427
|
let [x, S] = y(), [T, E] = y(""), D = u(() => {
|
|
1427
1428
|
E(j(Wt(x), e)), n && n(x);
|
|
1428
1429
|
}, [
|
|
@@ -1433,9 +1434,16 @@ var Zt = (e) => /* @__PURE__ */ C(Xt, {
|
|
|
1433
1434
|
l ? l() : (S(void 0), E(""), n && n(void 0));
|
|
1434
1435
|
}, [n, l]);
|
|
1435
1436
|
return p(() => {
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1437
|
+
if (!t && f) S(void 0), E("");
|
|
1438
|
+
else {
|
|
1439
|
+
let n = Wt(t);
|
|
1440
|
+
S(n), E(j(n, e));
|
|
1441
|
+
}
|
|
1442
|
+
}, [
|
|
1443
|
+
t,
|
|
1444
|
+
e,
|
|
1445
|
+
f
|
|
1446
|
+
]), /* @__PURE__ */ w(Zt, {
|
|
1439
1447
|
className: K("wu-flex wu-gap-1", c === "left" ? "wu-items-center" : "wu-flex-col wu-items-start", "wu-date-picker-label"),
|
|
1440
1448
|
dir: o,
|
|
1441
1449
|
children: [s, /* @__PURE__ */ w(Pt, { children: [/* @__PURE__ */ C(Ht, {
|
|
@@ -2746,7 +2754,7 @@ function Di({ ranges: e = xi, excludeToday: t = !0, current: r, onSelect: i, onR
|
|
|
2746
2754
|
}
|
|
2747
2755
|
//#endregion
|
|
2748
2756
|
//#region src/components/calendar/components/dateRangePicker/WuDateRangePicker.tsx
|
|
2749
|
-
var Oi = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: r, disabled: i, minDate: a = z(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: o = k(/* @__PURE__ */ new Date(), { years: 1 }), dir: s = "ltr", minDateToSelect: c, maxDateToSelect: l, presetRanges: u, Label: d, labelPosition: f = "top", onReset: p, showResetButton: m = !0, placeholder: h
|
|
2757
|
+
var Oi = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: r, disabled: i, minDate: a = z(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: o = k(/* @__PURE__ */ new Date(), { years: 1 }), dir: s = "ltr", minDateToSelect: c, maxDateToSelect: l, presetRanges: u, Label: d, labelPosition: f = "top", onReset: p, showResetButton: m = !0, placeholder: h, CustomTrigger: g, native: _, align: v = "start", alignOffset: y, side: b, sideOffset: x = -.5, ...T }) => {
|
|
2750
2758
|
let [E, D] = n.useState(t), [O, A] = n.useState(t), [M, N] = n.useState(""), P = n.useCallback(() => {
|
|
2751
2759
|
if (O) {
|
|
2752
2760
|
let t = O.from, n = O.to;
|
|
@@ -2771,11 +2779,15 @@ var Oi = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: r, disabled: i
|
|
|
2771
2779
|
if (t?.from && t?.to) {
|
|
2772
2780
|
let n = Wt(t.from), r = Wt(t.to);
|
|
2773
2781
|
D(t), A(t), N(`${j(n, e)} - ${j(r, e)}`);
|
|
2774
|
-
} else D(void 0), A({
|
|
2782
|
+
} else h ? (D(void 0), A(void 0), N("")) : (D(void 0), A({
|
|
2775
2783
|
to: /* @__PURE__ */ new Date(),
|
|
2776
2784
|
from: /* @__PURE__ */ new Date()
|
|
2777
|
-
});
|
|
2778
|
-
}, [
|
|
2785
|
+
}));
|
|
2786
|
+
}, [
|
|
2787
|
+
t,
|
|
2788
|
+
e,
|
|
2789
|
+
h
|
|
2790
|
+
]), /* @__PURE__ */ w(Zt, {
|
|
2779
2791
|
className: K("wu-flex wu-gap-1", f === "left" ? "wu-items-center" : "wu-flex-col wu-items-start", "wu-date-picker-label"),
|
|
2780
2792
|
dir: s,
|
|
2781
2793
|
children: [d, /* @__PURE__ */ w(Pt, {
|
|
@@ -12359,6 +12371,6 @@ var Vy = V("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosit
|
|
|
12359
12371
|
});
|
|
12360
12372
|
//#endregion
|
|
12361
12373
|
//#region src/index.ts
|
|
12362
|
-
ob.displayName = "WuTranslate", typeof window < "u" && (window.wickUiVersion = "1.
|
|
12374
|
+
ob.displayName = "WuTranslate", typeof window < "u" && (window.wickUiVersion = "1.50.0");
|
|
12363
12375
|
//#endregion
|
|
12364
12376
|
export { Ky as CHART_COLOR_SYSTEM, He as WuAccordion, Je as WuActivityLog, Nt as WuAppHeader, ot as WuAppHeaderAccount, Tt as WuAppHeaderBar, st as WuAppHeaderHelp, wt as WuAppHeaderMenu, Et as WuAppHeaderSearch, tt as WuButton, Bt as WuCalender, ki as WuCard, ji as WuCardFooter, Ai as WuCardHeader, Ni as WuCheckbox, Ii as WuChip, ha as WuCombobox, ga as WuCopyToClipboard, Qv as WuDataTable, $t as WuDatePicker, Oi as WuDateRangePicker, mt as WuDisplay, ka as WuDrawer, Aa as WuDrawerClose, Kp as WuDrilldown, Qp as WuFooter, Qt as WuFormGroup, ft as WuHeading, $p as WuHelpButton, ht as WuIcon, mi as WuInput, qt as WuInputError, Jt as WuInputHint, Zt as WuLabel, cm as WuListbox, Qe as WuLoader, Vp as WuMenu, Mp as WuMenuCheckboxItem, lm as WuMenuIcon, Np as WuMenuItem, Pp as WuMenuItemGroup, Fp as WuMenuRadioItem, Ip as WuMenuSeparatorItem, Em as WuModal, Am as WuModalClose, Dm as WuModalContent, km as WuModalFooter, Om as WuModalHeader, Bm as WuMonthPicker, qm as WuPagination, vi as WuPopover, yi as WuPopoverClose, Wm as WuPrimaryNavbar, Zm as WuRadioGroup, Qm as WuScrollArea, Km as WuSecondaryNavbar, Rm as WuSelect, Y_ as WuSharedSurvey, fg as WuSidebar, yg as WuSidebarCollapsibleMenu, mg as WuSidebarContent, hg as WuSidebarFooter, gg as WuSidebarGroup, vg as WuSidebarItem, _g as WuSidebarMenu, pg as WuSidebarTrigger, Sm as WuSpotlight, wg as WuStackedCard, Tg as WuStackedCardOverlay, K_ as WuStepper, zp as WuSubMenu, pt as WuSubtext, Z_ as WuSurveyItem, Q_ as WuSurveyList, tv as WuSurveySelect, ev as WuSurveySource, uv as WuSwitcher, xv as WuTab, $v as WuTable, dt as WuText, ty as WuTextarea, my as WuTimePicker, Ry as WuToast, By as WuToggle, jt as WuTooltip, ob as WuTranslate, ab as WuTranslateProvider, Hy as WuTranslationContext, Gy as WuTranslationProvider, Mt as WuTruncatedLabel, Ki as WuVirtualScroll, Sg as calculatePosition, d as useContext, Uy as useTranslation, Wy as useTranslationsContext, nb as useWickuiTranslate, rb as useWt, Dy as useWuShowToast, dh as useWuSidebar, Qy as wt, eb as wtCharacterSet, $y as wtIsRtl };
|