@sunggang/ui-lib 0.2.89 → 0.2.91
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.js +1 -1
- package/index.esm2.js +6 -564
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/Form/index.d.ts +1 -3
- package/BaseCkeditor.esm.js +0 -66811
package/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BaseSwitch,
|
|
1
|
+
export { B as BaseSwitch, o as BaseTable, t as BigCalender, l as Button, G as City, E as Controller, w as CustomSelect, C as CustomUpload, n as DataTable, k as DateRangePicker, u as DnDCalendar, i as DropDown, D as DropImage, I as FieldLabel, J as Fields, M as Form, F as FormProvider, L as LiffContext, x as LiffProvider, R as ReactDateRange, p as Regex, K as Row, S as Spin, j as Switch, T as TabsPanel, H as Textarea, U as UiLibrary, m as buttonVariants, A as useForm, z as useFormContext, y as useLiffContext, v as validateMsg, r as verifyId, q as verifyTaiwanIdIntermediateString, s as verifyTaxId } from './index.esm2.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@iconify/react';
|
package/index.esm2.js
CHANGED
|
@@ -50,9 +50,6 @@ function Spin(props) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
53
|
-
function getDefaultExportFromCjs(x) {
|
|
54
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
55
|
-
}
|
|
56
53
|
function getAugmentedNamespace(n) {
|
|
57
54
|
if (n.__esModule) return n;
|
|
58
55
|
var a = Object.defineProperty({}, "__esModule", {
|
|
@@ -22937,559 +22934,6 @@ var ReactDateRange = function(param) {
|
|
|
22937
22934
|
});
|
|
22938
22935
|
};
|
|
22939
22936
|
|
|
22940
|
-
var dynamic$1 = {
|
|
22941
|
-
exports: {}
|
|
22942
|
-
};
|
|
22943
|
-
|
|
22944
|
-
var _interop_require_default$1 = {};
|
|
22945
|
-
|
|
22946
|
-
_interop_require_default$1._ = _interop_require_default$1._interop_require_default = _interop_require_default;
|
|
22947
|
-
function _interop_require_default(obj) {
|
|
22948
|
-
return obj && obj.__esModule ? obj : {
|
|
22949
|
-
default: obj
|
|
22950
|
-
};
|
|
22951
|
-
}
|
|
22952
|
-
|
|
22953
|
-
var loadable_sharedRuntime = {};
|
|
22954
|
-
|
|
22955
|
-
var loadableContext_sharedRuntime = {};
|
|
22956
|
-
|
|
22957
|
-
(function (exports) {
|
|
22958
|
-
"use client";
|
|
22959
|
-
Object.defineProperty(exports, "__esModule", {
|
|
22960
|
-
value: true
|
|
22961
|
-
});
|
|
22962
|
-
Object.defineProperty(exports, "LoadableContext", {
|
|
22963
|
-
enumerable: true,
|
|
22964
|
-
get: function get() {
|
|
22965
|
-
return LoadableContext;
|
|
22966
|
-
}
|
|
22967
|
-
});
|
|
22968
|
-
var _interop_require_default = _interop_require_default$1;
|
|
22969
|
-
var _react = /*#__PURE__*/ _interop_require_default._(React__default);
|
|
22970
|
-
var LoadableContext = _react.default.createContext(null);
|
|
22971
|
-
if (process.env.NODE_ENV !== "production") {
|
|
22972
|
-
LoadableContext.displayName = "LoadableContext";
|
|
22973
|
-
}
|
|
22974
|
-
}(loadableContext_sharedRuntime));
|
|
22975
|
-
|
|
22976
|
-
(function (exports) {
|
|
22977
|
-
function _class_call_check(instance, Constructor) {
|
|
22978
|
-
if (!(instance instanceof Constructor)) {
|
|
22979
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22980
|
-
}
|
|
22981
|
-
}
|
|
22982
|
-
function _defineProperties(target, props) {
|
|
22983
|
-
for(var i = 0; i < props.length; i++){
|
|
22984
|
-
var descriptor = props[i];
|
|
22985
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
22986
|
-
descriptor.configurable = true;
|
|
22987
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
22988
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
22989
|
-
}
|
|
22990
|
-
}
|
|
22991
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
22992
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
22993
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
22994
|
-
return Constructor;
|
|
22995
|
-
}
|
|
22996
|
-
function _define_property(obj, key, value) {
|
|
22997
|
-
if (key in obj) {
|
|
22998
|
-
Object.defineProperty(obj, key, {
|
|
22999
|
-
value: value,
|
|
23000
|
-
enumerable: true,
|
|
23001
|
-
configurable: true,
|
|
23002
|
-
writable: true
|
|
23003
|
-
});
|
|
23004
|
-
} else {
|
|
23005
|
-
obj[key] = value;
|
|
23006
|
-
}
|
|
23007
|
-
return obj;
|
|
23008
|
-
}
|
|
23009
|
-
function _object_spread(target) {
|
|
23010
|
-
for(var i = 1; i < arguments.length; i++){
|
|
23011
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
23012
|
-
var ownKeys = Object.keys(source);
|
|
23013
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
23014
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
23015
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
23016
|
-
}));
|
|
23017
|
-
}
|
|
23018
|
-
ownKeys.forEach(function(key) {
|
|
23019
|
-
_define_property(target, key, source[key]);
|
|
23020
|
-
});
|
|
23021
|
-
}
|
|
23022
|
-
return target;
|
|
23023
|
-
}
|
|
23024
|
-
function ownKeys(object, enumerableOnly) {
|
|
23025
|
-
var keys = Object.keys(object);
|
|
23026
|
-
if (Object.getOwnPropertySymbols) {
|
|
23027
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
23028
|
-
if (enumerableOnly) {
|
|
23029
|
-
symbols = symbols.filter(function(sym) {
|
|
23030
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
23031
|
-
});
|
|
23032
|
-
}
|
|
23033
|
-
keys.push.apply(keys, symbols);
|
|
23034
|
-
}
|
|
23035
|
-
return keys;
|
|
23036
|
-
}
|
|
23037
|
-
function _object_spread_props(target, source) {
|
|
23038
|
-
source = source != null ? source : {};
|
|
23039
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
23040
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
23041
|
-
} else {
|
|
23042
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
23043
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
23044
|
-
});
|
|
23045
|
-
}
|
|
23046
|
-
return target;
|
|
23047
|
-
}
|
|
23048
|
-
Object.defineProperty(exports, "__esModule", {
|
|
23049
|
-
value: true
|
|
23050
|
-
});
|
|
23051
|
-
Object.defineProperty(exports, "default", {
|
|
23052
|
-
enumerable: true,
|
|
23053
|
-
get: function get() {
|
|
23054
|
-
return _default;
|
|
23055
|
-
}
|
|
23056
|
-
});
|
|
23057
|
-
var _interop_require_default = _interop_require_default$1;
|
|
23058
|
-
var _react = /*#__PURE__*/ _interop_require_default._(React__default);
|
|
23059
|
-
var _loadablecontextsharedruntime = loadableContext_sharedRuntime;
|
|
23060
|
-
function resolve(obj) {
|
|
23061
|
-
return obj && obj.default ? obj.default : obj;
|
|
23062
|
-
}
|
|
23063
|
-
var ALL_INITIALIZERS = [];
|
|
23064
|
-
var READY_INITIALIZERS = [];
|
|
23065
|
-
var initialized = false;
|
|
23066
|
-
function load(loader) {
|
|
23067
|
-
var promise = loader();
|
|
23068
|
-
var state = {
|
|
23069
|
-
loading: true,
|
|
23070
|
-
loaded: null,
|
|
23071
|
-
error: null
|
|
23072
|
-
};
|
|
23073
|
-
state.promise = promise.then(function(loaded) {
|
|
23074
|
-
state.loading = false;
|
|
23075
|
-
state.loaded = loaded;
|
|
23076
|
-
return loaded;
|
|
23077
|
-
}).catch(function(err) {
|
|
23078
|
-
state.loading = false;
|
|
23079
|
-
state.error = err;
|
|
23080
|
-
throw err;
|
|
23081
|
-
});
|
|
23082
|
-
return state;
|
|
23083
|
-
}
|
|
23084
|
-
function createLoadableComponent(loadFn, options) {
|
|
23085
|
-
var opts = Object.assign({
|
|
23086
|
-
loader: null,
|
|
23087
|
-
loading: null,
|
|
23088
|
-
delay: 200,
|
|
23089
|
-
timeout: null,
|
|
23090
|
-
webpack: null,
|
|
23091
|
-
modules: null
|
|
23092
|
-
}, options);
|
|
23093
|
-
/** @type LoadableSubscription */ var subscription = null;
|
|
23094
|
-
function init() {
|
|
23095
|
-
if (!subscription) {
|
|
23096
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
23097
|
-
var sub = new LoadableSubscription(loadFn, opts);
|
|
23098
|
-
subscription = {
|
|
23099
|
-
getCurrentValue: sub.getCurrentValue.bind(sub),
|
|
23100
|
-
subscribe: sub.subscribe.bind(sub),
|
|
23101
|
-
retry: sub.retry.bind(sub),
|
|
23102
|
-
promise: sub.promise.bind(sub)
|
|
23103
|
-
};
|
|
23104
|
-
}
|
|
23105
|
-
return subscription.promise();
|
|
23106
|
-
}
|
|
23107
|
-
// Server only
|
|
23108
|
-
if (typeof window === "undefined") {
|
|
23109
|
-
ALL_INITIALIZERS.push(init);
|
|
23110
|
-
}
|
|
23111
|
-
// Client only
|
|
23112
|
-
if (!initialized && typeof window !== "undefined") {
|
|
23113
|
-
// require.resolveWeak check is needed for environments that don't have it available like Jest
|
|
23114
|
-
var moduleIds = opts.webpack && typeof commonjsRequire.resolveWeak === "function" ? opts.webpack() : opts.modules;
|
|
23115
|
-
if (moduleIds) {
|
|
23116
|
-
READY_INITIALIZERS.push(function(ids) {
|
|
23117
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
23118
|
-
try {
|
|
23119
|
-
for(var _iterator = moduleIds[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
23120
|
-
var moduleId = _step.value;
|
|
23121
|
-
if (ids.includes(moduleId)) {
|
|
23122
|
-
return init();
|
|
23123
|
-
}
|
|
23124
|
-
}
|
|
23125
|
-
} catch (err) {
|
|
23126
|
-
_didIteratorError = true;
|
|
23127
|
-
_iteratorError = err;
|
|
23128
|
-
} finally{
|
|
23129
|
-
try {
|
|
23130
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
23131
|
-
_iterator.return();
|
|
23132
|
-
}
|
|
23133
|
-
} finally{
|
|
23134
|
-
if (_didIteratorError) {
|
|
23135
|
-
throw _iteratorError;
|
|
23136
|
-
}
|
|
23137
|
-
}
|
|
23138
|
-
}
|
|
23139
|
-
});
|
|
23140
|
-
}
|
|
23141
|
-
}
|
|
23142
|
-
function useLoadableModule() {
|
|
23143
|
-
init();
|
|
23144
|
-
var context = _react.default.useContext(_loadablecontextsharedruntime.LoadableContext);
|
|
23145
|
-
if (context && Array.isArray(opts.modules)) {
|
|
23146
|
-
opts.modules.forEach(function(moduleName) {
|
|
23147
|
-
context(moduleName);
|
|
23148
|
-
});
|
|
23149
|
-
}
|
|
23150
|
-
}
|
|
23151
|
-
function LoadableComponent(props, ref) {
|
|
23152
|
-
useLoadableModule();
|
|
23153
|
-
var state = _react.default.useSyncExternalStore(subscription.subscribe, subscription.getCurrentValue, subscription.getCurrentValue);
|
|
23154
|
-
_react.default.useImperativeHandle(ref, function() {
|
|
23155
|
-
return {
|
|
23156
|
-
retry: subscription.retry
|
|
23157
|
-
};
|
|
23158
|
-
}, []);
|
|
23159
|
-
return _react.default.useMemo(function() {
|
|
23160
|
-
if (state.loading || state.error) {
|
|
23161
|
-
return /*#__PURE__*/ _react.default.createElement(opts.loading, {
|
|
23162
|
-
isLoading: state.loading,
|
|
23163
|
-
pastDelay: state.pastDelay,
|
|
23164
|
-
timedOut: state.timedOut,
|
|
23165
|
-
error: state.error,
|
|
23166
|
-
retry: subscription.retry
|
|
23167
|
-
});
|
|
23168
|
-
} else if (state.loaded) {
|
|
23169
|
-
return /*#__PURE__*/ _react.default.createElement(resolve(state.loaded), props);
|
|
23170
|
-
} else {
|
|
23171
|
-
return null;
|
|
23172
|
-
}
|
|
23173
|
-
}, [
|
|
23174
|
-
props,
|
|
23175
|
-
state
|
|
23176
|
-
]);
|
|
23177
|
-
}
|
|
23178
|
-
LoadableComponent.preload = function() {
|
|
23179
|
-
return init();
|
|
23180
|
-
};
|
|
23181
|
-
LoadableComponent.displayName = "LoadableComponent";
|
|
23182
|
-
return /*#__PURE__*/ _react.default.forwardRef(LoadableComponent);
|
|
23183
|
-
}
|
|
23184
|
-
var LoadableSubscription = /*#__PURE__*/ function() {
|
|
23185
|
-
function LoadableSubscription(loadFn, opts) {
|
|
23186
|
-
_class_call_check(this, LoadableSubscription);
|
|
23187
|
-
this._loadFn = loadFn;
|
|
23188
|
-
this._opts = opts;
|
|
23189
|
-
this._callbacks = new Set();
|
|
23190
|
-
this._delay = null;
|
|
23191
|
-
this._timeout = null;
|
|
23192
|
-
this.retry();
|
|
23193
|
-
}
|
|
23194
|
-
_create_class(LoadableSubscription, [
|
|
23195
|
-
{
|
|
23196
|
-
key: "promise",
|
|
23197
|
-
value: function promise() {
|
|
23198
|
-
return this._res.promise;
|
|
23199
|
-
}
|
|
23200
|
-
},
|
|
23201
|
-
{
|
|
23202
|
-
key: "retry",
|
|
23203
|
-
value: function retry() {
|
|
23204
|
-
var _this = this;
|
|
23205
|
-
this._clearTimeouts();
|
|
23206
|
-
this._res = this._loadFn(this._opts.loader);
|
|
23207
|
-
this._state = {
|
|
23208
|
-
pastDelay: false,
|
|
23209
|
-
timedOut: false
|
|
23210
|
-
};
|
|
23211
|
-
var _this1 = this, res = _this1._res, opts = _this1._opts;
|
|
23212
|
-
if (res.loading) {
|
|
23213
|
-
if (typeof opts.delay === "number") {
|
|
23214
|
-
if (opts.delay === 0) {
|
|
23215
|
-
this._state.pastDelay = true;
|
|
23216
|
-
} else {
|
|
23217
|
-
this._delay = setTimeout(function() {
|
|
23218
|
-
_this._update({
|
|
23219
|
-
pastDelay: true
|
|
23220
|
-
});
|
|
23221
|
-
}, opts.delay);
|
|
23222
|
-
}
|
|
23223
|
-
}
|
|
23224
|
-
if (typeof opts.timeout === "number") {
|
|
23225
|
-
this._timeout = setTimeout(function() {
|
|
23226
|
-
_this._update({
|
|
23227
|
-
timedOut: true
|
|
23228
|
-
});
|
|
23229
|
-
}, opts.timeout);
|
|
23230
|
-
}
|
|
23231
|
-
}
|
|
23232
|
-
this._res.promise.then(function() {
|
|
23233
|
-
_this._update({});
|
|
23234
|
-
_this._clearTimeouts();
|
|
23235
|
-
}).catch(function(_err) {
|
|
23236
|
-
_this._update({});
|
|
23237
|
-
_this._clearTimeouts();
|
|
23238
|
-
});
|
|
23239
|
-
this._update({});
|
|
23240
|
-
}
|
|
23241
|
-
},
|
|
23242
|
-
{
|
|
23243
|
-
key: "_update",
|
|
23244
|
-
value: function _update(partial) {
|
|
23245
|
-
this._state = _object_spread(_object_spread_props(_object_spread({}, this._state), {
|
|
23246
|
-
error: this._res.error,
|
|
23247
|
-
loaded: this._res.loaded,
|
|
23248
|
-
loading: this._res.loading
|
|
23249
|
-
}), partial);
|
|
23250
|
-
this._callbacks.forEach(function(callback) {
|
|
23251
|
-
return callback();
|
|
23252
|
-
});
|
|
23253
|
-
}
|
|
23254
|
-
},
|
|
23255
|
-
{
|
|
23256
|
-
key: "_clearTimeouts",
|
|
23257
|
-
value: function _clearTimeouts() {
|
|
23258
|
-
clearTimeout(this._delay);
|
|
23259
|
-
clearTimeout(this._timeout);
|
|
23260
|
-
}
|
|
23261
|
-
},
|
|
23262
|
-
{
|
|
23263
|
-
key: "getCurrentValue",
|
|
23264
|
-
value: function getCurrentValue() {
|
|
23265
|
-
return this._state;
|
|
23266
|
-
}
|
|
23267
|
-
},
|
|
23268
|
-
{
|
|
23269
|
-
key: "subscribe",
|
|
23270
|
-
value: function subscribe(callback) {
|
|
23271
|
-
var _this = this;
|
|
23272
|
-
this._callbacks.add(callback);
|
|
23273
|
-
return function() {
|
|
23274
|
-
_this._callbacks.delete(callback);
|
|
23275
|
-
};
|
|
23276
|
-
}
|
|
23277
|
-
}
|
|
23278
|
-
]);
|
|
23279
|
-
return LoadableSubscription;
|
|
23280
|
-
}();
|
|
23281
|
-
function Loadable(opts) {
|
|
23282
|
-
return createLoadableComponent(load, opts);
|
|
23283
|
-
}
|
|
23284
|
-
function flushInitializers(initializers, ids) {
|
|
23285
|
-
var promises = [];
|
|
23286
|
-
while(initializers.length){
|
|
23287
|
-
var init = initializers.pop();
|
|
23288
|
-
promises.push(init(ids));
|
|
23289
|
-
}
|
|
23290
|
-
return Promise.all(promises).then(function() {
|
|
23291
|
-
if (initializers.length) {
|
|
23292
|
-
return flushInitializers(initializers, ids);
|
|
23293
|
-
}
|
|
23294
|
-
});
|
|
23295
|
-
}
|
|
23296
|
-
Loadable.preloadAll = function() {
|
|
23297
|
-
return new Promise(function(resolveInitializers, reject) {
|
|
23298
|
-
flushInitializers(ALL_INITIALIZERS).then(resolveInitializers, reject);
|
|
23299
|
-
});
|
|
23300
|
-
};
|
|
23301
|
-
Loadable.preloadReady = function(ids) {
|
|
23302
|
-
if (ids === void 0) ids = [];
|
|
23303
|
-
return new Promise(function(resolvePreload) {
|
|
23304
|
-
var res = function() {
|
|
23305
|
-
initialized = true;
|
|
23306
|
-
return resolvePreload();
|
|
23307
|
-
};
|
|
23308
|
-
// We always will resolve, errors should be handled within loading UIs.
|
|
23309
|
-
flushInitializers(READY_INITIALIZERS, ids).then(res, res);
|
|
23310
|
-
});
|
|
23311
|
-
};
|
|
23312
|
-
if (typeof window !== "undefined") {
|
|
23313
|
-
window.__NEXT_PRELOADREADY = Loadable.preloadReady;
|
|
23314
|
-
}
|
|
23315
|
-
var _default = Loadable;
|
|
23316
|
-
}(loadable_sharedRuntime));
|
|
23317
|
-
|
|
23318
|
-
(function (module, exports) {
|
|
23319
|
-
function _define_property(obj, key, value) {
|
|
23320
|
-
if (key in obj) {
|
|
23321
|
-
Object.defineProperty(obj, key, {
|
|
23322
|
-
value: value,
|
|
23323
|
-
enumerable: true,
|
|
23324
|
-
configurable: true,
|
|
23325
|
-
writable: true
|
|
23326
|
-
});
|
|
23327
|
-
} else {
|
|
23328
|
-
obj[key] = value;
|
|
23329
|
-
}
|
|
23330
|
-
return obj;
|
|
23331
|
-
}
|
|
23332
|
-
function _instanceof(left, right) {
|
|
23333
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
23334
|
-
return !!right[Symbol.hasInstance](left);
|
|
23335
|
-
} else {
|
|
23336
|
-
return left instanceof right;
|
|
23337
|
-
}
|
|
23338
|
-
}
|
|
23339
|
-
function _object_spread(target) {
|
|
23340
|
-
for(var i = 1; i < arguments.length; i++){
|
|
23341
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
23342
|
-
var ownKeys = Object.keys(source);
|
|
23343
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
23344
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
23345
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
23346
|
-
}));
|
|
23347
|
-
}
|
|
23348
|
-
ownKeys.forEach(function(key) {
|
|
23349
|
-
_define_property(target, key, source[key]);
|
|
23350
|
-
});
|
|
23351
|
-
}
|
|
23352
|
-
return target;
|
|
23353
|
-
}
|
|
23354
|
-
function ownKeys(object, enumerableOnly) {
|
|
23355
|
-
var keys = Object.keys(object);
|
|
23356
|
-
if (Object.getOwnPropertySymbols) {
|
|
23357
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
23358
|
-
if (enumerableOnly) {
|
|
23359
|
-
symbols = symbols.filter(function(sym) {
|
|
23360
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
23361
|
-
});
|
|
23362
|
-
}
|
|
23363
|
-
keys.push.apply(keys, symbols);
|
|
23364
|
-
}
|
|
23365
|
-
return keys;
|
|
23366
|
-
}
|
|
23367
|
-
function _object_spread_props(target, source) {
|
|
23368
|
-
source = source != null ? source : {};
|
|
23369
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
23370
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
23371
|
-
} else {
|
|
23372
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
23373
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
23374
|
-
});
|
|
23375
|
-
}
|
|
23376
|
-
return target;
|
|
23377
|
-
}
|
|
23378
|
-
Object.defineProperty(exports, "__esModule", {
|
|
23379
|
-
value: true
|
|
23380
|
-
});
|
|
23381
|
-
function _export(target, all) {
|
|
23382
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
23383
|
-
enumerable: true,
|
|
23384
|
-
get: all[name]
|
|
23385
|
-
});
|
|
23386
|
-
}
|
|
23387
|
-
_export(exports, {
|
|
23388
|
-
noSSR: function noSSR1() {
|
|
23389
|
-
return noSSR;
|
|
23390
|
-
},
|
|
23391
|
-
default: function _default() {
|
|
23392
|
-
return dynamic;
|
|
23393
|
-
}
|
|
23394
|
-
});
|
|
23395
|
-
var _interop_require_default = _interop_require_default$1;
|
|
23396
|
-
var _react = /*#__PURE__*/ _interop_require_default._(React__default);
|
|
23397
|
-
var _loadablesharedruntime = /*#__PURE__*/ _interop_require_default._(loadable_sharedRuntime);
|
|
23398
|
-
var isServerSide = typeof window === "undefined";
|
|
23399
|
-
// Normalize loader to return the module as form { default: Component } for `React.lazy`.
|
|
23400
|
-
// Also for backward compatible since next/dynamic allows to resolve a component directly with loader
|
|
23401
|
-
// Client component reference proxy need to be converted to a module.
|
|
23402
|
-
function convertModule(mod) {
|
|
23403
|
-
return {
|
|
23404
|
-
default: (mod == null ? void 0 : mod.default) || mod
|
|
23405
|
-
};
|
|
23406
|
-
}
|
|
23407
|
-
function noSSR(LoadableInitializer, loadableOptions) {
|
|
23408
|
-
// Removing webpack and modules means react-loadable won't try preloading
|
|
23409
|
-
delete loadableOptions.webpack;
|
|
23410
|
-
delete loadableOptions.modules;
|
|
23411
|
-
// This check is necessary to prevent react-loadable from initializing on the server
|
|
23412
|
-
if (!isServerSide) {
|
|
23413
|
-
return LoadableInitializer(loadableOptions);
|
|
23414
|
-
}
|
|
23415
|
-
var Loading = loadableOptions.loading;
|
|
23416
|
-
// This will only be rendered on the server side
|
|
23417
|
-
return function() {
|
|
23418
|
-
return /*#__PURE__*/ _react.default.createElement(Loading, {
|
|
23419
|
-
error: null,
|
|
23420
|
-
isLoading: true,
|
|
23421
|
-
pastDelay: false,
|
|
23422
|
-
timedOut: false
|
|
23423
|
-
});
|
|
23424
|
-
};
|
|
23425
|
-
}
|
|
23426
|
-
function dynamic(dynamicOptions, options) {
|
|
23427
|
-
var loadableFn = _loadablesharedruntime.default;
|
|
23428
|
-
var loadableOptions = {
|
|
23429
|
-
// A loading component is not required, so we default it
|
|
23430
|
-
loading: function(param) {
|
|
23431
|
-
var error = param.error, isLoading = param.isLoading, pastDelay = param.pastDelay;
|
|
23432
|
-
if (!pastDelay) return null;
|
|
23433
|
-
if (process.env.NODE_ENV !== "production") {
|
|
23434
|
-
if (isLoading) {
|
|
23435
|
-
return null;
|
|
23436
|
-
}
|
|
23437
|
-
if (error) {
|
|
23438
|
-
return /*#__PURE__*/ _react.default.createElement("p", null, error.message, /*#__PURE__*/ _react.default.createElement("br", null), error.stack);
|
|
23439
|
-
}
|
|
23440
|
-
}
|
|
23441
|
-
return null;
|
|
23442
|
-
}
|
|
23443
|
-
};
|
|
23444
|
-
// Support for direct import(), eg: dynamic(import('../hello-world'))
|
|
23445
|
-
// Note that this is only kept for the edge case where someone is passing in a promise as first argument
|
|
23446
|
-
// The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))
|
|
23447
|
-
// To make sure we don't execute the import without rendering first
|
|
23448
|
-
if (_instanceof(dynamicOptions, Promise)) {
|
|
23449
|
-
loadableOptions.loader = function() {
|
|
23450
|
-
return dynamicOptions;
|
|
23451
|
-
};
|
|
23452
|
-
// Support for having import as a function, eg: dynamic(() => import('../hello-world'))
|
|
23453
|
-
} else if (typeof dynamicOptions === "function") {
|
|
23454
|
-
loadableOptions.loader = dynamicOptions;
|
|
23455
|
-
// Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})
|
|
23456
|
-
} else if (typeof dynamicOptions === "object") {
|
|
23457
|
-
loadableOptions = _object_spread({}, loadableOptions, dynamicOptions);
|
|
23458
|
-
}
|
|
23459
|
-
// Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})
|
|
23460
|
-
loadableOptions = _object_spread({}, loadableOptions, options);
|
|
23461
|
-
var loaderFn = loadableOptions.loader;
|
|
23462
|
-
var loader = function() {
|
|
23463
|
-
return loaderFn != null ? loaderFn().then(convertModule) : Promise.resolve(convertModule(function() {
|
|
23464
|
-
return null;
|
|
23465
|
-
}));
|
|
23466
|
-
};
|
|
23467
|
-
// coming from build/babel/plugins/react-loadable-plugin.js
|
|
23468
|
-
if (loadableOptions.loadableGenerated) {
|
|
23469
|
-
loadableOptions = _object_spread({}, loadableOptions, loadableOptions.loadableGenerated);
|
|
23470
|
-
delete loadableOptions.loadableGenerated;
|
|
23471
|
-
}
|
|
23472
|
-
// support for disabling server side rendering, eg: dynamic(() => import('../hello-world'), {ssr: false}).
|
|
23473
|
-
if (typeof loadableOptions.ssr === "boolean" && !loadableOptions.ssr) {
|
|
23474
|
-
delete loadableOptions.webpack;
|
|
23475
|
-
delete loadableOptions.modules;
|
|
23476
|
-
return noSSR(loadableFn, loadableOptions);
|
|
23477
|
-
}
|
|
23478
|
-
return loadableFn(_object_spread_props(_object_spread({}, loadableOptions), {
|
|
23479
|
-
loader: loader
|
|
23480
|
-
}));
|
|
23481
|
-
}
|
|
23482
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
23483
|
-
Object.defineProperty(exports.default, "__esModule", {
|
|
23484
|
-
value: true
|
|
23485
|
-
});
|
|
23486
|
-
Object.assign(exports.default, exports);
|
|
23487
|
-
module.exports = exports.default;
|
|
23488
|
-
}
|
|
23489
|
-
}(dynamic$1, dynamic$1.exports));
|
|
23490
|
-
|
|
23491
|
-
var dynamic = dynamic$1.exports;
|
|
23492
|
-
|
|
23493
22937
|
function _arrayWithHoles(r) {
|
|
23494
22938
|
if (Array.isArray(r)) return r;
|
|
23495
22939
|
}
|
|
@@ -48434,11 +47878,9 @@ function _unsupported_iterable_to_array$6(o, minLen) {
|
|
|
48434
47878
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
48435
47879
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
48436
47880
|
}
|
|
48437
|
-
|
|
48438
|
-
|
|
48439
|
-
}
|
|
48440
|
-
ssr: false
|
|
48441
|
-
});
|
|
47881
|
+
// const BaseCkeditor = dynamic(() => import('../Ckeditor/BaseCkeditor'), {
|
|
47882
|
+
// ssr: false,
|
|
47883
|
+
// });
|
|
48442
47884
|
var TextField = function(param) {
|
|
48443
47885
|
var item = param.item;
|
|
48444
47886
|
var _useFormContext = useFormContext(), register = _useFormContext.register, setValue = _useFormContext.setValue, errors = _useFormContext.formState.errors;
|
|
@@ -48956,8 +48398,8 @@ var Row = function(param) {
|
|
|
48956
48398
|
return /*#__PURE__*/ jsx$1(City, _object_spread$6({}, baseConfig));
|
|
48957
48399
|
case "city":
|
|
48958
48400
|
return /*#__PURE__*/ jsx$1(CityDistrict, _object_spread$6({}, baseConfig));
|
|
48959
|
-
case
|
|
48960
|
-
|
|
48401
|
+
// case 'ckEditor':
|
|
48402
|
+
// return <BaseCkeditor {...baseConfig} />;
|
|
48961
48403
|
default:
|
|
48962
48404
|
return null;
|
|
48963
48405
|
}
|
|
@@ -71442,4 +70884,4 @@ var useLiffContext = function() {
|
|
|
71442
70884
|
return context;
|
|
71443
70885
|
};
|
|
71444
70886
|
|
|
71445
|
-
export {
|
|
70887
|
+
export { useForm as A, BaseSwitch as B, CustomUpload as C, DropImage as D, Controller as E, FormProvider as F, City as G, Textarea as H, FieldLabel as I, Fields as J, Row as K, LiffContext as L, Form as M, ReactDateRange as R, Spin as S, TabsPanel as T, UiLibrary as U, __spreadArray as _, __read as a, __extends as b, __assign as c, __makeTemplateObject as d, __awaiter as e, __generator as f, commonjsGlobal as g, __values as h, DropDown as i, Switch as j, DateRangePicker as k, Button as l, buttonVariants as m, DataTable as n, BaseTable as o, Regex as p, verifyTaiwanIdIntermediateString as q, verifyId as r, verifyTaxId as s, BigCalender as t, DnDCalendar as u, validateMsg as v, CustomSelect as w, LiffProvider as x, useLiffContext as y, useFormContext as z };
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
package/src/lib/Form/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const Fields: ({ formConfig }: {
|
|
|
13
13
|
export declare const Row: ({ rowItems }: {
|
|
14
14
|
rowItems: any;
|
|
15
15
|
}) => any;
|
|
16
|
-
declare const Form: {
|
|
16
|
+
export declare const Form: {
|
|
17
17
|
Fields: ({ formConfig }: {
|
|
18
18
|
formConfig: any;
|
|
19
19
|
}) => any;
|
|
@@ -49,5 +49,3 @@ declare const Form: {
|
|
|
49
49
|
item: any;
|
|
50
50
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
51
51
|
};
|
|
52
|
-
export { Form };
|
|
53
|
-
export default Form;
|