fds-vue-core 2.0.21 → 2.0.23

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.
@@ -1 +1 @@
1
- {"version":3,"file":"FdsRadio.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsRadio/FdsRadio.vue"],"names":[],"mappings":"AAqGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAqEjC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAyEF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;4EAInB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAY1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"FdsRadio.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsRadio/FdsRadio.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA8EjC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAwEF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;4EAInB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAY1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -430,7 +430,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
430
430
  const modelValue = vue.useModel(__props, "modelValue");
431
431
  const props = __props;
432
432
  const emit = __emit;
433
- const wrapperClasses = vue.computed(() => ["block relative flex items-center"]);
433
+ const wrapperClasses = vue.computed(() => ["block relative flex items-center mb-2 last:mb-0"]);
434
434
  const innerWrapperClasses = vue.computed(() => ["flex p-0.5 items-start rounded-md"]);
435
435
  const checkboxClasses = vue.computed(() => [
436
436
  "rounded-md transition-colors duration-200 accent-blue-500 m-[3px]",
@@ -1131,7 +1131,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
1131
1131
  };
1132
1132
  }
1133
1133
  });
1134
- const _hoisted_1$l = ["id", "name", "value", "disabled", "required", "checked"];
1134
+ const _hoisted_1$l = ["id", "name", "value", "disabled", "required"];
1135
1135
  const _hoisted_2$d = ["for"];
1136
1136
  const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
1137
1137
  __name: "FdsRadio",
@@ -1159,7 +1159,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
1159
1159
  const inputId = vue.computed(() => props.id ?? autoId);
1160
1160
  const slots = vue.useSlots();
1161
1161
  const hasLabelSlot = vue.computed(() => !!slots.default);
1162
- const wrapperClasses = vue.computed(() => ["block relative flex items-center"]);
1162
+ const wrapperClasses = vue.computed(() => ["block relative flex items-center mb-2 last:mb-0"]);
1163
1163
  const innerWrapperClasses = vue.computed(() => ["flex p-0.5 items-start rounded-l-xl rounded-r-md"]);
1164
1164
  const stateClasses = vue.computed(() => [
1165
1165
  "hover:bg-blue_t-100 active:bg-blue_t-200",
@@ -1171,11 +1171,18 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
1171
1171
  props.disabled && "cursor-not-allowed"
1172
1172
  ]);
1173
1173
  const groupModel = vue.computed({
1174
- get: () => modelValue.value,
1175
- set: (v) => {
1176
- modelValue.value = v;
1177
- emit("update:checked", true);
1178
- emit("change", true);
1174
+ get: () => {
1175
+ if (modelValue.value !== void 0 && props.value !== void 0) {
1176
+ return modelValue.value === props.value ? props.value : void 0;
1177
+ }
1178
+ return props.checked ? props.value : void 0;
1179
+ },
1180
+ set: () => {
1181
+ if (props.value !== void 0) {
1182
+ modelValue.value = props.value;
1183
+ emit("update:checked", true);
1184
+ emit("change", true);
1185
+ }
1179
1186
  }
1180
1187
  });
1181
1188
  const handleBlur = (event) => emit("blur", event);
@@ -1198,7 +1205,6 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
1198
1205
  required: _ctx.required,
1199
1206
  type: "radio",
1200
1207
  class: vue.normalizeClass([inputClasses.value, "m-[3px]"]),
1201
- checked: props.checked,
1202
1208
  onBlur: handleBlur,
1203
1209
  onFocus: handleFocus,
1204
1210
  onKeydown: handleKeydown,
@@ -3555,7 +3561,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3555
3561
  size: "24px",
3556
3562
  disabled: _ctx.current === 1,
3557
3563
  ariaDisabled: _ctx.current === 1,
3558
- class: vue.normalizeClass([{ hidden: _ctx.current === 1 }, "w-8 h-8 sm:w-12 sm:h-12"]),
3564
+ class: vue.normalizeClass([{ "hidden!": _ctx.current === 1 }, "w-8 h-8 sm:w-12 sm:h-12"]),
3559
3565
  onClick: _cache[0] || (_cache[0] = ($event) => handlePagination("start"))
3560
3566
  }, null, 8, ["disabled", "ariaDisabled", "class"])),
3561
3567
  _ctx.loading && loadingIndicator.value === "prev" ? (vue.openBlock(), vue.createBlock(_sfc_main$p, {
@@ -3568,7 +3574,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3568
3574
  size: "24px",
3569
3575
  disabled: _ctx.current === 1,
3570
3576
  ariaDisabled: _ctx.current === 1,
3571
- class: vue.normalizeClass([{ hidden: _ctx.current === 1 }, "w-8 h-8 sm:w-12 sm:h-12"]),
3577
+ class: vue.normalizeClass([{ "hidden!": _ctx.current === 1 }, "w-8 h-8 sm:w-12 sm:h-12"]),
3572
3578
  onClick: _cache[1] || (_cache[1] = ($event) => handlePagination("prev"))
3573
3579
  }, null, 8, ["disabled", "ariaDisabled", "class"]))
3574
3580
  ]),
@@ -3602,7 +3608,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3602
3608
  size: "24px",
3603
3609
  disabled: _ctx.current === _ctx.max,
3604
3610
  ariaDisabled: _ctx.current === _ctx.max,
3605
- class: vue.normalizeClass([{ hidden: _ctx.current === _ctx.max }, "w-8 h-8 sm:w-12 sm:h-12"]),
3611
+ class: vue.normalizeClass([{ "hidden!": _ctx.current === _ctx.max }, "w-8 h-8 sm:w-12 sm:h-12"]),
3606
3612
  onClick: _cache[2] || (_cache[2] = ($event) => handlePagination("next"))
3607
3613
  }, null, 8, ["disabled", "ariaDisabled", "class"])),
3608
3614
  _ctx.loading && loadingIndicator.value === "end" ? (vue.openBlock(), vue.createBlock(_sfc_main$p, {
@@ -3615,7 +3621,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
3615
3621
  size: "24px",
3616
3622
  disabled: _ctx.current === _ctx.max,
3617
3623
  ariaDisabled: _ctx.current === _ctx.max,
3618
- class: vue.normalizeClass([{ hidden: _ctx.current === _ctx.max }, "w-8 h-8 sm:w-12 sm:h-12"]),
3624
+ class: vue.normalizeClass([{ "hidden!": _ctx.current === _ctx.max }, "w-8 h-8 sm:w-12 sm:h-12"]),
3619
3625
  onClick: _cache[3] || (_cache[3] = ($event) => handlePagination("end"))
3620
3626
  }, null, 8, ["disabled", "ariaDisabled", "class"]))
3621
3627
  ])