cleek 2.4.51 → 2.4.54

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.
Files changed (41) hide show
  1. package/dist/cleek-styles/cleek-mixins.styl +7 -0
  2. package/dist/cleek.es.js +1001 -103
  3. package/dist/cleek.umd.js +15 -11
  4. package/dist/style.css +1 -1
  5. package/package.json +4 -2
  6. package/dist/components/ck-button.vue.d.ts +0 -50
  7. package/dist/components/ck-checkbox.vue.d.ts +0 -26
  8. package/dist/components/ck-chip.vue.d.ts +0 -30
  9. package/dist/components/ck-div.vue.d.ts +0 -19
  10. package/dist/components/ck-dropdown/ck-dropdown.vue.d.ts +0 -20
  11. package/dist/components/ck-icon.vue.d.ts +0 -34
  12. package/dist/components/ck-img.vue.d.ts +0 -38
  13. package/dist/components/ck-input.vue.d.ts +0 -81
  14. package/dist/components/ck-label.vue.d.ts +0 -20
  15. package/dist/components/ck-navbar/ck-navbar.vue.d.ts +0 -17
  16. package/dist/components/ck-notify/ck-notify.d.ts +0 -27
  17. package/dist/components/ck-notify/components/CkAlert.vue.d.ts +0 -6
  18. package/dist/components/ck-notify/components/CkConfirm.vue.d.ts +0 -9
  19. package/dist/components/ck-notify/components/CkNotify.vue.d.ts +0 -9
  20. package/dist/components/ck-popup.vue.d.ts +0 -64
  21. package/dist/components/ck-radio.vue.d.ts +0 -34
  22. package/dist/components/ck-select.vue.d.ts +0 -82
  23. package/dist/components/ck-sidebar.vue.d.ts +0 -33
  24. package/dist/components/ck-switch-options.vue.d.ts +0 -42
  25. package/dist/components/ck-switch.vue.d.ts +0 -32
  26. package/dist/components/ck-table/ck-table.vue.d.ts +0 -59
  27. package/dist/components/ck-table/ck-td.vue.d.ts +0 -37
  28. package/dist/components/ck-table/ck-th.vue.d.ts +0 -17
  29. package/dist/components/ck-table/ck-tr.vue.d.ts +0 -2
  30. package/dist/components/ck-table/inner-components/ck-table__columns-manager.vue.d.ts +0 -24
  31. package/dist/components/ck-table/inner-components/ck-table__header-items.vue.d.ts +0 -42
  32. package/dist/components/ck-table/inner-components/ck-table__pagination.vue.d.ts +0 -31
  33. package/dist/components/ck-table/inner-components/ck-table__title.vue.d.ts +0 -16
  34. package/dist/components/ck-textarea.vue.d.ts +0 -63
  35. package/dist/components/index.d.ts +0 -22
  36. package/dist/hooks/windowWidth.d.ts +0 -3
  37. package/dist/package-config.d.ts +0 -3
  38. package/dist/types/cleek-options.d.ts +0 -42
  39. package/dist/types/table.d.ts +0 -17
  40. package/dist/utils/functions.d.ts +0 -15
  41. package/dist/utils/globalVariables.d.ts +0 -6
package/dist/cleek.es.js CHANGED
@@ -29,7 +29,897 @@ var __objRest = (source2, exclude) => {
29
29
  }
30
30
  return target;
31
31
  };
32
- import { pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, watch, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelDynamic, renderList, vModelText, withModifiers, vModelRadio, vModelSelect, vModelCheckbox, Teleport } from "vue";
32
+ import { watch, reactive, pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelDynamic, renderList, vModelText, withModifiers, Teleport, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
33
+ function getDevtoolsGlobalHook() {
34
+ return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
35
+ }
36
+ function getTarget() {
37
+ return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
38
+ }
39
+ const isProxyAvailable = typeof Proxy === "function";
40
+ const HOOK_SETUP = "devtools-plugin:setup";
41
+ const HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set";
42
+ class ApiProxy {
43
+ constructor(plugin2, hook) {
44
+ this.target = null;
45
+ this.targetQueue = [];
46
+ this.onQueue = [];
47
+ this.plugin = plugin2;
48
+ this.hook = hook;
49
+ const defaultSettings = {};
50
+ if (plugin2.settings) {
51
+ for (const id in plugin2.settings) {
52
+ const item = plugin2.settings[id];
53
+ defaultSettings[id] = item.defaultValue;
54
+ }
55
+ }
56
+ const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin2.id}`;
57
+ let currentSettings = Object.assign({}, defaultSettings);
58
+ try {
59
+ const raw = localStorage.getItem(localSettingsSaveId);
60
+ const data2 = JSON.parse(raw);
61
+ Object.assign(currentSettings, data2);
62
+ } catch (e) {
63
+ }
64
+ this.fallbacks = {
65
+ getSettings() {
66
+ return currentSettings;
67
+ },
68
+ setSettings(value) {
69
+ try {
70
+ localStorage.setItem(localSettingsSaveId, JSON.stringify(value));
71
+ } catch (e) {
72
+ }
73
+ currentSettings = value;
74
+ }
75
+ };
76
+ if (hook) {
77
+ hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
78
+ if (pluginId === this.plugin.id) {
79
+ this.fallbacks.setSettings(value);
80
+ }
81
+ });
82
+ }
83
+ this.proxiedOn = new Proxy({}, {
84
+ get: (_target, prop) => {
85
+ if (this.target) {
86
+ return this.target.on[prop];
87
+ } else {
88
+ return (...args) => {
89
+ this.onQueue.push({
90
+ method: prop,
91
+ args
92
+ });
93
+ };
94
+ }
95
+ }
96
+ });
97
+ this.proxiedTarget = new Proxy({}, {
98
+ get: (_target, prop) => {
99
+ if (this.target) {
100
+ return this.target[prop];
101
+ } else if (prop === "on") {
102
+ return this.proxiedOn;
103
+ } else if (Object.keys(this.fallbacks).includes(prop)) {
104
+ return (...args) => {
105
+ this.targetQueue.push({
106
+ method: prop,
107
+ args,
108
+ resolve: () => {
109
+ }
110
+ });
111
+ return this.fallbacks[prop](...args);
112
+ };
113
+ } else {
114
+ return (...args) => {
115
+ return new Promise((resolve) => {
116
+ this.targetQueue.push({
117
+ method: prop,
118
+ args,
119
+ resolve
120
+ });
121
+ });
122
+ };
123
+ }
124
+ }
125
+ });
126
+ }
127
+ async setRealTarget(target) {
128
+ this.target = target;
129
+ for (const item of this.onQueue) {
130
+ this.target.on[item.method](...item.args);
131
+ }
132
+ for (const item of this.targetQueue) {
133
+ item.resolve(await this.target[item.method](...item.args));
134
+ }
135
+ }
136
+ }
137
+ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
138
+ const descriptor = pluginDescriptor;
139
+ const target = getTarget();
140
+ const hook = getDevtoolsGlobalHook();
141
+ const enableProxy = isProxyAvailable && descriptor.enableEarlyProxy;
142
+ if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) {
143
+ hook.emit(HOOK_SETUP, pluginDescriptor, setupFn);
144
+ } else {
145
+ const proxy = enableProxy ? new ApiProxy(descriptor, hook) : null;
146
+ const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];
147
+ list.push({
148
+ pluginDescriptor: descriptor,
149
+ setupFn,
150
+ proxy
151
+ });
152
+ if (proxy)
153
+ setupFn(proxy.proxiedTarget);
154
+ }
155
+ }
156
+ /*!
157
+ * vuex v4.0.2
158
+ * (c) 2021 Evan You
159
+ * @license MIT
160
+ */
161
+ var storeKey = "store";
162
+ function forEachValue(obj, fn) {
163
+ Object.keys(obj).forEach(function(key) {
164
+ return fn(obj[key], key);
165
+ });
166
+ }
167
+ function isObject$2(obj) {
168
+ return obj !== null && typeof obj === "object";
169
+ }
170
+ function isPromise$1(val) {
171
+ return val && typeof val.then === "function";
172
+ }
173
+ function partial(fn, arg) {
174
+ return function() {
175
+ return fn(arg);
176
+ };
177
+ }
178
+ function genericSubscribe(fn, subs, options) {
179
+ if (subs.indexOf(fn) < 0) {
180
+ options && options.prepend ? subs.unshift(fn) : subs.push(fn);
181
+ }
182
+ return function() {
183
+ var i = subs.indexOf(fn);
184
+ if (i > -1) {
185
+ subs.splice(i, 1);
186
+ }
187
+ };
188
+ }
189
+ function resetStore(store, hot) {
190
+ store._actions = Object.create(null);
191
+ store._mutations = Object.create(null);
192
+ store._wrappedGetters = Object.create(null);
193
+ store._modulesNamespaceMap = Object.create(null);
194
+ var state = store.state;
195
+ installModule(store, state, [], store._modules.root, true);
196
+ resetStoreState(store, state, hot);
197
+ }
198
+ function resetStoreState(store, state, hot) {
199
+ var oldState = store._state;
200
+ store.getters = {};
201
+ store._makeLocalGettersCache = Object.create(null);
202
+ var wrappedGetters = store._wrappedGetters;
203
+ var computedObj = {};
204
+ forEachValue(wrappedGetters, function(fn, key) {
205
+ computedObj[key] = partial(fn, store);
206
+ Object.defineProperty(store.getters, key, {
207
+ get: function() {
208
+ return computedObj[key]();
209
+ },
210
+ enumerable: true
211
+ });
212
+ });
213
+ store._state = reactive({
214
+ data: state
215
+ });
216
+ if (store.strict) {
217
+ enableStrictMode(store);
218
+ }
219
+ if (oldState) {
220
+ if (hot) {
221
+ store._withCommit(function() {
222
+ oldState.data = null;
223
+ });
224
+ }
225
+ }
226
+ }
227
+ function installModule(store, rootState, path, module, hot) {
228
+ var isRoot = !path.length;
229
+ var namespace2 = store._modules.getNamespace(path);
230
+ if (module.namespaced) {
231
+ if (store._modulesNamespaceMap[namespace2] && false) {
232
+ console.error("[vuex] duplicate namespace " + namespace2 + " for the namespaced module " + path.join("/"));
233
+ }
234
+ store._modulesNamespaceMap[namespace2] = module;
235
+ }
236
+ if (!isRoot && !hot) {
237
+ var parentState = getNestedState(rootState, path.slice(0, -1));
238
+ var moduleName = path[path.length - 1];
239
+ store._withCommit(function() {
240
+ parentState[moduleName] = module.state;
241
+ });
242
+ }
243
+ var local = module.context = makeLocalContext(store, namespace2, path);
244
+ module.forEachMutation(function(mutation, key) {
245
+ var namespacedType = namespace2 + key;
246
+ registerMutation(store, namespacedType, mutation, local);
247
+ });
248
+ module.forEachAction(function(action, key) {
249
+ var type = action.root ? key : namespace2 + key;
250
+ var handler = action.handler || action;
251
+ registerAction(store, type, handler, local);
252
+ });
253
+ module.forEachGetter(function(getter, key) {
254
+ var namespacedType = namespace2 + key;
255
+ registerGetter(store, namespacedType, getter, local);
256
+ });
257
+ module.forEachChild(function(child, key) {
258
+ installModule(store, rootState, path.concat(key), child, hot);
259
+ });
260
+ }
261
+ function makeLocalContext(store, namespace2, path) {
262
+ var noNamespace = namespace2 === "";
263
+ var local = {
264
+ dispatch: noNamespace ? store.dispatch : function(_type, _payload, _options) {
265
+ var args = unifyObjectStyle(_type, _payload, _options);
266
+ var payload = args.payload;
267
+ var options = args.options;
268
+ var type = args.type;
269
+ if (!options || !options.root) {
270
+ type = namespace2 + type;
271
+ }
272
+ return store.dispatch(type, payload);
273
+ },
274
+ commit: noNamespace ? store.commit : function(_type, _payload, _options) {
275
+ var args = unifyObjectStyle(_type, _payload, _options);
276
+ var payload = args.payload;
277
+ var options = args.options;
278
+ var type = args.type;
279
+ if (!options || !options.root) {
280
+ type = namespace2 + type;
281
+ }
282
+ store.commit(type, payload, options);
283
+ }
284
+ };
285
+ Object.defineProperties(local, {
286
+ getters: {
287
+ get: noNamespace ? function() {
288
+ return store.getters;
289
+ } : function() {
290
+ return makeLocalGetters(store, namespace2);
291
+ }
292
+ },
293
+ state: {
294
+ get: function() {
295
+ return getNestedState(store.state, path);
296
+ }
297
+ }
298
+ });
299
+ return local;
300
+ }
301
+ function makeLocalGetters(store, namespace2) {
302
+ if (!store._makeLocalGettersCache[namespace2]) {
303
+ var gettersProxy = {};
304
+ var splitPos = namespace2.length;
305
+ Object.keys(store.getters).forEach(function(type) {
306
+ if (type.slice(0, splitPos) !== namespace2) {
307
+ return;
308
+ }
309
+ var localType = type.slice(splitPos);
310
+ Object.defineProperty(gettersProxy, localType, {
311
+ get: function() {
312
+ return store.getters[type];
313
+ },
314
+ enumerable: true
315
+ });
316
+ });
317
+ store._makeLocalGettersCache[namespace2] = gettersProxy;
318
+ }
319
+ return store._makeLocalGettersCache[namespace2];
320
+ }
321
+ function registerMutation(store, type, handler, local) {
322
+ var entry = store._mutations[type] || (store._mutations[type] = []);
323
+ entry.push(function wrappedMutationHandler(payload) {
324
+ handler.call(store, local.state, payload);
325
+ });
326
+ }
327
+ function registerAction(store, type, handler, local) {
328
+ var entry = store._actions[type] || (store._actions[type] = []);
329
+ entry.push(function wrappedActionHandler(payload) {
330
+ var res = handler.call(store, {
331
+ dispatch: local.dispatch,
332
+ commit: local.commit,
333
+ getters: local.getters,
334
+ state: local.state,
335
+ rootGetters: store.getters,
336
+ rootState: store.state
337
+ }, payload);
338
+ if (!isPromise$1(res)) {
339
+ res = Promise.resolve(res);
340
+ }
341
+ if (store._devtoolHook) {
342
+ return res.catch(function(err) {
343
+ store._devtoolHook.emit("vuex:error", err);
344
+ throw err;
345
+ });
346
+ } else {
347
+ return res;
348
+ }
349
+ });
350
+ }
351
+ function registerGetter(store, type, rawGetter, local) {
352
+ if (store._wrappedGetters[type]) {
353
+ return;
354
+ }
355
+ store._wrappedGetters[type] = function wrappedGetter(store2) {
356
+ return rawGetter(local.state, local.getters, store2.state, store2.getters);
357
+ };
358
+ }
359
+ function enableStrictMode(store) {
360
+ watch(function() {
361
+ return store._state.data;
362
+ }, function() {
363
+ }, { deep: true, flush: "sync" });
364
+ }
365
+ function getNestedState(state, path) {
366
+ return path.reduce(function(state2, key) {
367
+ return state2[key];
368
+ }, state);
369
+ }
370
+ function unifyObjectStyle(type, payload, options) {
371
+ if (isObject$2(type) && type.type) {
372
+ options = payload;
373
+ payload = type;
374
+ type = type.type;
375
+ }
376
+ return { type, payload, options };
377
+ }
378
+ var LABEL_VUEX_BINDINGS = "vuex bindings";
379
+ var MUTATIONS_LAYER_ID = "vuex:mutations";
380
+ var ACTIONS_LAYER_ID = "vuex:actions";
381
+ var INSPECTOR_ID = "vuex";
382
+ var actionId = 0;
383
+ function addDevtools(app, store) {
384
+ setupDevtoolsPlugin({
385
+ id: "org.vuejs.vuex",
386
+ app,
387
+ label: "Vuex",
388
+ homepage: "https://next.vuex.vuejs.org/",
389
+ logo: "https://vuejs.org/images/icons/favicon-96x96.png",
390
+ packageName: "vuex",
391
+ componentStateTypes: [LABEL_VUEX_BINDINGS]
392
+ }, function(api2) {
393
+ api2.addTimelineLayer({
394
+ id: MUTATIONS_LAYER_ID,
395
+ label: "Vuex Mutations",
396
+ color: COLOR_LIME_500
397
+ });
398
+ api2.addTimelineLayer({
399
+ id: ACTIONS_LAYER_ID,
400
+ label: "Vuex Actions",
401
+ color: COLOR_LIME_500
402
+ });
403
+ api2.addInspector({
404
+ id: INSPECTOR_ID,
405
+ label: "Vuex",
406
+ icon: "storage",
407
+ treeFilterPlaceholder: "Filter stores..."
408
+ });
409
+ api2.on.getInspectorTree(function(payload) {
410
+ if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
411
+ if (payload.filter) {
412
+ var nodes = [];
413
+ flattenStoreForInspectorTree(nodes, store._modules.root, payload.filter, "");
414
+ payload.rootNodes = nodes;
415
+ } else {
416
+ payload.rootNodes = [
417
+ formatStoreForInspectorTree(store._modules.root, "")
418
+ ];
419
+ }
420
+ }
421
+ });
422
+ api2.on.getInspectorState(function(payload) {
423
+ if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
424
+ var modulePath = payload.nodeId;
425
+ makeLocalGetters(store, modulePath);
426
+ payload.state = formatStoreForInspectorState(getStoreModule(store._modules, modulePath), modulePath === "root" ? store.getters : store._makeLocalGettersCache, modulePath);
427
+ }
428
+ });
429
+ api2.on.editInspectorState(function(payload) {
430
+ if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
431
+ var modulePath = payload.nodeId;
432
+ var path = payload.path;
433
+ if (modulePath !== "root") {
434
+ path = modulePath.split("/").filter(Boolean).concat(path);
435
+ }
436
+ store._withCommit(function() {
437
+ payload.set(store._state.data, path, payload.state.value);
438
+ });
439
+ }
440
+ });
441
+ store.subscribe(function(mutation, state) {
442
+ var data2 = {};
443
+ if (mutation.payload) {
444
+ data2.payload = mutation.payload;
445
+ }
446
+ data2.state = state;
447
+ api2.notifyComponentUpdate();
448
+ api2.sendInspectorTree(INSPECTOR_ID);
449
+ api2.sendInspectorState(INSPECTOR_ID);
450
+ api2.addTimelineEvent({
451
+ layerId: MUTATIONS_LAYER_ID,
452
+ event: {
453
+ time: Date.now(),
454
+ title: mutation.type,
455
+ data: data2
456
+ }
457
+ });
458
+ });
459
+ store.subscribeAction({
460
+ before: function(action, state) {
461
+ var data2 = {};
462
+ if (action.payload) {
463
+ data2.payload = action.payload;
464
+ }
465
+ action._id = actionId++;
466
+ action._time = Date.now();
467
+ data2.state = state;
468
+ api2.addTimelineEvent({
469
+ layerId: ACTIONS_LAYER_ID,
470
+ event: {
471
+ time: action._time,
472
+ title: action.type,
473
+ groupId: action._id,
474
+ subtitle: "start",
475
+ data: data2
476
+ }
477
+ });
478
+ },
479
+ after: function(action, state) {
480
+ var data2 = {};
481
+ var duration = Date.now() - action._time;
482
+ data2.duration = {
483
+ _custom: {
484
+ type: "duration",
485
+ display: duration + "ms",
486
+ tooltip: "Action duration",
487
+ value: duration
488
+ }
489
+ };
490
+ if (action.payload) {
491
+ data2.payload = action.payload;
492
+ }
493
+ data2.state = state;
494
+ api2.addTimelineEvent({
495
+ layerId: ACTIONS_LAYER_ID,
496
+ event: {
497
+ time: Date.now(),
498
+ title: action.type,
499
+ groupId: action._id,
500
+ subtitle: "end",
501
+ data: data2
502
+ }
503
+ });
504
+ }
505
+ });
506
+ });
507
+ }
508
+ var COLOR_LIME_500 = 8702998;
509
+ var COLOR_DARK = 6710886;
510
+ var COLOR_WHITE = 16777215;
511
+ var TAG_NAMESPACED = {
512
+ label: "namespaced",
513
+ textColor: COLOR_WHITE,
514
+ backgroundColor: COLOR_DARK
515
+ };
516
+ function extractNameFromPath(path) {
517
+ return path && path !== "root" ? path.split("/").slice(-2, -1)[0] : "Root";
518
+ }
519
+ function formatStoreForInspectorTree(module, path) {
520
+ return {
521
+ id: path || "root",
522
+ label: extractNameFromPath(path),
523
+ tags: module.namespaced ? [TAG_NAMESPACED] : [],
524
+ children: Object.keys(module._children).map(function(moduleName) {
525
+ return formatStoreForInspectorTree(module._children[moduleName], path + moduleName + "/");
526
+ })
527
+ };
528
+ }
529
+ function flattenStoreForInspectorTree(result, module, filter, path) {
530
+ if (path.includes(filter)) {
531
+ result.push({
532
+ id: path || "root",
533
+ label: path.endsWith("/") ? path.slice(0, path.length - 1) : path || "Root",
534
+ tags: module.namespaced ? [TAG_NAMESPACED] : []
535
+ });
536
+ }
537
+ Object.keys(module._children).forEach(function(moduleName) {
538
+ flattenStoreForInspectorTree(result, module._children[moduleName], filter, path + moduleName + "/");
539
+ });
540
+ }
541
+ function formatStoreForInspectorState(module, getters, path) {
542
+ getters = path === "root" ? getters : getters[path];
543
+ var gettersKeys = Object.keys(getters);
544
+ var storeState = {
545
+ state: Object.keys(module.state).map(function(key) {
546
+ return {
547
+ key,
548
+ editable: true,
549
+ value: module.state[key]
550
+ };
551
+ })
552
+ };
553
+ if (gettersKeys.length) {
554
+ var tree = transformPathsToObjectTree(getters);
555
+ storeState.getters = Object.keys(tree).map(function(key) {
556
+ return {
557
+ key: key.endsWith("/") ? extractNameFromPath(key) : key,
558
+ editable: false,
559
+ value: canThrow(function() {
560
+ return tree[key];
561
+ })
562
+ };
563
+ });
564
+ }
565
+ return storeState;
566
+ }
567
+ function transformPathsToObjectTree(getters) {
568
+ var result = {};
569
+ Object.keys(getters).forEach(function(key) {
570
+ var path = key.split("/");
571
+ if (path.length > 1) {
572
+ var target = result;
573
+ var leafKey = path.pop();
574
+ path.forEach(function(p2) {
575
+ if (!target[p2]) {
576
+ target[p2] = {
577
+ _custom: {
578
+ value: {},
579
+ display: p2,
580
+ tooltip: "Module",
581
+ abstract: true
582
+ }
583
+ };
584
+ }
585
+ target = target[p2]._custom.value;
586
+ });
587
+ target[leafKey] = canThrow(function() {
588
+ return getters[key];
589
+ });
590
+ } else {
591
+ result[key] = canThrow(function() {
592
+ return getters[key];
593
+ });
594
+ }
595
+ });
596
+ return result;
597
+ }
598
+ function getStoreModule(moduleMap, path) {
599
+ var names = path.split("/").filter(function(n) {
600
+ return n;
601
+ });
602
+ return names.reduce(function(module, moduleName, i) {
603
+ var child = module[moduleName];
604
+ if (!child) {
605
+ throw new Error('Missing module "' + moduleName + '" for path "' + path + '".');
606
+ }
607
+ return i === names.length - 1 ? child : child._children;
608
+ }, path === "root" ? moduleMap : moduleMap.root._children);
609
+ }
610
+ function canThrow(cb) {
611
+ try {
612
+ return cb();
613
+ } catch (e) {
614
+ return e;
615
+ }
616
+ }
617
+ var Module = function Module2(rawModule, runtime) {
618
+ this.runtime = runtime;
619
+ this._children = Object.create(null);
620
+ this._rawModule = rawModule;
621
+ var rawState = rawModule.state;
622
+ this.state = (typeof rawState === "function" ? rawState() : rawState) || {};
623
+ };
624
+ var prototypeAccessors$1 = { namespaced: { configurable: true } };
625
+ prototypeAccessors$1.namespaced.get = function() {
626
+ return !!this._rawModule.namespaced;
627
+ };
628
+ Module.prototype.addChild = function addChild(key, module) {
629
+ this._children[key] = module;
630
+ };
631
+ Module.prototype.removeChild = function removeChild(key) {
632
+ delete this._children[key];
633
+ };
634
+ Module.prototype.getChild = function getChild(key) {
635
+ return this._children[key];
636
+ };
637
+ Module.prototype.hasChild = function hasChild(key) {
638
+ return key in this._children;
639
+ };
640
+ Module.prototype.update = function update(rawModule) {
641
+ this._rawModule.namespaced = rawModule.namespaced;
642
+ if (rawModule.actions) {
643
+ this._rawModule.actions = rawModule.actions;
644
+ }
645
+ if (rawModule.mutations) {
646
+ this._rawModule.mutations = rawModule.mutations;
647
+ }
648
+ if (rawModule.getters) {
649
+ this._rawModule.getters = rawModule.getters;
650
+ }
651
+ };
652
+ Module.prototype.forEachChild = function forEachChild(fn) {
653
+ forEachValue(this._children, fn);
654
+ };
655
+ Module.prototype.forEachGetter = function forEachGetter(fn) {
656
+ if (this._rawModule.getters) {
657
+ forEachValue(this._rawModule.getters, fn);
658
+ }
659
+ };
660
+ Module.prototype.forEachAction = function forEachAction(fn) {
661
+ if (this._rawModule.actions) {
662
+ forEachValue(this._rawModule.actions, fn);
663
+ }
664
+ };
665
+ Module.prototype.forEachMutation = function forEachMutation(fn) {
666
+ if (this._rawModule.mutations) {
667
+ forEachValue(this._rawModule.mutations, fn);
668
+ }
669
+ };
670
+ Object.defineProperties(Module.prototype, prototypeAccessors$1);
671
+ var ModuleCollection = function ModuleCollection2(rawRootModule) {
672
+ this.register([], rawRootModule, false);
673
+ };
674
+ ModuleCollection.prototype.get = function get(path) {
675
+ return path.reduce(function(module, key) {
676
+ return module.getChild(key);
677
+ }, this.root);
678
+ };
679
+ ModuleCollection.prototype.getNamespace = function getNamespace(path) {
680
+ var module = this.root;
681
+ return path.reduce(function(namespace2, key) {
682
+ module = module.getChild(key);
683
+ return namespace2 + (module.namespaced ? key + "/" : "");
684
+ }, "");
685
+ };
686
+ ModuleCollection.prototype.update = function update$1(rawRootModule) {
687
+ update2([], this.root, rawRootModule);
688
+ };
689
+ ModuleCollection.prototype.register = function register(path, rawModule, runtime) {
690
+ var this$1$1 = this;
691
+ if (runtime === void 0)
692
+ runtime = true;
693
+ var newModule = new Module(rawModule, runtime);
694
+ if (path.length === 0) {
695
+ this.root = newModule;
696
+ } else {
697
+ var parent = this.get(path.slice(0, -1));
698
+ parent.addChild(path[path.length - 1], newModule);
699
+ }
700
+ if (rawModule.modules) {
701
+ forEachValue(rawModule.modules, function(rawChildModule, key) {
702
+ this$1$1.register(path.concat(key), rawChildModule, runtime);
703
+ });
704
+ }
705
+ };
706
+ ModuleCollection.prototype.unregister = function unregister(path) {
707
+ var parent = this.get(path.slice(0, -1));
708
+ var key = path[path.length - 1];
709
+ var child = parent.getChild(key);
710
+ if (!child) {
711
+ return;
712
+ }
713
+ if (!child.runtime) {
714
+ return;
715
+ }
716
+ parent.removeChild(key);
717
+ };
718
+ ModuleCollection.prototype.isRegistered = function isRegistered(path) {
719
+ var parent = this.get(path.slice(0, -1));
720
+ var key = path[path.length - 1];
721
+ if (parent) {
722
+ return parent.hasChild(key);
723
+ }
724
+ return false;
725
+ };
726
+ function update2(path, targetModule, newModule) {
727
+ targetModule.update(newModule);
728
+ if (newModule.modules) {
729
+ for (var key in newModule.modules) {
730
+ if (!targetModule.getChild(key)) {
731
+ return;
732
+ }
733
+ update2(path.concat(key), targetModule.getChild(key), newModule.modules[key]);
734
+ }
735
+ }
736
+ }
737
+ function createStore(options) {
738
+ return new Store(options);
739
+ }
740
+ var Store = function Store2(options) {
741
+ var this$1$1 = this;
742
+ if (options === void 0)
743
+ options = {};
744
+ var plugins2 = options.plugins;
745
+ if (plugins2 === void 0)
746
+ plugins2 = [];
747
+ var strict = options.strict;
748
+ if (strict === void 0)
749
+ strict = false;
750
+ var devtools = options.devtools;
751
+ this._committing = false;
752
+ this._actions = Object.create(null);
753
+ this._actionSubscribers = [];
754
+ this._mutations = Object.create(null);
755
+ this._wrappedGetters = Object.create(null);
756
+ this._modules = new ModuleCollection(options);
757
+ this._modulesNamespaceMap = Object.create(null);
758
+ this._subscribers = [];
759
+ this._makeLocalGettersCache = Object.create(null);
760
+ this._devtools = devtools;
761
+ var store = this;
762
+ var ref2 = this;
763
+ var dispatch2 = ref2.dispatch;
764
+ var commit2 = ref2.commit;
765
+ this.dispatch = function boundDispatch(type, payload) {
766
+ return dispatch2.call(store, type, payload);
767
+ };
768
+ this.commit = function boundCommit(type, payload, options2) {
769
+ return commit2.call(store, type, payload, options2);
770
+ };
771
+ this.strict = strict;
772
+ var state = this._modules.root.state;
773
+ installModule(this, state, [], this._modules.root);
774
+ resetStoreState(this, state);
775
+ plugins2.forEach(function(plugin2) {
776
+ return plugin2(this$1$1);
777
+ });
778
+ };
779
+ var prototypeAccessors = { state: { configurable: true } };
780
+ Store.prototype.install = function install(app, injectKey) {
781
+ app.provide(injectKey || storeKey, this);
782
+ app.config.globalProperties.$store = this;
783
+ var useDevtools = this._devtools !== void 0 ? this._devtools : false;
784
+ if (useDevtools) {
785
+ addDevtools(app, this);
786
+ }
787
+ };
788
+ prototypeAccessors.state.get = function() {
789
+ return this._state.data;
790
+ };
791
+ prototypeAccessors.state.set = function(v) {
792
+ };
793
+ Store.prototype.commit = function commit(_type, _payload, _options) {
794
+ var this$1$1 = this;
795
+ var ref2 = unifyObjectStyle(_type, _payload, _options);
796
+ var type = ref2.type;
797
+ var payload = ref2.payload;
798
+ var mutation = { type, payload };
799
+ var entry = this._mutations[type];
800
+ if (!entry) {
801
+ return;
802
+ }
803
+ this._withCommit(function() {
804
+ entry.forEach(function commitIterator(handler) {
805
+ handler(payload);
806
+ });
807
+ });
808
+ this._subscribers.slice().forEach(function(sub) {
809
+ return sub(mutation, this$1$1.state);
810
+ });
811
+ };
812
+ Store.prototype.dispatch = function dispatch(_type, _payload) {
813
+ var this$1$1 = this;
814
+ var ref2 = unifyObjectStyle(_type, _payload);
815
+ var type = ref2.type;
816
+ var payload = ref2.payload;
817
+ var action = { type, payload };
818
+ var entry = this._actions[type];
819
+ if (!entry) {
820
+ return;
821
+ }
822
+ try {
823
+ this._actionSubscribers.slice().filter(function(sub) {
824
+ return sub.before;
825
+ }).forEach(function(sub) {
826
+ return sub.before(action, this$1$1.state);
827
+ });
828
+ } catch (e) {
829
+ }
830
+ var result = entry.length > 1 ? Promise.all(entry.map(function(handler) {
831
+ return handler(payload);
832
+ })) : entry[0](payload);
833
+ return new Promise(function(resolve, reject) {
834
+ result.then(function(res) {
835
+ try {
836
+ this$1$1._actionSubscribers.filter(function(sub) {
837
+ return sub.after;
838
+ }).forEach(function(sub) {
839
+ return sub.after(action, this$1$1.state);
840
+ });
841
+ } catch (e) {
842
+ }
843
+ resolve(res);
844
+ }, function(error) {
845
+ try {
846
+ this$1$1._actionSubscribers.filter(function(sub) {
847
+ return sub.error;
848
+ }).forEach(function(sub) {
849
+ return sub.error(action, this$1$1.state, error);
850
+ });
851
+ } catch (e) {
852
+ }
853
+ reject(error);
854
+ });
855
+ });
856
+ };
857
+ Store.prototype.subscribe = function subscribe(fn, options) {
858
+ return genericSubscribe(fn, this._subscribers, options);
859
+ };
860
+ Store.prototype.subscribeAction = function subscribeAction(fn, options) {
861
+ var subs = typeof fn === "function" ? { before: fn } : fn;
862
+ return genericSubscribe(subs, this._actionSubscribers, options);
863
+ };
864
+ Store.prototype.watch = function watch$1(getter, cb, options) {
865
+ var this$1$1 = this;
866
+ return watch(function() {
867
+ return getter(this$1$1.state, this$1$1.getters);
868
+ }, cb, Object.assign({}, options));
869
+ };
870
+ Store.prototype.replaceState = function replaceState(state) {
871
+ var this$1$1 = this;
872
+ this._withCommit(function() {
873
+ this$1$1._state.data = state;
874
+ });
875
+ };
876
+ Store.prototype.registerModule = function registerModule(path, rawModule, options) {
877
+ if (options === void 0)
878
+ options = {};
879
+ if (typeof path === "string") {
880
+ path = [path];
881
+ }
882
+ this._modules.register(path, rawModule);
883
+ installModule(this, this.state, path, this._modules.get(path), options.preserveState);
884
+ resetStoreState(this, this.state);
885
+ };
886
+ Store.prototype.unregisterModule = function unregisterModule(path) {
887
+ var this$1$1 = this;
888
+ if (typeof path === "string") {
889
+ path = [path];
890
+ }
891
+ this._modules.unregister(path);
892
+ this._withCommit(function() {
893
+ var parentState = getNestedState(this$1$1.state, path.slice(0, -1));
894
+ delete parentState[path[path.length - 1]];
895
+ });
896
+ resetStore(this);
897
+ };
898
+ Store.prototype.hasModule = function hasModule(path) {
899
+ if (typeof path === "string") {
900
+ path = [path];
901
+ }
902
+ return this._modules.isRegistered(path);
903
+ };
904
+ Store.prototype.hotUpdate = function hotUpdate(newOptions) {
905
+ this._modules.update(newOptions);
906
+ resetStore(this, true);
907
+ };
908
+ Store.prototype._withCommit = function _withCommit(fn) {
909
+ var committing = this._committing;
910
+ this._committing = true;
911
+ fn();
912
+ this._committing = committing;
913
+ };
914
+ Object.defineProperties(Store.prototype, prototypeAccessors);
915
+ createStore({
916
+ state() {
917
+ return {
918
+ count: 1,
919
+ imagesFolderPath: "holis"
920
+ };
921
+ }
922
+ });
33
923
  function getBasePlacement(placement) {
34
924
  return placement.split("-")[0];
35
925
  }
@@ -3228,7 +4118,7 @@ Object.keys(_config).forEach(function(key) {
3228
4118
  return cb(config);
3229
4119
  });
3230
4120
  },
3231
- get: function get() {
4121
+ get: function get2() {
3232
4122
  return _config[key];
3233
4123
  }
3234
4124
  });
@@ -3910,14 +4800,14 @@ function domVariants(val, abstractCreator) {
3910
4800
  get: abstractCreator
3911
4801
  });
3912
4802
  Object.defineProperty(val, "html", {
3913
- get: function get() {
4803
+ get: function get2() {
3914
4804
  return val.abstract.map(function(a) {
3915
4805
  return toHtml(a);
3916
4806
  });
3917
4807
  }
3918
4808
  });
3919
4809
  Object.defineProperty(val, "node", {
3920
- get: function get() {
4810
+ get: function get2() {
3921
4811
  if (!IS_DOM)
3922
4812
  return;
3923
4813
  var container = DOCUMENT.createElement("div");
@@ -20120,7 +21010,7 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
20120
21010
  throw this.reason;
20121
21011
  }
20122
21012
  };
20123
- CancelToken.prototype.subscribe = function subscribe(listener3) {
21013
+ CancelToken.prototype.subscribe = function subscribe2(listener3) {
20124
21014
  if (this.reason) {
20125
21015
  listener3(this.reason);
20126
21016
  return;
@@ -21333,7 +22223,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21333
22223
  });
21334
22224
  var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4bfc21c8"]]);
21335
22225
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
21336
- const _withScopeId$4 = (n) => (pushScopeId("data-v-78fe58de"), n = n(), popScopeId(), n);
22226
+ const _withScopeId$4 = (n) => (pushScopeId("data-v-13fd1fa4"), n = n(), popScopeId(), n);
21337
22227
  const _hoisted_1$f = { class: "ck-table__pagination" };
21338
22228
  const _hoisted_2$b = { class: "ck-table__pagination--numbers-container" };
21339
22229
  const _hoisted_3$7 = ["onClick"];
@@ -21354,6 +22244,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21354
22244
  let cleekOptions2 = ref();
21355
22245
  const itemsShowed = 5;
21356
22246
  const currentPageLocal = computed$2({
22247
+ get() {
22248
+ return props.currentPage;
22249
+ },
22250
+ set(val) {
22251
+ emits("update:currentPage", val);
22252
+ }
22253
+ });
22254
+ const currentPageInputValue = computed$2({
21357
22255
  get() {
21358
22256
  return props.currentPage;
21359
22257
  },
@@ -21363,9 +22261,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21363
22261
  const hasArrowLeft = computed$2(() => {
21364
22262
  return props.currentPage !== 1;
21365
22263
  });
21366
- const hasArrowRight = computed$2(() => {
21367
- return props.currentPage !== listRight.value[listRight.value.length - 1];
21368
- });
22264
+ const hasArrowRight = computed$2(() => !!listRight.value.length);
21369
22265
  const totalPages = computed$2(() => {
21370
22266
  return Math.ceil(props.listLength / props.itemsPerPage);
21371
22267
  });
@@ -21404,29 +22300,30 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21404
22300
  list.push(layout);
21405
22301
  return list;
21406
22302
  });
21407
- function updateCurrentPage(val, validator7 = true) {
21408
- if (!validator7)
21409
- return;
21410
- emits("update:currentPage", val);
22303
+ watch(() => currentPageLocal.value, () => {
21411
22304
  emits("refreshList");
22305
+ });
22306
+ function updatePageByInput(eventTarget) {
22307
+ let newValue = +eventTarget.value;
22308
+ if (newValue > totalPages.value)
22309
+ newValue = totalPages.value;
22310
+ if (newValue < 1)
22311
+ newValue = 1;
22312
+ if (props.currentPage === newValue) {
22313
+ eventTarget.value = `${newValue}`;
22314
+ } else {
22315
+ currentPageLocal.value = newValue;
22316
+ }
21412
22317
  }
21413
- function validateInputNumber(val) {
21414
- console.log("valido", val);
21415
- val = +val;
21416
- if (val > totalPages.value)
21417
- val = totalPages.value;
21418
- if (val < 1)
21419
- val = 1;
21420
- if (val === props.currentPage)
22318
+ function onClickArrowRight() {
22319
+ console.log("hasArrowRight", hasArrowRight.value);
22320
+ if (!hasArrowRight.value)
21421
22321
  return;
21422
- updateCurrentPage(val);
22322
+ currentPageLocal.value = props.currentPage + 1;
21423
22323
  }
21424
22324
  onMounted(() => {
21425
22325
  cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
21426
22326
  });
21427
- hooks8.preventUnusedError([
21428
- validateInputNumber
21429
- ]);
21430
22327
  return (_ctx, _cache) => {
21431
22328
  return __props.currentPage && unref$1(totalPages) > 1 ? (openBlock(), createElementBlock("div", {
21432
22329
  key: 0,
@@ -21435,7 +22332,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21435
22332
  createElementVNode("div", _hoisted_1$f, [
21436
22333
  createElementVNode("div", {
21437
22334
  class: normalizeClass(["ck-table__pagination--arrow-left", { disabled: !unref$1(hasArrowLeft) }]),
21438
- onClick: _cache[0] || (_cache[0] = ($event) => updateCurrentPage(__props.currentPage - 1, unref$1(hasArrowLeft)))
22335
+ onClick: _cache[0] || (_cache[0] = ($event) => currentPageLocal.value = __props.currentPage - 1)
21439
22336
  }, [
21440
22337
  createVNode(CkIcon, {
21441
22338
  icon: unref$1(hasArrowLeft) ? "angle-left" : "grip-lines-vertical"
@@ -21445,31 +22342,31 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21445
22342
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(listLeft), (num) => {
21446
22343
  return openBlock(), createElementBlock("div", {
21447
22344
  class: "ck-table__pagination-item--left",
21448
- onClick: ($event) => updateCurrentPage(num)
22345
+ onClick: ($event) => currentPageLocal.value = num
21449
22346
  }, toDisplayString(num), 9, _hoisted_3$7);
21450
22347
  }), 256)),
21451
22348
  createElementVNode("div", _hoisted_4$6, [
21452
22349
  withDirectives(createElementVNode("input", {
21453
22350
  class: "ck-table__pagination-input",
21454
22351
  type: "number",
21455
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null),
22352
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(currentPageInputValue) ? currentPageInputValue.value = $event : null),
21456
22353
  onClick: _cache[2] || (_cache[2] = ($event) => $event.target.select()),
21457
- onChange: _cache[3] || (_cache[3] = ($event) => validateInputNumber($event.target.value))
22354
+ onChange: _cache[3] || (_cache[3] = ($event) => updatePageByInput($event.target))
21458
22355
  }, null, 544), [
21459
- [vModelText, unref$1(currentPageLocal)]
22356
+ [vModelText, unref$1(currentPageInputValue)]
21460
22357
  ]),
21461
22358
  _hoisted_5$3
21462
22359
  ]),
21463
22360
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(listRight), (num) => {
21464
22361
  return openBlock(), createElementBlock("div", {
21465
22362
  class: "ck-table__pagination-item--right",
21466
- onClick: ($event) => updateCurrentPage(num)
22363
+ onClick: ($event) => currentPageLocal.value = num
21467
22364
  }, toDisplayString(num), 9, _hoisted_6$3);
21468
22365
  }), 256))
21469
22366
  ]),
21470
22367
  createElementVNode("div", {
21471
22368
  class: normalizeClass(["ck-table__pagination--arrow-right", { disabled: !unref$1(hasArrowRight) }]),
21472
- onClick: _cache[4] || (_cache[4] = ($event) => updateCurrentPage(__props.currentPage + 1, unref$1(hasArrowRight)))
22369
+ onClick: _cache[4] || (_cache[4] = ($event) => onClickArrowRight())
21473
22370
  }, [
21474
22371
  createVNode(CkIcon, {
21475
22372
  icon: unref$1(hasArrowRight) ? "angle-right" : "grip-lines-vertical"
@@ -21480,7 +22377,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21480
22377
  };
21481
22378
  }
21482
22379
  });
21483
- var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-78fe58de"]]);
22380
+ var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-13fd1fa4"]]);
21484
22381
  const EMPTY_OBJ = {};
21485
22382
  const NOOP = () => {
21486
22383
  };
@@ -22318,10 +23215,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
22318
23215
  });
22319
23216
  var CkCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-113ac83f"]]);
22320
23217
  var ckPopup_vue_vue_type_style_index_0_lang = "";
22321
- const _hoisted_1$d = {
22322
- key: 0,
22323
- class: "ck-popup"
22324
- };
23218
+ const _hoisted_1$d = { class: "ck-popup" };
22325
23219
  const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
22326
23220
  const _hoisted_3$5 = {
22327
23221
  key: 0,
@@ -22480,62 +23374,67 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
22480
23374
  cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
22481
23375
  });
22482
23376
  return (_ctx, _cache) => {
22483
- return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
22484
- _hoisted_2$9,
22485
- createElementVNode("div", {
22486
- class: "popup-container",
22487
- onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
22488
- }, [
23377
+ return unref$1(isActive) ? (openBlock(), createBlock(Teleport, {
23378
+ key: 0,
23379
+ to: "body"
23380
+ }, [
23381
+ createElementVNode("div", _hoisted_1$d, [
23382
+ _hoisted_2$9,
22489
23383
  createElementVNode("div", {
22490
- class: normalizeClass(["ck-popup__content", unref$1(computedClassContent)]),
22491
- onClick: _cache[3] || (_cache[3] = withModifiers(() => {
22492
- }, ["stop"])),
22493
- style: normalizeStyle(unref$1(computedStyleContent))
23384
+ class: "popup-container",
23385
+ onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
22494
23386
  }, [
22495
23387
  createElementVNode("div", {
22496
- class: normalizeClass(["ck-popup__slot-header", unref$1(computedClassHeader)]),
22497
- style: normalizeStyle(unref$1(computedStyleHeader))
23388
+ class: normalizeClass(["ck-popup__content", unref$1(computedClassContent)]),
23389
+ onClick: _cache[3] || (_cache[3] = withModifiers(() => {
23390
+ }, ["stop"])),
23391
+ style: normalizeStyle(unref$1(computedStyleContent))
22498
23392
  }, [
22499
- __props.title ? (openBlock(), createElementBlock("h3", _hoisted_3$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
22500
- renderSlot(_ctx.$slots, "header"),
22501
- unref$1(isCloseBtnVisible) ? (openBlock(), createBlock(CkIcon, {
22502
- key: 1,
22503
- class: "icon-close",
22504
- icon: "times",
22505
- onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
22506
- })) : createCommentVNode("", true)
22507
- ], 6),
22508
- createElementVNode("div", _hoisted_4$5, [
22509
- renderSlot(_ctx.$slots, "default")
22510
- ]),
22511
- _ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
22512
- renderSlot(_ctx.$slots, "footer"),
22513
- __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
22514
- __props.confirmButtons || __props.cancelButton ? (openBlock(), createBlock(CkButton, {
22515
- key: 0,
22516
- class: "cancel-button",
22517
- color: "danger",
22518
- type: unref$1(realCancelBtnType),
22519
- onClick: _cache[1] || (_cache[1] = ($event) => onCancel())
22520
- }, {
22521
- default: withCtx(() => [
22522
- createTextVNode(toDisplayString(unref$1(realCancelBtnText)), 1)
22523
- ]),
22524
- _: 1
22525
- }, 8, ["type"])) : createCommentVNode("", true),
22526
- __props.confirmButtons || __props.acceptButton ? (openBlock(), createBlock(CkButton, {
23393
+ createElementVNode("div", {
23394
+ class: normalizeClass(["ck-popup__slot-header", unref$1(computedClassHeader)]),
23395
+ style: normalizeStyle(unref$1(computedStyleHeader))
23396
+ }, [
23397
+ __props.title ? (openBlock(), createElementBlock("h3", _hoisted_3$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
23398
+ renderSlot(_ctx.$slots, "header"),
23399
+ unref$1(isCloseBtnVisible) ? (openBlock(), createBlock(CkIcon, {
22527
23400
  key: 1,
22528
- type: unref$1(realAcceptBtnType),
22529
- onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
22530
- }, {
22531
- default: withCtx(() => [
22532
- createTextVNode(toDisplayString(unref$1(realAcceptBtnText)), 1)
22533
- ]),
22534
- _: 1
22535
- }, 8, ["type"])) : createCommentVNode("", true)
23401
+ class: "icon-close",
23402
+ icon: "times",
23403
+ onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
23404
+ })) : createCommentVNode("", true)
23405
+ ], 6),
23406
+ createElementVNode("div", _hoisted_4$5, [
23407
+ renderSlot(_ctx.$slots, "default")
23408
+ ]),
23409
+ _ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
23410
+ renderSlot(_ctx.$slots, "footer"),
23411
+ __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
23412
+ __props.confirmButtons || __props.cancelButton ? (openBlock(), createBlock(CkButton, {
23413
+ key: 0,
23414
+ class: "cancel-button",
23415
+ color: "danger",
23416
+ type: unref$1(realCancelBtnType),
23417
+ onClick: _cache[1] || (_cache[1] = ($event) => onCancel())
23418
+ }, {
23419
+ default: withCtx(() => [
23420
+ createTextVNode(toDisplayString(unref$1(realCancelBtnText)), 1)
23421
+ ]),
23422
+ _: 1
23423
+ }, 8, ["type"])) : createCommentVNode("", true),
23424
+ __props.confirmButtons || __props.acceptButton ? (openBlock(), createBlock(CkButton, {
23425
+ key: 1,
23426
+ type: unref$1(realAcceptBtnType),
23427
+ onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
23428
+ }, {
23429
+ default: withCtx(() => [
23430
+ createTextVNode(toDisplayString(unref$1(realAcceptBtnText)), 1)
23431
+ ]),
23432
+ _: 1
23433
+ }, 8, ["type"])) : createCommentVNode("", true)
23434
+ ])) : createCommentVNode("", true)
22536
23435
  ])) : createCommentVNode("", true)
22537
- ])) : createCommentVNode("", true)
22538
- ], 6)
23436
+ ], 6)
23437
+ ])
22539
23438
  ])
22540
23439
  ])) : createCommentVNode("", true);
22541
23440
  };
@@ -22886,7 +23785,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22886
23785
  };
22887
23786
  }
22888
23787
  });
22889
- var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-ad665c4a"]]);
23788
+ var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c7cdf0ec"]]);
22890
23789
  var ckDiv_vue_vue_type_style_index_0_lang = "";
22891
23790
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
22892
23791
  props: {
@@ -23157,6 +24056,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23157
24056
  },
23158
24057
  set(val) {
23159
24058
  emits("update:modelValue", val);
24059
+ emits("change");
23160
24060
  }
23161
24061
  });
23162
24062
  const filteredOptions = computed$2(() => {
@@ -23268,9 +24168,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23268
24168
  function onClick2(event) {
23269
24169
  emits("click", event);
23270
24170
  }
23271
- function onChange2(event) {
23272
- emits("change", event);
23273
- }
23274
24171
  function getOptionValue(option) {
23275
24172
  if (props.reduceValueFunction)
23276
24173
  return props.reduceValueFunction(option);
@@ -23298,7 +24195,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23298
24195
  computedStyle,
23299
24196
  computedClassSelect,
23300
24197
  getOptionValue,
23301
- onChange2,
23302
24198
  onClick2,
23303
24199
  filteredOptions
23304
24200
  ]);
@@ -23343,8 +24239,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23343
24239
  class: normalizeClass(unref$1(computedClassSelect)),
23344
24240
  style: normalizeStyle(unref$1(computedStyleSelect)),
23345
24241
  disabled: __props.disabled,
23346
- onClick: _cache[2] || (_cache[2] = ($event) => onClick2($event)),
23347
- onChange: _cache[3] || (_cache[3] = ($event) => onChange2($event))
24242
+ onClick: _cache[2] || (_cache[2] = ($event) => onClick2($event))
23348
24243
  }, [
23349
24244
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredOptions), (option) => {
23350
24245
  return openBlock(), createElementBlock("option", {
@@ -23352,14 +24247,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23352
24247
  key: option
23353
24248
  }, toDisplayString(getOptionName(option)), 9, _hoisted_2$5);
23354
24249
  }), 128))
23355
- ], 46, _hoisted_1$7), [
24250
+ ], 14, _hoisted_1$7), [
23356
24251
  [vModelSelect, unref$1(value)]
23357
24252
  ])
23358
24253
  ], 4);
23359
24254
  };
23360
24255
  }
23361
24256
  });
23362
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5aafba97"]]);
24257
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-d0d09d48"]]);
23363
24258
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23364
24259
  const _hoisted_1$6 = {
23365
24260
  key: 0,
@@ -23557,7 +24452,7 @@ const _hoisted_1$4 = { class: "ck-switch-options__container-exterior" };
23557
24452
  const _hoisted_2$3 = ["onClick"];
23558
24453
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23559
24454
  props: {
23560
- modelValue: { type: [Boolean, Number, Object] },
24455
+ modelValue: { type: [Boolean, Number, Object, String] },
23561
24456
  options: null,
23562
24457
  prop: null,
23563
24458
  notReduce: { type: Boolean },
@@ -23633,7 +24528,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23633
24528
  };
23634
24529
  }
23635
24530
  });
23636
- var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-4bc709a8"]]);
24531
+ var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-285335eb"]]);
23637
24532
  var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
23638
24533
  const _hoisted_1$3 = { class: "ck-textarea" };
23639
24534
  const _hoisted_2$2 = ["placeholder", "disabled"];
@@ -23872,7 +24767,7 @@ var CkNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
23872
24767
  const _hoisted_1 = { class: "ck-notify__container" };
23873
24768
  const _hoisted_2 = { class: "ck-notify__title" };
23874
24769
  const _hoisted_3 = { class: "close-btn" };
23875
- const _hoisted_4 = { class: "ck-notify__text" };
24770
+ const _hoisted_4 = ["innerHTML"];
23876
24771
  const _sfc_main = /* @__PURE__ */ defineComponent({
23877
24772
  setup(__props, { expose }) {
23878
24773
  let cleekOptions2 = ref();
@@ -23943,14 +24838,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23943
24838
  ]),
23944
24839
  createTextVNode(toDisplayString(title.value || unref$1(defaultTitle)), 1)
23945
24840
  ]),
23946
- createElementVNode("div", _hoisted_4, toDisplayString(text2.value), 1)
24841
+ createElementVNode("div", {
24842
+ class: "ck-notify__text",
24843
+ innerHTML: text2.value
24844
+ }, null, 8, _hoisted_4)
23947
24845
  ], 6)
23948
24846
  ])
23949
24847
  ])) : createCommentVNode("", true);
23950
24848
  };
23951
24849
  }
23952
24850
  });
23953
- var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7c413389"]]);
24851
+ var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4cd3410e"]]);
23954
24852
  const defaultDuration = 2e3;
23955
24853
  var ckNotify = {
23956
24854
  alert(msg) {
@@ -24083,11 +24981,11 @@ function getCleekOptions(userOptions) {
24083
24981
  setRootColors(options.colors);
24084
24982
  return options;
24085
24983
  }
24086
- const install = function installCleek(app, options) {
24984
+ const install2 = function installCleek(app, options) {
24087
24985
  app.config.globalProperties.$cleekOptions = getCleekOptions(options);
24088
24986
  app.use(plugin);
24089
24987
  Object.entries(components).forEach(([componentName, component]) => {
24090
24988
  app.component(componentName, component);
24091
24989
  });
24092
24990
  };
24093
- export { CkButton, CkCheckbox, ckChip as CkChip, _sfc_main$a as CkDiv, ckDropdown as CkDropdown, CkIcon, ckImg as CkImg, CkInput, CkLabel, ckNavbar as CkNavbar, _sfc_main$e as CkPopup, ckRadio as CkRadio, ckSelect as CkSelect, ckSidebar as CkSidebar, ckSwitch as CkSwitch, ckSwitchOptions as CkSwitchOptions, ckTable as CkTable, CkTd, ckTextarea as CkTextarea, CkTh, CkTr, ckNotify, install as default };
24991
+ export { CkButton, CkCheckbox, ckChip as CkChip, _sfc_main$a as CkDiv, ckDropdown as CkDropdown, CkIcon, ckImg as CkImg, CkInput, CkLabel, ckNavbar as CkNavbar, _sfc_main$e as CkPopup, ckRadio as CkRadio, ckSelect as CkSelect, ckSidebar as CkSidebar, ckSwitch as CkSwitch, ckSwitchOptions as CkSwitchOptions, ckTable as CkTable, CkTd, ckTextarea as CkTextarea, CkTh, CkTr, ckNotify, install2 as default };