Skip to content

Commit

Permalink
Fixed an issue where group names would disappear when switching field…
Browse files Browse the repository at this point in the history
…s in a group.
  • Loading branch information
1000-x-t30 committed Oct 3, 2024
1 parent 2ecb6df commit 0432564
Show file tree
Hide file tree
Showing 18 changed files with 2,011 additions and 1,622 deletions.
120 changes: 120 additions & 0 deletions acmscss/acms-admin-new.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,30 @@
.acms-items-stretch {
align-items: stretch !important;
}
.acms-justify-normal {
justify-content: normal !important;
}
.acms-justify-start {
justify-content: flex-start !important;
}
.acms-justify-end {
justify-content: flex-end !important;
}
.acms-justify-center {
justify-content: center !important;
}
.acms-justify-between {
justify-content: space-between !important;
}
.acms-justify-around {
justify-content: space-around !important;
}
.acms-justify-evenly {
justify-content: space-evenly !important;
}
.acms-justify-stretch {
justify-content: stretch !important;
}


@media (min-width: 480px) {
Expand Down Expand Up @@ -83,6 +107,30 @@
.acms-items-stretch-min-sm {
align-items: stretch !important;
}
.acms-justify-normal-min-sm {
justify-content: normal !important;
}
.acms-justify-start-min-sm {
justify-content: flex-start !important;
}
.acms-justify-end-min-sm {
justify-content: flex-end !important;
}
.acms-justify-center-min-sm {
justify-content: center !important;
}
.acms-justify-between-min-sm {
justify-content: space-between !important;
}
.acms-justify-around-min-sm {
justify-content: space-around !important;
}
.acms-justify-evenly-min-sm {
justify-content: space-evenly !important;
}
.acms-justify-stretch-min-sm {
justify-content: stretch !important;
}
}

@media (min-width: 768px) {
Expand Down Expand Up @@ -116,6 +164,30 @@
.acms-items-stretch-min-md {
align-items: stretch !important;
}
.acms-justify-normal-min-md {
justify-content: normal !important;
}
.acms-justify-start-min-md {
justify-content: flex-start !important;
}
.acms-justify-end-min-md {
justify-content: flex-end !important;
}
.acms-justify-center-min-md {
justify-content: center !important;
}
.acms-justify-between-min-md {
justify-content: space-between !important;
}
.acms-justify-around-min-md {
justify-content: space-around !important;
}
.acms-justify-evenly-min-md {
justify-content: space-evenly !important;
}
.acms-justify-stretch-min-md {
justify-content: stretch !important;
}
}

@media (min-width: 1024px) {
Expand Down Expand Up @@ -149,6 +221,30 @@
.acms-items-stretch-lg {
align-items: stretch !important;
}
.acms-justify-normal-min-lg {
justify-content: normal !important;
}
.acms-justify-start-min-lg {
justify-content: flex-start !important;
}
.acms-justify-end-min-lg {
justify-content: flex-end !important;
}
.acms-justify-center-min-lg {
justify-content: center !important;
}
.acms-justify-between-min-lg {
justify-content: space-between !important;
}
.acms-justify-around-min-lg {
justify-content: space-around !important;
}
.acms-justify-evenly-min-lg {
justify-content: space-evenly !important;
}
.acms-justify-stretch-min-lg {
justify-content: stretch !important;
}
}

@media (min-width: 1440px) {
Expand Down Expand Up @@ -182,6 +278,30 @@
.acms-items-stretch-min-xl {
align-items: stretch !important;
}
.acms-justify-normal-min-xl {
justify-content: normal !important;
}
.acms-justify-start-min-xl {
justify-content: flex-start !important;
}
.acms-justify-end-min-xl {
justify-content: flex-end !important;
}
.acms-justify-center-min-xl {
justify-content: center !important;
}
.acms-justify-between-min-xl {
justify-content: space-between !important;
}
.acms-justify-around-min-xl {
justify-content: space-around !important;
}
.acms-justify-evenly-min-xl {
justify-content: space-evenly !important;
}
.acms-justify-stretch-min-xl {
justify-content: stretch !important;
}
}

/* --------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion css/custom-field-maker.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr));
gap: 64px;
max-width: 960px;
}

.customFieldContainer h2 {
Expand Down Expand Up @@ -63,7 +64,7 @@
grid-template-columns: repeat(3, 1fr);
grid-template-areas:
"areaInput areaTitle areaField"
"areaTooltip areaPlaceholder .";
"areaTooltip areaPlaceholder areaPlaceholder";
}
.customFieldGeneratorBasic label,
.customFieldGeneratorBasic dt,
Expand Down
1,495 changes: 785 additions & 710 deletions dist/bundle.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions json/input-types.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"テキスト": [
"テキスト(一行)": [
{ "value": "text", "label": "テキスト" },
{ "value": "tel", "label": "電話番号" },
{ "value": "number", "label": "数値" },
Expand All @@ -9,10 +9,11 @@
]
},
{
"テキストエリア": [
"テキスト(複数行)": [
{ "value": "textarea", "label": "テキストエリア" },
{ "value": "liteEditor", "label": "ライトエディター" },
{ "value": "richEditor", "label": "リッチエディター" }
{ "value": "richEditor", "label": "リッチエディター" },
{ "value": "table", "label": "テーブル" }
]
},
{
Expand All @@ -23,11 +24,10 @@
]
},
{
"その他": [
"アップロード": [
{ "value": "media", "label": "メディア" },
{ "value": "image", "label": "画像" },
{ "value": "file", "label": "ファイル" },
{ "value": "table", "label": "テーブル" }
{ "value": "file", "label": "ファイル" }
]
}
]
11 changes: 6 additions & 5 deletions lib/components/genelator/Field.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ function Field() {
return /*#__PURE__*/ _react.default.createElement(
'div',
null,
/*#__PURE__*/ _react.default.createElement(_ConverterModal.ConverterModal, {
field: field,
setField: setField,
}),
/*#__PURE__*/ _react.default.createElement('h2', null, '\u30B3\u30FC\u30C9\u751F\u6210'),
/*#__PURE__*/ _react.default.createElement(
'div',
{
Expand Down Expand Up @@ -224,6 +221,10 @@ function Field() {
setField: setField,
onSubmit: onSubmit,
})
)
),
/*#__PURE__*/ _react.default.createElement(_ConverterModal.ConverterModal, {
field: field,
setField: setField,
})
);
}
Loading

0 comments on commit 0432564

Please sign in to comment.