quasar-ui-sellmate-ui-kit 3.2.3 → 3.2.5

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/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * quasar-ui-sellmate-ui-kit v3.2.2
2
+ * quasar-ui-sellmate-ui-kit v3.2.4
3
3
  * (c) 2024 Sellmate Dev Team <dev@sellmate.co.kr>
4
4
  * Released under the MIT License.
5
5
  */
@@ -1445,7 +1445,7 @@
1445
1445
  }, 8, ["color", "icon-right", "class"]))
1446
1446
  }
1447
1447
 
1448
- var css_248z$r = ".s-dropdown {\n min-height: 0;\n padding: 0 !important;\n line-height: normal;\n}\n.s-dropdown .q-btn__content {\n min-height: 0;\n align-items: center;\n}\n.s-dropdown .q-btn__content .block {\n border-right: 1px solid color-mix(in srgb, white 25%, transparent);\n height: 100%;\n}\n.s-dropdown .q-btn__content .q-icon {\n padding: 0;\n border-right: none;\n color: white;\n}\n.s-dropdown.q-btn--outline .q-btn__content .block {\n color: currentColor;\n border-right: 1px solid currentColor;\n}\n.s-dropdown.q-btn--outline .q-btn__content .q-icon {\n color: currentColor;\n}\n.s-dropdown.q-btn--outline:hover.q-focusable:focus > .q-focus-helper:before, .s-dropdown.q-btn--outline:hover.q-manual-focusable--focused > .q-focus-helper:before, .s-dropdown.q-btn--outline:hover.q-hoverable:hover > .q-focus-helper:before {\n opacity: 0;\n}\n.s-dropdown.q-btn--outline:hover.q-focusable:focus > .q-focus-helper:after, .s-dropdown.q-btn--outline:hover.q-manual-focusable--focused > .q-focus-helper:after, .s-dropdown.q-btn--outline:hover.q-hoverable:hover > .q-focus-helper:after {\n opacity: 0.55;\n}\n.s-dropdown:hover.q-focusable:focus > .q-focus-helper, .s-dropdown:hover.q-manual-focusable--focused > .q-focus-helper, .s-dropdown:hover.q-hoverable:hover > .q-focus-helper {\n opacity: 0.3;\n transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.5, 1);\n}\n.s-dropdown:hover.q-focusable:focus > .q-focus-helper:before, .s-dropdown:hover.q-manual-focusable--focused > .q-focus-helper:before, .s-dropdown:hover.q-hoverable:hover > .q-focus-helper:before {\n opacity: 1.4;\n transition: none;\n}\n.s-dropdown:hover.q-focusable:focus > .q-focus-helper:after, .s-dropdown:hover.q-manual-focusable--focused > .q-focus-helper:after, .s-dropdown:hover.q-hoverable:hover > .q-focus-helper:after {\n opacity: 0;\n transition: none;\n}\n.s-dropdown.s-dropdown-xs {\n min-width: 67px;\n}\n.s-dropdown.s-dropdown-xs .q-btn__content .block {\n padding: 2px 6px 2px 8px;\n line-height: 20px;\n font-size: 12px;\n font-weight: 400;\n}\n.s-dropdown.s-dropdown-xs .q-btn__content .q-icon {\n font-size: 12px;\n margin: 5px 5px 5px 4px;\n}\n.s-dropdown.s-dropdown-sm {\n min-width: 75px;\n}\n.s-dropdown.s-dropdown-sm .q-btn__content .block {\n padding: 4px 10px 4px 12px;\n line-height: 20px;\n font-size: 12px;\n font-weight: 400;\n}\n.s-dropdown.s-dropdown-sm .q-btn__content .q-icon {\n font-size: 12px;\n margin: 7px 8px;\n}\n.s-dropdown.s-dropdown-md {\n min-width: 107px;\n}\n.s-dropdown.s-dropdown-md .q-btn__content .block {\n padding: 6px 16px 6px 20px;\n line-height: 20px;\n font-size: 16px;\n font-weight: 500;\n}\n.s-dropdown.s-dropdown-md .q-btn__content .q-icon {\n font-size: 12px;\n margin: 11px 12px;\n}\n.s-dropdown.s-dropdown-lg {\n min-width: 107px;\n}\n.s-dropdown.s-dropdown-lg .q-btn__content .block {\n padding: 16px 24px 16px 28px;\n line-height: 30px;\n font-size: 18px;\n font-weight: 500;\n}\n.s-dropdown.s-dropdown-lg .q-btn__content .q-icon {\n font-size: 1.667em;\n margin: 19px 20px;\n}\n.s-dropdown.disabled {\n opacity: 1 !important;\n border: none;\n padding: 0;\n}\n.s-dropdown.disabled:before {\n border: 1px solid #cccccc;\n background: #e1e1e1 !important;\n}\n.s-dropdown.disabled .q-btn__content > .block {\n color: #888888;\n}\n.s-dropdown.disabled .q-btn__content .block {\n border-right: 1px solid #cccccc !important;\n}\n.s-dropdown-menu {\n box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1254901961);\n}\n.s-dropdown-menu .q-item {\n padding: 4px 12px;\n min-height: 0;\n}\n.s-dropdown-menu .q-item__section {\n min-height: 0;\n height: 20px;\n}\n.s-dropdown-menu .q-item:not(.q-item--clickable) {\n cursor: default;\n color: #aaaaaa;\n}";
1448
+ var css_248z$r = ".s-dropdown {\n min-height: 0;\n padding: 0 !important;\n line-height: normal;\n}\n.s-dropdown .q-btn__content {\n min-height: 0;\n align-items: center;\n}\n.s-dropdown .q-btn__content .block {\n border-right: 1px solid color-mix(in srgb, white 25%, transparent);\n height: 100%;\n}\n.s-dropdown .q-btn__content .q-icon {\n padding: 0;\n border-right: none;\n color: white;\n}\n.s-dropdown.q-btn--outline .q-btn__content .block {\n color: currentColor;\n border-right: 1px solid currentColor;\n}\n.s-dropdown.q-btn--outline .q-btn__content .q-icon {\n color: currentColor;\n}\n.s-dropdown.q-btn--outline:hover.q-focusable:focus > .q-focus-helper:before, .s-dropdown.q-btn--outline:hover.q-manual-focusable--focused > .q-focus-helper:before, .s-dropdown.q-btn--outline:hover.q-hoverable:hover > .q-focus-helper:before {\n opacity: 0;\n}\n.s-dropdown.q-btn--outline:hover.q-focusable:focus > .q-focus-helper:after, .s-dropdown.q-btn--outline:hover.q-manual-focusable--focused > .q-focus-helper:after, .s-dropdown.q-btn--outline:hover.q-hoverable:hover > .q-focus-helper:after {\n opacity: 0.55;\n}\n.s-dropdown:hover.q-focusable:focus > .q-focus-helper, .s-dropdown:hover.q-manual-focusable--focused > .q-focus-helper, .s-dropdown:hover.q-hoverable:hover > .q-focus-helper {\n opacity: 0.3;\n transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.5, 1);\n}\n.s-dropdown:hover.q-focusable:focus > .q-focus-helper:before, .s-dropdown:hover.q-manual-focusable--focused > .q-focus-helper:before, .s-dropdown:hover.q-hoverable:hover > .q-focus-helper:before {\n opacity: 1.4;\n transition: none;\n}\n.s-dropdown:hover.q-focusable:focus > .q-focus-helper:after, .s-dropdown:hover.q-manual-focusable--focused > .q-focus-helper:after, .s-dropdown:hover.q-hoverable:hover > .q-focus-helper:after {\n opacity: 0;\n transition: none;\n}\n.s-dropdown.s-dropdown-xs {\n min-width: 67px;\n}\n.s-dropdown.s-dropdown-xs .q-btn__content .block {\n padding: 2px 6px 2px 8px;\n line-height: 20px;\n font-size: 12px;\n font-weight: 400;\n}\n.s-dropdown.s-dropdown-xs .q-btn__content .q-icon {\n font-size: 12px;\n margin: 5px 5px 5px 4px;\n}\n.s-dropdown.s-dropdown-sm {\n min-width: 75px;\n}\n.s-dropdown.s-dropdown-sm .q-btn__content .block {\n padding: 4px 10px 4px 12px;\n line-height: 20px;\n font-size: 12px;\n font-weight: 400;\n}\n.s-dropdown.s-dropdown-sm .q-btn__content .q-icon {\n font-size: 12px;\n margin: 7px 8px;\n}\n.s-dropdown.s-dropdown-md {\n min-width: 107px;\n}\n.s-dropdown.s-dropdown-md .q-btn__content .block {\n padding: 6px 16px 6px 20px;\n line-height: 20px;\n font-size: 16px;\n font-weight: 500;\n}\n.s-dropdown.s-dropdown-md .q-btn__content .q-icon {\n font-size: 12px;\n margin: 11px 12px;\n}\n.s-dropdown.s-dropdown-lg {\n min-width: 107px;\n}\n.s-dropdown.s-dropdown-lg .q-btn__content .block {\n padding: 16px 24px 16px 28px;\n line-height: 30px;\n font-size: 18px;\n font-weight: 500;\n}\n.s-dropdown.s-dropdown-lg .q-btn__content .q-icon {\n font-size: 1.667em;\n margin: 19px 20px;\n}\n.s-dropdown.disabled {\n opacity: 1 !important;\n border: none;\n padding: 0;\n}\n.s-dropdown.disabled:before {\n border: 1px solid #cccccc;\n background: #e1e1e1 !important;\n}\n.s-dropdown.disabled .q-btn__content > .block,\n.s-dropdown.disabled .q-btn__content > .q-icon {\n color: #888888;\n}\n.s-dropdown.disabled .q-btn__content .block {\n border-right: 1px solid #cccccc !important;\n}\n.s-dropdown-menu {\n box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1254901961);\n}\n.s-dropdown-menu .q-item {\n padding: 4px 12px;\n min-height: 0;\n}\n.s-dropdown-menu .q-item__section {\n min-height: 0;\n height: 20px;\n}\n.s-dropdown-menu .q-item:not(.q-item--clickable) {\n cursor: default;\n color: #aaaaaa;\n}";
1449
1449
  styleInject(css_248z$r);
1450
1450
 
1451
1451
  script$t.render = render$u;
@@ -3361,165 +3361,167 @@
3361
3361
  script$g.render = render$h;
3362
3362
 
3363
3363
  var script$f = vue.defineComponent({
3364
- name: 'SSelectSearchCheckbox',
3365
- emits: ['update:modelValue'],
3366
- components: {
3367
- QSelect: quasar.QSelect,
3368
- QItem: quasar.QItem,
3369
- QItemSection: quasar.QItemSection,
3370
- QImg: quasar.QImg,
3371
- QIcon: quasar.QIcon,
3372
- // QInput,
3373
- },
3374
- props: {
3375
- searchPlaceholder: { type: String, default: '검색' },
3376
- options: {
3377
- type: Array,
3378
- required: true,
3379
- },
3380
- modelValue: {
3381
- type: Array,
3382
- required: true,
3383
- },
3384
- optionLabel: {
3385
- type: [String, Function],
3386
- default: 'label',
3387
- },
3388
- optionValue: {
3389
- type: String,
3390
- default: 'value',
3391
- },
3392
- optionGroup: {
3393
- type: String,
3394
- default: 'group',
3395
- },
3396
- useAll: {
3397
- type: Boolean,
3398
- default: false,
3399
- },
3400
- placeholder: {
3401
- type: String,
3402
- default: '전체',
3403
- },
3404
- checkboxSearch: {
3405
- type: String,
3406
- default: '',
3407
- },
3408
- noData: {
3409
- type: String,
3410
- default: '데이터 없음',
3364
+ name: 'SSelectSearchCheckbox',
3365
+ emits: ['update:modelValue'],
3366
+ components: {
3367
+ QSelect: quasar.QSelect,
3368
+ QItem: quasar.QItem,
3369
+ QItemSection: quasar.QItemSection,
3370
+ QImg: quasar.QImg,
3371
+ QIcon: quasar.QIcon,
3411
3372
  },
3412
- popupContentClass: {
3413
- type: String,
3373
+ props: {
3374
+ searchPlaceholder: { type: String, default: '검색' },
3375
+ options: {
3376
+ type: Array,
3377
+ required: true,
3378
+ },
3379
+ modelValue: {
3380
+ type: Array,
3381
+ required: true,
3382
+ },
3383
+ optionLabel: {
3384
+ type: [String, Function],
3385
+ default: 'label',
3386
+ },
3387
+ optionValue: {
3388
+ type: String,
3389
+ default: 'value',
3390
+ },
3391
+ optionGroup: {
3392
+ type: String,
3393
+ default: 'group',
3394
+ },
3395
+ useAll: {
3396
+ type: Boolean,
3397
+ default: false,
3398
+ },
3399
+ placeholder: {
3400
+ type: String,
3401
+ default: '전체',
3402
+ },
3403
+ checkboxSearch: {
3404
+ type: String,
3405
+ default: '',
3406
+ },
3407
+ noData: {
3408
+ type: String,
3409
+ default: '데이터 없음',
3410
+ },
3411
+ popupContentClass: {
3412
+ type: String,
3413
+ },
3414
3414
  },
3415
- },
3416
- setup: function setup(props, ref$1) {
3417
- var emit = ref$1.emit;
3415
+ setup: function setup(props, ref$1) {
3416
+ var emit = ref$1.emit;
3418
3417
 
3419
- var model = vue.ref(props.modelValue);
3420
- var filteredOptions = vue.ref(props.options);
3421
- var searchInput = vue.ref(null);
3422
- var search = vue.ref('');
3423
- var isDisable = props.options.find(function (v) { return Boolean(v.disable); });
3418
+ var model = vue.ref(props.modelValue);
3419
+ var filteredOptions = vue.ref(props.options);
3420
+ var searchInput = vue.ref(null);
3421
+ var search = vue.ref('');
3422
+ var isDisable = props.options.find(function (v) { return Boolean(v.disable); });
3424
3423
 
3425
- function onRemoveChecked(detail) {
3426
- var idx = model.value.findIndex(function (v) { return v === ''; });
3427
- if (detail[props.optionValue] === '') {
3428
- vue.nextTick(function () {
3429
- model.value = [];
3430
- });
3431
- } else if (idx >= 0) {
3432
- vue.nextTick(function () {
3433
- model.value.splice(idx, 1);
3434
- });
3424
+ function onRemoveChecked(detail) {
3425
+ var idx = model.value.findIndex(function (v) { return v === ''; });
3426
+ if (detail[props.optionValue] === '') {
3427
+ vue.nextTick(function () {
3428
+ model.value = [];
3429
+ });
3430
+ } else if (idx >= 0) {
3431
+ vue.nextTick(function () {
3432
+ model.value.splice(idx, 1);
3433
+ });
3434
+ }
3435
3435
  }
3436
- }
3437
- function onAddChecked(detail) {
3438
- if (detail[props.optionValue] === '') {
3439
- vue.nextTick(function () {
3440
- model.value = props.options
3441
- .filter(function (v) { return !v.category; })
3442
- .map(function (option) { return option[props.optionValue]; });
3443
- });
3444
- } else {
3445
- vue.nextTick(function () {
3446
- if (model.value.length === props.options.length - 1) {
3436
+
3437
+ function onAddChecked(detail) {
3438
+ if (detail[props.optionValue] === '') {
3439
+ vue.nextTick(function () {
3447
3440
  model.value = props.options
3448
3441
  .filter(function (v) { return !v.category; })
3449
3442
  .map(function (option) { return option[props.optionValue]; });
3450
- }
3451
- });
3452
- }
3453
- }
3454
-
3455
- var onSearch = quasar.debounce(function (val) {
3456
- if (val === '') {
3457
- filteredOptions.value = props.options;
3458
- } else {
3459
- filteredOptions.value = props.options.filter(
3460
- function (v) { return (v[props.optionLabel] || v).toLowerCase().indexOf(val.toLowerCase()) > -1; }
3461
- );
3443
+ });
3444
+ } else {
3445
+ vue.nextTick(function () {
3446
+ if (model.value.length === props.options.length - 1) {
3447
+ model.value = props.options
3448
+ .filter(function (v) { return !v.category; })
3449
+ .map(function (option) { return option[props.optionValue]; });
3450
+ }
3451
+ });
3452
+ }
3462
3453
  }
3463
- }, 200);
3464
-
3465
- vue.watch(
3466
- function () { return props.modelValue; },
3467
- function (val) {
3468
- model.value = val;
3469
3454
 
3470
- if (
3471
- props.options.filter(function (opt) { return opt[props.optionValue] && !opt.category; })
3472
- .length === model.value.length
3473
- && model.value.length
3474
- ) {
3475
- model.value = props.options
3476
- .filter(function (v) { return !v.category; })
3477
- .map(function (option) { return option[props.optionValue]; });
3455
+ var onSearch = quasar.debounce(function (val) {
3456
+ if (val === '') {
3457
+ filteredOptions.value = props.options;
3458
+ } else {
3459
+ filteredOptions.value = props.options.filter(
3460
+ function (v) { return (v[props.optionLabel] || v).toLowerCase().indexOf(val.toLowerCase()) > -1; }
3461
+ );
3478
3462
  }
3479
- }
3480
- );
3463
+ }, 200);
3481
3464
 
3482
- vue.watch(model, function (val) {
3483
- emit('update:modelValue', val);
3484
- });
3465
+ vue.watch(
3466
+ function () { return props.modelValue; },
3467
+ function (val) {
3468
+ model.value = val;
3485
3469
 
3486
- vue.watch(
3487
- function () { return props.options; },
3488
- function (val) {
3489
- filteredOptions.value = val;
3490
- vue.nextTick(function () {
3491
- if (props.useAll && model.value.filter(function (v) { return v; }).length < 1) {
3470
+ if (
3471
+ props.options.filter(function (opt) { return opt[props.optionValue] && !opt.category; }).length ===
3472
+ model.value.length &&
3473
+ model.value.length
3474
+ ) {
3492
3475
  model.value = props.options
3493
3476
  .filter(function (v) { return !v.category; })
3494
3477
  .map(function (option) { return option[props.optionValue]; });
3495
3478
  }
3496
- });
3497
- }
3498
- );
3479
+ }
3480
+ );
3499
3481
 
3500
- vue.onBeforeMount(function () {
3501
- if (props.useAll && model.value.filter(function (v) { return v; }).length < 1) {
3502
- model.value = props.options
3503
- .filter(function (v) { return !v.category; })
3504
- .map(function (option) { return option[props.optionValue]; });
3505
- }
3506
- });
3482
+ vue.watch(model, function (val) {
3483
+ emit('update:modelValue', val);
3484
+ });
3507
3485
 
3508
- return {
3509
- model: model,
3510
- selectDownArrowIcon: selectDownArrowIcon,
3511
- onRemoveChecked: onRemoveChecked,
3512
- onAddChecked: onAddChecked,
3513
- onSearch: onSearch,
3514
- isDisable: isDisable,
3515
- filteredOptions: filteredOptions,
3516
- search: search,
3517
- searchInput: searchInput,
3518
- searchIcon: searchIcon,
3519
- sSelectRef: vue.ref(null),
3520
- };
3521
- },
3522
- });
3486
+ var allSelectedModel = function () {
3487
+ console.log('model.value', model.value, model.value.filter(function (v) { return v; }).length < 1);
3488
+ if (props.useAll && model.value.filter(function (v) { return v; }).length < 1) {
3489
+ model.value = props.options
3490
+ .filter(function (v) { return !v.category; })
3491
+ .map(function (option) { return option[props.optionValue]; });
3492
+ }
3493
+ };
3494
+
3495
+ vue.watch(
3496
+ function () { return props.options; },
3497
+ function (val) {
3498
+ model.value = [];
3499
+ filteredOptions.value = val;
3500
+ vue.nextTick(function () {
3501
+ allSelectedModel();
3502
+ });
3503
+ }
3504
+ );
3505
+
3506
+ vue.onBeforeMount(function () {
3507
+ allSelectedModel();
3508
+ });
3509
+
3510
+ return {
3511
+ model: model,
3512
+ selectDownArrowIcon: selectDownArrowIcon,
3513
+ onRemoveChecked: onRemoveChecked,
3514
+ onAddChecked: onAddChecked,
3515
+ onSearch: onSearch,
3516
+ isDisable: isDisable,
3517
+ filteredOptions: filteredOptions,
3518
+ search: search,
3519
+ searchInput: searchInput,
3520
+ searchIcon: searchIcon,
3521
+ sSelectRef: vue.ref(null),
3522
+ };
3523
+ },
3524
+ });
3523
3525
 
3524
3526
  var _hoisted_1$b = { class: "search-input-form-container" };
3525
3527
  var _hoisted_2$9 = { class: "select-search-input-form" };
@@ -3549,9 +3551,7 @@
3549
3551
  "map-options": "",
3550
3552
  autocomplete: "country",
3551
3553
  color: "positive",
3552
- "popup-content-class":
3553
- ['s-select-checkbox-opts', _ctx.popupContentClass].join(' ')
3554
- ,
3554
+ "popup-content-class": ['s-select-checkbox-opts', _ctx.popupContentClass].join(' '),
3555
3555
  class: "s-select-checkbox",
3556
3556
  "option-label": _ctx.optionLabel,
3557
3557
  "option-value": _ctx.optionValue,
@@ -3685,7 +3685,7 @@
3685
3685
  ]; }),
3686
3686
  _: 2
3687
3687
  }, [
3688
- (_ctx.useAll && _ctx.model[0] === '')
3688
+ (_ctx.useAll && (_ctx.model[0] === '' || _ctx.model.includes('')))
3689
3689
  ? {
3690
3690
  name: "selected",
3691
3691
  fn: vue.withCtx(function () { return [
@@ -7311,7 +7311,7 @@
7311
7311
 
7312
7312
  /* eslint-disable no-multiple-empty-lines */
7313
7313
 
7314
- var version = '3.2.2';
7314
+ var version = '3.2.4';
7315
7315
 
7316
7316
  function install(app) {
7317
7317
  app.component('s-breadcrumbs', script$D);