nuxt-hs-ui 2.0.34 → 2.0.36

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.15.0"
6
6
  },
7
- "version": "2.0.34",
7
+ "version": "2.0.36",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -411,7 +411,11 @@ const inputClass = computed(() => {
411
411
  @keydown.right="onKeydown"
412
412
  >
413
413
  <!-- null -->
414
- <div v-if="!props.require" class="radio-col" :class="colClass">
414
+ <div
415
+ v-if="!props.require && props.nullable"
416
+ class="radio-col"
417
+ :class="colClass"
418
+ >
415
419
  <div
416
420
  class="nac-radio"
417
421
  :class="[{ disabled: props.disabled, readonly: props.readonly }]"
@@ -68,7 +68,7 @@ export declare const GetCellHtml: (html: string) => string;
68
68
  export declare const GetHeaderHtml: (html: string) => string;
69
69
  /** Data-Row-Table ボタン列 */
70
70
  export declare const GetListTableBtnSetting: (arg: {
71
- detailUrl: string;
71
+ detailUrl: string | null;
72
72
  mode: "select" | "detail";
73
73
  actionBtnTheme: Theme;
74
74
  componentName: string;
@@ -217,8 +217,11 @@ export const GetListTableBtnSetting = (arg) => {
217
217
  title: ``,
218
218
  formatter: (cell) => {
219
219
  const row = cell.getRow().getData();
220
- const baseUrl = detailUrl;
221
- const herf = mode === "detail" ? `href="${baseUrl.replace(/new/, "")}${row.pId}"` : "";
220
+ const herf = (() => {
221
+ if (mode !== "detail") return "";
222
+ if (!detailUrl) return "";
223
+ return `href="${detailUrl.replace(/new$/, "")}${row.pId}"`;
224
+ })();
222
225
  const style = [
223
226
  `border:solid 2px ${GetGolorCode(actionBtnTheme)}`,
224
227
  `color:${GetGolorCode(actionBtnTheme)}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-hs-ui",
3
- "version": "2.0.34",
3
+ "version": "2.0.36",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui",
6
6
  "license": "MIT",