@sunggang/ui-lib 0.2.93 → 0.2.94
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 +66810 -0
- package/index.esm.js +1 -2
- package/index.esm2.js +621 -78
- package/index.esm3.js +0 -1
- package/package.json +1 -1
package/index.esm2.js
CHANGED
|
@@ -17,7 +17,6 @@ import { Calendar as Calendar$4, DateRange } from 'react-date-range';
|
|
|
17
17
|
import * as locales from 'react-date-range/dist/locale/index.js';
|
|
18
18
|
import addDays from 'date-fns/addDays/index.js';
|
|
19
19
|
import format$1 from 'date-fns/format/index.js';
|
|
20
|
-
import FormControl from '@material-ui/core/FormControl';
|
|
21
20
|
import { useReactTable, getCoreRowModel, getPaginationRowModel, getSortedRowModel, getFilteredRowModel, flexRender } from '@tanstack/react-table';
|
|
22
21
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
23
22
|
import { ChevronRightIcon, CheckIcon, DotFilledIcon } from '@radix-ui/react-icons';
|
|
@@ -50,6 +49,9 @@ function Spin(props) {
|
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
52
|
+
function getDefaultExportFromCjs(x) {
|
|
53
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
54
|
+
}
|
|
53
55
|
function getAugmentedNamespace(n) {
|
|
54
56
|
if (n.__esModule) return n;
|
|
55
57
|
var a = Object.defineProperty({}, "__esModule", {
|
|
@@ -23204,6 +23206,559 @@ var ReactDateRange = function(param) {
|
|
|
23204
23206
|
});
|
|
23205
23207
|
};
|
|
23206
23208
|
|
|
23209
|
+
var dynamic$1 = {
|
|
23210
|
+
exports: {}
|
|
23211
|
+
};
|
|
23212
|
+
|
|
23213
|
+
var _interop_require_default$1 = {};
|
|
23214
|
+
|
|
23215
|
+
_interop_require_default$1._ = _interop_require_default$1._interop_require_default = _interop_require_default;
|
|
23216
|
+
function _interop_require_default(obj) {
|
|
23217
|
+
return obj && obj.__esModule ? obj : {
|
|
23218
|
+
default: obj
|
|
23219
|
+
};
|
|
23220
|
+
}
|
|
23221
|
+
|
|
23222
|
+
var loadable_sharedRuntime = {};
|
|
23223
|
+
|
|
23224
|
+
var loadableContext_sharedRuntime = {};
|
|
23225
|
+
|
|
23226
|
+
(function (exports) {
|
|
23227
|
+
"use client";
|
|
23228
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23229
|
+
value: true
|
|
23230
|
+
});
|
|
23231
|
+
Object.defineProperty(exports, "LoadableContext", {
|
|
23232
|
+
enumerable: true,
|
|
23233
|
+
get: function get() {
|
|
23234
|
+
return LoadableContext;
|
|
23235
|
+
}
|
|
23236
|
+
});
|
|
23237
|
+
var _interop_require_default = _interop_require_default$1;
|
|
23238
|
+
var _react = /*#__PURE__*/ _interop_require_default._(React__default);
|
|
23239
|
+
var LoadableContext = _react.default.createContext(null);
|
|
23240
|
+
if (process.env.NODE_ENV !== "production") {
|
|
23241
|
+
LoadableContext.displayName = "LoadableContext";
|
|
23242
|
+
}
|
|
23243
|
+
}(loadableContext_sharedRuntime));
|
|
23244
|
+
|
|
23245
|
+
(function (exports) {
|
|
23246
|
+
function _class_call_check(instance, Constructor) {
|
|
23247
|
+
if (!(instance instanceof Constructor)) {
|
|
23248
|
+
throw new TypeError("Cannot call a class as a function");
|
|
23249
|
+
}
|
|
23250
|
+
}
|
|
23251
|
+
function _defineProperties(target, props) {
|
|
23252
|
+
for(var i = 0; i < props.length; i++){
|
|
23253
|
+
var descriptor = props[i];
|
|
23254
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
23255
|
+
descriptor.configurable = true;
|
|
23256
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
23257
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23258
|
+
}
|
|
23259
|
+
}
|
|
23260
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
23261
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23262
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
23263
|
+
return Constructor;
|
|
23264
|
+
}
|
|
23265
|
+
function _define_property(obj, key, value) {
|
|
23266
|
+
if (key in obj) {
|
|
23267
|
+
Object.defineProperty(obj, key, {
|
|
23268
|
+
value: value,
|
|
23269
|
+
enumerable: true,
|
|
23270
|
+
configurable: true,
|
|
23271
|
+
writable: true
|
|
23272
|
+
});
|
|
23273
|
+
} else {
|
|
23274
|
+
obj[key] = value;
|
|
23275
|
+
}
|
|
23276
|
+
return obj;
|
|
23277
|
+
}
|
|
23278
|
+
function _object_spread(target) {
|
|
23279
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23280
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
23281
|
+
var ownKeys = Object.keys(source);
|
|
23282
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
23283
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
23284
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
23285
|
+
}));
|
|
23286
|
+
}
|
|
23287
|
+
ownKeys.forEach(function(key) {
|
|
23288
|
+
_define_property(target, key, source[key]);
|
|
23289
|
+
});
|
|
23290
|
+
}
|
|
23291
|
+
return target;
|
|
23292
|
+
}
|
|
23293
|
+
function ownKeys(object, enumerableOnly) {
|
|
23294
|
+
var keys = Object.keys(object);
|
|
23295
|
+
if (Object.getOwnPropertySymbols) {
|
|
23296
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
23297
|
+
if (enumerableOnly) {
|
|
23298
|
+
symbols = symbols.filter(function(sym) {
|
|
23299
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
23300
|
+
});
|
|
23301
|
+
}
|
|
23302
|
+
keys.push.apply(keys, symbols);
|
|
23303
|
+
}
|
|
23304
|
+
return keys;
|
|
23305
|
+
}
|
|
23306
|
+
function _object_spread_props(target, source) {
|
|
23307
|
+
source = source != null ? source : {};
|
|
23308
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
23309
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
23310
|
+
} else {
|
|
23311
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
23312
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
23313
|
+
});
|
|
23314
|
+
}
|
|
23315
|
+
return target;
|
|
23316
|
+
}
|
|
23317
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23318
|
+
value: true
|
|
23319
|
+
});
|
|
23320
|
+
Object.defineProperty(exports, "default", {
|
|
23321
|
+
enumerable: true,
|
|
23322
|
+
get: function get() {
|
|
23323
|
+
return _default;
|
|
23324
|
+
}
|
|
23325
|
+
});
|
|
23326
|
+
var _interop_require_default = _interop_require_default$1;
|
|
23327
|
+
var _react = /*#__PURE__*/ _interop_require_default._(React__default);
|
|
23328
|
+
var _loadablecontextsharedruntime = loadableContext_sharedRuntime;
|
|
23329
|
+
function resolve(obj) {
|
|
23330
|
+
return obj && obj.default ? obj.default : obj;
|
|
23331
|
+
}
|
|
23332
|
+
var ALL_INITIALIZERS = [];
|
|
23333
|
+
var READY_INITIALIZERS = [];
|
|
23334
|
+
var initialized = false;
|
|
23335
|
+
function load(loader) {
|
|
23336
|
+
var promise = loader();
|
|
23337
|
+
var state = {
|
|
23338
|
+
loading: true,
|
|
23339
|
+
loaded: null,
|
|
23340
|
+
error: null
|
|
23341
|
+
};
|
|
23342
|
+
state.promise = promise.then(function(loaded) {
|
|
23343
|
+
state.loading = false;
|
|
23344
|
+
state.loaded = loaded;
|
|
23345
|
+
return loaded;
|
|
23346
|
+
}).catch(function(err) {
|
|
23347
|
+
state.loading = false;
|
|
23348
|
+
state.error = err;
|
|
23349
|
+
throw err;
|
|
23350
|
+
});
|
|
23351
|
+
return state;
|
|
23352
|
+
}
|
|
23353
|
+
function createLoadableComponent(loadFn, options) {
|
|
23354
|
+
var opts = Object.assign({
|
|
23355
|
+
loader: null,
|
|
23356
|
+
loading: null,
|
|
23357
|
+
delay: 200,
|
|
23358
|
+
timeout: null,
|
|
23359
|
+
webpack: null,
|
|
23360
|
+
modules: null
|
|
23361
|
+
}, options);
|
|
23362
|
+
/** @type LoadableSubscription */ var subscription = null;
|
|
23363
|
+
function init() {
|
|
23364
|
+
if (!subscription) {
|
|
23365
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
23366
|
+
var sub = new LoadableSubscription(loadFn, opts);
|
|
23367
|
+
subscription = {
|
|
23368
|
+
getCurrentValue: sub.getCurrentValue.bind(sub),
|
|
23369
|
+
subscribe: sub.subscribe.bind(sub),
|
|
23370
|
+
retry: sub.retry.bind(sub),
|
|
23371
|
+
promise: sub.promise.bind(sub)
|
|
23372
|
+
};
|
|
23373
|
+
}
|
|
23374
|
+
return subscription.promise();
|
|
23375
|
+
}
|
|
23376
|
+
// Server only
|
|
23377
|
+
if (typeof window === "undefined") {
|
|
23378
|
+
ALL_INITIALIZERS.push(init);
|
|
23379
|
+
}
|
|
23380
|
+
// Client only
|
|
23381
|
+
if (!initialized && typeof window !== "undefined") {
|
|
23382
|
+
// require.resolveWeak check is needed for environments that don't have it available like Jest
|
|
23383
|
+
var moduleIds = opts.webpack && typeof commonjsRequire.resolveWeak === "function" ? opts.webpack() : opts.modules;
|
|
23384
|
+
if (moduleIds) {
|
|
23385
|
+
READY_INITIALIZERS.push(function(ids) {
|
|
23386
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
23387
|
+
try {
|
|
23388
|
+
for(var _iterator = moduleIds[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
23389
|
+
var moduleId = _step.value;
|
|
23390
|
+
if (ids.includes(moduleId)) {
|
|
23391
|
+
return init();
|
|
23392
|
+
}
|
|
23393
|
+
}
|
|
23394
|
+
} catch (err) {
|
|
23395
|
+
_didIteratorError = true;
|
|
23396
|
+
_iteratorError = err;
|
|
23397
|
+
} finally{
|
|
23398
|
+
try {
|
|
23399
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
23400
|
+
_iterator.return();
|
|
23401
|
+
}
|
|
23402
|
+
} finally{
|
|
23403
|
+
if (_didIteratorError) {
|
|
23404
|
+
throw _iteratorError;
|
|
23405
|
+
}
|
|
23406
|
+
}
|
|
23407
|
+
}
|
|
23408
|
+
});
|
|
23409
|
+
}
|
|
23410
|
+
}
|
|
23411
|
+
function useLoadableModule() {
|
|
23412
|
+
init();
|
|
23413
|
+
var context = _react.default.useContext(_loadablecontextsharedruntime.LoadableContext);
|
|
23414
|
+
if (context && Array.isArray(opts.modules)) {
|
|
23415
|
+
opts.modules.forEach(function(moduleName) {
|
|
23416
|
+
context(moduleName);
|
|
23417
|
+
});
|
|
23418
|
+
}
|
|
23419
|
+
}
|
|
23420
|
+
function LoadableComponent(props, ref) {
|
|
23421
|
+
useLoadableModule();
|
|
23422
|
+
var state = _react.default.useSyncExternalStore(subscription.subscribe, subscription.getCurrentValue, subscription.getCurrentValue);
|
|
23423
|
+
_react.default.useImperativeHandle(ref, function() {
|
|
23424
|
+
return {
|
|
23425
|
+
retry: subscription.retry
|
|
23426
|
+
};
|
|
23427
|
+
}, []);
|
|
23428
|
+
return _react.default.useMemo(function() {
|
|
23429
|
+
if (state.loading || state.error) {
|
|
23430
|
+
return /*#__PURE__*/ _react.default.createElement(opts.loading, {
|
|
23431
|
+
isLoading: state.loading,
|
|
23432
|
+
pastDelay: state.pastDelay,
|
|
23433
|
+
timedOut: state.timedOut,
|
|
23434
|
+
error: state.error,
|
|
23435
|
+
retry: subscription.retry
|
|
23436
|
+
});
|
|
23437
|
+
} else if (state.loaded) {
|
|
23438
|
+
return /*#__PURE__*/ _react.default.createElement(resolve(state.loaded), props);
|
|
23439
|
+
} else {
|
|
23440
|
+
return null;
|
|
23441
|
+
}
|
|
23442
|
+
}, [
|
|
23443
|
+
props,
|
|
23444
|
+
state
|
|
23445
|
+
]);
|
|
23446
|
+
}
|
|
23447
|
+
LoadableComponent.preload = function() {
|
|
23448
|
+
return init();
|
|
23449
|
+
};
|
|
23450
|
+
LoadableComponent.displayName = "LoadableComponent";
|
|
23451
|
+
return /*#__PURE__*/ _react.default.forwardRef(LoadableComponent);
|
|
23452
|
+
}
|
|
23453
|
+
var LoadableSubscription = /*#__PURE__*/ function() {
|
|
23454
|
+
function LoadableSubscription(loadFn, opts) {
|
|
23455
|
+
_class_call_check(this, LoadableSubscription);
|
|
23456
|
+
this._loadFn = loadFn;
|
|
23457
|
+
this._opts = opts;
|
|
23458
|
+
this._callbacks = new Set();
|
|
23459
|
+
this._delay = null;
|
|
23460
|
+
this._timeout = null;
|
|
23461
|
+
this.retry();
|
|
23462
|
+
}
|
|
23463
|
+
_create_class(LoadableSubscription, [
|
|
23464
|
+
{
|
|
23465
|
+
key: "promise",
|
|
23466
|
+
value: function promise() {
|
|
23467
|
+
return this._res.promise;
|
|
23468
|
+
}
|
|
23469
|
+
},
|
|
23470
|
+
{
|
|
23471
|
+
key: "retry",
|
|
23472
|
+
value: function retry() {
|
|
23473
|
+
var _this = this;
|
|
23474
|
+
this._clearTimeouts();
|
|
23475
|
+
this._res = this._loadFn(this._opts.loader);
|
|
23476
|
+
this._state = {
|
|
23477
|
+
pastDelay: false,
|
|
23478
|
+
timedOut: false
|
|
23479
|
+
};
|
|
23480
|
+
var _this1 = this, res = _this1._res, opts = _this1._opts;
|
|
23481
|
+
if (res.loading) {
|
|
23482
|
+
if (typeof opts.delay === "number") {
|
|
23483
|
+
if (opts.delay === 0) {
|
|
23484
|
+
this._state.pastDelay = true;
|
|
23485
|
+
} else {
|
|
23486
|
+
this._delay = setTimeout(function() {
|
|
23487
|
+
_this._update({
|
|
23488
|
+
pastDelay: true
|
|
23489
|
+
});
|
|
23490
|
+
}, opts.delay);
|
|
23491
|
+
}
|
|
23492
|
+
}
|
|
23493
|
+
if (typeof opts.timeout === "number") {
|
|
23494
|
+
this._timeout = setTimeout(function() {
|
|
23495
|
+
_this._update({
|
|
23496
|
+
timedOut: true
|
|
23497
|
+
});
|
|
23498
|
+
}, opts.timeout);
|
|
23499
|
+
}
|
|
23500
|
+
}
|
|
23501
|
+
this._res.promise.then(function() {
|
|
23502
|
+
_this._update({});
|
|
23503
|
+
_this._clearTimeouts();
|
|
23504
|
+
}).catch(function(_err) {
|
|
23505
|
+
_this._update({});
|
|
23506
|
+
_this._clearTimeouts();
|
|
23507
|
+
});
|
|
23508
|
+
this._update({});
|
|
23509
|
+
}
|
|
23510
|
+
},
|
|
23511
|
+
{
|
|
23512
|
+
key: "_update",
|
|
23513
|
+
value: function _update(partial) {
|
|
23514
|
+
this._state = _object_spread(_object_spread_props(_object_spread({}, this._state), {
|
|
23515
|
+
error: this._res.error,
|
|
23516
|
+
loaded: this._res.loaded,
|
|
23517
|
+
loading: this._res.loading
|
|
23518
|
+
}), partial);
|
|
23519
|
+
this._callbacks.forEach(function(callback) {
|
|
23520
|
+
return callback();
|
|
23521
|
+
});
|
|
23522
|
+
}
|
|
23523
|
+
},
|
|
23524
|
+
{
|
|
23525
|
+
key: "_clearTimeouts",
|
|
23526
|
+
value: function _clearTimeouts() {
|
|
23527
|
+
clearTimeout(this._delay);
|
|
23528
|
+
clearTimeout(this._timeout);
|
|
23529
|
+
}
|
|
23530
|
+
},
|
|
23531
|
+
{
|
|
23532
|
+
key: "getCurrentValue",
|
|
23533
|
+
value: function getCurrentValue() {
|
|
23534
|
+
return this._state;
|
|
23535
|
+
}
|
|
23536
|
+
},
|
|
23537
|
+
{
|
|
23538
|
+
key: "subscribe",
|
|
23539
|
+
value: function subscribe(callback) {
|
|
23540
|
+
var _this = this;
|
|
23541
|
+
this._callbacks.add(callback);
|
|
23542
|
+
return function() {
|
|
23543
|
+
_this._callbacks.delete(callback);
|
|
23544
|
+
};
|
|
23545
|
+
}
|
|
23546
|
+
}
|
|
23547
|
+
]);
|
|
23548
|
+
return LoadableSubscription;
|
|
23549
|
+
}();
|
|
23550
|
+
function Loadable(opts) {
|
|
23551
|
+
return createLoadableComponent(load, opts);
|
|
23552
|
+
}
|
|
23553
|
+
function flushInitializers(initializers, ids) {
|
|
23554
|
+
var promises = [];
|
|
23555
|
+
while(initializers.length){
|
|
23556
|
+
var init = initializers.pop();
|
|
23557
|
+
promises.push(init(ids));
|
|
23558
|
+
}
|
|
23559
|
+
return Promise.all(promises).then(function() {
|
|
23560
|
+
if (initializers.length) {
|
|
23561
|
+
return flushInitializers(initializers, ids);
|
|
23562
|
+
}
|
|
23563
|
+
});
|
|
23564
|
+
}
|
|
23565
|
+
Loadable.preloadAll = function() {
|
|
23566
|
+
return new Promise(function(resolveInitializers, reject) {
|
|
23567
|
+
flushInitializers(ALL_INITIALIZERS).then(resolveInitializers, reject);
|
|
23568
|
+
});
|
|
23569
|
+
};
|
|
23570
|
+
Loadable.preloadReady = function(ids) {
|
|
23571
|
+
if (ids === void 0) ids = [];
|
|
23572
|
+
return new Promise(function(resolvePreload) {
|
|
23573
|
+
var res = function() {
|
|
23574
|
+
initialized = true;
|
|
23575
|
+
return resolvePreload();
|
|
23576
|
+
};
|
|
23577
|
+
// We always will resolve, errors should be handled within loading UIs.
|
|
23578
|
+
flushInitializers(READY_INITIALIZERS, ids).then(res, res);
|
|
23579
|
+
});
|
|
23580
|
+
};
|
|
23581
|
+
if (typeof window !== "undefined") {
|
|
23582
|
+
window.__NEXT_PRELOADREADY = Loadable.preloadReady;
|
|
23583
|
+
}
|
|
23584
|
+
var _default = Loadable;
|
|
23585
|
+
}(loadable_sharedRuntime));
|
|
23586
|
+
|
|
23587
|
+
(function (module, exports) {
|
|
23588
|
+
function _define_property(obj, key, value) {
|
|
23589
|
+
if (key in obj) {
|
|
23590
|
+
Object.defineProperty(obj, key, {
|
|
23591
|
+
value: value,
|
|
23592
|
+
enumerable: true,
|
|
23593
|
+
configurable: true,
|
|
23594
|
+
writable: true
|
|
23595
|
+
});
|
|
23596
|
+
} else {
|
|
23597
|
+
obj[key] = value;
|
|
23598
|
+
}
|
|
23599
|
+
return obj;
|
|
23600
|
+
}
|
|
23601
|
+
function _instanceof(left, right) {
|
|
23602
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
23603
|
+
return !!right[Symbol.hasInstance](left);
|
|
23604
|
+
} else {
|
|
23605
|
+
return left instanceof right;
|
|
23606
|
+
}
|
|
23607
|
+
}
|
|
23608
|
+
function _object_spread(target) {
|
|
23609
|
+
for(var i = 1; i < arguments.length; i++){
|
|
23610
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
23611
|
+
var ownKeys = Object.keys(source);
|
|
23612
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
23613
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
23614
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
23615
|
+
}));
|
|
23616
|
+
}
|
|
23617
|
+
ownKeys.forEach(function(key) {
|
|
23618
|
+
_define_property(target, key, source[key]);
|
|
23619
|
+
});
|
|
23620
|
+
}
|
|
23621
|
+
return target;
|
|
23622
|
+
}
|
|
23623
|
+
function ownKeys(object, enumerableOnly) {
|
|
23624
|
+
var keys = Object.keys(object);
|
|
23625
|
+
if (Object.getOwnPropertySymbols) {
|
|
23626
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
23627
|
+
if (enumerableOnly) {
|
|
23628
|
+
symbols = symbols.filter(function(sym) {
|
|
23629
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
23630
|
+
});
|
|
23631
|
+
}
|
|
23632
|
+
keys.push.apply(keys, symbols);
|
|
23633
|
+
}
|
|
23634
|
+
return keys;
|
|
23635
|
+
}
|
|
23636
|
+
function _object_spread_props(target, source) {
|
|
23637
|
+
source = source != null ? source : {};
|
|
23638
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
23639
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
23640
|
+
} else {
|
|
23641
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
23642
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
23643
|
+
});
|
|
23644
|
+
}
|
|
23645
|
+
return target;
|
|
23646
|
+
}
|
|
23647
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23648
|
+
value: true
|
|
23649
|
+
});
|
|
23650
|
+
function _export(target, all) {
|
|
23651
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
23652
|
+
enumerable: true,
|
|
23653
|
+
get: all[name]
|
|
23654
|
+
});
|
|
23655
|
+
}
|
|
23656
|
+
_export(exports, {
|
|
23657
|
+
noSSR: function noSSR1() {
|
|
23658
|
+
return noSSR;
|
|
23659
|
+
},
|
|
23660
|
+
default: function _default() {
|
|
23661
|
+
return dynamic;
|
|
23662
|
+
}
|
|
23663
|
+
});
|
|
23664
|
+
var _interop_require_default = _interop_require_default$1;
|
|
23665
|
+
var _react = /*#__PURE__*/ _interop_require_default._(React__default);
|
|
23666
|
+
var _loadablesharedruntime = /*#__PURE__*/ _interop_require_default._(loadable_sharedRuntime);
|
|
23667
|
+
var isServerSide = typeof window === "undefined";
|
|
23668
|
+
// Normalize loader to return the module as form { default: Component } for `React.lazy`.
|
|
23669
|
+
// Also for backward compatible since next/dynamic allows to resolve a component directly with loader
|
|
23670
|
+
// Client component reference proxy need to be converted to a module.
|
|
23671
|
+
function convertModule(mod) {
|
|
23672
|
+
return {
|
|
23673
|
+
default: (mod == null ? void 0 : mod.default) || mod
|
|
23674
|
+
};
|
|
23675
|
+
}
|
|
23676
|
+
function noSSR(LoadableInitializer, loadableOptions) {
|
|
23677
|
+
// Removing webpack and modules means react-loadable won't try preloading
|
|
23678
|
+
delete loadableOptions.webpack;
|
|
23679
|
+
delete loadableOptions.modules;
|
|
23680
|
+
// This check is necessary to prevent react-loadable from initializing on the server
|
|
23681
|
+
if (!isServerSide) {
|
|
23682
|
+
return LoadableInitializer(loadableOptions);
|
|
23683
|
+
}
|
|
23684
|
+
var Loading = loadableOptions.loading;
|
|
23685
|
+
// This will only be rendered on the server side
|
|
23686
|
+
return function() {
|
|
23687
|
+
return /*#__PURE__*/ _react.default.createElement(Loading, {
|
|
23688
|
+
error: null,
|
|
23689
|
+
isLoading: true,
|
|
23690
|
+
pastDelay: false,
|
|
23691
|
+
timedOut: false
|
|
23692
|
+
});
|
|
23693
|
+
};
|
|
23694
|
+
}
|
|
23695
|
+
function dynamic(dynamicOptions, options) {
|
|
23696
|
+
var loadableFn = _loadablesharedruntime.default;
|
|
23697
|
+
var loadableOptions = {
|
|
23698
|
+
// A loading component is not required, so we default it
|
|
23699
|
+
loading: function(param) {
|
|
23700
|
+
var error = param.error, isLoading = param.isLoading, pastDelay = param.pastDelay;
|
|
23701
|
+
if (!pastDelay) return null;
|
|
23702
|
+
if (process.env.NODE_ENV !== "production") {
|
|
23703
|
+
if (isLoading) {
|
|
23704
|
+
return null;
|
|
23705
|
+
}
|
|
23706
|
+
if (error) {
|
|
23707
|
+
return /*#__PURE__*/ _react.default.createElement("p", null, error.message, /*#__PURE__*/ _react.default.createElement("br", null), error.stack);
|
|
23708
|
+
}
|
|
23709
|
+
}
|
|
23710
|
+
return null;
|
|
23711
|
+
}
|
|
23712
|
+
};
|
|
23713
|
+
// Support for direct import(), eg: dynamic(import('../hello-world'))
|
|
23714
|
+
// Note that this is only kept for the edge case where someone is passing in a promise as first argument
|
|
23715
|
+
// The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))
|
|
23716
|
+
// To make sure we don't execute the import without rendering first
|
|
23717
|
+
if (_instanceof(dynamicOptions, Promise)) {
|
|
23718
|
+
loadableOptions.loader = function() {
|
|
23719
|
+
return dynamicOptions;
|
|
23720
|
+
};
|
|
23721
|
+
// Support for having import as a function, eg: dynamic(() => import('../hello-world'))
|
|
23722
|
+
} else if (typeof dynamicOptions === "function") {
|
|
23723
|
+
loadableOptions.loader = dynamicOptions;
|
|
23724
|
+
// Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})
|
|
23725
|
+
} else if (typeof dynamicOptions === "object") {
|
|
23726
|
+
loadableOptions = _object_spread({}, loadableOptions, dynamicOptions);
|
|
23727
|
+
}
|
|
23728
|
+
// Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})
|
|
23729
|
+
loadableOptions = _object_spread({}, loadableOptions, options);
|
|
23730
|
+
var loaderFn = loadableOptions.loader;
|
|
23731
|
+
var loader = function() {
|
|
23732
|
+
return loaderFn != null ? loaderFn().then(convertModule) : Promise.resolve(convertModule(function() {
|
|
23733
|
+
return null;
|
|
23734
|
+
}));
|
|
23735
|
+
};
|
|
23736
|
+
// coming from build/babel/plugins/react-loadable-plugin.js
|
|
23737
|
+
if (loadableOptions.loadableGenerated) {
|
|
23738
|
+
loadableOptions = _object_spread({}, loadableOptions, loadableOptions.loadableGenerated);
|
|
23739
|
+
delete loadableOptions.loadableGenerated;
|
|
23740
|
+
}
|
|
23741
|
+
// support for disabling server side rendering, eg: dynamic(() => import('../hello-world'), {ssr: false}).
|
|
23742
|
+
if (typeof loadableOptions.ssr === "boolean" && !loadableOptions.ssr) {
|
|
23743
|
+
delete loadableOptions.webpack;
|
|
23744
|
+
delete loadableOptions.modules;
|
|
23745
|
+
return noSSR(loadableFn, loadableOptions);
|
|
23746
|
+
}
|
|
23747
|
+
return loadableFn(_object_spread_props(_object_spread({}, loadableOptions), {
|
|
23748
|
+
loader: loader
|
|
23749
|
+
}));
|
|
23750
|
+
}
|
|
23751
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
23752
|
+
Object.defineProperty(exports.default, "__esModule", {
|
|
23753
|
+
value: true
|
|
23754
|
+
});
|
|
23755
|
+
Object.assign(exports.default, exports);
|
|
23756
|
+
module.exports = exports.default;
|
|
23757
|
+
}
|
|
23758
|
+
}(dynamic$1, dynamic$1.exports));
|
|
23759
|
+
|
|
23760
|
+
var dynamic = dynamic$1.exports;
|
|
23761
|
+
|
|
23207
23762
|
function _arrayWithHoles(r) {
|
|
23208
23763
|
if (Array.isArray(r)) return r;
|
|
23209
23764
|
}
|
|
@@ -47960,84 +48515,70 @@ var CityDistrict = function(param) {
|
|
|
47960
48515
|
/*#__PURE__*/ jsxs("div", {
|
|
47961
48516
|
className: "flex gap-2",
|
|
47962
48517
|
children: [
|
|
47963
|
-
/*#__PURE__*/
|
|
47964
|
-
|
|
47965
|
-
|
|
47966
|
-
|
|
48518
|
+
/*#__PURE__*/ jsx$1("div", {
|
|
48519
|
+
className: "absolute w-12 h-11 top-0 right-0 z-5 flex items-center justify-center rounded-r-lg pointer-events-none",
|
|
48520
|
+
children: /*#__PURE__*/ jsx$1(Icon, {
|
|
48521
|
+
className: "h-6 w-6",
|
|
48522
|
+
icon: "ri:arrow-down-s-line",
|
|
48523
|
+
color: "6f6f6f"
|
|
48524
|
+
})
|
|
48525
|
+
}),
|
|
48526
|
+
/*#__PURE__*/ jsxs("select", _object_spread_props$4(_object_spread$7({
|
|
48527
|
+
className: [
|
|
48528
|
+
(item === null || item === void 0 ? void 0 : item.disable) ? "text-[#B0B0B0] bg-[#E6E6E6] pointer-events-none" : "bg-white pointer-events-auto",
|
|
48529
|
+
"customSelect w-full h-11 text-[15px] py-2 pr-4 rounded-lg text-[#6f6f6f] border border-solid border-gray-300",
|
|
48530
|
+
(item === null || item === void 0 ? void 0 : item.icon) ? "pl-14" : "pl-4"
|
|
48531
|
+
].join(" "),
|
|
48532
|
+
style: item === null || item === void 0 ? void 0 : item.style
|
|
48533
|
+
}, register((item === null || item === void 0 ? void 0 : item.cityName) || "", _object_spread$7({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
|
|
48534
|
+
onChange: function(e) {
|
|
48535
|
+
return handleCity(e, (item === null || item === void 0 ? void 0 : item.cityName) || "");
|
|
48536
|
+
},
|
|
47967
48537
|
children: [
|
|
47968
|
-
/*#__PURE__*/ jsx$1("
|
|
47969
|
-
|
|
47970
|
-
children:
|
|
47971
|
-
className: "h-6 w-6",
|
|
47972
|
-
icon: "ri:arrow-down-s-line",
|
|
47973
|
-
color: "6f6f6f"
|
|
47974
|
-
})
|
|
48538
|
+
/*#__PURE__*/ jsx$1("option", {
|
|
48539
|
+
value: "",
|
|
48540
|
+
children: "縣市"
|
|
47975
48541
|
}),
|
|
47976
|
-
|
|
47977
|
-
|
|
47978
|
-
|
|
47979
|
-
|
|
47980
|
-
|
|
47981
|
-
|
|
47982
|
-
style: item === null || item === void 0 ? void 0 : item.style
|
|
47983
|
-
}, register((item === null || item === void 0 ? void 0 : item.cityName) || "", _object_spread$7({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
|
|
47984
|
-
onChange: function(e) {
|
|
47985
|
-
return handleCity(e, (item === null || item === void 0 ? void 0 : item.cityName) || "");
|
|
47986
|
-
},
|
|
47987
|
-
children: [
|
|
47988
|
-
/*#__PURE__*/ jsx$1("option", {
|
|
47989
|
-
value: "",
|
|
47990
|
-
children: "縣市"
|
|
47991
|
-
}),
|
|
47992
|
-
city.map(function(v) {
|
|
47993
|
-
return /*#__PURE__*/ jsx$1("option", {
|
|
47994
|
-
value: v.name,
|
|
47995
|
-
children: v.name
|
|
47996
|
-
}, v.name);
|
|
47997
|
-
})
|
|
47998
|
-
]
|
|
47999
|
-
}))
|
|
48542
|
+
city.map(function(v) {
|
|
48543
|
+
return /*#__PURE__*/ jsx$1("option", {
|
|
48544
|
+
value: v.name,
|
|
48545
|
+
children: v.name
|
|
48546
|
+
}, v.name);
|
|
48547
|
+
})
|
|
48000
48548
|
]
|
|
48549
|
+
})),
|
|
48550
|
+
/*#__PURE__*/ jsx$1("div", {
|
|
48551
|
+
className: "absolute w-12 h-11 top-0 right-0 z-5 flex items-center justify-center rounded-r-lg pointer-events-none",
|
|
48552
|
+
children: /*#__PURE__*/ jsx$1(Icon, {
|
|
48553
|
+
className: "h-6 w-6",
|
|
48554
|
+
icon: "ri:arrow-down-s-line",
|
|
48555
|
+
color: "6f6f6f"
|
|
48556
|
+
})
|
|
48001
48557
|
}),
|
|
48002
|
-
/*#__PURE__*/ jsxs(
|
|
48003
|
-
|
|
48004
|
-
|
|
48005
|
-
|
|
48558
|
+
/*#__PURE__*/ jsxs("select", _object_spread_props$4(_object_spread$7({
|
|
48559
|
+
className: [
|
|
48560
|
+
(item === null || item === void 0 ? void 0 : item.disable) ? "text-[#B0B0B0] bg-[#E6E6E6] pointer-events-none" : "bg-white pointer-events-auto",
|
|
48561
|
+
"customSelect w-full h-11 text-[15px] py-2 pr-4 rounded-lg text-[#6f6f6f] border border-solid border-gray-300",
|
|
48562
|
+
(item === null || item === void 0 ? void 0 : item.subIcon) ? "pl-14" : "pl-4"
|
|
48563
|
+
].join(" "),
|
|
48564
|
+
style: item === null || item === void 0 ? void 0 : item.style
|
|
48565
|
+
}, register((item === null || item === void 0 ? void 0 : item.districtName) || "", _object_spread$7({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
|
|
48566
|
+
onChange: function(e) {
|
|
48567
|
+
return handleCity(e, (item === null || item === void 0 ? void 0 : item.districtName) || "");
|
|
48568
|
+
},
|
|
48006
48569
|
children: [
|
|
48007
|
-
/*#__PURE__*/ jsx$1("
|
|
48008
|
-
|
|
48009
|
-
children:
|
|
48010
|
-
className: "h-6 w-6",
|
|
48011
|
-
icon: "ri:arrow-down-s-line",
|
|
48012
|
-
color: "6f6f6f"
|
|
48013
|
-
})
|
|
48570
|
+
!currentCity && /*#__PURE__*/ jsx$1("option", {
|
|
48571
|
+
value: "",
|
|
48572
|
+
children: "地區"
|
|
48014
48573
|
}),
|
|
48015
|
-
|
|
48016
|
-
|
|
48017
|
-
|
|
48018
|
-
|
|
48019
|
-
|
|
48020
|
-
|
|
48021
|
-
style: item === null || item === void 0 ? void 0 : item.style
|
|
48022
|
-
}, register((item === null || item === void 0 ? void 0 : item.districtName) || "", _object_spread$7({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
|
|
48023
|
-
onChange: function(e) {
|
|
48024
|
-
return handleCity(e, (item === null || item === void 0 ? void 0 : item.districtName) || "");
|
|
48025
|
-
},
|
|
48026
|
-
children: [
|
|
48027
|
-
!currentCity && /*#__PURE__*/ jsx$1("option", {
|
|
48028
|
-
value: "",
|
|
48029
|
-
children: "地區"
|
|
48030
|
-
}),
|
|
48031
|
-
district.map(function(v) {
|
|
48032
|
-
return /*#__PURE__*/ jsx$1("option", {
|
|
48033
|
-
value: v.name,
|
|
48034
|
-
children: v.name
|
|
48035
|
-
}, v.name);
|
|
48036
|
-
})
|
|
48037
|
-
]
|
|
48038
|
-
}))
|
|
48574
|
+
district.map(function(v) {
|
|
48575
|
+
return /*#__PURE__*/ jsx$1("option", {
|
|
48576
|
+
value: v.name,
|
|
48577
|
+
children: v.name
|
|
48578
|
+
}, v.name);
|
|
48579
|
+
})
|
|
48039
48580
|
]
|
|
48040
|
-
})
|
|
48581
|
+
}))
|
|
48041
48582
|
]
|
|
48042
48583
|
}),
|
|
48043
48584
|
/*#__PURE__*/ jsx$1("div", {
|
|
@@ -48148,9 +48689,11 @@ function _unsupported_iterable_to_array$6(o, minLen) {
|
|
|
48148
48689
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
48149
48690
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
48150
48691
|
}
|
|
48151
|
-
|
|
48152
|
-
|
|
48153
|
-
|
|
48692
|
+
var BaseCkeditor = dynamic(function() {
|
|
48693
|
+
return import('./BaseCkeditor.esm.js');
|
|
48694
|
+
}, {
|
|
48695
|
+
ssr: false
|
|
48696
|
+
});
|
|
48154
48697
|
var TextField = function(param) {
|
|
48155
48698
|
var item = param.item;
|
|
48156
48699
|
var _useFormContext = useFormContext(), register = _useFormContext.register, setValue = _useFormContext.setValue, errors = _useFormContext.formState.errors;
|
|
@@ -48668,8 +49211,8 @@ var Row = function(param) {
|
|
|
48668
49211
|
return /*#__PURE__*/ jsx$1(City, _object_spread$6({}, baseConfig));
|
|
48669
49212
|
case "city":
|
|
48670
49213
|
return /*#__PURE__*/ jsx$1(CityDistrict, _object_spread$6({}, baseConfig));
|
|
48671
|
-
|
|
48672
|
-
|
|
49214
|
+
case "ckEditor":
|
|
49215
|
+
return /*#__PURE__*/ jsx$1(BaseCkeditor, _object_spread$6({}, baseConfig));
|
|
48673
49216
|
default:
|
|
48674
49217
|
return null;
|
|
48675
49218
|
}
|
|
@@ -71154,4 +71697,4 @@ var useLiffContext = function() {
|
|
|
71154
71697
|
return context;
|
|
71155
71698
|
};
|
|
71156
71699
|
|
|
71157
|
-
export {
|
|
71700
|
+
export { DnDCalendar as A, BaseSwitch as B, Controller as C, DropImage as D, CustomSelect as E, FieldLabel as F, LiffProvider as G, useLiffContext as H, FormProvider as I, useForm as J, City as K, LiffContext as L, Textarea as M, Fields as N, Row as O, Form as P, 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, getAugmentedNamespace as i, getDefaultExportFromCjs as j, DropDown as k, CustomUpload as l, Switch as m, DateRangePicker as n, Button as o, propTypes$1 as p, buttonVariants as q, DataTable as r, BaseTable as s, Regex as t, useFormContext as u, validateMsg as v, verifyTaiwanIdIntermediateString as w, verifyId as x, verifyTaxId as y, BigCalender as z };
|