@public-ui/svelte 4.3.0 → 4.3.1-rc.0
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.cjs +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -360,8 +360,12 @@ function KolCard($$anchor, $$props) {
|
|
|
360
360
|
svelte.createEventDispatcher();
|
|
361
361
|
let _on = $__namespace.prop($$props, "_on", 8, void 0);
|
|
362
362
|
let _hasCloser = $__namespace.prop($$props, "_hasCloser", 8, void 0);
|
|
363
|
+
let _href = $__namespace.prop($$props, "_href", 8, void 0);
|
|
363
364
|
let _label = $__namespace.prop($$props, "_label", 8);
|
|
364
365
|
let _level = $__namespace.prop($$props, "_level", 8, void 0);
|
|
366
|
+
let _target = $__namespace.prop($$props, "_target", 8, void 0);
|
|
367
|
+
const focus = (...args) => $__namespace.get(__ref).focus(...args);
|
|
368
|
+
const click = (...args) => $__namespace.get(__ref).click(...args);
|
|
365
369
|
const getWebComponent = () => $__namespace.get(__ref);
|
|
366
370
|
svelte.onMount(() => {
|
|
367
371
|
$__namespace.set(__mounted, true);
|
|
@@ -373,17 +377,21 @@ function KolCard($$anchor, $$props) {
|
|
|
373
377
|
if ($__namespace.get(__mounted)) setProp("_on", _on());
|
|
374
378
|
});
|
|
375
379
|
$__namespace.legacy_pre_effect_reset();
|
|
376
|
-
var $$exports = { getWebComponent };
|
|
380
|
+
var $$exports = { focus, click, getWebComponent };
|
|
377
381
|
$__namespace.init();
|
|
378
382
|
var kol_card = root$G();
|
|
379
383
|
$__namespace.template_effect(() => $__namespace.set_custom_element_data(kol_card, "_has-closer", _hasCloser()));
|
|
384
|
+
$__namespace.template_effect(() => $__namespace.set_custom_element_data(kol_card, "_href", _href()));
|
|
380
385
|
$__namespace.template_effect(() => $__namespace.set_custom_element_data(kol_card, "_label", _label()));
|
|
381
386
|
$__namespace.template_effect(() => $__namespace.set_custom_element_data(kol_card, "_level", _level()));
|
|
387
|
+
$__namespace.template_effect(() => $__namespace.set_custom_element_data(kol_card, "_target", _target()));
|
|
382
388
|
var node = $__namespace.child(kol_card);
|
|
383
389
|
$__namespace.slot(node, $$props, "default", {}, null);
|
|
384
390
|
$__namespace.reset(kol_card);
|
|
385
391
|
$__namespace.bind_this(kol_card, ($$value) => $__namespace.set(__ref, $$value), () => $__namespace.get(__ref));
|
|
386
392
|
$__namespace.append($$anchor, kol_card);
|
|
393
|
+
$__namespace.bind_prop($$props, "focus", focus);
|
|
394
|
+
$__namespace.bind_prop($$props, "click", click);
|
|
387
395
|
$__namespace.bind_prop($$props, "getWebComponent", getWebComponent);
|
|
388
396
|
return $__namespace.pop($$exports);
|
|
389
397
|
}
|
|
@@ -1477,6 +1485,7 @@ function KolInputText($$anchor, $$props) {
|
|
|
1477
1485
|
let _hideLabel = $__namespace.prop($$props, "_hideLabel", 8, void 0);
|
|
1478
1486
|
let _hint = $__namespace.prop($$props, "_hint", 8, void 0);
|
|
1479
1487
|
let _icons = $__namespace.prop($$props, "_icons", 8, void 0);
|
|
1488
|
+
let _infoPopover = $__namespace.prop($$props, "_infoPopover", 8, void 0);
|
|
1480
1489
|
let _label = $__namespace.prop($$props, "_label", 8);
|
|
1481
1490
|
let _maxLength = $__namespace.prop($$props, "_maxLength", 8, void 0);
|
|
1482
1491
|
let _msg = $__namespace.prop($$props, "_msg", 8, void 0);
|
|
@@ -1511,6 +1520,9 @@ function KolInputText($$anchor, $$props) {
|
|
|
1511
1520
|
const setProp = (prop, value) => {
|
|
1512
1521
|
if ($__namespace.get(__ref)) $__namespace.mutate(__ref, $__namespace.get(__ref)[prop] = value);
|
|
1513
1522
|
};
|
|
1523
|
+
$__namespace.legacy_pre_effect(() => ($__namespace.get(__mounted), $__namespace.deep_read_state(_infoPopover())), () => {
|
|
1524
|
+
if ($__namespace.get(__mounted)) setProp("_infoPopover", _infoPopover());
|
|
1525
|
+
});
|
|
1514
1526
|
$__namespace.legacy_pre_effect(() => ($__namespace.get(__mounted), $__namespace.deep_read_state(_on())), () => {
|
|
1515
1527
|
if ($__namespace.get(__mounted)) setProp("_on", _on());
|
|
1516
1528
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -344,8 +344,12 @@ function KolCard($$anchor, $$props) {
|
|
|
344
344
|
createEventDispatcher();
|
|
345
345
|
let _on = $.prop($$props, "_on", 8, void 0);
|
|
346
346
|
let _hasCloser = $.prop($$props, "_hasCloser", 8, void 0);
|
|
347
|
+
let _href = $.prop($$props, "_href", 8, void 0);
|
|
347
348
|
let _label = $.prop($$props, "_label", 8);
|
|
348
349
|
let _level = $.prop($$props, "_level", 8, void 0);
|
|
350
|
+
let _target = $.prop($$props, "_target", 8, void 0);
|
|
351
|
+
const focus = (...args) => $.get(__ref).focus(...args);
|
|
352
|
+
const click = (...args) => $.get(__ref).click(...args);
|
|
349
353
|
const getWebComponent = () => $.get(__ref);
|
|
350
354
|
onMount(() => {
|
|
351
355
|
$.set(__mounted, true);
|
|
@@ -357,17 +361,21 @@ function KolCard($$anchor, $$props) {
|
|
|
357
361
|
if ($.get(__mounted)) setProp("_on", _on());
|
|
358
362
|
});
|
|
359
363
|
$.legacy_pre_effect_reset();
|
|
360
|
-
var $$exports = { getWebComponent };
|
|
364
|
+
var $$exports = { focus, click, getWebComponent };
|
|
361
365
|
$.init();
|
|
362
366
|
var kol_card = root$G();
|
|
363
367
|
$.template_effect(() => $.set_custom_element_data(kol_card, "_has-closer", _hasCloser()));
|
|
368
|
+
$.template_effect(() => $.set_custom_element_data(kol_card, "_href", _href()));
|
|
364
369
|
$.template_effect(() => $.set_custom_element_data(kol_card, "_label", _label()));
|
|
365
370
|
$.template_effect(() => $.set_custom_element_data(kol_card, "_level", _level()));
|
|
371
|
+
$.template_effect(() => $.set_custom_element_data(kol_card, "_target", _target()));
|
|
366
372
|
var node = $.child(kol_card);
|
|
367
373
|
$.slot(node, $$props, "default", {}, null);
|
|
368
374
|
$.reset(kol_card);
|
|
369
375
|
$.bind_this(kol_card, ($$value) => $.set(__ref, $$value), () => $.get(__ref));
|
|
370
376
|
$.append($$anchor, kol_card);
|
|
377
|
+
$.bind_prop($$props, "focus", focus);
|
|
378
|
+
$.bind_prop($$props, "click", click);
|
|
371
379
|
$.bind_prop($$props, "getWebComponent", getWebComponent);
|
|
372
380
|
return $.pop($$exports);
|
|
373
381
|
}
|
|
@@ -1461,6 +1469,7 @@ function KolInputText($$anchor, $$props) {
|
|
|
1461
1469
|
let _hideLabel = $.prop($$props, "_hideLabel", 8, void 0);
|
|
1462
1470
|
let _hint = $.prop($$props, "_hint", 8, void 0);
|
|
1463
1471
|
let _icons = $.prop($$props, "_icons", 8, void 0);
|
|
1472
|
+
let _infoPopover = $.prop($$props, "_infoPopover", 8, void 0);
|
|
1464
1473
|
let _label = $.prop($$props, "_label", 8);
|
|
1465
1474
|
let _maxLength = $.prop($$props, "_maxLength", 8, void 0);
|
|
1466
1475
|
let _msg = $.prop($$props, "_msg", 8, void 0);
|
|
@@ -1495,6 +1504,9 @@ function KolInputText($$anchor, $$props) {
|
|
|
1495
1504
|
const setProp = (prop, value) => {
|
|
1496
1505
|
if ($.get(__ref)) $.mutate(__ref, $.get(__ref)[prop] = value);
|
|
1497
1506
|
};
|
|
1507
|
+
$.legacy_pre_effect(() => ($.get(__mounted), $.deep_read_state(_infoPopover())), () => {
|
|
1508
|
+
if ($.get(__mounted)) setProp("_infoPopover", _infoPopover());
|
|
1509
|
+
});
|
|
1498
1510
|
$.legacy_pre_effect(() => ($.get(__mounted), $.deep_read_state(_on())), () => {
|
|
1499
1511
|
if ($.get(__mounted)) setProp("_on", _on());
|
|
1500
1512
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/svelte",
|
|
3
|
-
"version": "4.3.0",
|
|
3
|
+
"version": "4.3.1-rc.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"svelte": "5.55.7",
|
|
51
51
|
"typescript": "5.9.3",
|
|
52
52
|
"unbuild": "3.6.1",
|
|
53
|
-
"@public-ui/components": "4.3.0"
|
|
53
|
+
"@public-ui/components": "4.3.1-rc.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"svelte": "5.x",
|
|
57
|
-
"@public-ui/components": "4.3.0"
|
|
57
|
+
"@public-ui/components": "4.3.1-rc.0"
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false,
|
|
60
60
|
"type": "module",
|