@ucme-ui/angular 0.10.0 → 0.10.2
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/API.md +5 -0
- package/fesm2022/ucme-ui-angular.mjs +177 -81
- package/fesm2022/ucme-ui-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ucme-ui-angular.d.ts +91 -39
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ApplicationRef, ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, EnvironmentInjector, Injectable, InjectionToken, Injector, TemplateRef, ViewEncapsulation, afterNextRender, booleanAttribute, computed, contentChild, contentChildren, createComponent, effect, forwardRef, inject, input, isDevMode, model, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
2
|
+
import { ApplicationRef, ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, EnvironmentInjector, Injectable, InjectionToken, Injector, TemplateRef, ViewEncapsulation, afterNextRender, booleanAttribute, computed, contentChild, contentChildren, createComponent, effect, forwardRef, inject, input, isDevMode, linkedSignal, model, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import { NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl } from "@angular/forms";
|
|
4
4
|
import { NgTemplateOutlet } from "@angular/common";
|
|
5
5
|
import { NavigationEnd, Router, RouterLink, RouterLinkActive } from "@angular/router";
|
|
@@ -1220,7 +1220,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1220
1220
|
}
|
|
1221
1221
|
});
|
|
1222
1222
|
var HuCheckbox = class HuCheckbox {
|
|
1223
|
-
|
|
1223
|
+
checkedInput = input(false, {
|
|
1224
|
+
...ngDevMode ? { debugName: "checkedInput" } : /* istanbul ignore next */ {},
|
|
1225
|
+
alias: "checked",
|
|
1226
|
+
transform: booleanAttribute
|
|
1227
|
+
});
|
|
1228
|
+
checkedChange = output();
|
|
1229
|
+
checked = linkedSignal(() => this.checkedInput(), ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
|
|
1224
1230
|
indeterminate = model(false, ...ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []);
|
|
1225
1231
|
disabled = input(false, {
|
|
1226
1232
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
@@ -1239,6 +1245,7 @@ var HuCheckbox = class HuCheckbox {
|
|
|
1239
1245
|
onInputChange(event) {
|
|
1240
1246
|
const value = event.target.checked;
|
|
1241
1247
|
this.indeterminate.set(false);
|
|
1248
|
+
if (!Object.is(this.checked(), value)) this.checkedChange.emit(value);
|
|
1242
1249
|
this.checked.set(value);
|
|
1243
1250
|
this.onChange(value);
|
|
1244
1251
|
}
|
|
@@ -1269,8 +1276,8 @@ var HuCheckbox = class HuCheckbox {
|
|
|
1269
1276
|
isStandalone: true,
|
|
1270
1277
|
selector: "hu-checkbox",
|
|
1271
1278
|
inputs: {
|
|
1272
|
-
|
|
1273
|
-
classPropertyName: "
|
|
1279
|
+
checkedInput: {
|
|
1280
|
+
classPropertyName: "checkedInput",
|
|
1274
1281
|
publicName: "checked",
|
|
1275
1282
|
isSignal: true,
|
|
1276
1283
|
isRequired: false,
|
|
@@ -1313,7 +1320,7 @@ var HuCheckbox = class HuCheckbox {
|
|
|
1313
1320
|
}
|
|
1314
1321
|
},
|
|
1315
1322
|
outputs: {
|
|
1316
|
-
|
|
1323
|
+
checkedChange: "checkedChange",
|
|
1317
1324
|
indeterminate: "indeterminateChange"
|
|
1318
1325
|
},
|
|
1319
1326
|
host: { classAttribute: "hu-checkbox" },
|
|
@@ -1402,14 +1409,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1402
1409
|
}]
|
|
1403
1410
|
}],
|
|
1404
1411
|
propDecorators: {
|
|
1405
|
-
|
|
1412
|
+
checkedInput: [{
|
|
1406
1413
|
type: i0.Input,
|
|
1407
1414
|
args: [{
|
|
1408
1415
|
isSignal: true,
|
|
1409
1416
|
alias: "checked",
|
|
1410
1417
|
required: false
|
|
1411
1418
|
}]
|
|
1412
|
-
},
|
|
1419
|
+
}],
|
|
1420
|
+
checkedChange: [{
|
|
1413
1421
|
type: i0.Output,
|
|
1414
1422
|
args: ["checkedChange"]
|
|
1415
1423
|
}],
|
|
@@ -1459,7 +1467,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1459
1467
|
}
|
|
1460
1468
|
});
|
|
1461
1469
|
var HuSwitch = class HuSwitch {
|
|
1462
|
-
|
|
1470
|
+
checkedInput = input(false, {
|
|
1471
|
+
...ngDevMode ? { debugName: "checkedInput" } : /* istanbul ignore next */ {},
|
|
1472
|
+
alias: "checked",
|
|
1473
|
+
transform: booleanAttribute
|
|
1474
|
+
});
|
|
1475
|
+
checkedChange = output();
|
|
1476
|
+
checked = linkedSignal(() => this.checkedInput(), ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
|
|
1463
1477
|
disabled = input(false, {
|
|
1464
1478
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1465
1479
|
transform: booleanAttribute
|
|
@@ -1475,6 +1489,7 @@ var HuSwitch = class HuSwitch {
|
|
|
1475
1489
|
onTouched = () => {};
|
|
1476
1490
|
onInputChange(event) {
|
|
1477
1491
|
const value = event.target.checked;
|
|
1492
|
+
if (!Object.is(this.checked(), value)) this.checkedChange.emit(value);
|
|
1478
1493
|
this.checked.set(value);
|
|
1479
1494
|
this.onChange(value);
|
|
1480
1495
|
}
|
|
@@ -1505,8 +1520,8 @@ var HuSwitch = class HuSwitch {
|
|
|
1505
1520
|
isStandalone: true,
|
|
1506
1521
|
selector: "hu-switch",
|
|
1507
1522
|
inputs: {
|
|
1508
|
-
|
|
1509
|
-
classPropertyName: "
|
|
1523
|
+
checkedInput: {
|
|
1524
|
+
classPropertyName: "checkedInput",
|
|
1510
1525
|
publicName: "checked",
|
|
1511
1526
|
isSignal: true,
|
|
1512
1527
|
isRequired: false,
|
|
@@ -1534,7 +1549,7 @@ var HuSwitch = class HuSwitch {
|
|
|
1534
1549
|
transformFunction: null
|
|
1535
1550
|
}
|
|
1536
1551
|
},
|
|
1537
|
-
outputs: {
|
|
1552
|
+
outputs: { checkedChange: "checkedChange" },
|
|
1538
1553
|
host: { classAttribute: "hu-switch" },
|
|
1539
1554
|
providers: [{
|
|
1540
1555
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1605,14 +1620,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1605
1620
|
}]
|
|
1606
1621
|
}],
|
|
1607
1622
|
propDecorators: {
|
|
1608
|
-
|
|
1623
|
+
checkedInput: [{
|
|
1609
1624
|
type: i0.Input,
|
|
1610
1625
|
args: [{
|
|
1611
1626
|
isSignal: true,
|
|
1612
1627
|
alias: "checked",
|
|
1613
1628
|
required: false
|
|
1614
1629
|
}]
|
|
1615
|
-
},
|
|
1630
|
+
}],
|
|
1631
|
+
checkedChange: [{
|
|
1616
1632
|
type: i0.Output,
|
|
1617
1633
|
args: ["checkedChange"]
|
|
1618
1634
|
}],
|
|
@@ -2239,7 +2255,12 @@ var HuDatePicker = class HuDatePicker {
|
|
|
2239
2255
|
host: true
|
|
2240
2256
|
});
|
|
2241
2257
|
mode = input("single", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
2242
|
-
|
|
2258
|
+
valueInput = input(null, {
|
|
2259
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
2260
|
+
alias: "value"
|
|
2261
|
+
});
|
|
2262
|
+
valueChange = output();
|
|
2263
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
2243
2264
|
min = input(null, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
|
|
2244
2265
|
max = input(null, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
2245
2266
|
dateFilter = input(null, ...ngDevMode ? [{ debugName: "dateFilter" }] : /* istanbul ignore next */ []);
|
|
@@ -2401,6 +2422,7 @@ var HuDatePicker = class HuDatePicker {
|
|
|
2401
2422
|
if (parsed) this.commit(parsed);
|
|
2402
2423
|
else {
|
|
2403
2424
|
this.parseError.set(true);
|
|
2425
|
+
if (!Object.is(this.value(), null)) this.valueChange.emit(null);
|
|
2404
2426
|
this.value.set(null);
|
|
2405
2427
|
this.text.set(text);
|
|
2406
2428
|
this.onChange(null);
|
|
@@ -2408,6 +2430,7 @@ var HuDatePicker = class HuDatePicker {
|
|
|
2408
2430
|
}
|
|
2409
2431
|
commit(value) {
|
|
2410
2432
|
this.parseError.set(false);
|
|
2433
|
+
if (!Object.is(this.value(), value)) this.valueChange.emit(value);
|
|
2411
2434
|
this.value.set(value);
|
|
2412
2435
|
this.text.set(this.format(value));
|
|
2413
2436
|
this.onChange(value);
|
|
@@ -2497,8 +2520,8 @@ var HuDatePicker = class HuDatePicker {
|
|
|
2497
2520
|
isRequired: false,
|
|
2498
2521
|
transformFunction: null
|
|
2499
2522
|
},
|
|
2500
|
-
|
|
2501
|
-
classPropertyName: "
|
|
2523
|
+
valueInput: {
|
|
2524
|
+
classPropertyName: "valueInput",
|
|
2502
2525
|
publicName: "value",
|
|
2503
2526
|
isSignal: true,
|
|
2504
2527
|
isRequired: false,
|
|
@@ -2561,7 +2584,7 @@ var HuDatePicker = class HuDatePicker {
|
|
|
2561
2584
|
transformFunction: null
|
|
2562
2585
|
}
|
|
2563
2586
|
},
|
|
2564
|
-
outputs: {
|
|
2587
|
+
outputs: { valueChange: "valueChange" },
|
|
2565
2588
|
host: {
|
|
2566
2589
|
listeners: {
|
|
2567
2590
|
"focusout": "onFocusOut($event)",
|
|
@@ -2719,14 +2742,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2719
2742
|
required: false
|
|
2720
2743
|
}]
|
|
2721
2744
|
}],
|
|
2722
|
-
|
|
2745
|
+
valueInput: [{
|
|
2723
2746
|
type: i0.Input,
|
|
2724
2747
|
args: [{
|
|
2725
2748
|
isSignal: true,
|
|
2726
2749
|
alias: "value",
|
|
2727
2750
|
required: false
|
|
2728
2751
|
}]
|
|
2729
|
-
},
|
|
2752
|
+
}],
|
|
2753
|
+
valueChange: [{
|
|
2730
2754
|
type: i0.Output,
|
|
2731
2755
|
args: ["valueChange"]
|
|
2732
2756
|
}],
|
|
@@ -3008,7 +3032,7 @@ var HuDialog = class HuDialog {
|
|
|
3008
3032
|
</dialog>
|
|
3009
3033
|
`,
|
|
3010
3034
|
isInline: true,
|
|
3011
|
-
styles: [".hu-dialog-host{display:contents}html:has(.hu-dialog[open]){overflow:hidden}.hu-dialog{width:calc(100vw - 2rem);max-width:32rem;max-height:calc(100dvh - 4rem);padding:0;color:var(--hu-text);background:var(--hu-surface);border:1px solid var(--hu-border);border-radius:var(--hu-radius-xl);box-shadow:var(--hu-shadow-lg)}.hu-dialog[data-size=sm]{max-width:24rem}.hu-dialog[data-size=lg]{max-width:44rem}.hu-dialog[data-size=xl]{max-width:60rem}.hu-dialog::backdrop{background:#0c0c0e80;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.hu-dialog[open]{animation:hu-dialog-in .18s cubic-bezier(.2,.9,.3,1)}.hu-dialog[open]::backdrop{animation:hu-fade-in .18s ease-out}.hu-dialog__panel{display:flex;flex-direction:column;
|
|
3035
|
+
styles: [".hu-dialog-host{display:contents}html:has(.hu-dialog[open]){overflow:hidden}.hu-dialog{width:calc(100vw - 2rem);max-width:32rem;max-height:calc(100dvh - 4rem);padding:0;color:var(--hu-text);background:var(--hu-surface);border:1px solid var(--hu-border);border-radius:var(--hu-radius-xl);box-shadow:var(--hu-shadow-lg)}.hu-dialog[data-size=sm]{max-width:24rem}.hu-dialog[data-size=lg]{max-width:44rem}.hu-dialog[data-size=xl]{max-width:60rem}.hu-dialog::backdrop{background:#0c0c0e80;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.hu-dialog[open]{display:flex;flex-direction:column;overflow:hidden;animation:hu-dialog-in .18s cubic-bezier(.2,.9,.3,1)}.hu-dialog[open]::backdrop{animation:hu-fade-in .18s ease-out}.hu-dialog__panel{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}.hu-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--hu-space-4);flex-shrink:0;padding:var(--hu-space-5) var(--hu-space-6) var(--hu-space-3)}.hu-dialog__title{font-size:var(--hu-text-lg)}.hu-dialog__description{margin-top:var(--hu-space-1);color:var(--hu-text-muted)}.hu-dialog__close{display:inline-flex;margin:-4px -8px 0 0;padding:6px;color:var(--hu-text-subtle);background:none;border:0;border-radius:var(--hu-radius-md);cursor:pointer}.hu-dialog__close:hover{color:var(--hu-text);background:var(--hu-surface-3)}.hu-dialog__body{flex:1 1 auto;min-height:0;padding:var(--hu-space-2) var(--hu-space-6) var(--hu-space-5);overflow-y:auto;overscroll-behavior:contain;overflow-wrap:break-word}.hu-dialog__footer{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;gap:var(--hu-space-2);padding:var(--hu-space-4) var(--hu-space-6);background:var(--hu-surface-2);border-top:1px solid var(--hu-border);border-radius:0 0 var(--hu-radius-xl) var(--hu-radius-xl)}@keyframes hu-dialog-in{0%{opacity:0;transform:translateY(8px) scale(.98)}}@keyframes hu-fade-in{0%{opacity:0}}\n"],
|
|
3012
3036
|
dependencies: [{
|
|
3013
3037
|
kind: "component",
|
|
3014
3038
|
type: HuIcon,
|
|
@@ -3065,7 +3089,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3065
3089
|
host: { class: "hu-dialog-host" },
|
|
3066
3090
|
encapsulation: ViewEncapsulation.None,
|
|
3067
3091
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3068
|
-
styles: [".hu-dialog-host{display:contents}html:has(.hu-dialog[open]){overflow:hidden}.hu-dialog{width:calc(100vw - 2rem);max-width:32rem;max-height:calc(100dvh - 4rem);padding:0;color:var(--hu-text);background:var(--hu-surface);border:1px solid var(--hu-border);border-radius:var(--hu-radius-xl);box-shadow:var(--hu-shadow-lg)}.hu-dialog[data-size=sm]{max-width:24rem}.hu-dialog[data-size=lg]{max-width:44rem}.hu-dialog[data-size=xl]{max-width:60rem}.hu-dialog::backdrop{background:#0c0c0e80;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.hu-dialog[open]{animation:hu-dialog-in .18s cubic-bezier(.2,.9,.3,1)}.hu-dialog[open]::backdrop{animation:hu-fade-in .18s ease-out}.hu-dialog__panel{display:flex;flex-direction:column;
|
|
3092
|
+
styles: [".hu-dialog-host{display:contents}html:has(.hu-dialog[open]){overflow:hidden}.hu-dialog{width:calc(100vw - 2rem);max-width:32rem;max-height:calc(100dvh - 4rem);padding:0;color:var(--hu-text);background:var(--hu-surface);border:1px solid var(--hu-border);border-radius:var(--hu-radius-xl);box-shadow:var(--hu-shadow-lg)}.hu-dialog[data-size=sm]{max-width:24rem}.hu-dialog[data-size=lg]{max-width:44rem}.hu-dialog[data-size=xl]{max-width:60rem}.hu-dialog::backdrop{background:#0c0c0e80;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.hu-dialog[open]{display:flex;flex-direction:column;overflow:hidden;animation:hu-dialog-in .18s cubic-bezier(.2,.9,.3,1)}.hu-dialog[open]::backdrop{animation:hu-fade-in .18s ease-out}.hu-dialog__panel{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}.hu-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--hu-space-4);flex-shrink:0;padding:var(--hu-space-5) var(--hu-space-6) var(--hu-space-3)}.hu-dialog__title{font-size:var(--hu-text-lg)}.hu-dialog__description{margin-top:var(--hu-space-1);color:var(--hu-text-muted)}.hu-dialog__close{display:inline-flex;margin:-4px -8px 0 0;padding:6px;color:var(--hu-text-subtle);background:none;border:0;border-radius:var(--hu-radius-md);cursor:pointer}.hu-dialog__close:hover{color:var(--hu-text);background:var(--hu-surface-3)}.hu-dialog__body{flex:1 1 auto;min-height:0;padding:var(--hu-space-2) var(--hu-space-6) var(--hu-space-5);overflow-y:auto;overscroll-behavior:contain;overflow-wrap:break-word}.hu-dialog__footer{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;gap:var(--hu-space-2);padding:var(--hu-space-4) var(--hu-space-6);background:var(--hu-surface-2);border-top:1px solid var(--hu-border);border-radius:0 0 var(--hu-radius-xl) var(--hu-radius-xl)}@keyframes hu-dialog-in{0%{opacity:0;transform:translateY(8px) scale(.98)}}@keyframes hu-fade-in{0%{opacity:0}}\n"]
|
|
3069
3093
|
}]
|
|
3070
3094
|
}],
|
|
3071
3095
|
ctorParameters: () => [],
|
|
@@ -5034,7 +5058,12 @@ var HuEditor = class HuEditor {
|
|
|
5034
5058
|
optional: true,
|
|
5035
5059
|
host: true
|
|
5036
5060
|
});
|
|
5037
|
-
|
|
5061
|
+
valueInput = input("", {
|
|
5062
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
5063
|
+
alias: "value"
|
|
5064
|
+
});
|
|
5065
|
+
valueChange = output();
|
|
5066
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
5038
5067
|
placeholder = input("Yazmaya başlayın…", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
5039
5068
|
toolbar = input(HU_EDITOR_DEFAULT_TOOLBAR, ...ngDevMode ? [{ debugName: "toolbar" }] : /* istanbul ignore next */ []);
|
|
5040
5069
|
readonly = input(false, {
|
|
@@ -5415,6 +5444,7 @@ var HuEditor = class HuEditor {
|
|
|
5415
5444
|
this.updateState();
|
|
5416
5445
|
if (html === this.lastEmitted) return;
|
|
5417
5446
|
this.lastEmitted = html;
|
|
5447
|
+
if (!Object.is(this.value(), html)) this.valueChange.emit(html);
|
|
5418
5448
|
this.value.set(html);
|
|
5419
5449
|
this.onChange(html);
|
|
5420
5450
|
}
|
|
@@ -5502,8 +5532,8 @@ var HuEditor = class HuEditor {
|
|
|
5502
5532
|
isStandalone: true,
|
|
5503
5533
|
selector: "hu-editor",
|
|
5504
5534
|
inputs: {
|
|
5505
|
-
|
|
5506
|
-
classPropertyName: "
|
|
5535
|
+
valueInput: {
|
|
5536
|
+
classPropertyName: "valueInput",
|
|
5507
5537
|
publicName: "value",
|
|
5508
5538
|
isSignal: true,
|
|
5509
5539
|
isRequired: false,
|
|
@@ -5587,7 +5617,7 @@ var HuEditor = class HuEditor {
|
|
|
5587
5617
|
transformFunction: null
|
|
5588
5618
|
}
|
|
5589
5619
|
},
|
|
5590
|
-
outputs: {
|
|
5620
|
+
outputs: { valueChange: "valueChange" },
|
|
5591
5621
|
host: {
|
|
5592
5622
|
listeners: {
|
|
5593
5623
|
"focusin": "focused.set(true)",
|
|
@@ -5725,14 +5755,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5725
5755
|
}],
|
|
5726
5756
|
ctorParameters: () => [],
|
|
5727
5757
|
propDecorators: {
|
|
5728
|
-
|
|
5758
|
+
valueInput: [{
|
|
5729
5759
|
type: i0.Input,
|
|
5730
5760
|
args: [{
|
|
5731
5761
|
isSignal: true,
|
|
5732
5762
|
alias: "value",
|
|
5733
5763
|
required: false
|
|
5734
5764
|
}]
|
|
5735
|
-
},
|
|
5765
|
+
}],
|
|
5766
|
+
valueChange: [{
|
|
5736
5767
|
type: i0.Output,
|
|
5737
5768
|
args: ["valueChange"]
|
|
5738
5769
|
}],
|
|
@@ -5887,7 +5918,12 @@ var HuFileUpload = class HuFileUpload {
|
|
|
5887
5918
|
optional: true,
|
|
5888
5919
|
host: true
|
|
5889
5920
|
});
|
|
5890
|
-
|
|
5921
|
+
filesInput = input([], {
|
|
5922
|
+
...ngDevMode ? { debugName: "filesInput" } : /* istanbul ignore next */ {},
|
|
5923
|
+
alias: "files"
|
|
5924
|
+
});
|
|
5925
|
+
filesChange = output();
|
|
5926
|
+
files = linkedSignal(() => this.filesInput(), ...ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []);
|
|
5891
5927
|
fileList = computed(() => this.files() ?? [], ...ngDevMode ? [{ debugName: "fileList" }] : /* istanbul ignore next */ []);
|
|
5892
5928
|
accept = input("", ...ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []);
|
|
5893
5929
|
multiple = input(false, {
|
|
@@ -6093,6 +6129,7 @@ var HuFileUpload = class HuFileUpload {
|
|
|
6093
6129
|
}));
|
|
6094
6130
|
}
|
|
6095
6131
|
setFiles(files) {
|
|
6132
|
+
if (!Object.is(this.files(), files)) this.filesChange.emit(files);
|
|
6096
6133
|
this.files.set(files);
|
|
6097
6134
|
this.syncMeta(files);
|
|
6098
6135
|
this.onChange(files);
|
|
@@ -6138,8 +6175,8 @@ var HuFileUpload = class HuFileUpload {
|
|
|
6138
6175
|
isStandalone: true,
|
|
6139
6176
|
selector: "hu-file-upload",
|
|
6140
6177
|
inputs: {
|
|
6141
|
-
|
|
6142
|
-
classPropertyName: "
|
|
6178
|
+
filesInput: {
|
|
6179
|
+
classPropertyName: "filesInput",
|
|
6143
6180
|
publicName: "files",
|
|
6144
6181
|
isSignal: true,
|
|
6145
6182
|
isRequired: false,
|
|
@@ -6217,7 +6254,7 @@ var HuFileUpload = class HuFileUpload {
|
|
|
6217
6254
|
}
|
|
6218
6255
|
},
|
|
6219
6256
|
outputs: {
|
|
6220
|
-
|
|
6257
|
+
filesChange: "filesChange",
|
|
6221
6258
|
rejected: "rejected",
|
|
6222
6259
|
uploaded: "uploaded",
|
|
6223
6260
|
uploadError: "uploadError",
|
|
@@ -6308,14 +6345,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6308
6345
|
}],
|
|
6309
6346
|
ctorParameters: () => [],
|
|
6310
6347
|
propDecorators: {
|
|
6311
|
-
|
|
6348
|
+
filesInput: [{
|
|
6312
6349
|
type: i0.Input,
|
|
6313
6350
|
args: [{
|
|
6314
6351
|
isSignal: true,
|
|
6315
6352
|
alias: "files",
|
|
6316
6353
|
required: false
|
|
6317
6354
|
}]
|
|
6318
|
-
},
|
|
6355
|
+
}],
|
|
6356
|
+
filesChange: [{
|
|
6319
6357
|
type: i0.Output,
|
|
6320
6358
|
args: ["filesChange"]
|
|
6321
6359
|
}],
|
|
@@ -6442,7 +6480,12 @@ var HuFileInput = class HuFileInput {
|
|
|
6442
6480
|
optional: true,
|
|
6443
6481
|
host: true
|
|
6444
6482
|
});
|
|
6445
|
-
|
|
6483
|
+
valueInput = input(null, {
|
|
6484
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
6485
|
+
alias: "value"
|
|
6486
|
+
});
|
|
6487
|
+
valueChange = output();
|
|
6488
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
6446
6489
|
label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
|
|
6447
6490
|
required = input(false, {
|
|
6448
6491
|
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
@@ -6651,6 +6694,7 @@ var HuFileInput = class HuFileInput {
|
|
|
6651
6694
|
}
|
|
6652
6695
|
setValue(value) {
|
|
6653
6696
|
this.resetStatus();
|
|
6697
|
+
if (!Object.is(this.value(), value)) this.valueChange.emit(value);
|
|
6654
6698
|
this.value.set(value);
|
|
6655
6699
|
this.onChange(value);
|
|
6656
6700
|
}
|
|
@@ -6681,8 +6725,8 @@ var HuFileInput = class HuFileInput {
|
|
|
6681
6725
|
isStandalone: true,
|
|
6682
6726
|
selector: "hu-file-input",
|
|
6683
6727
|
inputs: {
|
|
6684
|
-
|
|
6685
|
-
classPropertyName: "
|
|
6728
|
+
valueInput: {
|
|
6729
|
+
classPropertyName: "valueInput",
|
|
6686
6730
|
publicName: "value",
|
|
6687
6731
|
isSignal: true,
|
|
6688
6732
|
isRequired: false,
|
|
@@ -6774,7 +6818,7 @@ var HuFileInput = class HuFileInput {
|
|
|
6774
6818
|
}
|
|
6775
6819
|
},
|
|
6776
6820
|
outputs: {
|
|
6777
|
-
|
|
6821
|
+
valueChange: "valueChange",
|
|
6778
6822
|
rejected: "rejected",
|
|
6779
6823
|
uploaded: "uploaded",
|
|
6780
6824
|
uploadError: "uploadError",
|
|
@@ -6891,14 +6935,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6891
6935
|
}]
|
|
6892
6936
|
}],
|
|
6893
6937
|
propDecorators: {
|
|
6894
|
-
|
|
6938
|
+
valueInput: [{
|
|
6895
6939
|
type: i0.Input,
|
|
6896
6940
|
args: [{
|
|
6897
6941
|
isSignal: true,
|
|
6898
6942
|
alias: "value",
|
|
6899
6943
|
required: false
|
|
6900
6944
|
}]
|
|
6901
|
-
},
|
|
6945
|
+
}],
|
|
6946
|
+
valueChange: [{
|
|
6902
6947
|
type: i0.Output,
|
|
6903
6948
|
args: ["valueChange"]
|
|
6904
6949
|
}],
|
|
@@ -7037,7 +7082,12 @@ var HuInputNumber = class HuInputNumber {
|
|
|
7037
7082
|
optional: true,
|
|
7038
7083
|
host: true
|
|
7039
7084
|
});
|
|
7040
|
-
|
|
7085
|
+
valueInput = input(null, {
|
|
7086
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
7087
|
+
alias: "value"
|
|
7088
|
+
});
|
|
7089
|
+
valueChange = output();
|
|
7090
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
7041
7091
|
min = input(null, {
|
|
7042
7092
|
...ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {},
|
|
7043
7093
|
transform: optionalNumber
|
|
@@ -7207,6 +7257,7 @@ var HuInputNumber = class HuInputNumber {
|
|
|
7207
7257
|
el.setSelectionRange(pos, pos);
|
|
7208
7258
|
const parsed = parseNumber(formatted);
|
|
7209
7259
|
if (parsed !== this.value()) {
|
|
7260
|
+
if (!Object.is(this.value(), parsed)) this.valueChange.emit(parsed);
|
|
7210
7261
|
this.value.set(parsed);
|
|
7211
7262
|
this.onChange(parsed);
|
|
7212
7263
|
}
|
|
@@ -7266,6 +7317,7 @@ var HuInputNumber = class HuInputNumber {
|
|
|
7266
7317
|
const el = this.input().nativeElement;
|
|
7267
7318
|
if (el.value !== this.text()) el.value = this.text();
|
|
7268
7319
|
if (value === this.value()) return;
|
|
7320
|
+
if (!Object.is(this.value(), value)) this.valueChange.emit(value);
|
|
7269
7321
|
this.value.set(value);
|
|
7270
7322
|
this.onChange(value);
|
|
7271
7323
|
}
|
|
@@ -7330,8 +7382,8 @@ var HuInputNumber = class HuInputNumber {
|
|
|
7330
7382
|
isStandalone: true,
|
|
7331
7383
|
selector: "hu-input-number",
|
|
7332
7384
|
inputs: {
|
|
7333
|
-
|
|
7334
|
-
classPropertyName: "
|
|
7385
|
+
valueInput: {
|
|
7386
|
+
classPropertyName: "valueInput",
|
|
7335
7387
|
publicName: "value",
|
|
7336
7388
|
isSignal: true,
|
|
7337
7389
|
isRequired: false,
|
|
@@ -7457,7 +7509,7 @@ var HuInputNumber = class HuInputNumber {
|
|
|
7457
7509
|
transformFunction: null
|
|
7458
7510
|
}
|
|
7459
7511
|
},
|
|
7460
|
-
outputs: {
|
|
7512
|
+
outputs: { valueChange: "valueChange" },
|
|
7461
7513
|
host: {
|
|
7462
7514
|
properties: {
|
|
7463
7515
|
"attr.data-buttons": "buttons()",
|
|
@@ -7553,14 +7605,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7553
7605
|
}],
|
|
7554
7606
|
ctorParameters: () => [],
|
|
7555
7607
|
propDecorators: {
|
|
7556
|
-
|
|
7608
|
+
valueInput: [{
|
|
7557
7609
|
type: i0.Input,
|
|
7558
7610
|
args: [{
|
|
7559
7611
|
isSignal: true,
|
|
7560
7612
|
alias: "value",
|
|
7561
7613
|
required: false
|
|
7562
7614
|
}]
|
|
7563
|
-
},
|
|
7615
|
+
}],
|
|
7616
|
+
valueChange: [{
|
|
7564
7617
|
type: i0.Output,
|
|
7565
7618
|
args: ["valueChange"]
|
|
7566
7619
|
}],
|
|
@@ -7740,7 +7793,12 @@ var HuMultiSelect = class HuMultiSelect {
|
|
|
7740
7793
|
host: true
|
|
7741
7794
|
});
|
|
7742
7795
|
options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
7743
|
-
|
|
7796
|
+
valueInput = input([], {
|
|
7797
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
7798
|
+
alias: "value"
|
|
7799
|
+
});
|
|
7800
|
+
valueChange = output();
|
|
7801
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
7744
7802
|
values = computed(() => this.value() ?? [], ...ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []);
|
|
7745
7803
|
placeholder = input("Seçin", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
7746
7804
|
filter = input(true, {
|
|
@@ -8002,6 +8060,7 @@ var HuMultiSelect = class HuMultiSelect {
|
|
|
8002
8060
|
if (disabled) this.close();
|
|
8003
8061
|
}
|
|
8004
8062
|
commit(value) {
|
|
8063
|
+
if (!Object.is(this.value(), value)) this.valueChange.emit(value);
|
|
8005
8064
|
this.value.set(value);
|
|
8006
8065
|
this.onChange(value);
|
|
8007
8066
|
if (this.open()) afterNextRender(() => this.positionPanel(), { injector: this.injector });
|
|
@@ -8063,8 +8122,8 @@ var HuMultiSelect = class HuMultiSelect {
|
|
|
8063
8122
|
isRequired: false,
|
|
8064
8123
|
transformFunction: null
|
|
8065
8124
|
},
|
|
8066
|
-
|
|
8067
|
-
classPropertyName: "
|
|
8125
|
+
valueInput: {
|
|
8126
|
+
classPropertyName: "valueInput",
|
|
8068
8127
|
publicName: "value",
|
|
8069
8128
|
isSignal: true,
|
|
8070
8129
|
isRequired: false,
|
|
@@ -8170,7 +8229,7 @@ var HuMultiSelect = class HuMultiSelect {
|
|
|
8170
8229
|
}
|
|
8171
8230
|
},
|
|
8172
8231
|
outputs: {
|
|
8173
|
-
|
|
8232
|
+
valueChange: "valueChange",
|
|
8174
8233
|
closed: "closed"
|
|
8175
8234
|
},
|
|
8176
8235
|
host: {
|
|
@@ -8283,14 +8342,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8283
8342
|
required: false
|
|
8284
8343
|
}]
|
|
8285
8344
|
}],
|
|
8286
|
-
|
|
8345
|
+
valueInput: [{
|
|
8287
8346
|
type: i0.Input,
|
|
8288
8347
|
args: [{
|
|
8289
8348
|
isSignal: true,
|
|
8290
8349
|
alias: "value",
|
|
8291
8350
|
required: false
|
|
8292
8351
|
}]
|
|
8293
|
-
},
|
|
8352
|
+
}],
|
|
8353
|
+
valueChange: [{
|
|
8294
8354
|
type: i0.Output,
|
|
8295
8355
|
args: ["valueChange"]
|
|
8296
8356
|
}],
|
|
@@ -8437,7 +8497,12 @@ var HuSelect = class HuSelect {
|
|
|
8437
8497
|
host: true
|
|
8438
8498
|
});
|
|
8439
8499
|
options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
8440
|
-
|
|
8500
|
+
valueInput = input(null, {
|
|
8501
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
8502
|
+
alias: "value"
|
|
8503
|
+
});
|
|
8504
|
+
valueChange = output();
|
|
8505
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
8441
8506
|
placeholder = input("Seçin", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
8442
8507
|
filter = input("auto", {
|
|
8443
8508
|
...ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {},
|
|
@@ -8680,6 +8745,7 @@ var HuSelect = class HuSelect {
|
|
|
8680
8745
|
if (disabled) this.close();
|
|
8681
8746
|
}
|
|
8682
8747
|
commit(value) {
|
|
8748
|
+
if (!Object.is(this.value(), value)) this.valueChange.emit(value);
|
|
8683
8749
|
this.value.set(value);
|
|
8684
8750
|
this.onChange(value);
|
|
8685
8751
|
this.selectionChange.emit(value);
|
|
@@ -8748,8 +8814,8 @@ var HuSelect = class HuSelect {
|
|
|
8748
8814
|
isRequired: false,
|
|
8749
8815
|
transformFunction: null
|
|
8750
8816
|
},
|
|
8751
|
-
|
|
8752
|
-
classPropertyName: "
|
|
8817
|
+
valueInput: {
|
|
8818
|
+
classPropertyName: "valueInput",
|
|
8753
8819
|
publicName: "value",
|
|
8754
8820
|
isSignal: true,
|
|
8755
8821
|
isRequired: false,
|
|
@@ -8834,7 +8900,7 @@ var HuSelect = class HuSelect {
|
|
|
8834
8900
|
}
|
|
8835
8901
|
},
|
|
8836
8902
|
outputs: {
|
|
8837
|
-
|
|
8903
|
+
valueChange: "valueChange",
|
|
8838
8904
|
selectionChange: "selectionChange",
|
|
8839
8905
|
closed: "closed"
|
|
8840
8906
|
},
|
|
@@ -8948,14 +9014,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8948
9014
|
required: false
|
|
8949
9015
|
}]
|
|
8950
9016
|
}],
|
|
8951
|
-
|
|
9017
|
+
valueInput: [{
|
|
8952
9018
|
type: i0.Input,
|
|
8953
9019
|
args: [{
|
|
8954
9020
|
isSignal: true,
|
|
8955
9021
|
alias: "value",
|
|
8956
9022
|
required: false
|
|
8957
9023
|
}]
|
|
8958
|
-
},
|
|
9024
|
+
}],
|
|
9025
|
+
valueChange: [{
|
|
8959
9026
|
type: i0.Output,
|
|
8960
9027
|
args: ["valueChange"]
|
|
8961
9028
|
}],
|
|
@@ -9439,7 +9506,12 @@ var HuPassword = class HuPassword {
|
|
|
9439
9506
|
optional: true,
|
|
9440
9507
|
host: true
|
|
9441
9508
|
});
|
|
9442
|
-
|
|
9509
|
+
valueInput = input("", {
|
|
9510
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
9511
|
+
alias: "value"
|
|
9512
|
+
});
|
|
9513
|
+
valueChange = output();
|
|
9514
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
9443
9515
|
toggleMask = input(true, {
|
|
9444
9516
|
...ngDevMode ? { debugName: "toggleMask" } : /* istanbul ignore next */ {},
|
|
9445
9517
|
transform: booleanAttribute
|
|
@@ -9512,6 +9584,7 @@ var HuPassword = class HuPassword {
|
|
|
9512
9584
|
this.errors.set(c.errors);
|
|
9513
9585
|
}
|
|
9514
9586
|
onInput(value) {
|
|
9587
|
+
if (!Object.is(this.value(), value)) this.valueChange.emit(value);
|
|
9515
9588
|
this.value.set(value);
|
|
9516
9589
|
this.onChange(value);
|
|
9517
9590
|
}
|
|
@@ -9569,8 +9642,8 @@ var HuPassword = class HuPassword {
|
|
|
9569
9642
|
isStandalone: true,
|
|
9570
9643
|
selector: "hu-password",
|
|
9571
9644
|
inputs: {
|
|
9572
|
-
|
|
9573
|
-
classPropertyName: "
|
|
9645
|
+
valueInput: {
|
|
9646
|
+
classPropertyName: "valueInput",
|
|
9574
9647
|
publicName: "value",
|
|
9575
9648
|
isSignal: true,
|
|
9576
9649
|
isRequired: false,
|
|
@@ -9661,7 +9734,7 @@ var HuPassword = class HuPassword {
|
|
|
9661
9734
|
transformFunction: null
|
|
9662
9735
|
}
|
|
9663
9736
|
},
|
|
9664
|
-
outputs: {
|
|
9737
|
+
outputs: { valueChange: "valueChange" },
|
|
9665
9738
|
host: { classAttribute: "hu-password" },
|
|
9666
9739
|
providers: [
|
|
9667
9740
|
{
|
|
@@ -9859,14 +9932,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9859
9932
|
}],
|
|
9860
9933
|
ctorParameters: () => [],
|
|
9861
9934
|
propDecorators: {
|
|
9862
|
-
|
|
9935
|
+
valueInput: [{
|
|
9863
9936
|
type: i0.Input,
|
|
9864
9937
|
args: [{
|
|
9865
9938
|
isSignal: true,
|
|
9866
9939
|
alias: "value",
|
|
9867
9940
|
required: false
|
|
9868
9941
|
}]
|
|
9869
|
-
},
|
|
9942
|
+
}],
|
|
9943
|
+
valueChange: [{
|
|
9870
9944
|
type: i0.Output,
|
|
9871
9945
|
args: ["valueChange"]
|
|
9872
9946
|
}],
|
|
@@ -10124,7 +10198,12 @@ var HuRadioGroup = class HuRadioGroup {
|
|
|
10124
10198
|
optional: true,
|
|
10125
10199
|
host: true
|
|
10126
10200
|
});
|
|
10127
|
-
|
|
10201
|
+
valueInput = input(null, {
|
|
10202
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
10203
|
+
alias: "value"
|
|
10204
|
+
});
|
|
10205
|
+
valueChange = output();
|
|
10206
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
10128
10207
|
options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
10129
10208
|
orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
10130
10209
|
variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
@@ -10164,6 +10243,7 @@ var HuRadioGroup = class HuRadioGroup {
|
|
|
10164
10243
|
}
|
|
10165
10244
|
select(value) {
|
|
10166
10245
|
if (this.isDisabled()) return;
|
|
10246
|
+
if (!Object.is(this.value(), value)) this.valueChange.emit(value);
|
|
10167
10247
|
this.value.set(value);
|
|
10168
10248
|
this.onChange(value);
|
|
10169
10249
|
}
|
|
@@ -10204,8 +10284,8 @@ var HuRadioGroup = class HuRadioGroup {
|
|
|
10204
10284
|
isStandalone: true,
|
|
10205
10285
|
selector: "hu-radio-group",
|
|
10206
10286
|
inputs: {
|
|
10207
|
-
|
|
10208
|
-
classPropertyName: "
|
|
10287
|
+
valueInput: {
|
|
10288
|
+
classPropertyName: "valueInput",
|
|
10209
10289
|
publicName: "value",
|
|
10210
10290
|
isSignal: true,
|
|
10211
10291
|
isRequired: false,
|
|
@@ -10261,7 +10341,7 @@ var HuRadioGroup = class HuRadioGroup {
|
|
|
10261
10341
|
transformFunction: null
|
|
10262
10342
|
}
|
|
10263
10343
|
},
|
|
10264
|
-
outputs: {
|
|
10344
|
+
outputs: { valueChange: "valueChange" },
|
|
10265
10345
|
host: {
|
|
10266
10346
|
attributes: { "role": "radiogroup" },
|
|
10267
10347
|
properties: {
|
|
@@ -10356,14 +10436,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10356
10436
|
}]
|
|
10357
10437
|
}],
|
|
10358
10438
|
propDecorators: {
|
|
10359
|
-
|
|
10439
|
+
valueInput: [{
|
|
10360
10440
|
type: i0.Input,
|
|
10361
10441
|
args: [{
|
|
10362
10442
|
isSignal: true,
|
|
10363
10443
|
alias: "value",
|
|
10364
10444
|
required: false
|
|
10365
10445
|
}]
|
|
10366
|
-
},
|
|
10446
|
+
}],
|
|
10447
|
+
valueChange: [{
|
|
10367
10448
|
type: i0.Output,
|
|
10368
10449
|
args: ["valueChange"]
|
|
10369
10450
|
}],
|
|
@@ -10435,7 +10516,12 @@ var HuRating = class HuRating {
|
|
|
10435
10516
|
optional: true,
|
|
10436
10517
|
host: true
|
|
10437
10518
|
});
|
|
10438
|
-
|
|
10519
|
+
valueInput = input(0, {
|
|
10520
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
10521
|
+
alias: "value"
|
|
10522
|
+
});
|
|
10523
|
+
valueChange = output();
|
|
10524
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
10439
10525
|
max = input(5, {
|
|
10440
10526
|
...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
|
|
10441
10527
|
transform: numberAttribute
|
|
@@ -10503,12 +10589,14 @@ var HuRating = class HuRating {
|
|
|
10503
10589
|
}
|
|
10504
10590
|
select(i) {
|
|
10505
10591
|
if (this.isDisabled()) return;
|
|
10592
|
+
if (!Object.is(this.value(), i)) this.valueChange.emit(i);
|
|
10506
10593
|
this.value.set(i);
|
|
10507
10594
|
this.onChange(i);
|
|
10508
10595
|
}
|
|
10509
10596
|
onClick(i) {
|
|
10510
10597
|
if (this.clearable() && this.value() === i && !this.isDisabled()) queueMicrotask(() => {
|
|
10511
10598
|
if (this.value() === i) {
|
|
10599
|
+
if (!Object.is(this.value(), 0)) this.valueChange.emit(0);
|
|
10512
10600
|
this.value.set(0);
|
|
10513
10601
|
this.hover.set(0);
|
|
10514
10602
|
this.onChange(0);
|
|
@@ -10550,8 +10638,8 @@ var HuRating = class HuRating {
|
|
|
10550
10638
|
isStandalone: true,
|
|
10551
10639
|
selector: "hu-rating",
|
|
10552
10640
|
inputs: {
|
|
10553
|
-
|
|
10554
|
-
classPropertyName: "
|
|
10641
|
+
valueInput: {
|
|
10642
|
+
classPropertyName: "valueInput",
|
|
10555
10643
|
publicName: "value",
|
|
10556
10644
|
isSignal: true,
|
|
10557
10645
|
isRequired: false,
|
|
@@ -10621,7 +10709,7 @@ var HuRating = class HuRating {
|
|
|
10621
10709
|
transformFunction: null
|
|
10622
10710
|
}
|
|
10623
10711
|
},
|
|
10624
|
-
outputs: {
|
|
10712
|
+
outputs: { valueChange: "valueChange" },
|
|
10625
10713
|
host: {
|
|
10626
10714
|
properties: {
|
|
10627
10715
|
"attr.data-size": "size()",
|
|
@@ -10766,14 +10854,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10766
10854
|
}]
|
|
10767
10855
|
}],
|
|
10768
10856
|
propDecorators: {
|
|
10769
|
-
|
|
10857
|
+
valueInput: [{
|
|
10770
10858
|
type: i0.Input,
|
|
10771
10859
|
args: [{
|
|
10772
10860
|
isSignal: true,
|
|
10773
10861
|
alias: "value",
|
|
10774
10862
|
required: false
|
|
10775
10863
|
}]
|
|
10776
|
-
},
|
|
10864
|
+
}],
|
|
10865
|
+
valueChange: [{
|
|
10777
10866
|
type: i0.Output,
|
|
10778
10867
|
args: ["valueChange"]
|
|
10779
10868
|
}],
|
|
@@ -16939,7 +17028,12 @@ var HuTreeSelect = class HuTreeSelect {
|
|
|
16939
17028
|
});
|
|
16940
17029
|
nodes = input([], ...ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []);
|
|
16941
17030
|
selectionMode = input("single", ...ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []);
|
|
16942
|
-
|
|
17031
|
+
valueInput = input(null, {
|
|
17032
|
+
...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
|
|
17033
|
+
alias: "value"
|
|
17034
|
+
});
|
|
17035
|
+
valueChange = output();
|
|
17036
|
+
value = linkedSignal(() => this.valueInput(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
16943
17037
|
placeholder = input("Seçin", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
16944
17038
|
filter = input(false, {
|
|
16945
17039
|
...ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {},
|
|
@@ -17194,6 +17288,7 @@ var HuTreeSelect = class HuTreeSelect {
|
|
|
17194
17288
|
if (!this.index().has(node.key)) this.seen.update((m) => new Map(m).set(node.key, node));
|
|
17195
17289
|
}
|
|
17196
17290
|
commit(value) {
|
|
17291
|
+
if (!Object.is(this.value(), value)) this.valueChange.emit(value);
|
|
17197
17292
|
this.value.set(value);
|
|
17198
17293
|
this.onChange(value);
|
|
17199
17294
|
if (this.open()) afterNextRender(() => this.positionPanel(), { injector: this.injector });
|
|
@@ -17246,8 +17341,8 @@ var HuTreeSelect = class HuTreeSelect {
|
|
|
17246
17341
|
isRequired: false,
|
|
17247
17342
|
transformFunction: null
|
|
17248
17343
|
},
|
|
17249
|
-
|
|
17250
|
-
classPropertyName: "
|
|
17344
|
+
valueInput: {
|
|
17345
|
+
classPropertyName: "valueInput",
|
|
17251
17346
|
publicName: "value",
|
|
17252
17347
|
isSignal: true,
|
|
17253
17348
|
isRequired: false,
|
|
@@ -17360,7 +17455,7 @@ var HuTreeSelect = class HuTreeSelect {
|
|
|
17360
17455
|
}
|
|
17361
17456
|
},
|
|
17362
17457
|
outputs: {
|
|
17363
|
-
|
|
17458
|
+
valueChange: "valueChange",
|
|
17364
17459
|
nodeSelect: "nodeSelect",
|
|
17365
17460
|
nodeUnselect: "nodeUnselect",
|
|
17366
17461
|
closed: "closed"
|
|
@@ -17500,14 +17595,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
17500
17595
|
required: false
|
|
17501
17596
|
}]
|
|
17502
17597
|
}],
|
|
17503
|
-
|
|
17598
|
+
valueInput: [{
|
|
17504
17599
|
type: i0.Input,
|
|
17505
17600
|
args: [{
|
|
17506
17601
|
isSignal: true,
|
|
17507
17602
|
alias: "value",
|
|
17508
17603
|
required: false
|
|
17509
17604
|
}]
|
|
17510
|
-
},
|
|
17605
|
+
}],
|
|
17606
|
+
valueChange: [{
|
|
17511
17607
|
type: i0.Output,
|
|
17512
17608
|
args: ["valueChange"]
|
|
17513
17609
|
}],
|