@kazee-ds/vue 0.10.0 → 0.10.2
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/README.md +4 -3
- package/dist/index.js +35 -68
- package/dist/index.js.map +1 -1
- package/dist/types/date-range-model.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# @kazee-ds/vue
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prepared **0.10.2** centers the check and indeterminate dash of composed `Checkbox.Indicator`. Use React **0.10.3** or Vue **0.10.2** with styles **0.11.0**. These versions are unpublished; see [release status](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md).
|
|
4
4
|
|
|
5
|
+
The prepared styles **0.11.0** bundle tokens **0.7.0**, which add `--ds-color-text-secondary`: a cool-gray secondary text role (`#6b7090` light, `#9ca0ba` dark) that meets WCAG AA on default, raised and sunken surfaces. Published styles **0.10.3** / tokens **0.6.1** introduced `#DBDBDB` light-theme neutral borders, which remain unchanged.
|
|
5
6
|
Accessible Kazee Vue components, including Toast, built on Reka UI and native controls. Requires Vue 3.4+ and ESM.
|
|
6
7
|
|
|
7
8
|
Version **0.10.0** adds Combobox sizing, focus/search and nonempty-selection policies, full-control popovers, and compact and compound Dialog header/footer dividers and builds on controlled selectable Card actions, Avatar/AvatarGroup, expanded Badge, sized/icon Switch, interactive/compact Card, dense controls, input clearing and composable date/time families with native Vue models and slots. Existing compact APIs remain supported. Verify registry availability before installing; use matching local packed artifacts for checkout testing. See [component expansion](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/component-expansion.md) and [release status](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md).
|
|
@@ -11,10 +12,10 @@ Version 0.5.3 ignores Toast shortcut events with missing or non-string keys. Nor
|
|
|
11
12
|
|
|
12
13
|
## Install
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
After the prepared versions are published and verified, public npm installation requires no read token or login. Until then use matching local packed artifacts. Preserve the application's package manager and lockfile.
|
|
15
16
|
|
|
16
17
|
```sh
|
|
17
|
-
npm install --save-exact @kazee-ds/vue@0.10.
|
|
18
|
+
npm install --save-exact @kazee-ds/vue@0.10.2 @kazee-ds/styles@0.11.0
|
|
18
19
|
```
|
|
19
20
|
|
|
20
21
|
## Use
|
package/dist/index.js
CHANGED
|
@@ -569,7 +569,10 @@ var CheckboxIndicator_default = /* @__PURE__ */ defineComponent({
|
|
|
569
569
|
const props = __props;
|
|
570
570
|
const { forwardRef } = useForwardExpose();
|
|
571
571
|
return (_ctx, _cache) => {
|
|
572
|
-
return openBlock(), createBlock(unref(CheckboxIndicator), mergeProps({
|
|
572
|
+
return openBlock(), createBlock(unref(CheckboxIndicator), mergeProps({
|
|
573
|
+
ref: unref(forwardRef),
|
|
574
|
+
class: "checkbox__indicator"
|
|
575
|
+
}, {
|
|
573
576
|
...props,
|
|
574
577
|
..._ctx.$attrs
|
|
575
578
|
}), {
|
|
@@ -6084,7 +6087,7 @@ var _hoisted_6$7 = ["cx", "cy"];
|
|
|
6084
6087
|
var _hoisted_7$6 = ["x"];
|
|
6085
6088
|
var _hoisted_8$5 = { scope: "col" };
|
|
6086
6089
|
var _hoisted_9$3 = { scope: "col" };
|
|
6087
|
-
var _hoisted_10$
|
|
6090
|
+
var _hoisted_10$2 = { scope: "row" };
|
|
6088
6091
|
//#endregion
|
|
6089
6092
|
//#region src/Chart.vue
|
|
6090
6093
|
var Chart_default = /* @__PURE__ */ defineComponent({
|
|
@@ -6165,7 +6168,7 @@ var Chart_default = /* @__PURE__ */ defineComponent({
|
|
|
6165
6168
|
}), 128))
|
|
6166
6169
|
], 2)), createVNode(Table_default, { caption: __props.label }, {
|
|
6167
6170
|
default: withCtx(() => [createElementVNode("thead", null, [createElementVNode("tr", null, [createElementVNode("th", _hoisted_8$5, toDisplayString(__props.categoryLabel), 1), createElementVNode("th", _hoisted_9$3, toDisplayString(__props.valueLabel), 1)])]), createElementVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(model.value.items, (item) => {
|
|
6168
|
-
return openBlock(), createElementBlock("tr", { key: item.id }, [createElementVNode("th", _hoisted_10$
|
|
6171
|
+
return openBlock(), createElementBlock("tr", { key: item.id }, [createElementVNode("th", _hoisted_10$2, toDisplayString(item.label), 1), createElementVNode("td", null, toDisplayString(format.value.format(item.value)), 1)]);
|
|
6169
6172
|
}), 128))])]),
|
|
6170
6173
|
_: 1
|
|
6171
6174
|
}, 8, ["caption"])], 64)) : (openBlock(), createBlock(Empty_default, {
|
|
@@ -7415,8 +7418,8 @@ var _hoisted_6$6 = {
|
|
|
7415
7418
|
var _hoisted_7$5 = { class: "calendar__year-navigation" };
|
|
7416
7419
|
var _hoisted_8$4 = ["disabled", "aria-label"];
|
|
7417
7420
|
var _hoisted_9$2 = ["disabled", "aria-label"];
|
|
7418
|
-
var _hoisted_10$
|
|
7419
|
-
var _hoisted_11
|
|
7421
|
+
var _hoisted_10$1 = ["aria-label"];
|
|
7422
|
+
var _hoisted_11 = [
|
|
7420
7423
|
"disabled",
|
|
7421
7424
|
"aria-pressed",
|
|
7422
7425
|
"onClick"
|
|
@@ -7570,8 +7573,8 @@ var MonthYearNavigation_default = /* @__PURE__ */ defineComponent({
|
|
|
7570
7573
|
choose(year, current.value.month);
|
|
7571
7574
|
if (__props.mode === "header") view.value = "month";
|
|
7572
7575
|
}
|
|
7573
|
-
}, toDisplayString(year), 9, _hoisted_11
|
|
7574
|
-
}), 128))], 8, _hoisted_10$
|
|
7576
|
+
}, toDisplayString(year), 9, _hoisted_11);
|
|
7577
|
+
}), 128))], 8, _hoisted_10$1)])), __props.mode === "header" ? (openBlock(), createElementBlock("button", {
|
|
7575
7578
|
key: 2,
|
|
7576
7579
|
type: "button",
|
|
7577
7580
|
class: "calendar__back",
|
|
@@ -7712,25 +7715,19 @@ function createDateRangePresets(referenceDate = currentDate(), locale = "id-ID",
|
|
|
7712
7715
|
//#region src/DateRangePanel.vue?vue&type=script&setup=true&lang.ts
|
|
7713
7716
|
var _hoisted_1$8 = ["data-readonly"];
|
|
7714
7717
|
var _hoisted_2$7 = ["id"];
|
|
7715
|
-
var _hoisted_3$6 = [
|
|
7716
|
-
var _hoisted_4$5 = [
|
|
7717
|
-
"disabled",
|
|
7718
|
-
"aria-pressed",
|
|
7719
|
-
"onClick"
|
|
7720
|
-
];
|
|
7721
|
-
var _hoisted_5$5 = [
|
|
7718
|
+
var _hoisted_3$6 = [
|
|
7722
7719
|
"aria-label",
|
|
7723
7720
|
"disabled",
|
|
7724
7721
|
"value"
|
|
7725
7722
|
];
|
|
7726
|
-
var
|
|
7727
|
-
var
|
|
7723
|
+
var _hoisted_4$5 = ["value"];
|
|
7724
|
+
var _hoisted_5$5 = [
|
|
7728
7725
|
"disabled",
|
|
7729
7726
|
"value",
|
|
7730
7727
|
"min",
|
|
7731
7728
|
"max"
|
|
7732
7729
|
];
|
|
7733
|
-
var
|
|
7730
|
+
var _hoisted_6$5 = [
|
|
7734
7731
|
"value",
|
|
7735
7732
|
"min",
|
|
7736
7733
|
"max",
|
|
@@ -7740,10 +7737,9 @@ var _hoisted_8$3 = [
|
|
|
7740
7737
|
"aria-describedby",
|
|
7741
7738
|
"onInput"
|
|
7742
7739
|
];
|
|
7743
|
-
var
|
|
7744
|
-
var
|
|
7745
|
-
var
|
|
7746
|
-
var _hoisted_12 = ["disabled"];
|
|
7740
|
+
var _hoisted_7$4 = ["id"];
|
|
7741
|
+
var _hoisted_8$3 = ["disabled"];
|
|
7742
|
+
var _hoisted_9$1 = ["disabled"];
|
|
7747
7743
|
//#endregion
|
|
7748
7744
|
//#region src/DateRangePanel.vue
|
|
7749
7745
|
var DateRangePanel_default = /* @__PURE__ */ defineComponent({
|
|
@@ -7807,25 +7803,11 @@ var DateRangePanel_default = /* @__PURE__ */ defineComponent({
|
|
|
7807
7803
|
class: normalizeClass(unref(partClasses)("date-range__content", _ctx.$props.classNames?.content)),
|
|
7808
7804
|
"data-readonly": __props.readonly || void 0
|
|
7809
7805
|
}, [
|
|
7810
|
-
createElementVNode("header", { class: normalizeClass(unref(partClasses)("date-range__intro", _ctx.$props.classNames?.intro)) }, [createElementVNode("h2", { id: `${__props.id}-title` }, toDisplayString(__props.labels.title), 9, _hoisted_2$7), createElementVNode("p", {
|
|
7806
|
+
createElementVNode("header", { class: normalizeClass(unref(partClasses)("date-range__intro temporal__sr-only", _ctx.$props.classNames?.intro)) }, [createElementVNode("h2", { id: `${__props.id}-title` }, toDisplayString(__props.labels.title), 9, _hoisted_2$7), createElementVNode("p", {
|
|
7811
7807
|
class: normalizeClass(unref(partClasses)("date-range__summary", _ctx.$props.classNames?.summary)),
|
|
7812
7808
|
"aria-live": "polite"
|
|
7813
7809
|
}, toDisplayString(unref(rangeText)(nullable.value, locale.value) || __props.labels.incomplete), 3)], 2),
|
|
7814
|
-
createElementVNode("div", { class: normalizeClass(unref(partClasses)("date-range__body", _ctx.$props.classNames?.body)) }, [
|
|
7815
|
-
key: 0,
|
|
7816
|
-
class: normalizeClass(unref(partClasses)("date-range__presets", _ctx.$props.classNames?.presets)),
|
|
7817
|
-
role: "group",
|
|
7818
|
-
"aria-label": __props.labels.presets
|
|
7819
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options.presets, (preset) => {
|
|
7820
|
-
return openBlock(), createElementBlock("button", {
|
|
7821
|
-
key: preset.id,
|
|
7822
|
-
type: "button",
|
|
7823
|
-
class: normalizeClass(unref(partClasses)("date-range__preset", _ctx.$props.classNames?.preset)),
|
|
7824
|
-
disabled: __props.disabled || __props.readonly || !!unref(rangeError)(preset.value, __props.options),
|
|
7825
|
-
"aria-pressed": __props.draft.start === preset.value.start && __props.draft.end === preset.value.end,
|
|
7826
|
-
onClick: ($event) => emit("draft", { ...preset.value })
|
|
7827
|
-
}, toDisplayString(preset.label), 11, _hoisted_4$5);
|
|
7828
|
-
}), 128))], 10, _hoisted_3$6)) : createCommentVNode("", true), createElementVNode("div", { class: normalizeClass(unref(partClasses)("date-range__main", _ctx.$props.classNames?.main)) }, [
|
|
7810
|
+
createElementVNode("div", { class: normalizeClass(unref(partClasses)("date-range__body", _ctx.$props.classNames?.body)) }, [createElementVNode("div", { class: normalizeClass(unref(partClasses)("date-range__main", _ctx.$props.classNames?.main)) }, [
|
|
7829
7811
|
__props.options.showMonthYearPicker ? (openBlock(), createElementBlock("div", {
|
|
7830
7812
|
key: 0,
|
|
7831
7813
|
class: normalizeClass(unref(partClasses)("date-range__jump", _ctx.$props.classNames?.jump))
|
|
@@ -7846,8 +7828,8 @@ var DateRangePanel_default = /* @__PURE__ */ defineComponent({
|
|
|
7846
7828
|
}).format(focused.value.set({
|
|
7847
7829
|
month,
|
|
7848
7830
|
day: 1
|
|
7849
|
-
}).toDate("UTC"))), 9,
|
|
7850
|
-
}), 64))], 40,
|
|
7831
|
+
}).toDate("UTC"))), 9, _hoisted_4$5);
|
|
7832
|
+
}), 64))], 40, _hoisted_3$6)]), createElementVNode("label", null, [createElementVNode("span", null, toDisplayString(locale.value.startsWith("id") ? "Tahun" : "Year"), 1), createElementVNode("input", {
|
|
7851
7833
|
type: "number",
|
|
7852
7834
|
form: "",
|
|
7853
7835
|
disabled: __props.disabled,
|
|
@@ -7855,7 +7837,7 @@ var DateRangePanel_default = /* @__PURE__ */ defineComponent({
|
|
|
7855
7837
|
min: unref(asDate)(__props.options.minDate)?.year ?? 1,
|
|
7856
7838
|
max: unref(asDate)(__props.options.maxDate)?.year ?? 9999,
|
|
7857
7839
|
onChange: jumpYear
|
|
7858
|
-
}, null, 40,
|
|
7840
|
+
}, null, 40, _hoisted_5$5)])], 2)) : createCommentVNode("", true),
|
|
7859
7841
|
__props.options.showInputs !== false ? (openBlock(), createElementBlock("div", {
|
|
7860
7842
|
key: 1,
|
|
7861
7843
|
class: normalizeClass(unref(partClasses)("date-range__inputs", _ctx.$props.classNames?.inputs))
|
|
@@ -7874,7 +7856,7 @@ var DateRangePanel_default = /* @__PURE__ */ defineComponent({
|
|
|
7874
7856
|
"aria-invalid": !!errorCode.value,
|
|
7875
7857
|
"aria-describedby": error.value ? `${__props.id}-draft-error` : void 0,
|
|
7876
7858
|
onInput: ($event) => edit(part, $event)
|
|
7877
|
-
}, null, 40,
|
|
7859
|
+
}, null, 40, _hoisted_6$5)], 2);
|
|
7878
7860
|
}), 64))], 2)) : createCommentVNode("", true),
|
|
7879
7861
|
createVNode(unref(RangeCalendarRoot), {
|
|
7880
7862
|
placeholder: focused.value,
|
|
@@ -7995,7 +7977,7 @@ var DateRangePanel_default = /* @__PURE__ */ defineComponent({
|
|
|
7995
7977
|
key: 0,
|
|
7996
7978
|
id: `${__props.id}-draft-error`,
|
|
7997
7979
|
role: "alert"
|
|
7998
|
-
}, toDisplayString(error.value), 9,
|
|
7980
|
+
}, toDisplayString(error.value), 9, _hoisted_7$4)) : createCommentVNode("", true)], 2)
|
|
7999
7981
|
], 2)], 2),
|
|
8000
7982
|
__props.options.showActions !== false ? (openBlock(), createElementBlock("footer", {
|
|
8001
7983
|
key: 0,
|
|
@@ -8008,32 +7990,17 @@ var DateRangePanel_default = /* @__PURE__ */ defineComponent({
|
|
|
8008
7990
|
start: "",
|
|
8009
7991
|
end: ""
|
|
8010
7992
|
}))
|
|
8011
|
-
}, toDisplayString(__props.labels.clear), 11,
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
}))
|
|
8023
|
-
}, toDisplayString(locale.value.startsWith("id") ? "Hari ini" : "Today"), 9, _hoisted_11),
|
|
8024
|
-
createElementVNode("button", {
|
|
8025
|
-
type: "button",
|
|
8026
|
-
class: normalizeClass(unref(partClasses)("button button--secondary button--sm date-range__cancel", _ctx.$props.classNames?.cancel)),
|
|
8027
|
-
onClick: _cache[4] || (_cache[4] = ($event) => emit("cancel"))
|
|
8028
|
-
}, toDisplayString(__props.labels.cancel), 3),
|
|
8029
|
-
__props.options.commitMode !== "immediate" ? (openBlock(), createElementBlock("button", {
|
|
8030
|
-
key: 0,
|
|
8031
|
-
type: "button",
|
|
8032
|
-
class: normalizeClass(unref(partClasses)("button button--primary button--sm date-range__apply", _ctx.$props.classNames?.apply)),
|
|
8033
|
-
disabled: __props.disabled || __props.readonly || !!errorCode.value,
|
|
8034
|
-
onClick: _cache[5] || (_cache[5] = ($event) => emit("apply"))
|
|
8035
|
-
}, toDisplayString(__props.labels.apply), 11, _hoisted_12)) : createCommentVNode("", true)
|
|
8036
|
-
])], 2)) : createCommentVNode("", true)
|
|
7993
|
+
}, toDisplayString(__props.labels.clear), 11, _hoisted_8$3), createElementVNode("div", null, [createElementVNode("button", {
|
|
7994
|
+
type: "button",
|
|
7995
|
+
class: normalizeClass(unref(partClasses)("button button--secondary button--sm date-range__cancel", _ctx.$props.classNames?.cancel)),
|
|
7996
|
+
onClick: _cache[3] || (_cache[3] = ($event) => emit("cancel"))
|
|
7997
|
+
}, toDisplayString(__props.labels.cancel), 3), __props.options.commitMode !== "immediate" ? (openBlock(), createElementBlock("button", {
|
|
7998
|
+
key: 0,
|
|
7999
|
+
type: "button",
|
|
8000
|
+
class: normalizeClass(unref(partClasses)("button button--primary button--sm date-range__apply", _ctx.$props.classNames?.apply)),
|
|
8001
|
+
disabled: __props.disabled || __props.readonly || !!errorCode.value,
|
|
8002
|
+
onClick: _cache[4] || (_cache[4] = ($event) => emit("apply"))
|
|
8003
|
+
}, toDisplayString(__props.labels.apply), 11, _hoisted_9$1)) : createCommentVNode("", true)])], 2)) : createCommentVNode("", true)
|
|
8037
8004
|
], 10, _hoisted_1$8);
|
|
8038
8005
|
};
|
|
8039
8006
|
}
|