@sunggang/ui-lib 0.3.10 → 0.3.12
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/BaseCkeditor.esm.js +2 -2
- package/index.esm2.js +13 -20
- package/package.json +1 -1
package/BaseCkeditor.esm.js
CHANGED
|
@@ -66826,11 +66826,11 @@ var BaseCkeditor = function(param) {
|
|
|
66826
66826
|
}
|
|
66827
66827
|
var editorElement = editor.ui.view.editable.element;
|
|
66828
66828
|
if (editorElement) {
|
|
66829
|
-
editorElement.style.
|
|
66829
|
+
editorElement.style.height = (item === null || item === void 0 ? void 0 : item.height) || "300px";
|
|
66830
66830
|
editorElement.style.backgroundColor = (item === null || item === void 0 ? void 0 : item.bgColor) || "white";
|
|
66831
66831
|
// Focus時高度維持一樣
|
|
66832
66832
|
editor.ui.view.editable.on("change:isFocused", function() {
|
|
66833
|
-
editorElement.style.
|
|
66833
|
+
editorElement.style.height = (item === null || item === void 0 ? void 0 : item.height) || "300px";
|
|
66834
66834
|
editorElement.style.backgroundColor = (item === null || item === void 0 ? void 0 : item.bgColor) || "white";
|
|
66835
66835
|
});
|
|
66836
66836
|
}
|
package/index.esm2.js
CHANGED
|
@@ -46277,7 +46277,7 @@ var BasePagination = function(param) {
|
|
|
46277
46277
|
"筆資料"
|
|
46278
46278
|
]
|
|
46279
46279
|
}),
|
|
46280
|
-
/*#__PURE__*/ jsxs("div", {
|
|
46280
|
+
!total ? null : /*#__PURE__*/ jsxs("div", {
|
|
46281
46281
|
className: "flex gap-8 justify-end",
|
|
46282
46282
|
children: [
|
|
46283
46283
|
/*#__PURE__*/ jsxs("div", {
|
|
@@ -46437,7 +46437,7 @@ var BaseTable = function(param) {
|
|
|
46437
46437
|
className: "w-full",
|
|
46438
46438
|
children: [
|
|
46439
46439
|
/*#__PURE__*/ jsxs("div", {
|
|
46440
|
-
className: "flex items-center
|
|
46440
|
+
className: "flex items-center pb-4 gap-2 flex-wrap",
|
|
46441
46441
|
children: [
|
|
46442
46442
|
(searchData === null || searchData === void 0 ? void 0 : searchData.length) ? searchData.map(function(item) {
|
|
46443
46443
|
var _table_getColumn;
|
|
@@ -77181,8 +77181,7 @@ var TextField = function(param) {
|
|
|
77181
77181
|
var isDisabled = (item === null || item === void 0 ? void 0 : item.disable) || (item === null || item === void 0 ? void 0 : item.disabled);
|
|
77182
77182
|
return /*#__PURE__*/ jsx("div", {
|
|
77183
77183
|
className: [
|
|
77184
|
-
"w-full h-24"
|
|
77185
|
-
(item === null || item === void 0 ? void 0 : item.className) || "w-full"
|
|
77184
|
+
(item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
|
|
77186
77185
|
].join(" "),
|
|
77187
77186
|
children: /*#__PURE__*/ jsxs(StyleText, {
|
|
77188
77187
|
children: [
|
|
@@ -77269,8 +77268,7 @@ var SingleSelect = function(param) {
|
|
|
77269
77268
|
var _useFormContext = useFormContext(), register = _useFormContext.register, getValues = _useFormContext.getValues, errors = _useFormContext.formState.errors;
|
|
77270
77269
|
return /*#__PURE__*/ jsx("div", {
|
|
77271
77270
|
className: [
|
|
77272
|
-
"w-full h-24"
|
|
77273
|
-
(item === null || item === void 0 ? void 0 : item.className) || "w-full"
|
|
77271
|
+
(item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
|
|
77274
77272
|
].join(" "),
|
|
77275
77273
|
children: /*#__PURE__*/ jsxs(StyleField, {
|
|
77276
77274
|
children: [
|
|
@@ -77328,13 +77326,13 @@ var SingleSelect = function(param) {
|
|
|
77328
77326
|
};
|
|
77329
77327
|
var MultipleSelect = function(param) {
|
|
77330
77328
|
var _param_className = param.className, className = _param_className === void 0 ? "min-h-[6rem]" : _param_className, item = param.item;
|
|
77331
|
-
var _item_validateOption;
|
|
77329
|
+
var _item_option, _item_validateOption;
|
|
77332
77330
|
var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors;
|
|
77333
|
-
var newOptions = item === null || item === void 0 ? void 0 : item.option.map(function(v) {
|
|
77331
|
+
var newOptions = (item === null || item === void 0 ? void 0 : (_item_option = item.option) === null || _item_option === void 0 ? void 0 : _item_option.length) ? item === null || item === void 0 ? void 0 : item.option.map(function(v) {
|
|
77334
77332
|
return _object_spread_props(_object_spread({}, v), {
|
|
77335
|
-
label: v.name
|
|
77333
|
+
label: v === null || v === void 0 ? void 0 : v.name
|
|
77336
77334
|
});
|
|
77337
|
-
});
|
|
77335
|
+
}) : [];
|
|
77338
77336
|
var isDisabled = (item === null || item === void 0 ? void 0 : item.disable) || (item === null || item === void 0 ? void 0 : item.disabled);
|
|
77339
77337
|
var customStyles = {
|
|
77340
77338
|
control: function(provided) {
|
|
@@ -77420,8 +77418,7 @@ var Time = function(param) {
|
|
|
77420
77418
|
} : {};
|
|
77421
77419
|
return /*#__PURE__*/ jsxs("div", {
|
|
77422
77420
|
className: [
|
|
77423
|
-
"w-full h-24"
|
|
77424
|
-
(item === null || item === void 0 ? void 0 : item.className) || "w-full"
|
|
77421
|
+
(item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
|
|
77425
77422
|
].join(" "),
|
|
77426
77423
|
children: [
|
|
77427
77424
|
/*#__PURE__*/ jsx(FieldLabel, {
|
|
@@ -77466,8 +77463,7 @@ var City = function(param) {
|
|
|
77466
77463
|
var _useFormContext = useFormContext(), register = _useFormContext.register, errors = _useFormContext.formState.errors;
|
|
77467
77464
|
return /*#__PURE__*/ jsx("div", {
|
|
77468
77465
|
className: [
|
|
77469
|
-
"w-full h-24"
|
|
77470
|
-
item === null || item === void 0 ? void 0 : item.className
|
|
77466
|
+
(item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
|
|
77471
77467
|
].join(" "),
|
|
77472
77468
|
children: /*#__PURE__*/ jsxs(StyleField, {
|
|
77473
77469
|
children: [
|
|
@@ -77527,8 +77523,7 @@ var CheckboxField = function(param) {
|
|
|
77527
77523
|
var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors;
|
|
77528
77524
|
return /*#__PURE__*/ jsxs("div", {
|
|
77529
77525
|
className: [
|
|
77530
|
-
"w-full min-h-[6rem] h-fit"
|
|
77531
|
-
item === null || item === void 0 ? void 0 : item.className
|
|
77526
|
+
(item === null || item === void 0 ? void 0 : item.className) || "w-full min-h-[6rem] h-fit"
|
|
77532
77527
|
].join(" "),
|
|
77533
77528
|
children: [
|
|
77534
77529
|
/*#__PURE__*/ jsx(FieldLabel, {
|
|
@@ -77618,8 +77613,7 @@ var RadioField = function(param) {
|
|
|
77618
77613
|
var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors;
|
|
77619
77614
|
return /*#__PURE__*/ jsxs("div", {
|
|
77620
77615
|
className: [
|
|
77621
|
-
"w-full min-h-[6rem] h-fit"
|
|
77622
|
-
item === null || item === void 0 ? void 0 : item.className
|
|
77616
|
+
(item === null || item === void 0 ? void 0 : item.className) || "w-full min-h-[6rem] h-fit"
|
|
77623
77617
|
].join(" "),
|
|
77624
77618
|
children: [
|
|
77625
77619
|
(item === null || item === void 0 ? void 0 : item.label) && /*#__PURE__*/ jsx(FieldLabel, {
|
|
@@ -77664,8 +77658,7 @@ var Textarea = function(param) {
|
|
|
77664
77658
|
var _useFormContext = useFormContext(), register = _useFormContext.register, errors = _useFormContext.formState.errors;
|
|
77665
77659
|
return /*#__PURE__*/ jsxs("div", {
|
|
77666
77660
|
className: [
|
|
77667
|
-
"w-full h-24",
|
|
77668
|
-
item === null || item === void 0 ? void 0 : item.className,
|
|
77661
|
+
(item === null || item === void 0 ? void 0 : item.className) || "w-full h-24",
|
|
77669
77662
|
"table text-base"
|
|
77670
77663
|
].join(" "),
|
|
77671
77664
|
children: [
|