@sunggang/ui-lib 0.1.80 → 0.1.82
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/index.esm.css +680 -0
- package/index.esm.js +445 -111
- package/package.json +1 -1
- package/src/Type/index.d.ts +17 -6
- package/src/components/ui/button.d.ts +1 -0
- package/src/components/ui/input.d.ts +1 -2
- package/src/index.d.ts +1 -0
- package/src/lib/DataTable/BaseTable.d.ts +8 -0
- package/src/lib/Dropdown/Checkbox.d.ts +7 -0
- package/src/lib/Dropdown/DisabledItem.d.ts +6 -0
- package/src/lib/Dropdown/GroupItem.d.ts +8 -0
- package/src/lib/Dropdown/Icons.d.ts +8 -0
- package/src/lib/Dropdown/Item.d.ts +8 -0
- package/src/lib/Dropdown/Options.d.ts +12 -0
- package/src/lib/Dropdown/SearchInput.d.ts +9 -0
- package/src/lib/Dropdown/SelectContainer.d.ts +4 -0
- package/src/lib/Dropdown/SelectProvider.d.ts +23 -0
- package/src/lib/Dropdown/Spinner.d.ts +6 -0
- package/src/lib/Dropdown/TailwindColors.d.ts +4 -0
- package/src/lib/Dropdown/constants.d.ts +118 -0
- package/src/lib/Dropdown/demoList.d.ts +16 -0
- package/src/lib/Dropdown/index.d.ts +4 -0
- package/src/lib/Dropdown/type.d.ts +59 -0
- package/src/utils/hooks/useOnClickOutside.d.ts +2 -0
package/index.esm.js
CHANGED
|
@@ -1118,13 +1118,13 @@ var PropTypes = propTypes$1.exports;
|
|
|
1118
1118
|
* See the {@glink features/watchdog Watchdog feature guide} to learn the rationale behind it and how to use it.
|
|
1119
1119
|
*
|
|
1120
1120
|
* @internal
|
|
1121
|
-
*/ function _array_like_to_array$
|
|
1121
|
+
*/ function _array_like_to_array$9(arr, len) {
|
|
1122
1122
|
if (len == null || len > arr.length) len = arr.length;
|
|
1123
1123
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1124
1124
|
return arr2;
|
|
1125
1125
|
}
|
|
1126
1126
|
function _array_without_holes$3(arr) {
|
|
1127
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1127
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
1128
1128
|
}
|
|
1129
1129
|
function _class_call_check$2(instance, Constructor) {
|
|
1130
1130
|
if (!(instance instanceof Constructor)) {
|
|
@@ -1159,15 +1159,15 @@ function _non_iterable_spread$3() {
|
|
|
1159
1159
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1160
1160
|
}
|
|
1161
1161
|
function _to_consumable_array$3(arr) {
|
|
1162
|
-
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$
|
|
1162
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$3();
|
|
1163
1163
|
}
|
|
1164
|
-
function _unsupported_iterable_to_array$
|
|
1164
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
1165
1165
|
if (!o) return;
|
|
1166
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1166
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
1167
1167
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1168
1168
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1169
1169
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1170
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1170
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
1171
1171
|
}
|
|
1172
1172
|
var Watchdog = /*#__PURE__*/ function() {
|
|
1173
1173
|
function Watchdog(config) {
|
|
@@ -3754,12 +3754,12 @@ var now$1 = now;
|
|
|
3754
3754
|
/**
|
|
3755
3755
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3756
3756
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3757
|
-
*/ function _array_like_to_array$
|
|
3757
|
+
*/ function _array_like_to_array$8(arr, len) {
|
|
3758
3758
|
if (len == null || len > arr.length) len = arr.length;
|
|
3759
3759
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3760
3760
|
return arr2;
|
|
3761
3761
|
}
|
|
3762
|
-
function _array_with_holes$
|
|
3762
|
+
function _array_with_holes$6(arr) {
|
|
3763
3763
|
if (Array.isArray(arr)) return arr;
|
|
3764
3764
|
}
|
|
3765
3765
|
function _assert_this_initialized$1(self) {
|
|
@@ -3835,7 +3835,7 @@ function _inherits$2(subClass, superClass) {
|
|
|
3835
3835
|
});
|
|
3836
3836
|
if (superClass) _set_prototype_of$1(subClass, superClass);
|
|
3837
3837
|
}
|
|
3838
|
-
function _iterable_to_array_limit$
|
|
3838
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
3839
3839
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3840
3840
|
if (_i == null) return;
|
|
3841
3841
|
var _arr = [];
|
|
@@ -3859,7 +3859,7 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
3859
3859
|
}
|
|
3860
3860
|
return _arr;
|
|
3861
3861
|
}
|
|
3862
|
-
function _non_iterable_rest$
|
|
3862
|
+
function _non_iterable_rest$6() {
|
|
3863
3863
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3864
3864
|
}
|
|
3865
3865
|
function _object_spread$a(target) {
|
|
@@ -3877,7 +3877,7 @@ function _object_spread$a(target) {
|
|
|
3877
3877
|
}
|
|
3878
3878
|
return target;
|
|
3879
3879
|
}
|
|
3880
|
-
function ownKeys$
|
|
3880
|
+
function ownKeys$a(object, enumerableOnly) {
|
|
3881
3881
|
var keys = Object.keys(object);
|
|
3882
3882
|
if (Object.getOwnPropertySymbols) {
|
|
3883
3883
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3890,12 +3890,12 @@ function ownKeys$9(object, enumerableOnly) {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
return keys;
|
|
3892
3892
|
}
|
|
3893
|
-
function _object_spread_props$
|
|
3893
|
+
function _object_spread_props$7(target, source) {
|
|
3894
3894
|
source = source != null ? source : {};
|
|
3895
3895
|
if (Object.getOwnPropertyDescriptors) {
|
|
3896
3896
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3897
3897
|
} else {
|
|
3898
|
-
ownKeys$
|
|
3898
|
+
ownKeys$a(Object(source)).forEach(function(key) {
|
|
3899
3899
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3900
3900
|
});
|
|
3901
3901
|
}
|
|
@@ -3941,8 +3941,8 @@ function _set_prototype_of$1(o, p) {
|
|
|
3941
3941
|
};
|
|
3942
3942
|
return _set_prototype_of$1(o, p);
|
|
3943
3943
|
}
|
|
3944
|
-
function _sliced_to_array$
|
|
3945
|
-
return _array_with_holes$
|
|
3944
|
+
function _sliced_to_array$6(arr, i) {
|
|
3945
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$6();
|
|
3946
3946
|
}
|
|
3947
3947
|
function _super_prop_base$1(object, property) {
|
|
3948
3948
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
@@ -3955,13 +3955,13 @@ function _type_of$a(obj) {
|
|
|
3955
3955
|
"@swc/helpers - typeof";
|
|
3956
3956
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
3957
3957
|
}
|
|
3958
|
-
function _unsupported_iterable_to_array$
|
|
3958
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
3959
3959
|
if (!o) return;
|
|
3960
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3960
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
3961
3961
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3962
3962
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3963
3963
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3964
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3964
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
3965
3965
|
}
|
|
3966
3966
|
function _is_native_reflect_construct$1() {
|
|
3967
3967
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
@@ -4109,7 +4109,7 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4109
4109
|
try {
|
|
4110
4110
|
// Traverse through the roots saved when the editor crashed and set up the discussed values.
|
|
4111
4111
|
for(var _iterator = Object.entries(_this._data.roots)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
4112
|
-
var _step_value = _sliced_to_array$
|
|
4112
|
+
var _step_value = _sliced_to_array$6(_step.value, 2), rootName = _step_value[0], rootData = _step_value[1];
|
|
4113
4113
|
if (rootData.isLoaded) {
|
|
4114
4114
|
existingRoots[rootName] = "";
|
|
4115
4115
|
rootsAttributes[rootName] = oldRootsAttributes[rootName] || {};
|
|
@@ -4131,7 +4131,7 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4131
4131
|
}
|
|
4132
4132
|
}
|
|
4133
4133
|
}
|
|
4134
|
-
var updatedConfig = _object_spread_props$
|
|
4134
|
+
var updatedConfig = _object_spread_props$7(_object_spread$a({}, _this._config), {
|
|
4135
4135
|
extraPlugins: _this._config.extraPlugins || [],
|
|
4136
4136
|
lazyRoots: lazyRoots,
|
|
4137
4137
|
rootsAttributes: rootsAttributes,
|
|
@@ -4469,14 +4469,14 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4469
4469
|
var _this = this;
|
|
4470
4470
|
var editor = this.editor;
|
|
4471
4471
|
Object.entries(this._data.roots).forEach(function(param) {
|
|
4472
|
-
var _param = _sliced_to_array$
|
|
4472
|
+
var _param = _sliced_to_array$6(param, 2), rootName = _param[0], _param_ = _param[1], content = _param_.content, attributes = _param_.attributes;
|
|
4473
4473
|
var parsedNodes = JSON.parse(content);
|
|
4474
4474
|
var parsedAttributes = JSON.parse(attributes);
|
|
4475
4475
|
var rootElement = editor.model.document.getRoot(rootName);
|
|
4476
4476
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
4477
4477
|
try {
|
|
4478
4478
|
for(var _iterator = parsedAttributes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
4479
|
-
var _step_value = _sliced_to_array$
|
|
4479
|
+
var _step_value = _sliced_to_array$6(_step.value, 2), key = _step_value[0], value = _step_value[1];
|
|
4480
4480
|
writer.setAttribute(key, value, rootElement);
|
|
4481
4481
|
}
|
|
4482
4482
|
} catch (err) {
|
|
@@ -4516,7 +4516,7 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4516
4516
|
}
|
|
4517
4517
|
});
|
|
4518
4518
|
Object.entries(this._data.markers).forEach(function(param) {
|
|
4519
|
-
var _param = _sliced_to_array$
|
|
4519
|
+
var _param = _sliced_to_array$6(param, 2), markerName = _param[0], markerOptions = _param[1];
|
|
4520
4520
|
var document = editor.model.document;
|
|
4521
4521
|
var _markerOptions_rangeJSON = markerOptions.rangeJSON, start = _markerOptions_rangeJSON.start, end = _markerOptions_rangeJSON.end, options = _object_without_properties$7(markerOptions, [
|
|
4522
4522
|
"rangeJSON"
|
|
@@ -68730,7 +68730,7 @@ function _iterableToArray$2(iter) {
|
|
|
68730
68730
|
function _arrayWithoutHoles$2(arr) {
|
|
68731
68731
|
if (Array.isArray(arr)) return _arrayLikeToArray$2(arr);
|
|
68732
68732
|
}
|
|
68733
|
-
function ownKeys$
|
|
68733
|
+
function ownKeys$9(object, enumerableOnly) {
|
|
68734
68734
|
var keys = Object.keys(object);
|
|
68735
68735
|
if (Object.getOwnPropertySymbols) {
|
|
68736
68736
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -68743,9 +68743,9 @@ function ownKeys$8(object, enumerableOnly) {
|
|
|
68743
68743
|
function _objectSpread$1(target) {
|
|
68744
68744
|
for(var i = 1; i < arguments.length; i++){
|
|
68745
68745
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
68746
|
-
i % 2 ? ownKeys$
|
|
68746
|
+
i % 2 ? ownKeys$9(Object(source), !0).forEach(function(key) {
|
|
68747
68747
|
_defineProperty$3(target, key, source[key]);
|
|
68748
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$
|
|
68748
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function(key) {
|
|
68749
68749
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
68750
68750
|
});
|
|
68751
68751
|
}
|
|
@@ -69139,7 +69139,7 @@ function _iterableToArrayLimit$1(arr, i) {
|
|
|
69139
69139
|
function _arrayWithHoles$1(arr) {
|
|
69140
69140
|
if (Array.isArray(arr)) return arr;
|
|
69141
69141
|
}
|
|
69142
|
-
function ownKeys$
|
|
69142
|
+
function ownKeys$8(object, enumerableOnly) {
|
|
69143
69143
|
var keys = Object.keys(object);
|
|
69144
69144
|
if (Object.getOwnPropertySymbols) {
|
|
69145
69145
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -69152,9 +69152,9 @@ function ownKeys$7(object, enumerableOnly) {
|
|
|
69152
69152
|
function _objectSpread(target) {
|
|
69153
69153
|
for(var i = 1; i < arguments.length; i++){
|
|
69154
69154
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
69155
|
-
i % 2 ? ownKeys$
|
|
69155
|
+
i % 2 ? ownKeys$8(Object(source), !0).forEach(function(key) {
|
|
69156
69156
|
_defineProperty$2(target, key, source[key]);
|
|
69157
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$
|
|
69157
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function(key) {
|
|
69158
69158
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
69159
69159
|
});
|
|
69160
69160
|
}
|
|
@@ -70145,7 +70145,7 @@ function _defineProperty$1(e, r, t) {
|
|
|
70145
70145
|
}) : e[r] = t, e;
|
|
70146
70146
|
}
|
|
70147
70147
|
|
|
70148
|
-
function ownKeys$
|
|
70148
|
+
function ownKeys$7(e, r) {
|
|
70149
70149
|
var t = Object.keys(e);
|
|
70150
70150
|
if (Object.getOwnPropertySymbols) {
|
|
70151
70151
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -70158,9 +70158,9 @@ function ownKeys$6(e, r) {
|
|
|
70158
70158
|
function _objectSpread2$7(e) {
|
|
70159
70159
|
for(var r = 1; r < arguments.length; r++){
|
|
70160
70160
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
70161
|
-
r % 2 ? ownKeys$
|
|
70161
|
+
r % 2 ? ownKeys$7(Object(t), !0).forEach(function(r) {
|
|
70162
70162
|
_defineProperty$1(e, r, t[r]);
|
|
70163
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$
|
|
70163
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function(r) {
|
|
70164
70164
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
70165
70165
|
});
|
|
70166
70166
|
}
|
|
@@ -79554,7 +79554,7 @@ function _object_spread$9(target) {
|
|
|
79554
79554
|
}
|
|
79555
79555
|
return target;
|
|
79556
79556
|
}
|
|
79557
|
-
function ownKeys$
|
|
79557
|
+
function ownKeys$6(object, enumerableOnly) {
|
|
79558
79558
|
var keys = Object.keys(object);
|
|
79559
79559
|
if (Object.getOwnPropertySymbols) {
|
|
79560
79560
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -79567,12 +79567,12 @@ function ownKeys$5(object, enumerableOnly) {
|
|
|
79567
79567
|
}
|
|
79568
79568
|
return keys;
|
|
79569
79569
|
}
|
|
79570
|
-
function _object_spread_props$
|
|
79570
|
+
function _object_spread_props$6(target, source) {
|
|
79571
79571
|
source = source != null ? source : {};
|
|
79572
79572
|
if (Object.getOwnPropertyDescriptors) {
|
|
79573
79573
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
79574
79574
|
} else {
|
|
79575
|
-
ownKeys$
|
|
79575
|
+
ownKeys$6(Object(source)).forEach(function(key) {
|
|
79576
79576
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
79577
79577
|
});
|
|
79578
79578
|
}
|
|
@@ -79586,7 +79586,7 @@ var DragDropImages = function(param) {
|
|
|
79586
79586
|
droppableId: "droppable-imageUrls",
|
|
79587
79587
|
direction: "horizontal",
|
|
79588
79588
|
children: function(provided) {
|
|
79589
|
-
return /*#__PURE__*/ jsxs("div", _object_spread_props$
|
|
79589
|
+
return /*#__PURE__*/ jsxs("div", _object_spread_props$6(_object_spread$9({
|
|
79590
79590
|
ref: provided.innerRef
|
|
79591
79591
|
}, provided.droppableProps), {
|
|
79592
79592
|
className: "flex gap-2 overflow-scroll",
|
|
@@ -79596,7 +79596,7 @@ var DragDropImages = function(param) {
|
|
|
79596
79596
|
draggableId: item === null || item === void 0 ? void 0 : item.id,
|
|
79597
79597
|
index: index,
|
|
79598
79598
|
children: function(provided) {
|
|
79599
|
-
return /*#__PURE__*/ jsxs("div", _object_spread_props$
|
|
79599
|
+
return /*#__PURE__*/ jsxs("div", _object_spread_props$6(_object_spread$9({
|
|
79600
79600
|
ref: provided.innerRef
|
|
79601
79601
|
}, provided.draggableProps, provided.dragHandleProps), {
|
|
79602
79602
|
className: "w-24 my-2 rounded-lg bg-gray-200",
|
|
@@ -79636,16 +79636,16 @@ var DragDropImages = function(param) {
|
|
|
79636
79636
|
});
|
|
79637
79637
|
};
|
|
79638
79638
|
|
|
79639
|
-
function _array_like_to_array$
|
|
79639
|
+
function _array_like_to_array$7(arr, len) {
|
|
79640
79640
|
if (len == null || len > arr.length) len = arr.length;
|
|
79641
79641
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
79642
79642
|
return arr2;
|
|
79643
79643
|
}
|
|
79644
|
-
function _array_with_holes$
|
|
79644
|
+
function _array_with_holes$5(arr) {
|
|
79645
79645
|
if (Array.isArray(arr)) return arr;
|
|
79646
79646
|
}
|
|
79647
79647
|
function _array_without_holes$2(arr) {
|
|
79648
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
79648
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
79649
79649
|
}
|
|
79650
79650
|
function _define_property$8(obj, key, value) {
|
|
79651
79651
|
if (key in obj) {
|
|
@@ -79663,7 +79663,7 @@ function _define_property$8(obj, key, value) {
|
|
|
79663
79663
|
function _iterable_to_array$2(iter) {
|
|
79664
79664
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
79665
79665
|
}
|
|
79666
|
-
function _iterable_to_array_limit$
|
|
79666
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
79667
79667
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
79668
79668
|
if (_i == null) return;
|
|
79669
79669
|
var _arr = [];
|
|
@@ -79687,7 +79687,7 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
79687
79687
|
}
|
|
79688
79688
|
return _arr;
|
|
79689
79689
|
}
|
|
79690
|
-
function _non_iterable_rest$
|
|
79690
|
+
function _non_iterable_rest$5() {
|
|
79691
79691
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
79692
79692
|
}
|
|
79693
79693
|
function _non_iterable_spread$2() {
|
|
@@ -79708,7 +79708,7 @@ function _object_spread$8(target) {
|
|
|
79708
79708
|
}
|
|
79709
79709
|
return target;
|
|
79710
79710
|
}
|
|
79711
|
-
function ownKeys$
|
|
79711
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
79712
79712
|
var keys = Object.keys(object);
|
|
79713
79713
|
if (Object.getOwnPropertySymbols) {
|
|
79714
79714
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -79721,34 +79721,34 @@ function ownKeys$4(object, enumerableOnly) {
|
|
|
79721
79721
|
}
|
|
79722
79722
|
return keys;
|
|
79723
79723
|
}
|
|
79724
|
-
function _object_spread_props$
|
|
79724
|
+
function _object_spread_props$5(target, source) {
|
|
79725
79725
|
source = source != null ? source : {};
|
|
79726
79726
|
if (Object.getOwnPropertyDescriptors) {
|
|
79727
79727
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
79728
79728
|
} else {
|
|
79729
|
-
ownKeys$
|
|
79729
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
79730
79730
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
79731
79731
|
});
|
|
79732
79732
|
}
|
|
79733
79733
|
return target;
|
|
79734
79734
|
}
|
|
79735
|
-
function _sliced_to_array$
|
|
79736
|
-
return _array_with_holes$
|
|
79735
|
+
function _sliced_to_array$5(arr, i) {
|
|
79736
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$5();
|
|
79737
79737
|
}
|
|
79738
79738
|
function _to_consumable_array$2(arr) {
|
|
79739
|
-
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$
|
|
79739
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$2();
|
|
79740
79740
|
}
|
|
79741
|
-
function _unsupported_iterable_to_array$
|
|
79741
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
79742
79742
|
if (!o) return;
|
|
79743
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
79743
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
79744
79744
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
79745
79745
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
79746
79746
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
79747
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
79747
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
79748
79748
|
}
|
|
79749
79749
|
var DropImage = function(param) {
|
|
79750
79750
|
var _param_preview = param.preview, preview = _param_preview === void 0 ? true : _param_preview, setFiles = param.setFiles, imageUrls = param.imageUrls, setImageUrls = param.setImageUrls;
|
|
79751
|
-
var _useState = _sliced_to_array$
|
|
79751
|
+
var _useState = _sliced_to_array$5(useState([]), 2), previewFiles = _useState[0], setPreviewFiles = _useState[1];
|
|
79752
79752
|
useEffect(function() {
|
|
79753
79753
|
setPreviewFiles(imageUrls);
|
|
79754
79754
|
}, [
|
|
@@ -79785,10 +79785,10 @@ var DropImage = function(param) {
|
|
|
79785
79785
|
var onDragEnd = function(result) {
|
|
79786
79786
|
if (!result.destination) return;
|
|
79787
79787
|
var newItems = _to_consumable_array$2(previewFiles);
|
|
79788
|
-
var _newItems_splice = _sliced_to_array$
|
|
79788
|
+
var _newItems_splice = _sliced_to_array$5(newItems.splice(result.source.index, 1), 1), reorderedItem = _newItems_splice[0];
|
|
79789
79789
|
newItems.splice(result.destination.index, 0, reorderedItem);
|
|
79790
79790
|
var reSortItem = newItems.map(function(item, index) {
|
|
79791
|
-
return _object_spread_props$
|
|
79791
|
+
return _object_spread_props$5(_object_spread$8({}, item), {
|
|
79792
79792
|
index: index + 1
|
|
79793
79793
|
});
|
|
79794
79794
|
});
|
|
@@ -79803,7 +79803,7 @@ var DropImage = function(param) {
|
|
|
79803
79803
|
return /*#__PURE__*/ jsxs("section", {
|
|
79804
79804
|
className: "w-full",
|
|
79805
79805
|
children: [
|
|
79806
|
-
/*#__PURE__*/ jsxs("div", _object_spread_props$
|
|
79806
|
+
/*#__PURE__*/ jsxs("div", _object_spread_props$5(_object_spread$8({}, getRootProps({
|
|
79807
79807
|
className: "dropzone"
|
|
79808
79808
|
})), {
|
|
79809
79809
|
children: [
|
|
@@ -79951,15 +79951,15 @@ var Modal = function(param) {
|
|
|
79951
79951
|
});
|
|
79952
79952
|
};
|
|
79953
79953
|
|
|
79954
|
-
function _array_like_to_array$
|
|
79954
|
+
function _array_like_to_array$6(arr, len) {
|
|
79955
79955
|
if (len == null || len > arr.length) len = arr.length;
|
|
79956
79956
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
79957
79957
|
return arr2;
|
|
79958
79958
|
}
|
|
79959
|
-
function _array_with_holes$
|
|
79959
|
+
function _array_with_holes$4(arr) {
|
|
79960
79960
|
if (Array.isArray(arr)) return arr;
|
|
79961
79961
|
}
|
|
79962
|
-
function _iterable_to_array_limit$
|
|
79962
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
79963
79963
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
79964
79964
|
if (_i == null) return;
|
|
79965
79965
|
var _arr = [];
|
|
@@ -79983,23 +79983,23 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
79983
79983
|
}
|
|
79984
79984
|
return _arr;
|
|
79985
79985
|
}
|
|
79986
|
-
function _non_iterable_rest$
|
|
79986
|
+
function _non_iterable_rest$4() {
|
|
79987
79987
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
79988
79988
|
}
|
|
79989
|
-
function _sliced_to_array$
|
|
79990
|
-
return _array_with_holes$
|
|
79989
|
+
function _sliced_to_array$4(arr, i) {
|
|
79990
|
+
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$4();
|
|
79991
79991
|
}
|
|
79992
|
-
function _unsupported_iterable_to_array$
|
|
79992
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
79993
79993
|
if (!o) return;
|
|
79994
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
79994
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
79995
79995
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
79996
79996
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
79997
79997
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
79998
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
79998
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
79999
79999
|
}
|
|
80000
80000
|
var BaseTemplate = function(param) {
|
|
80001
80001
|
var file = param.file, imageUrl = param.imageUrl;
|
|
80002
|
-
var _useState = _sliced_to_array$
|
|
80002
|
+
var _useState = _sliced_to_array$4(useState(null), 2), tempImage = _useState[0], setTempImage = _useState[1];
|
|
80003
80003
|
useEffect(function() {
|
|
80004
80004
|
var fileReader;
|
|
80005
80005
|
var isCancel = false;
|
|
@@ -80060,15 +80060,15 @@ var BaseTemplate = function(param) {
|
|
|
80060
80060
|
});
|
|
80061
80061
|
};
|
|
80062
80062
|
|
|
80063
|
-
function _array_like_to_array$
|
|
80063
|
+
function _array_like_to_array$5(arr, len) {
|
|
80064
80064
|
if (len == null || len > arr.length) len = arr.length;
|
|
80065
80065
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
80066
80066
|
return arr2;
|
|
80067
80067
|
}
|
|
80068
|
-
function _array_with_holes$
|
|
80068
|
+
function _array_with_holes$3(arr) {
|
|
80069
80069
|
if (Array.isArray(arr)) return arr;
|
|
80070
80070
|
}
|
|
80071
|
-
function _iterable_to_array_limit$
|
|
80071
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
80072
80072
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
80073
80073
|
if (_i == null) return;
|
|
80074
80074
|
var _arr = [];
|
|
@@ -80092,25 +80092,25 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
80092
80092
|
}
|
|
80093
80093
|
return _arr;
|
|
80094
80094
|
}
|
|
80095
|
-
function _non_iterable_rest$
|
|
80095
|
+
function _non_iterable_rest$3() {
|
|
80096
80096
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
80097
80097
|
}
|
|
80098
|
-
function _sliced_to_array$
|
|
80099
|
-
return _array_with_holes$
|
|
80098
|
+
function _sliced_to_array$3(arr, i) {
|
|
80099
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$3();
|
|
80100
80100
|
}
|
|
80101
|
-
function _unsupported_iterable_to_array$
|
|
80101
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
80102
80102
|
if (!o) return;
|
|
80103
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
80103
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
80104
80104
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
80105
80105
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
80106
80106
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
80107
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
80107
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
80108
80108
|
}
|
|
80109
80109
|
var CustomUpload = function(param) {
|
|
80110
80110
|
var className = param.className, children = param.children, file = param.file, setFile = param.setFile, imageUrl = param.imageUrl, setImageUrl = param.setImageUrl;
|
|
80111
80111
|
var imageMimeType = /image\/(png|jpg|jpeg)/i;
|
|
80112
80112
|
var DEFAULT_IMAGE_SIZE_LIMIT_IN_BYTES = 5120000; // 5000 KB
|
|
80113
|
-
var _useState = _sliced_to_array$
|
|
80113
|
+
var _useState = _sliced_to_array$3(useState(null), 2), modal = _useState[0], setModal = _useState[1];
|
|
80114
80114
|
var hiddenFileInput = useRef(null);
|
|
80115
80115
|
var handleImageClick = function() {
|
|
80116
80116
|
var _hiddenFileInput_current;
|
|
@@ -80236,7 +80236,7 @@ function _object_spread$7(target) {
|
|
|
80236
80236
|
}
|
|
80237
80237
|
return target;
|
|
80238
80238
|
}
|
|
80239
|
-
function ownKeys$
|
|
80239
|
+
function ownKeys$4(object, enumerableOnly) {
|
|
80240
80240
|
var keys = Object.keys(object);
|
|
80241
80241
|
if (Object.getOwnPropertySymbols) {
|
|
80242
80242
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -80249,12 +80249,12 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
80249
80249
|
}
|
|
80250
80250
|
return keys;
|
|
80251
80251
|
}
|
|
80252
|
-
function _object_spread_props$
|
|
80252
|
+
function _object_spread_props$4(target, source) {
|
|
80253
80253
|
source = source != null ? source : {};
|
|
80254
80254
|
if (Object.getOwnPropertyDescriptors) {
|
|
80255
80255
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
80256
80256
|
} else {
|
|
80257
|
-
ownKeys$
|
|
80257
|
+
ownKeys$4(Object(source)).forEach(function(key) {
|
|
80258
80258
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
80259
80259
|
});
|
|
80260
80260
|
}
|
|
@@ -80291,7 +80291,7 @@ var Switch = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
|
80291
80291
|
var className = _param.className, props = _object_without_properties$6(_param, [
|
|
80292
80292
|
"className"
|
|
80293
80293
|
]);
|
|
80294
|
-
return /*#__PURE__*/ jsx(SwitchPrimitives.Root, _object_spread_props$
|
|
80294
|
+
return /*#__PURE__*/ jsx(SwitchPrimitives.Root, _object_spread_props$4(_object_spread$7({
|
|
80295
80295
|
className: cn("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", className)
|
|
80296
80296
|
}, props), {
|
|
80297
80297
|
ref: ref,
|
|
@@ -80330,6 +80330,30 @@ function _object_spread$6(target) {
|
|
|
80330
80330
|
}
|
|
80331
80331
|
return target;
|
|
80332
80332
|
}
|
|
80333
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
80334
|
+
var keys = Object.keys(object);
|
|
80335
|
+
if (Object.getOwnPropertySymbols) {
|
|
80336
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
80337
|
+
if (enumerableOnly) {
|
|
80338
|
+
symbols = symbols.filter(function(sym) {
|
|
80339
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
80340
|
+
});
|
|
80341
|
+
}
|
|
80342
|
+
keys.push.apply(keys, symbols);
|
|
80343
|
+
}
|
|
80344
|
+
return keys;
|
|
80345
|
+
}
|
|
80346
|
+
function _object_spread_props$3(target, source) {
|
|
80347
|
+
source = source != null ? source : {};
|
|
80348
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
80349
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
80350
|
+
} else {
|
|
80351
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
80352
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
80353
|
+
});
|
|
80354
|
+
}
|
|
80355
|
+
return target;
|
|
80356
|
+
}
|
|
80333
80357
|
function _object_without_properties$5(source, excluded) {
|
|
80334
80358
|
if (source == null) return {};
|
|
80335
80359
|
var target = _object_without_properties_loose$5(source, excluded);
|
|
@@ -80380,21 +80404,31 @@ var buttonVariants = cva("inline-flex items-center justify-center whitespace-now
|
|
|
80380
80404
|
}
|
|
80381
80405
|
});
|
|
80382
80406
|
var Button = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
80383
|
-
var className = _param.className, variant = _param.variant, size = _param.size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, props = _object_without_properties$5(_param, [
|
|
80407
|
+
var className = _param.className, variant = _param.variant, size = _param.size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, children = _param.children, props = _object_without_properties$5(_param, [
|
|
80384
80408
|
"className",
|
|
80385
80409
|
"variant",
|
|
80386
80410
|
"size",
|
|
80387
|
-
"asChild"
|
|
80411
|
+
"asChild",
|
|
80412
|
+
"isLoading",
|
|
80413
|
+
"children"
|
|
80388
80414
|
]);
|
|
80389
80415
|
var Comp = asChild ? Slot : "button";
|
|
80390
|
-
return /*#__PURE__*/
|
|
80416
|
+
return /*#__PURE__*/ jsxs(Comp, _object_spread_props$3(_object_spread$6({
|
|
80391
80417
|
className: cn(buttonVariants({
|
|
80392
80418
|
variant: variant,
|
|
80393
80419
|
size: size,
|
|
80394
80420
|
className: className
|
|
80395
|
-
})),
|
|
80421
|
+
}), isLoading ? "pointer-events-none opacity-30" : "pointer-events-auto opacity-100"),
|
|
80396
80422
|
ref: ref
|
|
80397
|
-
}, props)
|
|
80423
|
+
}, props), {
|
|
80424
|
+
disabled: isLoading || props.disabled,
|
|
80425
|
+
children: [
|
|
80426
|
+
isLoading && /*#__PURE__*/ jsx("div", {
|
|
80427
|
+
className: "w-4 h-4 rounded-full border-2 border-solid border-white border-t-[#939393] animate-spin mr-2"
|
|
80428
|
+
}),
|
|
80429
|
+
children
|
|
80430
|
+
]
|
|
80431
|
+
}));
|
|
80398
80432
|
});
|
|
80399
80433
|
|
|
80400
80434
|
function _define_property$5(obj, key, value) {
|
|
@@ -80694,15 +80728,15 @@ function DateRangePicker(param) {
|
|
|
80694
80728
|
});
|
|
80695
80729
|
}
|
|
80696
80730
|
|
|
80697
|
-
function _array_like_to_array$
|
|
80731
|
+
function _array_like_to_array$4(arr, len) {
|
|
80698
80732
|
if (len == null || len > arr.length) len = arr.length;
|
|
80699
80733
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
80700
80734
|
return arr2;
|
|
80701
80735
|
}
|
|
80702
|
-
function _array_with_holes$
|
|
80736
|
+
function _array_with_holes$2(arr) {
|
|
80703
80737
|
if (Array.isArray(arr)) return arr;
|
|
80704
80738
|
}
|
|
80705
|
-
function _iterable_to_array_limit$
|
|
80739
|
+
function _iterable_to_array_limit$2(arr, i) {
|
|
80706
80740
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
80707
80741
|
if (_i == null) return;
|
|
80708
80742
|
var _arr = [];
|
|
@@ -80726,30 +80760,30 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
80726
80760
|
}
|
|
80727
80761
|
return _arr;
|
|
80728
80762
|
}
|
|
80729
|
-
function _non_iterable_rest$
|
|
80763
|
+
function _non_iterable_rest$2() {
|
|
80730
80764
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
80731
80765
|
}
|
|
80732
|
-
function _sliced_to_array$
|
|
80733
|
-
return _array_with_holes$
|
|
80766
|
+
function _sliced_to_array$2(arr, i) {
|
|
80767
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$2();
|
|
80734
80768
|
}
|
|
80735
|
-
function _unsupported_iterable_to_array$
|
|
80769
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
80736
80770
|
if (!o) return;
|
|
80737
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
80771
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
80738
80772
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
80739
80773
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
80740
80774
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
80741
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
80775
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
80742
80776
|
}
|
|
80743
80777
|
var ReactDateRange = function(param) {
|
|
80744
80778
|
var className = param.className, item = param.item, onChange = param.onChange, dates = param.dates, date = param.date;
|
|
80745
|
-
var _useState = _sliced_to_array$
|
|
80746
|
-
var _useState1 = _sliced_to_array$
|
|
80747
|
-
var _useState2 = _sliced_to_array$
|
|
80779
|
+
var _useState = _sliced_to_array$2(useState("zhTW"), 1), locale = _useState[0];
|
|
80780
|
+
var _useState1 = _sliced_to_array$2(useState(""), 2), calendarData = _useState1[0], setCalendarData = _useState1[1];
|
|
80781
|
+
var _useState2 = _sliced_to_array$2(useState({
|
|
80748
80782
|
startDate: new Date(),
|
|
80749
80783
|
endDate: addDays(new Date(), 7),
|
|
80750
80784
|
key: "selection"
|
|
80751
80785
|
}), 2), range = _useState2[0], setRange = _useState2[1];
|
|
80752
|
-
var _useState3 = _sliced_to_array$
|
|
80786
|
+
var _useState3 = _sliced_to_array$2(useState(false), 2), open = _useState3[0], setOpen = _useState3[1];
|
|
80753
80787
|
var refOne = useRef(null);
|
|
80754
80788
|
var hideOnEscape = function(e) {
|
|
80755
80789
|
if (e.key === "Escape") {
|
|
@@ -81350,15 +81384,15 @@ var TablePagination = function(param) {
|
|
|
81350
81384
|
});
|
|
81351
81385
|
};
|
|
81352
81386
|
|
|
81353
|
-
function _array_like_to_array$
|
|
81387
|
+
function _array_like_to_array$3(arr, len) {
|
|
81354
81388
|
if (len == null || len > arr.length) len = arr.length;
|
|
81355
81389
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
81356
81390
|
return arr2;
|
|
81357
81391
|
}
|
|
81358
|
-
function _array_with_holes(arr) {
|
|
81392
|
+
function _array_with_holes$1(arr) {
|
|
81359
81393
|
if (Array.isArray(arr)) return arr;
|
|
81360
81394
|
}
|
|
81361
|
-
function _iterable_to_array_limit(arr, i) {
|
|
81395
|
+
function _iterable_to_array_limit$1(arr, i) {
|
|
81362
81396
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
81363
81397
|
if (_i == null) return;
|
|
81364
81398
|
var _arr = [];
|
|
@@ -81382,19 +81416,19 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
81382
81416
|
}
|
|
81383
81417
|
return _arr;
|
|
81384
81418
|
}
|
|
81385
|
-
function _non_iterable_rest() {
|
|
81419
|
+
function _non_iterable_rest$1() {
|
|
81386
81420
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
81387
81421
|
}
|
|
81388
|
-
function _sliced_to_array(arr, i) {
|
|
81389
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array$
|
|
81422
|
+
function _sliced_to_array$1(arr, i) {
|
|
81423
|
+
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$1();
|
|
81390
81424
|
}
|
|
81391
|
-
function _unsupported_iterable_to_array$
|
|
81425
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
81392
81426
|
if (!o) return;
|
|
81393
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
81427
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
81394
81428
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
81395
81429
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
81396
81430
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
81397
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
81431
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
|
|
81398
81432
|
}
|
|
81399
81433
|
var DataTable = function(param) {
|
|
81400
81434
|
var data = param.data, filterColumn = param.filterColumn, columns = param.columns, _param_searchData = param.searchData, searchData = _param_searchData === void 0 ? {
|
|
@@ -81403,10 +81437,10 @@ var DataTable = function(param) {
|
|
|
81403
81437
|
name: ""
|
|
81404
81438
|
} : _param_searchData;
|
|
81405
81439
|
var _table_getColumn, _table_getRowModel_rows;
|
|
81406
|
-
var _useState = _sliced_to_array(useState([]), 2), sorting = _useState[0], setSorting = _useState[1];
|
|
81407
|
-
var _useState1 = _sliced_to_array(useState([]), 2), columnFilters = _useState1[0], setColumnFilters = _useState1[1];
|
|
81408
|
-
var _useState2 = _sliced_to_array(useState({}), 2), columnVisibility = _useState2[0], setColumnVisibility = _useState2[1];
|
|
81409
|
-
var _useState3 = _sliced_to_array(useState({}), 2), rowSelection = _useState3[0], setRowSelection = _useState3[1];
|
|
81440
|
+
var _useState = _sliced_to_array$1(useState([]), 2), sorting = _useState[0], setSorting = _useState[1];
|
|
81441
|
+
var _useState1 = _sliced_to_array$1(useState([]), 2), columnFilters = _useState1[0], setColumnFilters = _useState1[1];
|
|
81442
|
+
var _useState2 = _sliced_to_array$1(useState({}), 2), columnVisibility = _useState2[0], setColumnVisibility = _useState2[1];
|
|
81443
|
+
var _useState3 = _sliced_to_array$1(useState({}), 2), rowSelection = _useState3[0], setRowSelection = _useState3[1];
|
|
81410
81444
|
var table = useReactTable({
|
|
81411
81445
|
data: data,
|
|
81412
81446
|
columns: columns,
|
|
@@ -81528,6 +81562,306 @@ var DataTable = function(param) {
|
|
|
81528
81562
|
});
|
|
81529
81563
|
};
|
|
81530
81564
|
|
|
81565
|
+
var BasePagination = function(param) {
|
|
81566
|
+
var table = param.table, total = param.total, handleLastPageClick = param.handleLastPageClick;
|
|
81567
|
+
var setPageIndex = table.setPageIndex, getCanPreviousPage = table.getCanPreviousPage, getCanNextPage = table.getCanNextPage, getPageCount = table.getPageCount, previousPage = table.previousPage, nextPage = table.nextPage, getState = table.getState;
|
|
81568
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
81569
|
+
className: "flex items-center flex-wrap",
|
|
81570
|
+
children: [
|
|
81571
|
+
/*#__PURE__*/ jsxs("div", {
|
|
81572
|
+
className: "flex gap-2 items-center text-md font-medium",
|
|
81573
|
+
children: [
|
|
81574
|
+
/*#__PURE__*/ jsx("span", {
|
|
81575
|
+
children: "每頁"
|
|
81576
|
+
}),
|
|
81577
|
+
/*#__PURE__*/ jsx("select", {
|
|
81578
|
+
name: "",
|
|
81579
|
+
id: "",
|
|
81580
|
+
onChange: function(e) {
|
|
81581
|
+
return table.setPageSize(e.target.value);
|
|
81582
|
+
},
|
|
81583
|
+
className: "border inline-flex gap-4 w-[70px] cursor-pointer rounded-md p-1",
|
|
81584
|
+
children: [
|
|
81585
|
+
"5",
|
|
81586
|
+
"10",
|
|
81587
|
+
"20",
|
|
81588
|
+
"50",
|
|
81589
|
+
"100"
|
|
81590
|
+
].map(function(row) {
|
|
81591
|
+
return /*#__PURE__*/ jsx("option", {
|
|
81592
|
+
value: row,
|
|
81593
|
+
className: "mt-2",
|
|
81594
|
+
children: row
|
|
81595
|
+
}, row);
|
|
81596
|
+
})
|
|
81597
|
+
}),
|
|
81598
|
+
"筆"
|
|
81599
|
+
]
|
|
81600
|
+
}),
|
|
81601
|
+
/*#__PURE__*/ jsxs("div", {
|
|
81602
|
+
className: "text-gray-400 text-sm pl-4",
|
|
81603
|
+
children: [
|
|
81604
|
+
"共",
|
|
81605
|
+
total,
|
|
81606
|
+
"筆資料"
|
|
81607
|
+
]
|
|
81608
|
+
}),
|
|
81609
|
+
/*#__PURE__*/ jsxs("div", {
|
|
81610
|
+
className: "flex gap-8 justify-end",
|
|
81611
|
+
children: [
|
|
81612
|
+
/*#__PURE__*/ jsxs("div", {
|
|
81613
|
+
className: "flex w-[140px] items-center justify-start lg:justify-center text-md font-medium",
|
|
81614
|
+
children: [
|
|
81615
|
+
"頁數 \xa0 ",
|
|
81616
|
+
/*#__PURE__*/ jsx("strong", {
|
|
81617
|
+
children: getState().pagination.pageIndex + 1
|
|
81618
|
+
}),
|
|
81619
|
+
"\xa0 / ",
|
|
81620
|
+
getPageCount()
|
|
81621
|
+
]
|
|
81622
|
+
}),
|
|
81623
|
+
/*#__PURE__*/ jsxs("div", {
|
|
81624
|
+
className: "flex gap-2 [&>button]:h-8 [&>button]:w-8 [&>button]:border [&>button]:border-gray-300 [&>button]:rounded-md [&>button]:grid [&>button]:place-items-center [&>button:disabled]:opacity-50 [&>button:disabled]:border-gray-200 ",
|
|
81625
|
+
children: [
|
|
81626
|
+
/*#__PURE__*/ jsx("button", {
|
|
81627
|
+
type: "button",
|
|
81628
|
+
disabled: !getCanPreviousPage(),
|
|
81629
|
+
onClick: function() {
|
|
81630
|
+
return setPageIndex(0);
|
|
81631
|
+
},
|
|
81632
|
+
children: "<<"
|
|
81633
|
+
}),
|
|
81634
|
+
/*#__PURE__*/ jsx("button", {
|
|
81635
|
+
type: "button",
|
|
81636
|
+
disabled: !getCanPreviousPage(),
|
|
81637
|
+
onClick: previousPage,
|
|
81638
|
+
children: "<"
|
|
81639
|
+
}),
|
|
81640
|
+
/*#__PURE__*/ jsx("button", {
|
|
81641
|
+
type: "button",
|
|
81642
|
+
disabled: !getCanNextPage(),
|
|
81643
|
+
onClick: nextPage,
|
|
81644
|
+
children: ">"
|
|
81645
|
+
}),
|
|
81646
|
+
/*#__PURE__*/ jsx("button", {
|
|
81647
|
+
type: "button",
|
|
81648
|
+
disabled: !getCanNextPage(),
|
|
81649
|
+
onClick: function() {
|
|
81650
|
+
return handleLastPageClick ? handleLastPageClick() : setPageIndex(getPageCount() - 1);
|
|
81651
|
+
},
|
|
81652
|
+
children: ">>"
|
|
81653
|
+
})
|
|
81654
|
+
]
|
|
81655
|
+
})
|
|
81656
|
+
]
|
|
81657
|
+
})
|
|
81658
|
+
]
|
|
81659
|
+
});
|
|
81660
|
+
};
|
|
81661
|
+
|
|
81662
|
+
function _array_like_to_array$2(arr, len) {
|
|
81663
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
81664
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
81665
|
+
return arr2;
|
|
81666
|
+
}
|
|
81667
|
+
function _array_with_holes(arr) {
|
|
81668
|
+
if (Array.isArray(arr)) return arr;
|
|
81669
|
+
}
|
|
81670
|
+
function _iterable_to_array_limit(arr, i) {
|
|
81671
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
81672
|
+
if (_i == null) return;
|
|
81673
|
+
var _arr = [];
|
|
81674
|
+
var _n = true;
|
|
81675
|
+
var _d = false;
|
|
81676
|
+
var _s, _e;
|
|
81677
|
+
try {
|
|
81678
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
81679
|
+
_arr.push(_s.value);
|
|
81680
|
+
if (i && _arr.length === i) break;
|
|
81681
|
+
}
|
|
81682
|
+
} catch (err) {
|
|
81683
|
+
_d = true;
|
|
81684
|
+
_e = err;
|
|
81685
|
+
} finally{
|
|
81686
|
+
try {
|
|
81687
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
81688
|
+
} finally{
|
|
81689
|
+
if (_d) throw _e;
|
|
81690
|
+
}
|
|
81691
|
+
}
|
|
81692
|
+
return _arr;
|
|
81693
|
+
}
|
|
81694
|
+
function _non_iterable_rest() {
|
|
81695
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
81696
|
+
}
|
|
81697
|
+
function _sliced_to_array(arr, i) {
|
|
81698
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest();
|
|
81699
|
+
}
|
|
81700
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
81701
|
+
if (!o) return;
|
|
81702
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
81703
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
81704
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
81705
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
81706
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
81707
|
+
}
|
|
81708
|
+
var BaseTable = function(param) {
|
|
81709
|
+
var data = param.data, mappingColumn = param.mappingColumn, columns = param.columns, searchData = param.searchData, paginationConfig = param.paginationConfig, SearchSelectCP = param.SearchSelectCP;
|
|
81710
|
+
var _table_getRowModel_rows, _table_getRowModel, _table_getRowModel_rows1, _table_getRowModel1;
|
|
81711
|
+
var _useState = _sliced_to_array(useState([]), 2), sorting = _useState[0], setSorting = _useState[1];
|
|
81712
|
+
var _useState1 = _sliced_to_array(useState([]), 2), columnFilters = _useState1[0], setColumnFilters = _useState1[1];
|
|
81713
|
+
var _useState2 = _sliced_to_array(useState({}), 2), columnVisibility = _useState2[0], setColumnVisibility = _useState2[1];
|
|
81714
|
+
var _useState3 = _sliced_to_array(useState({}), 2), rowSelection = _useState3[0], setRowSelection = _useState3[1];
|
|
81715
|
+
var total = paginationConfig === null || paginationConfig === void 0 ? void 0 : paginationConfig.total;
|
|
81716
|
+
var page = paginationConfig === null || paginationConfig === void 0 ? void 0 : paginationConfig.page;
|
|
81717
|
+
var limit = paginationConfig === null || paginationConfig === void 0 ? void 0 : paginationConfig.limit;
|
|
81718
|
+
var table = useReactTable({
|
|
81719
|
+
data: data,
|
|
81720
|
+
columns: columns,
|
|
81721
|
+
onSortingChange: setSorting,
|
|
81722
|
+
onColumnFiltersChange: setColumnFilters,
|
|
81723
|
+
getCoreRowModel: getCoreRowModel(),
|
|
81724
|
+
getPaginationRowModel: getPaginationRowModel(),
|
|
81725
|
+
getSortedRowModel: getSortedRowModel(),
|
|
81726
|
+
getFilteredRowModel: getFilteredRowModel(),
|
|
81727
|
+
onColumnVisibilityChange: setColumnVisibility,
|
|
81728
|
+
onRowSelectionChange: setRowSelection,
|
|
81729
|
+
state: {
|
|
81730
|
+
sorting: sorting,
|
|
81731
|
+
columnFilters: columnFilters,
|
|
81732
|
+
columnVisibility: columnVisibility,
|
|
81733
|
+
rowSelection: rowSelection,
|
|
81734
|
+
pagination: {
|
|
81735
|
+
pageIndex: page - 1,
|
|
81736
|
+
pageSize: limit
|
|
81737
|
+
}
|
|
81738
|
+
},
|
|
81739
|
+
pageCount: Math.ceil(total / limit),
|
|
81740
|
+
manualPagination: true,
|
|
81741
|
+
onPaginationChange: function(updater) {
|
|
81742
|
+
if (typeof updater === "function") {
|
|
81743
|
+
paginationConfig.onPageChange(updater({
|
|
81744
|
+
pageIndex: page,
|
|
81745
|
+
pageSize: limit
|
|
81746
|
+
}));
|
|
81747
|
+
}
|
|
81748
|
+
}
|
|
81749
|
+
});
|
|
81750
|
+
var handleLastPageClick = function() {
|
|
81751
|
+
var lastPage = Math.ceil(total / limit);
|
|
81752
|
+
paginationConfig.onPageChange({
|
|
81753
|
+
pageIndex: lastPage,
|
|
81754
|
+
pageSize: limit
|
|
81755
|
+
});
|
|
81756
|
+
};
|
|
81757
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
81758
|
+
className: "w-full",
|
|
81759
|
+
children: [
|
|
81760
|
+
/*#__PURE__*/ jsxs("div", {
|
|
81761
|
+
className: "flex items-center py-4 gap-2 flex-wrap",
|
|
81762
|
+
children: [
|
|
81763
|
+
(searchData === null || searchData === void 0 ? void 0 : searchData.length) ? searchData.map(function(item) {
|
|
81764
|
+
var _table_getColumn;
|
|
81765
|
+
var _table_getColumn_getFilterValue;
|
|
81766
|
+
return jsx(Input, {
|
|
81767
|
+
placeholder: item === null || item === void 0 ? void 0 : item.label,
|
|
81768
|
+
value: (_table_getColumn_getFilterValue = (_table_getColumn = table.getColumn(item === null || item === void 0 ? void 0 : item.name)) === null || _table_getColumn === void 0 ? void 0 : _table_getColumn.getFilterValue()) !== null && _table_getColumn_getFilterValue !== void 0 ? _table_getColumn_getFilterValue : "",
|
|
81769
|
+
onChange: function(event) {
|
|
81770
|
+
var _table_getColumn;
|
|
81771
|
+
return (_table_getColumn = table.getColumn(item === null || item === void 0 ? void 0 : item.name)) === null || _table_getColumn === void 0 ? void 0 : _table_getColumn.setFilterValue(event.target.value);
|
|
81772
|
+
},
|
|
81773
|
+
className: "w-full lg:w-60"
|
|
81774
|
+
}, item === null || item === void 0 ? void 0 : item.name);
|
|
81775
|
+
}) : null,
|
|
81776
|
+
/*#__PURE__*/ jsx("div", {
|
|
81777
|
+
className: "w-64",
|
|
81778
|
+
children: SearchSelectCP
|
|
81779
|
+
}),
|
|
81780
|
+
/*#__PURE__*/ jsxs(DropdownMenu, {
|
|
81781
|
+
children: [
|
|
81782
|
+
/*#__PURE__*/ jsx(DropdownMenuTrigger, {
|
|
81783
|
+
asChild: true,
|
|
81784
|
+
children: /*#__PURE__*/ jsxs(Button, {
|
|
81785
|
+
variant: "outline",
|
|
81786
|
+
className: "ml-auto",
|
|
81787
|
+
children: [
|
|
81788
|
+
"欄位篩選 ",
|
|
81789
|
+
/*#__PURE__*/ jsx(ChevronDown, {
|
|
81790
|
+
className: "ml-2 h-4 w-4"
|
|
81791
|
+
})
|
|
81792
|
+
]
|
|
81793
|
+
})
|
|
81794
|
+
}),
|
|
81795
|
+
/*#__PURE__*/ jsx(DropdownMenuContent, {
|
|
81796
|
+
align: "end",
|
|
81797
|
+
children: table.getAllColumns().filter(function(column) {
|
|
81798
|
+
return column === null || column === void 0 ? void 0 : column.getCanHide();
|
|
81799
|
+
}).map(function(column) {
|
|
81800
|
+
return /*#__PURE__*/ jsx(DropdownMenuCheckboxItem, {
|
|
81801
|
+
className: "capitalize",
|
|
81802
|
+
checked: column === null || column === void 0 ? void 0 : column.getIsVisible(),
|
|
81803
|
+
onCheckedChange: function(value) {
|
|
81804
|
+
return column === null || column === void 0 ? void 0 : column.toggleVisibility(!!value);
|
|
81805
|
+
},
|
|
81806
|
+
children: mappingColumn[column === null || column === void 0 ? void 0 : column.id]
|
|
81807
|
+
}, column === null || column === void 0 ? void 0 : column.id);
|
|
81808
|
+
})
|
|
81809
|
+
})
|
|
81810
|
+
]
|
|
81811
|
+
})
|
|
81812
|
+
]
|
|
81813
|
+
}),
|
|
81814
|
+
/*#__PURE__*/ jsx("div", {
|
|
81815
|
+
className: "rounded-md border",
|
|
81816
|
+
children: /*#__PURE__*/ jsxs(Table, {
|
|
81817
|
+
children: [
|
|
81818
|
+
/*#__PURE__*/ jsx(TableHeader, {
|
|
81819
|
+
children: table.getHeaderGroups().map(function(headerGroup) {
|
|
81820
|
+
return /*#__PURE__*/ jsx(TableRow, {
|
|
81821
|
+
children: headerGroup === null || headerGroup === void 0 ? void 0 : headerGroup.headers.map(function(header) {
|
|
81822
|
+
var _header_column_columnDef, _header_column;
|
|
81823
|
+
return /*#__PURE__*/ jsx(TableHead, {
|
|
81824
|
+
children: header.isPlaceholder ? null : flexRender(header === null || header === void 0 ? void 0 : (_header_column = header.column) === null || _header_column === void 0 ? void 0 : (_header_column_columnDef = _header_column.columnDef) === null || _header_column_columnDef === void 0 ? void 0 : _header_column_columnDef.header, header === null || header === void 0 ? void 0 : header.getContext())
|
|
81825
|
+
}, header.id);
|
|
81826
|
+
})
|
|
81827
|
+
}, headerGroup === null || headerGroup === void 0 ? void 0 : headerGroup.id);
|
|
81828
|
+
})
|
|
81829
|
+
}),
|
|
81830
|
+
/*#__PURE__*/ jsx(TableBody, {
|
|
81831
|
+
children: ((_table_getRowModel = table.getRowModel()) === null || _table_getRowModel === void 0 ? void 0 : (_table_getRowModel_rows = _table_getRowModel.rows) === null || _table_getRowModel_rows === void 0 ? void 0 : _table_getRowModel_rows.length) ? (_table_getRowModel1 = table.getRowModel()) === null || _table_getRowModel1 === void 0 ? void 0 : (_table_getRowModel_rows1 = _table_getRowModel1.rows) === null || _table_getRowModel_rows1 === void 0 ? void 0 : _table_getRowModel_rows1.map(function(row) {
|
|
81832
|
+
return /*#__PURE__*/ jsx(TableRow, {
|
|
81833
|
+
"data-state": (row === null || row === void 0 ? void 0 : row.getIsSelected()) && "selected",
|
|
81834
|
+
children: row === null || row === void 0 ? void 0 : row.getVisibleCells().map(function(cell) {
|
|
81835
|
+
var _cell_column_columnDef, _cell_column;
|
|
81836
|
+
return /*#__PURE__*/ jsx(TableCell, {
|
|
81837
|
+
className: "min-w-[2rem]",
|
|
81838
|
+
children: flexRender(cell === null || cell === void 0 ? void 0 : (_cell_column = cell.column) === null || _cell_column === void 0 ? void 0 : (_cell_column_columnDef = _cell_column.columnDef) === null || _cell_column_columnDef === void 0 ? void 0 : _cell_column_columnDef.cell, cell === null || cell === void 0 ? void 0 : cell.getContext())
|
|
81839
|
+
}, cell === null || cell === void 0 ? void 0 : cell.id);
|
|
81840
|
+
})
|
|
81841
|
+
}, row === null || row === void 0 ? void 0 : row.id);
|
|
81842
|
+
}) : /*#__PURE__*/ jsx(TableRow, {
|
|
81843
|
+
children: /*#__PURE__*/ jsx(TableCell, {
|
|
81844
|
+
colSpan: columns === null || columns === void 0 ? void 0 : columns.length,
|
|
81845
|
+
className: "h-24 text-center",
|
|
81846
|
+
children: "無資料"
|
|
81847
|
+
})
|
|
81848
|
+
})
|
|
81849
|
+
})
|
|
81850
|
+
]
|
|
81851
|
+
})
|
|
81852
|
+
}),
|
|
81853
|
+
/*#__PURE__*/ jsx("div", {
|
|
81854
|
+
className: "flex items-center justify-end space-x-2 py-4",
|
|
81855
|
+
children: /*#__PURE__*/ jsx(BasePagination, {
|
|
81856
|
+
table: table,
|
|
81857
|
+
total: total,
|
|
81858
|
+
handleLastPageClick: handleLastPageClick
|
|
81859
|
+
})
|
|
81860
|
+
})
|
|
81861
|
+
]
|
|
81862
|
+
});
|
|
81863
|
+
};
|
|
81864
|
+
|
|
81531
81865
|
var phone = /^09\d{8}$/;
|
|
81532
81866
|
var email = /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/i;
|
|
81533
81867
|
var birthday = /^(19|20)\d\d[-](0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])$/;
|
|
@@ -102043,4 +102377,4 @@ function DnDCalendar(props) {
|
|
|
102043
102377
|
});
|
|
102044
102378
|
}
|
|
102045
102379
|
|
|
102046
|
-
export { BigCalender, CkEditor, CustomUpload, DataTable, DateRangePicker, DnDCalendar, DropImage, ReactDateRange, Regex, Spin, Switch, UiLibrary, decryptByEcPay, encryptByEcPay, verifyId, verifyTaxId };
|
|
102380
|
+
export { BaseTable, BigCalender, CkEditor, CustomUpload, DataTable, DateRangePicker, DnDCalendar, DropImage, ReactDateRange, Regex, Spin, Switch, UiLibrary, decryptByEcPay, encryptByEcPay, verifyId, verifyTaxId };
|