@ngx-smz/core 21.8.0 → 21.8.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/fesm2022/ngx-smz-core.mjs +203 -82
- package/fesm2022/ngx-smz-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-smz-core.d.ts +40 -1
|
@@ -2394,20 +2394,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
2394
2394
|
class SmzFormsVisibilityService {
|
|
2395
2395
|
dependsOn;
|
|
2396
2396
|
observers;
|
|
2397
|
+
/** Inputs that can be observed (registered by the form setup, even while hidden). */
|
|
2398
|
+
sources = {};
|
|
2399
|
+
/** Current value readers (usually backed by the FormControl). */
|
|
2400
|
+
valueResolvers = {};
|
|
2401
|
+
/** Last value emitted by setValue, used when there is no resolver. */
|
|
2402
|
+
lastValues = {};
|
|
2397
2403
|
constructor() {
|
|
2398
2404
|
this.clear();
|
|
2399
2405
|
}
|
|
2400
2406
|
registryObserver(input, formId) {
|
|
2401
2407
|
// console.log('registryObserver', input);
|
|
2402
|
-
this.observers[formId + input.propertyName] = { input, options: new BehaviorSubject([]) };
|
|
2403
2408
|
const dependsOn = this.getDependsOnKey(input, formId);
|
|
2409
|
+
this.observers[formId + input.propertyName] = { input, options: new BehaviorSubject([]), formId, sourceKey: dependsOn };
|
|
2404
2410
|
const data = this.dependsOn[dependsOn];
|
|
2405
2411
|
if (data == null) {
|
|
2406
2412
|
this.dependsOn[dependsOn] = { observers: [formId + input.propertyName], value: [] };
|
|
2407
2413
|
}
|
|
2408
|
-
else {
|
|
2409
|
-
|
|
2414
|
+
else if (!data.observers.includes(formId + input.propertyName)) {
|
|
2415
|
+
data.observers.push(formId + input.propertyName);
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
/** Registers an input as a possible visibility source, even if it is never rendered. */
|
|
2419
|
+
registrySource(input, formId) {
|
|
2420
|
+
this.sources[formId + input.propertyName] = input;
|
|
2421
|
+
}
|
|
2422
|
+
/** Registers a function that returns the current raw value of an input (e.g. its FormControl value). */
|
|
2423
|
+
registryValueResolver(input, formId, resolver) {
|
|
2424
|
+
this.valueResolvers[formId + input.propertyName] = resolver;
|
|
2425
|
+
}
|
|
2426
|
+
/** Normalizes a raw value into the representation compared against the visibility conditions. */
|
|
2427
|
+
normalizeValue(type, value) {
|
|
2428
|
+
switch (type) {
|
|
2429
|
+
case SmzControlType.DROPDOWN:
|
|
2430
|
+
return value != null && typeof value === 'object' ? value.id : value;
|
|
2431
|
+
case SmzControlType.MULTI_SELECT:
|
|
2432
|
+
return Array.isArray(value) ? value.map((x) => (x != null && typeof x === 'object' ? x.id : x)) : [];
|
|
2433
|
+
default:
|
|
2434
|
+
return value;
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
/** Evaluates the visibility of an observer for a given (normalized) source value. */
|
|
2438
|
+
evaluateVisibility(sourceType, value, dependsOn) {
|
|
2439
|
+
let stateCondition = false;
|
|
2440
|
+
switch (sourceType) {
|
|
2441
|
+
case SmzControlType.CHECKBOX:
|
|
2442
|
+
stateCondition = value === true;
|
|
2443
|
+
break;
|
|
2444
|
+
case SmzControlType.MULTI_SELECT:
|
|
2445
|
+
if (dependsOn.conditions != null) {
|
|
2446
|
+
stateCondition = dependsOn.conditions.some(c => Array.isArray(value) && value.some(v => v === c));
|
|
2447
|
+
}
|
|
2448
|
+
else {
|
|
2449
|
+
stateCondition = Array.isArray(value) && value.some(x => x === dependsOn.condition);
|
|
2450
|
+
}
|
|
2451
|
+
break;
|
|
2452
|
+
default:
|
|
2453
|
+
if (dependsOn.conditions != null) {
|
|
2454
|
+
stateCondition = dependsOn.conditions.findIndex(c => c === value) !== -1;
|
|
2455
|
+
}
|
|
2456
|
+
else {
|
|
2457
|
+
stateCondition = value === dependsOn.condition;
|
|
2458
|
+
}
|
|
2459
|
+
break;
|
|
2460
|
+
}
|
|
2461
|
+
return dependsOn.reversed ? !stateCondition : stateCondition;
|
|
2462
|
+
}
|
|
2463
|
+
getCurrentValue(key, source) {
|
|
2464
|
+
const resolver = this.valueResolvers[key];
|
|
2465
|
+
if (resolver != null) {
|
|
2466
|
+
return this.normalizeValue(source.type, resolver());
|
|
2467
|
+
}
|
|
2468
|
+
if (key in this.lastValues) {
|
|
2469
|
+
return this.lastValues[key];
|
|
2410
2470
|
}
|
|
2471
|
+
return this.normalizeValue(source.type, source.defaultValue);
|
|
2472
|
+
}
|
|
2473
|
+
/**
|
|
2474
|
+
* Re-evaluates the observers of `sourceKey` from the current state of the source
|
|
2475
|
+
* (hidden source => hidden observers; visible source => computed from its current value)
|
|
2476
|
+
* and cascades through every observer whose visibility changed.
|
|
2477
|
+
*/
|
|
2478
|
+
refreshObservers(sourceKey, visited) {
|
|
2479
|
+
if (visited.has(sourceKey)) {
|
|
2480
|
+
return;
|
|
2481
|
+
}
|
|
2482
|
+
visited.add(sourceKey);
|
|
2483
|
+
const source = this.sources[sourceKey];
|
|
2484
|
+
const data = this.dependsOn[sourceKey];
|
|
2485
|
+
if (source == null || data == null) {
|
|
2486
|
+
return;
|
|
2487
|
+
}
|
|
2488
|
+
const sourceVisible = source.isVisible !== false;
|
|
2489
|
+
const value = sourceVisible ? this.getCurrentValue(sourceKey, source) : null;
|
|
2490
|
+
for (const observerKey of data.observers) {
|
|
2491
|
+
const match = this.observers[observerKey];
|
|
2492
|
+
if (match == null) {
|
|
2493
|
+
continue;
|
|
2494
|
+
}
|
|
2495
|
+
const next = sourceVisible ? this.evaluateVisibility(source.type, value, match.input.visibilityDependsOn) : false;
|
|
2496
|
+
const previous = match.input.isVisible !== false;
|
|
2497
|
+
match.input.isVisible = next;
|
|
2498
|
+
if (previous !== next) {
|
|
2499
|
+
this.refreshObservers(observerKey, visited);
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
/** Must be called whenever the visibility of an input changes outside of the dependency flow. */
|
|
2504
|
+
notifyVisibilityChanged(input, formId) {
|
|
2505
|
+
this.refreshObservers(formId + input.propertyName, new Set());
|
|
2411
2506
|
}
|
|
2412
2507
|
getDependsOnKey(input, formId) {
|
|
2413
2508
|
// console.log('getDependsOnKey input', input);
|
|
@@ -2450,7 +2545,17 @@ class SmzFormsVisibilityService {
|
|
|
2450
2545
|
}
|
|
2451
2546
|
// console.log('this.dependsOn[dependsOn]', this.dependsOn[dependsOn]);
|
|
2452
2547
|
// console.log('event', onChangeDropdownEvent);
|
|
2548
|
+
this.lastValues[dependsOn] = eventValue;
|
|
2549
|
+
this.sources[dependsOn] ??= input;
|
|
2453
2550
|
this.emitToObservers(input, this.dependsOn[dependsOn].observers, eventValue);
|
|
2551
|
+
// Cascade: observers whose visibility changed must re-evaluate their own observers.
|
|
2552
|
+
const visited = new Set([dependsOn]);
|
|
2553
|
+
for (const observer of this.dependsOn[dependsOn].observers) {
|
|
2554
|
+
const match = this.observers[observer];
|
|
2555
|
+
if (match != null) {
|
|
2556
|
+
this.refreshObservers(observer, visited);
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2454
2559
|
}
|
|
2455
2560
|
emitToObservers(input, observers, value) {
|
|
2456
2561
|
// console.log('-------');
|
|
@@ -2461,47 +2566,16 @@ class SmzFormsVisibilityService {
|
|
|
2461
2566
|
console.warn('Observer não encontrado.', observer);
|
|
2462
2567
|
}
|
|
2463
2568
|
else {
|
|
2464
|
-
|
|
2465
|
-
let stateCondition = false;
|
|
2466
|
-
switch (input.type) {
|
|
2467
|
-
case SmzControlType.CHECKBOX:
|
|
2468
|
-
stateCondition = value === true;
|
|
2469
|
-
break;
|
|
2470
|
-
case SmzControlType.DROPDOWN:
|
|
2471
|
-
if (match.input.visibilityDependsOn.conditions != null) {
|
|
2472
|
-
stateCondition = match.input.visibilityDependsOn.conditions.findIndex(c => c === value) !== -1;
|
|
2473
|
-
}
|
|
2474
|
-
else {
|
|
2475
|
-
stateCondition = value === match.input.visibilityDependsOn.condition;
|
|
2476
|
-
}
|
|
2477
|
-
break;
|
|
2478
|
-
case SmzControlType.RADIO:
|
|
2479
|
-
if (match.input.visibilityDependsOn.conditions != null) {
|
|
2480
|
-
stateCondition = match.input.visibilityDependsOn.conditions.findIndex(c => c === value) !== -1;
|
|
2481
|
-
}
|
|
2482
|
-
else {
|
|
2483
|
-
stateCondition = value === match.input.visibilityDependsOn.condition;
|
|
2484
|
-
}
|
|
2485
|
-
break;
|
|
2486
|
-
case SmzControlType.MULTI_SELECT:
|
|
2487
|
-
if (match.input.visibilityDependsOn.conditions != null) {
|
|
2488
|
-
stateCondition = match.input.visibilityDependsOn.conditions?.some(c => value.some(v => v === c));
|
|
2489
|
-
}
|
|
2490
|
-
else {
|
|
2491
|
-
stateCondition = value?.some(x => x === match.input.visibilityDependsOn.condition);
|
|
2492
|
-
}
|
|
2493
|
-
break;
|
|
2494
|
-
default:
|
|
2495
|
-
break;
|
|
2496
|
-
}
|
|
2497
|
-
// console.log('stateCondition', stateCondition);
|
|
2498
|
-
match.input.isVisible = !match.input.visibilityDependsOn.reversed && stateCondition || match.input.visibilityDependsOn.reversed && !stateCondition;
|
|
2569
|
+
match.input.isVisible = this.evaluateVisibility(input.type, value, match.input.visibilityDependsOn);
|
|
2499
2570
|
}
|
|
2500
2571
|
}
|
|
2501
2572
|
}
|
|
2502
2573
|
clear() {
|
|
2503
2574
|
this.dependsOn = {};
|
|
2504
2575
|
this.observers = {};
|
|
2576
|
+
this.sources = {};
|
|
2577
|
+
this.valueResolvers = {};
|
|
2578
|
+
this.lastValues = {};
|
|
2505
2579
|
}
|
|
2506
2580
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzFormsVisibilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2507
2581
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzFormsVisibilityService, providedIn: 'root' });
|
|
@@ -2628,43 +2702,13 @@ class SmzFormsManagerService {
|
|
|
2628
2702
|
}
|
|
2629
2703
|
}
|
|
2630
2704
|
setupVisibilityServices(inputData, form) {
|
|
2705
|
+
this.service.registrySource(inputData, form.formId);
|
|
2631
2706
|
if (inputData.visibilityDependsOn != null) {
|
|
2632
2707
|
this.service.registryObserver(inputData, form.formId);
|
|
2633
2708
|
if (inputData.visibilityDependsOn.formId == null) {
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
if (input.propertyName === inputData.visibilityDependsOn.propertyName) {
|
|
2638
|
-
let eventValue = null;
|
|
2639
|
-
switch (input.type) {
|
|
2640
|
-
case SmzControlType.CHECKBOX:
|
|
2641
|
-
eventValue = input.defaultValue;
|
|
2642
|
-
break;
|
|
2643
|
-
case SmzControlType.DROPDOWN:
|
|
2644
|
-
if (inputData.visibilityDependsOn.conditions != null) {
|
|
2645
|
-
eventValue = inputData.visibilityDependsOn.conditions.findIndex(c => c === input.defaultValue) !== -1;
|
|
2646
|
-
}
|
|
2647
|
-
else {
|
|
2648
|
-
eventValue = input.defaultValue === inputData.visibilityDependsOn.condition;
|
|
2649
|
-
}
|
|
2650
|
-
break;
|
|
2651
|
-
case SmzControlType.MULTI_SELECT:
|
|
2652
|
-
if (inputData.visibilityDependsOn.conditions != null) {
|
|
2653
|
-
// console.log('inputData.visibilityDependsOn.conditions', inputData.visibilityDependsOn.conditions);
|
|
2654
|
-
eventValue = inputData.visibilityDependsOn.conditions?.some(c => input.defaultValue?.some(v => v === c));
|
|
2655
|
-
}
|
|
2656
|
-
else {
|
|
2657
|
-
eventValue = input.defaultValue.some(x => x === inputData.visibilityDependsOn.condition);
|
|
2658
|
-
}
|
|
2659
|
-
break;
|
|
2660
|
-
default:
|
|
2661
|
-
break;
|
|
2662
|
-
}
|
|
2663
|
-
// console.log('input', input);
|
|
2664
|
-
// console.log('inputData', inputData);
|
|
2665
|
-
inputData.isVisible = !inputData.visibilityDependsOn.reversed && eventValue || inputData.visibilityDependsOn.reversed && !eventValue;
|
|
2666
|
-
}
|
|
2667
|
-
}
|
|
2709
|
+
const visible = this.resolveInitialVisibility(inputData, form, new Set());
|
|
2710
|
+
if (visible != null) {
|
|
2711
|
+
inputData.isVisible = visible;
|
|
2668
2712
|
}
|
|
2669
2713
|
}
|
|
2670
2714
|
else {
|
|
@@ -2672,6 +2716,43 @@ class SmzFormsManagerService {
|
|
|
2672
2716
|
}
|
|
2673
2717
|
}
|
|
2674
2718
|
}
|
|
2719
|
+
/** Registers how to read the current raw value of an input (used when visibility is re-evaluated). */
|
|
2720
|
+
setupVisibilityValueResolver(inputData, form, resolver) {
|
|
2721
|
+
this.service.registryValueResolver(inputData, form.formId, resolver);
|
|
2722
|
+
}
|
|
2723
|
+
/** Re-evaluates (and cascades) the observers of an input whose visibility changed. */
|
|
2724
|
+
notifyVisibilityChanged(inputData, form) {
|
|
2725
|
+
this.service.notifyVisibilityChanged(inputData, form.formId);
|
|
2726
|
+
}
|
|
2727
|
+
/**
|
|
2728
|
+
* Initial visibility from the dependency's default value. A hidden dependency hides its observers;
|
|
2729
|
+
* the chain is resolved recursively (guarded against circular dependencies).
|
|
2730
|
+
*/
|
|
2731
|
+
resolveInitialVisibility(inputData, form, seen) {
|
|
2732
|
+
const dependsOn = inputData.visibilityDependsOn;
|
|
2733
|
+
if (dependsOn == null || dependsOn.formId != null || seen.has(inputData)) {
|
|
2734
|
+
return inputData.isVisible ?? true;
|
|
2735
|
+
}
|
|
2736
|
+
seen.add(inputData);
|
|
2737
|
+
for (const group of form.groups) {
|
|
2738
|
+
for (const input of group.children) {
|
|
2739
|
+
if (input.propertyName === dependsOn.propertyName) {
|
|
2740
|
+
if (input.visibilityDependsOn != null) {
|
|
2741
|
+
const sourceVisible = this.resolveInitialVisibility(input, form, seen);
|
|
2742
|
+
if (sourceVisible === false) {
|
|
2743
|
+
return false;
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
else if (input.isVisible === false) {
|
|
2747
|
+
return false;
|
|
2748
|
+
}
|
|
2749
|
+
const value = this.service.normalizeValue(input.type, input.defaultValue);
|
|
2750
|
+
return this.service.evaluateVisibility(input.type, value, dependsOn);
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
return null;
|
|
2755
|
+
}
|
|
2675
2756
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzFormsManagerService, deps: [{ token: SmzFormsDropdownService }, { token: SmzFormsVisibilityService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2676
2757
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzFormsManagerService, providedIn: 'root' });
|
|
2677
2758
|
}
|
|
@@ -4904,11 +4985,11 @@ class InputTreeComponent {
|
|
|
4904
4985
|
}
|
|
4905
4986
|
}
|
|
4906
4987
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputTreeComponent, deps: [{ token: SmzFormsDropdownService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4907
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputTreeComponent, isStandalone: false, selector: "smz-input-tree", inputs: { input: "input", formId: "formId", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "@if (nodes$ | async; as nodes) {\n <smz-label\n class=\"smz__input_name\"\n [text]=\"input.name\"\n [propertyName]=\"input.propertyName\"\n [showLabel]=\"input.hideLabel != true\"\n [warning]=\"input.warning?.()\"\n [help]=\"input.tooltip?.()\"\n [popover]=\"input.popover?.()\">\n </smz-label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-treeSelect\n class=\"col-12 grid-nogutter smz__input_value flex-1\"\n containerStyleClass=\"w-full\"\n [formControl]=\"control\"\n [options]=\"nodes\"\n [placeholder]=\"input.name\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [selectionMode]=\"input.selectionMode\"\n [filterInputAutoFocus]=\"input.autofocusFilter\"\n [emptyMessage]=\"input.emptyMessage\"\n [showClear]=\"input.showClear\"\n [filterPlaceholder]=\"input.emptyFilterMessage\"\n [scrollHeight]=\"input.scrollHeight\"\n [display]=\"input.display\"\n >\n @for (inputType of input.allTypes; track inputType) {\n <ng-template let-node [pTemplate]=\"inputType\">\n @if (node != null) {\n <div [innerHTML]=\"node.label | safeHtml\" [pTooltip]=\"node.tooltip\"></div>\n }\n </ng-template>\n }\n </p-treeSelect>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n}", dependencies: [{ kind: "directive", type: i1$7.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i5.TreeSelect, selector: "p-treeSelect, p-treeselect, p-tree-select", inputs: ["inputId", "scrollHeight", "metaKeySelection", "display", "selectionMode", "tabindex", "ariaLabel", "ariaLabelledBy", "placeholder", "panelClass", "panelStyle", "panelStyleClass", "containerStyle", "containerStyleClass", "labelStyle", "labelStyleClass", "overlayOptions", "emptyMessage", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "filterInputAutoFocus", "propagateSelectionDown", "propagateSelectionUp", "showClear", "resetFilterOnHide", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autofocus", "options", "loading", "loadingMode", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onNodeExpand", "onNodeCollapse", "onShow", "onHide", "onClear", "onFilter", "onFocus", "onBlur", "onNodeUnselect", "onNodeSelect"] }, { kind: "component", type: LabelComponent, selector: "smz-label", inputs: ["text", "propertyName", "showLabel", "warning", "help", "popover"] }, { kind: "component", type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors", "extraMessages"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: SafeHtmlPipe$2, name: "safeHtml" }] });
|
|
4988
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputTreeComponent, isStandalone: false, selector: "smz-input-tree", inputs: { input: "input", formId: "formId", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "@if (nodes$ | async; as nodes) {\r\n <smz-label\r\n class=\"smz__input_name\"\r\n [text]=\"input.name\"\r\n [propertyName]=\"input.propertyName\"\r\n [showLabel]=\"input.hideLabel != true\"\r\n [warning]=\"input.warning?.()\"\r\n [help]=\"input.tooltip?.()\"\r\n [popover]=\"input.popover?.()\">\r\n </smz-label>\r\n <div class=\"input_inner__wrapper grid grid-nogutter\">\r\n <p-treeSelect\r\n class=\"col-12 grid-nogutter smz__input_value flex-1\"\r\n containerStyleClass=\"w-full\"\r\n [formControl]=\"control\"\r\n [options]=\"nodes\"\r\n [placeholder]=\"input.name\"\r\n appendTo=\"body\"\r\n [filter]=\"input.showFilter ? true : false\"\r\n [selectionMode]=\"input.selectionMode\"\r\n [filterInputAutoFocus]=\"input.autofocusFilter\"\r\n [emptyMessage]=\"input.emptyMessage\"\r\n [showClear]=\"input.showClear\"\r\n [filterPlaceholder]=\"input.emptyFilterMessage\"\r\n [scrollHeight]=\"input.scrollHeight\"\r\n [display]=\"input.display\"\r\n >\r\n @for (inputType of input.allTypes; track inputType) {\r\n <ng-template let-node [pTemplate]=\"inputType\">\r\n @if (node != null) {\r\n <div [innerHTML]=\"node.label | safeHtml\" [pTooltip]=\"node.tooltip\"></div>\r\n }\r\n </ng-template>\r\n }\r\n </p-treeSelect>\r\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n </div>\r\n}", dependencies: [{ kind: "directive", type: i1$7.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i5.TreeSelect, selector: "p-treeSelect, p-treeselect, p-tree-select", inputs: ["inputId", "scrollHeight", "metaKeySelection", "display", "selectionMode", "tabindex", "ariaLabel", "ariaLabelledBy", "placeholder", "panelClass", "panelStyle", "panelStyleClass", "containerStyle", "containerStyleClass", "labelStyle", "labelStyleClass", "overlayOptions", "emptyMessage", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "filterInputAutoFocus", "propagateSelectionDown", "propagateSelectionUp", "showClear", "resetFilterOnHide", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autofocus", "options", "loading", "loadingMode", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onNodeExpand", "onNodeCollapse", "onShow", "onHide", "onClear", "onFilter", "onFocus", "onBlur", "onNodeUnselect", "onNodeSelect"] }, { kind: "component", type: LabelComponent, selector: "smz-label", inputs: ["text", "propertyName", "showLabel", "warning", "help", "popover"] }, { kind: "component", type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors", "extraMessages"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: SafeHtmlPipe$2, name: "safeHtml" }] });
|
|
4908
4989
|
}
|
|
4909
4990
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputTreeComponent, decorators: [{
|
|
4910
4991
|
type: Component,
|
|
4911
|
-
args: [{ selector: 'smz-input-tree', standalone: false, template: "@if (nodes$ | async; as nodes) {\n <smz-label\n class=\"smz__input_name\"\n [text]=\"input.name\"\n [propertyName]=\"input.propertyName\"\n [showLabel]=\"input.hideLabel != true\"\n [warning]=\"input.warning?.()\"\n [help]=\"input.tooltip?.()\"\n [popover]=\"input.popover?.()\">\n </smz-label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-treeSelect\n class=\"col-12 grid-nogutter smz__input_value flex-1\"\n containerStyleClass=\"w-full\"\n [formControl]=\"control\"\n [options]=\"nodes\"\n [placeholder]=\"input.name\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [selectionMode]=\"input.selectionMode\"\n [filterInputAutoFocus]=\"input.autofocusFilter\"\n [emptyMessage]=\"input.emptyMessage\"\n [showClear]=\"input.showClear\"\n [filterPlaceholder]=\"input.emptyFilterMessage\"\n [scrollHeight]=\"input.scrollHeight\"\n [display]=\"input.display\"\n >\n @for (inputType of input.allTypes; track inputType) {\n <ng-template let-node [pTemplate]=\"inputType\">\n @if (node != null) {\n <div [innerHTML]=\"node.label | safeHtml\" [pTooltip]=\"node.tooltip\"></div>\n }\n </ng-template>\n }\n </p-treeSelect>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n}" }]
|
|
4992
|
+
args: [{ selector: 'smz-input-tree', standalone: false, template: "@if (nodes$ | async; as nodes) {\r\n <smz-label\r\n class=\"smz__input_name\"\r\n [text]=\"input.name\"\r\n [propertyName]=\"input.propertyName\"\r\n [showLabel]=\"input.hideLabel != true\"\r\n [warning]=\"input.warning?.()\"\r\n [help]=\"input.tooltip?.()\"\r\n [popover]=\"input.popover?.()\">\r\n </smz-label>\r\n <div class=\"input_inner__wrapper grid grid-nogutter\">\r\n <p-treeSelect\r\n class=\"col-12 grid-nogutter smz__input_value flex-1\"\r\n containerStyleClass=\"w-full\"\r\n [formControl]=\"control\"\r\n [options]=\"nodes\"\r\n [placeholder]=\"input.name\"\r\n appendTo=\"body\"\r\n [filter]=\"input.showFilter ? true : false\"\r\n [selectionMode]=\"input.selectionMode\"\r\n [filterInputAutoFocus]=\"input.autofocusFilter\"\r\n [emptyMessage]=\"input.emptyMessage\"\r\n [showClear]=\"input.showClear\"\r\n [filterPlaceholder]=\"input.emptyFilterMessage\"\r\n [scrollHeight]=\"input.scrollHeight\"\r\n [display]=\"input.display\"\r\n >\r\n @for (inputType of input.allTypes; track inputType) {\r\n <ng-template let-node [pTemplate]=\"inputType\">\r\n @if (node != null) {\r\n <div [innerHTML]=\"node.label | safeHtml\" [pTooltip]=\"node.tooltip\"></div>\r\n }\r\n </ng-template>\r\n }\r\n </p-treeSelect>\r\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n </div>\r\n}" }]
|
|
4912
4993
|
}], ctorParameters: () => [{ type: SmzFormsDropdownService }], propDecorators: { input: [{
|
|
4913
4994
|
type: Input
|
|
4914
4995
|
}], formId: [{
|
|
@@ -6006,6 +6087,11 @@ class FormGroupComponent {
|
|
|
6006
6087
|
this.config.context.cdf = this.cdf;
|
|
6007
6088
|
}
|
|
6008
6089
|
this.linkInputControls();
|
|
6090
|
+
for (const group of this.config.groups) {
|
|
6091
|
+
for (const input of group.children) {
|
|
6092
|
+
this.manager.setupVisibilityValueResolver(input, this.config, () => this.viewdata?.form?.get(input.propertyName)?.value);
|
|
6093
|
+
}
|
|
6094
|
+
}
|
|
6009
6095
|
setTimeout(() => {
|
|
6010
6096
|
this.viewdata.updateFormValues();
|
|
6011
6097
|
// this.viewdata.isValid = this.viewdata.form.valid;
|
|
@@ -6099,10 +6185,14 @@ class FormGroupComponent {
|
|
|
6099
6185
|
console.log(`UpdateVisibilityDependsOnFormData called for ${input.propertyName} | Before: ${input.isVisible}`);
|
|
6100
6186
|
}
|
|
6101
6187
|
const nextVisible = input.visibilityFunction(formValues);
|
|
6102
|
-
|
|
6188
|
+
const inputChanged = input.isVisible !== nextVisible;
|
|
6189
|
+
if (inputChanged) {
|
|
6103
6190
|
visibilityChanged = true;
|
|
6104
6191
|
}
|
|
6105
6192
|
input.isVisible = nextVisible;
|
|
6193
|
+
if (inputChanged && this.config.formId != null) {
|
|
6194
|
+
this.manager.notifyVisibilityChanged(input, this.config);
|
|
6195
|
+
}
|
|
6106
6196
|
if (this.config.isDebug) {
|
|
6107
6197
|
console.log(`UpdateVisibilityDependsOnFormData called for ${input.propertyName} | After: ${input.isVisible}`);
|
|
6108
6198
|
}
|
|
@@ -48100,6 +48190,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
48100
48190
|
}]
|
|
48101
48191
|
}] });
|
|
48102
48192
|
|
|
48193
|
+
function hasCardsGlobalFilterPaths(filterBy) {
|
|
48194
|
+
return filterBy != null && filterBy.trim() !== '';
|
|
48195
|
+
}
|
|
48196
|
+
|
|
48103
48197
|
var SmzCardsView;
|
|
48104
48198
|
(function (SmzCardsView) {
|
|
48105
48199
|
SmzCardsView[SmzCardsView["LIST"] = 0] = "LIST";
|
|
@@ -48637,12 +48731,18 @@ class SmzCardsComponent {
|
|
|
48637
48731
|
this.state.items$ = event.value.items$;
|
|
48638
48732
|
this.cdr.markForCheck();
|
|
48639
48733
|
}
|
|
48734
|
+
filterGlobally(value) {
|
|
48735
|
+
if (!hasCardsGlobalFilterPaths(this.state?.view?.filterBy)) {
|
|
48736
|
+
return;
|
|
48737
|
+
}
|
|
48738
|
+
this.dataView.filter(value);
|
|
48739
|
+
}
|
|
48640
48740
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzCardsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
48641
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: SmzCardsComponent, isStandalone: false, selector: "smz-ui-cards", inputs: { state: "state" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "dataView", first: true, predicate: DataView, descendants: true }], ngImport: i0, template: "@if (state != null) {\r\n <ng-container *ngVar=\"state.items$ | async as items\">\r\n <ng-container *ngVar=\"items | resetContext : state.template._context\">\r\n <p-dataView #dataView [styleClass]=\"state.view.dataViewStyleClass\" [gridStyleClass]=\"state.view.gridStyleClass\" [value]=\"items ?? []\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\">\r\n @if (state.view.showHeader) {\r\n <ng-template #header>\r\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\r\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\r\n @if (state.title.isVisible) {\r\n <div class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\r\n }\r\n </div>\r\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\r\n @if (headerTemplate != null) {\r\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\r\n }\r\n <p-iconfield class=\"p-input-icon-left mb-2 md:mb-0\">\r\n
|
|
48741
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: SmzCardsComponent, isStandalone: false, selector: "smz-ui-cards", inputs: { state: "state" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "dataView", first: true, predicate: DataView, descendants: true }], ngImport: i0, template: "@if (state != null) {\r\n <ng-container *ngVar=\"state.items$ | async as items\">\r\n <ng-container *ngVar=\"items | resetContext : state.template._context\">\r\n <p-dataView #dataView [styleClass]=\"state.view.dataViewStyleClass\" [gridStyleClass]=\"state.view.gridStyleClass\" [value]=\"items ?? []\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\">\r\n @if (state.view.showHeader) {\r\n <ng-template #header>\r\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\r\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\r\n @if (state.title.isVisible) {\r\n <div class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\r\n }\r\n </div>\r\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\r\n @if (headerTemplate != null) {\r\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\r\n }\r\n @if (state.view.showGlobalFilter) {\r\n <p-iconfield class=\"p-input-icon-left mb-2 md:mb-0\">\r\n <p-inputicon styleClass=\"pi pi-search\" />\r\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"filterGlobally($any($event.target).value)\">\r\n </p-iconfield>\r\n }\r\n @if (state.sources.length > 0) {\r\n <p-select appendTo=\"body\" [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-select>\r\n }\r\n <!-- FIXME: Implementar -->\r\n <!-- <p-dataViewLayoutOptions *ngIf=\"state.view.showLayoutOptions\"></p-dataViewLayoutOptions> -->\r\n </div>\r\n </div>\r\n </ng-template>\r\n }\r\n <ng-template let-items #list>\r\n @if (state.template != null) {\r\n <div class=\"grid grid-nogutter\" [ngClass]=\"state.view.gridStyleClass\">\r\n @for (item of items; track item) {\r\n <smz-list-item [isDebug]=\"state.isDebug\" [template]=\"state.template\" [data]=\"item\" [menu]=\"state.menu\" [buttons]=\"state.buttons\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\r\n }\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template let-items #grid>\r\n @if (state.template != null) {\r\n <div class=\"grid grid-nogutter\" [ngClass]=\"state.view.gridStyleClass\">\r\n @for (item of items; track item) {\r\n @if (state.template != null) {\r\n <smz-grid-item [isDebug]=\"state.isDebug\" [template]=\"state.template\" [data]=\"item\" [menu]=\"state.menu\" [buttons]=\"state.buttons\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\r\n }\r\n }\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template #empty>\r\n @if (state.view.emptyMessageType === 'html') {\r\n <div [innerHTML]=\"state.locale.emptyMessage | safeHtml\" class=\"w-full h-full\"></div>\r\n }\r\n @if (state.view.emptyMessageType === 'component') {\r\n <ng-template [smzInjectDataPathComponent]=\"state.view.emptyMessageComponent\" [data]=\"items\" [state]=\"state\"></ng-template>\r\n }\r\n </ng-template>\r\n </p-dataView>\r\n </ng-container>\r\n </ng-container>\r\n}", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$9.DataView, selector: "p-dataView, p-dataview, p-data-view", inputs: ["paginator", "rows", "totalRecords", "pageLinks", "rowsPerPageOptions", "paginatorPosition", "paginatorStyleClass", "alwaysShowPaginator", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "lazy", "lazyLoadOnInit", "emptyMessage", "styleClass", "gridStyleClass", "trackBy", "filterBy", "filterLocale", "loading", "loadingIcon", "first", "sortField", "sortOrder", "value", "layout"], outputs: ["onLazyLoad", "onPage", "onSort", "onChangeLayout"] }, { kind: "directive", type: i2.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: i4$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgVar, selector: "[ngVar]", inputs: ["ngVar"] }, { kind: "component", type: i26.IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "component", type: i27.InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "component", type: SmzListItemComponent, selector: "smz-list-item", inputs: ["isDebug", "template", "buttons", "menu", "data"] }, { kind: "component", type: SmzGridItemComponent, selector: "smz-grid-item", inputs: ["isDebug", "template", "buttons", "menu", "data"] }, { kind: "directive", type: SmzInjectDataPathComponent, selector: "[smzInjectDataPathComponent]", inputs: ["smzInjectDataPathComponent", "data", "state"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: SafeHtmlPipe$2, name: "safeHtml" }, { kind: "pipe", type: SmzCardsResetContextPipe, name: "resetContext" }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
48642
48742
|
}
|
|
48643
48743
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: SmzCardsComponent, decorators: [{
|
|
48644
48744
|
type: Component,
|
|
48645
|
-
args: [{ selector: 'smz-ui-cards', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (state != null) {\r\n <ng-container *ngVar=\"state.items$ | async as items\">\r\n <ng-container *ngVar=\"items | resetContext : state.template._context\">\r\n <p-dataView #dataView [styleClass]=\"state.view.dataViewStyleClass\" [gridStyleClass]=\"state.view.gridStyleClass\" [value]=\"items ?? []\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\">\r\n @if (state.view.showHeader) {\r\n <ng-template #header>\r\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\r\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\r\n @if (state.title.isVisible) {\r\n <div class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\r\n }\r\n </div>\r\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\r\n @if (headerTemplate != null) {\r\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\r\n }\r\n <p-iconfield class=\"p-input-icon-left mb-2 md:mb-0\">\r\n
|
|
48745
|
+
args: [{ selector: 'smz-ui-cards', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (state != null) {\r\n <ng-container *ngVar=\"state.items$ | async as items\">\r\n <ng-container *ngVar=\"items | resetContext : state.template._context\">\r\n <p-dataView #dataView [styleClass]=\"state.view.dataViewStyleClass\" [gridStyleClass]=\"state.view.gridStyleClass\" [value]=\"items ?? []\" [paginator]=\"state.view.paginator\" [rows]=\"state.view.rowsPerPage\" [filterBy]=\"state.view.filterBy\" [layout]=\"state.view.layout\">\r\n @if (state.view.showHeader) {\r\n <ng-template #header>\r\n <div class=\"grid grid-nogutter lg:flex-row xl:flex-row md:flex-col sm:flex-col items-center justify-between gap-2\">\r\n <div class=\"grid grid-nogutter items-center justify-start gap-2\">\r\n @if (state.title.isVisible) {\r\n <div class=\"text-lg\" [innerHtml]=\"state.title.getText() | safeHtml\"></div>\r\n }\r\n </div>\r\n <div class=\"grid grid-nogutter items-center justify-end gap-3\">\r\n @if (headerTemplate != null) {\r\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: state }\"></ng-container>\r\n }\r\n @if (state.view.showGlobalFilter) {\r\n <p-iconfield class=\"p-input-icon-left mb-2 md:mb-0\">\r\n <p-inputicon styleClass=\"pi pi-search\" />\r\n <input type=\"search\" pInputText [placeholder]=\"state.locale.globalSearch.placeholder\" (input)=\"filterGlobally($any($event.target).value)\">\r\n </p-iconfield>\r\n }\r\n @if (state.sources.length > 0) {\r\n <p-select appendTo=\"body\" [options]=\"state.sources\" dataKey=\"key\" [(ngModel)]=\"state.selectedSource\" optionLabel=\"label\" (onChange)=\"updateMainSource($event)\"></p-select>\r\n }\r\n <!-- FIXME: Implementar -->\r\n <!-- <p-dataViewLayoutOptions *ngIf=\"state.view.showLayoutOptions\"></p-dataViewLayoutOptions> -->\r\n </div>\r\n </div>\r\n </ng-template>\r\n }\r\n <ng-template let-items #list>\r\n @if (state.template != null) {\r\n <div class=\"grid grid-nogutter\" [ngClass]=\"state.view.gridStyleClass\">\r\n @for (item of items; track item) {\r\n <smz-list-item [isDebug]=\"state.isDebug\" [template]=\"state.template\" [data]=\"item\" [menu]=\"state.menu\" [buttons]=\"state.buttons\" [ngClass]=\"state.list.styleClass.all\"></smz-list-item>\r\n }\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template let-items #grid>\r\n @if (state.template != null) {\r\n <div class=\"grid grid-nogutter\" [ngClass]=\"state.view.gridStyleClass\">\r\n @for (item of items; track item) {\r\n @if (state.template != null) {\r\n <smz-grid-item [isDebug]=\"state.isDebug\" [template]=\"state.template\" [data]=\"item\" [menu]=\"state.menu\" [buttons]=\"state.buttons\" [ngClass]=\"state.grid.styleClass.all\"></smz-grid-item>\r\n }\r\n }\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template #empty>\r\n @if (state.view.emptyMessageType === 'html') {\r\n <div [innerHTML]=\"state.locale.emptyMessage | safeHtml\" class=\"w-full h-full\"></div>\r\n }\r\n @if (state.view.emptyMessageType === 'component') {\r\n <ng-template [smzInjectDataPathComponent]=\"state.view.emptyMessageComponent\" [data]=\"items\" [state]=\"state\"></ng-template>\r\n }\r\n </ng-template>\r\n </p-dataView>\r\n </ng-container>\r\n </ng-container>\r\n}" }]
|
|
48646
48746
|
}], propDecorators: { dataView: [{
|
|
48647
48747
|
type: ViewChild,
|
|
48648
48748
|
args: [DataView]
|
|
@@ -56406,6 +56506,7 @@ class SmzCardsSourceBuilder {
|
|
|
56406
56506
|
}
|
|
56407
56507
|
|
|
56408
56508
|
class SmzCardsBuilder {
|
|
56509
|
+
isGlobalFilterHidden = false;
|
|
56409
56510
|
cardsState = {
|
|
56410
56511
|
items$: null,
|
|
56411
56512
|
sources: [],
|
|
@@ -56573,6 +56674,23 @@ class SmzCardsBuilder {
|
|
|
56573
56674
|
this.cardsState.view.showLayoutOptions = false;
|
|
56574
56675
|
return this;
|
|
56575
56676
|
}
|
|
56677
|
+
setGlobalFilterProperties(...properties) {
|
|
56678
|
+
for (const property of properties) {
|
|
56679
|
+
const path = property?.trim();
|
|
56680
|
+
if (path == null || path === '') {
|
|
56681
|
+
continue;
|
|
56682
|
+
}
|
|
56683
|
+
if (!this.cardsState.template.globalFilterProperties.includes(path)) {
|
|
56684
|
+
this.cardsState.template.globalFilterProperties.push(path);
|
|
56685
|
+
}
|
|
56686
|
+
}
|
|
56687
|
+
return this;
|
|
56688
|
+
}
|
|
56689
|
+
hideGlobalFilter() {
|
|
56690
|
+
this.isGlobalFilterHidden = true;
|
|
56691
|
+
this.cardsState.view.showGlobalFilter = false;
|
|
56692
|
+
return this;
|
|
56693
|
+
}
|
|
56576
56694
|
setEmptyMessage(message) {
|
|
56577
56695
|
this.cardsState.locale.emptyMessage = message;
|
|
56578
56696
|
this.cardsState.view.emptyMessageType = 'html';
|
|
@@ -56607,10 +56725,13 @@ class SmzCardsBuilder {
|
|
|
56607
56725
|
if (this.cardsState.template.type === null || this.cardsState.template.type === undefined) {
|
|
56608
56726
|
throw Error('[Smz Cards] You need to set a template.');
|
|
56609
56727
|
}
|
|
56610
|
-
|
|
56611
|
-
|
|
56612
|
-
|
|
56613
|
-
|
|
56728
|
+
const uniqueProperties = this.cardsState.template.globalFilterProperties
|
|
56729
|
+
.map(property => property?.trim())
|
|
56730
|
+
.filter((property) => property != null && property !== '')
|
|
56731
|
+
.filter((property, index, all) => all.indexOf(property) === index);
|
|
56732
|
+
this.cardsState.template.globalFilterProperties.splice(0, this.cardsState.template.globalFilterProperties.length, ...uniqueProperties);
|
|
56733
|
+
this.cardsState.view.filterBy = uniqueProperties.join(',');
|
|
56734
|
+
this.cardsState.view.showGlobalFilter = !this.isGlobalFilterHidden;
|
|
56614
56735
|
if (this.cardsState.sources.length > 0) {
|
|
56615
56736
|
const defaultSource = this.cardsState.sources.some(x => x.isDefault) ? this.cardsState.sources.find(x => x.isDefault) : this.cardsState.sources[0];
|
|
56616
56737
|
this.cardsState.selectedSource = defaultSource;
|
|
@@ -58233,5 +58354,5 @@ __decorate([
|
|
|
58233
58354
|
* Generated bundle index. Do not edit.
|
|
58234
58355
|
*/
|
|
58235
58356
|
|
|
58236
|
-
export { AUTHORIZATION_HEADER, AccessControlService, ActionDispatchDirective, ApplicationActions, ApplicationSelectors, ApplicationState, AsPipe, AthenaLayout, AthenaLayoutComponent, AthenaLayoutModule, AuthClaimDefinitions, AuthHandler, AuthService, AuthenticationActions, AuthenticationSelectors, AuthenticationService, AuthenticationState, AuthorizationService, AxisOverflowDirection, AxisOverflowType, AxisPosition, BaseApiService, BoilerplateService, BreadcrumbService, CLAIMS_PAGE_ROUTE, CLAIMS_PATH, CLAIMS_STATE_NAME, CONTENT_ENCODING_HEADER, CachedRouteReuseStrategy, CalendarComponent, CalendarPipe, CanAccess, ChartType, CheckBoxComponent, CheckBoxGroupComponent, ClaimAccessType, ClaimAccessTypeDescription, ClaimAccessTypeValues, ClaimsActions, ClaimsModule, ClaimsSelectors, ClaimsState, ClickStopPropagationDirective, ClickStopPropagationModule, ClonePipe, ColorPallete, ColorPickerComponent, Confirmable, CreateLinearChart, CreateRadialChart, CustomError, CustomNgForDirective, CustomNgForModule, DATABASE_REQUIRED_ACTIONS, DATABASE_STATES, DECORATOR_APPLIED, DEFAULT_AUTHENTICATION_ENDPOINTS_ROUTES, DEFAULT_AUTHORIZATION_ENDPOINTS_ROUTES, DatabaseActions, DatabaseSelectors, DatabaseState, DatasetType, DeepWrapper, DescribeAnyPipe, DescribeArrayPipe, DescribeSimpleNamedPipe, DialogContentManagerComponent, DialogService, DropdownComponent, DynamicDialogComponent, DynamicDialogConfig, DynamicDialogInjector, DynamicDialogModule, DynamicDialogRef, ERROR_HANDLING_TYPE_HEADER, ExcelsUiActions, FEATURE_STATES, FeaturesActions, FeaturesSelectors, FeaturesState, FileUploadComponent, FilterContains, FirstOrDefaultPipe, FormGroupComponent, FormSubmitComponent, GenericInjectComponentDirective, GetElementById, GetElementsByParentId, GlobalActions, GlobalFilter, GlobalInjector, GlobalLoaderComponent, GlobalLoaderModule, GlobalState, GroupingType, HephaestusLayout, HephaestusLayoutComponent, HephaestusLayoutModule, HephaestusProviderModule, HostElement, HttpErrorHandler, IGNORE_ERROR_HANDLING, InViewportMetadata, InjectComponentDirective, InjectComponentService, InjectContentAppModule, InjectContentDirective, InjectContentService, InputBlurDetectionModule, InputChangeDetectionDirective, InputClearExtensionDirective, InputCurrencyComponent, InputListComponent, InputMaskComponent, InputNumberComponent, InputPasswordComponent, InputSwitchComponent, InputTagAreaComponent, InputTextAreaComponent, InputTextComponent, InputTreeComponent, IsVisiblePipe, IsVisiblePipeModule, JoinPipe, LOADING_BEHAVIOR_HEADER, LOCAL_LOADING_TAG_HEADER, LayoutUiActions, LayoutUiSelectors, LayoutUiState, LegacyAuthenticationSelectors, LinearChartBuilder, LinkedDropdownComponent, LinkedMultiSelectComponent, LoggingScope, LoggingService, MAIN_LAYOUT_PATH, MentionableTextareaComponent, MenuHelperService, MenuType, MergeClonePipe, MergeClonePipeModule, MultiSelectComponent, NG_ON_INIT, NewAthenaLayout, NewAthenaLayoutComponent, NewAthenaLayoutModule, NewAthenaProviderModule, NgCloneDirective, NgCloneModule, NgIfLandscapeDirective, NgIfLandscapeDirectiveModule, NgIfPortraitDirective, NgIfPortraitDirectiveModule, NgVar, NgVarContext, NgVarModule, NgxRbkUtilsConfig, NgxRbkUtilsModule, NgxSmzCardsModule, NgxSmzCommentsModule, NgxSmzDataInfoModule, NgxSmzDataPipesModule, NgxSmzDialogsModule, NgxSmzDockModule, NgxSmzDocumentsModule, NgxSmzFaqsModule, NgxSmzFormsModule, NgxSmzLayoutsModule, NgxSmzMenuModule, NgxSmzMultiTablesModule, NgxSmzRouterParamsModule, NgxSmzSafeImageModule, NgxSmzServerImageModule, NgxSmzServerImageToBase64Module, NgxSmzSideContentModule, NgxSmzTablesModule, NgxSmzTreeWithDetailsModule, NgxSmzTreesModule, NgxSmzUiBlockModule, NgxSmzUiComponent, NgxSmzUiConfig, NgxSmzUiGuidesModule, NgxSmzUiModule, NgxSmzViewportModule, NotificationFolder, NotificationFolderStatus, NotificationStatus, NotificationType, NotificationTypeClass, NotificationsUiActions, NotificationsUiSelectors, PrettyJsonPipe$1 as PrettyJsonPipe, PrettyJsonPipeModule, PrimeConfigService, REFRESH_TOKEN_BEHAVIOR_HEADER, RESTORE_STATE_ON_ERROR_HEADER, ROLES_PAGE_ROUTE, ROLES_PATH, ROLES_STATE_NAME, RadialChartBuilder, RadioButtonComponent, RbkAccessControlModule, RbkAuthGuard, RbkCanAccessAnyPipe, RbkCanAccessPipe, RbkClaimGuardDirective, RbkDatabaseStateGuard, RbkFeatureStateGuard, RbkPipesModule, RbkTableFilterClearDirectivesModule, RegistrySmzUiConfiguration, RepositoryForm, RoleMode, RoleModeDescription, RoleModeValues, RoleSource, RoleSourceDescription, RoleSourceValues, RolesActions, RolesModule, RolesSelectors, RolesState, RouterParamsActions, RouterParamsSelectors, SMZ_CORE_LOGGING_CONFIG, SMZ_UI_ENVIRONMENT_CONFIG, SafeHtmlPipe$2 as SafeHtmlPipe, SafeImageDirective, SafeUrlPipe$1 as SafeUrlPipe, SelectorPipe, ServerImageDirective, ServerImageToBase64Directive, ServerPathPipe, SetTemplateClasses, SetTemplateClassesPipe, SidebarState, SimpleCalendarPipe, SmzActionDispatchModule, SmzAuthorizationDeactivatedUsersTableBuilder, SmzAuthorizationUsersTableBuilder, SmzBaseColumnBuilder, SmzBaseEditableBuilder, SmzBreakpoints, SmzBuilderUtilities, SmzCardsBuilder, SmzCardsComponent, SmzCardsContentType, SmzCardsInjectableComponentBuilder, SmzCardsTemplate, SmzCardsView, SmzChartComponent, SmzChartModule, SmzClipboardService, SmzColumnCollectionBuilder, SmzCommentsBuilder, SmzCommentsComponent, SmzCommentsSectionComponent, SmzContentTheme, SmzContentThemes, SmzContentType, SmzControlType, SmzCoreLogging, SmzCurrencyColumnBuilder, SmzCustomColumnBuilder, SmzDataInfoComponent, SmzDataTransformColumnBuilder, SmzDataTransformTreePipe, SmzDateColumnBuilder, SmzDialogBuilder, SmzDialogComponentBuilder, SmzDialogFormBuilder, SmzDialogTableBuilder, SmzDialogsConfig, SmzDialogsPresets, SmzDialogsService, SmzDockComponent, SmzDockService, SmzDocumentBaseCellBuilder, SmzDocumentBuilder, SmzDocumentComponent, SmzDocumentsService, SmzDragDropModule, SmzDraggable, SmzDropdownEditableBuilder, SmzDroppable, SmzDynamicDialogConfig, SmzEasyBaseColumnBuilder, SmzEasyColumnCollectionBuilder, SmzEasyCustomColumnBuilder, SmzEasyDataTransformColumnBuilder, SmzEasyDateColumnBuilder, SmzEasyMenuTableBuilder, SmzEasyTableBuilder, SmzEasyTableComponent, SmzEasyTableContentType, SmzEasyTableModule, SmzEasyTextColumnBuilder, SmzEditableCollectionBuilder, SmzEditableTableBuilder, SmzEditableType, SmzEnvironment, SmzExcelColorDefinitions, SmzExcelDataDefinitions, SmzExcelFontDefinitions, SmzExcelService, SmzExcelSortOrderDefinitions, SmzExcelThemeDefinitions, SmzExcelTypeDefinitions, SmzExcelsBuilder, SmzExportDialogComponent, SmzExportDialogModule, SmzExportDialogService, SmzExportableContentSource, SmzExportableContentType, SmzFaqsComponent, SmzFaqsConfig, SmzFilterType, SmzFlattenMenuPipe, SmzFlipCardContext, SmzFormBuilder, SmzFormViewdata, SmzFormsConfig, SmzFormsPresets, SmzFormsRepositoryService, SmzGaugeBuilder, SmzGaugeComponent, SmzGaugeThresholdBuilder, SmzGetDataPipe, SmzGridItemComponent, SmzHelpDialogService, SmzHtmlViewerComponent, SmzHtmlViewerModule, SmzIconColumnBuilder, SmzIconMessageComponent, SmzInfoDateComponent, SmzInfoDateModule, SmzInitialPipe, SmzInputAutocompleteTagArea, SmzInputTextModule, SmzInputTextPipe, SmzLayoutsConfig, SmzLoader, SmzLoaders, SmzLoginBuilder, SmzLoginComponent, SmzLoginModule, SmzMenuBuilder, SmzMenuComponent, SmzMenuCreationBuilder, SmzMenuCreationItemBuilder, SmzMenuItemActionsDirective, SmzMenuItemBuilder, SmzMenuItemEasyTableBuilder, SmzMenuItemTableBuilder, SmzMenuTableBuilder, SmzMessagesModule, SmzMultiTablesBuilder, SmzMultiTablesComponent, SmzNotificationsComponent, SmzNotificationsModule, SmzNumberEditableBuilder, SmzPresets, SmzProxyStore, SmzResponsiveBreakpointsDirective, SmzResponsiveBreakpointsDirectiveModule, SmzResponsiveComponent, SmzRouteDatas, SmzRouteParams, SmzRouteQueryParams, SmzSideContentComponent, SmzSideContentDefault, SmzSincronizeTablePipe, SmzSmartTag, SmzSmartTagModule, SmzSubmitComponent, SmzSvgBuilder, SmzSvgComponent, SmzSvgFeatureBuilder, SmzSvgModule, SmzSvgPinBuilder, SmzSvgRootBuilder, SmzSvgWorldCoordinates, SmzSwitchEditableBuilder, SmzTableBuilder, SmzTableComponent, SmzTablesConfig, SmzTagMessage, SmzTailPipe, SmzTemplatesPipeModule, SmzTenantSwitchComponent, SmzTextColumnBuilder, SmzTextEditableBuilder, SmzTextPattern, SmzTimelineBuilder, SmzTimelineComponent, SmzToastComponent, SmzToastModule, SmzTooltipTouchSupportModule, SmzTreeBuilder, SmzTreeComponent, SmzTreeDragAndDropBuilder, SmzTreeDropBuilder, SmzTreeDynamicMenuBuilder, SmzTreeDynamicMenuItemBuilder, SmzTreeEmptyFeedbackBuilder, SmzTreeMenuBuilder, SmzTreeMenuItemBuilder, SmzTreeToolbarBuilder, SmzTreeToolbarButtonBuilder, SmzTreeToolbarButtonCollectionBuilder, SmzTreeWithDetailsBuilder, SmzTreeWithDetailsComponent, SmzUiBlockComponent, SmzUiBlockDirective, SmzUiBlockService, SmzUiBuilder, SmzUiEnvironment, SmzUiGuidesBuilder, SmzUiGuidesService, SmzViewportDirective, SmzViewportService, StandaloneInjectComponentDirective, StateBuilderPipe, TENANTS_PAGE_ROUTE, TENANTS_PATH, TENANTS_STATE_NAME, TableClearExtensionDirective, TableHelperService, TenantAuthenticationSelectors, TenantsActions, TenantsModule, TenantsSelectors, TenantsState, ThemeManagerService, TitleService, Toast, ToastActions, ToastItem, ToastService, TooltipTouchSupportDirective, TreeHelperService, TreeHelpers, Tunnel, UI_DEFINITIONS_STATE_NAME, UI_LOCALIZATION_STATE_NAME, USERS_PAGE_ROUTE, USERS_PATH, USERS_STATE_NAME, USER_ID_HEADER, LayoutUiActions as UiActions, UiDefinitionsDbActions, UiDefinitionsDbSelectors, UiDefinitionsDbState, UiDefinitionsService, UiLocalizationDbActions, UiLocalizationDbSelectors, UiLocalizationDbState, UiLocalizationService, LayoutUiSelectors as UiSelectors, UniqueFilterPipe, UrlCheckerPipe, UrlCheckerPipeModule, UsersActions, UsersModule, UsersSelectors, UsersState, WINDOWS_AUTHENTICATION_HEADER, Wait, applyTableContentNgStyle, b64toBlob, base64ToFile, breakLinesForHtml, buildAuthenticationEndpointsRoutes, buildAuthenticationUrl, buildAuthorizationEndpointsRoutes, buildLoginPageUrl, buildServerApiUrl, buildSmzDialogCustomButtonTestId, buildSmzDialogTestId, buildSmzDialogTopbarButtonTestId, buildSmzTableTestId, buildState, capitalizeFirstLetter, capitalizeWithSlash, captureAttemptedRoute, clearArray, clearAttemptedRoute, clone, cloneAndRemoveProperties, cloneAndRemoveProperty, compare, compareInsensitive, completeSubjectOnTheInstance, composeAttemptedRoute, consumeAttemptedRoute, convertFormCreationFeature, convertFormFeature, convertFormFeatureFromInputData, convertFormUpdateFeature, count, createObjectFromString, createRound, createSubjectOnTheInstance, dataURLtoFile, databaseSmzAccessStates, debounce, deepClone, deepEqual, deepIndexOf, deepMerge, defaultFormsModuleConfig, defaultState, downloadBase64File, downloadFromServerUrl, downloadFromUrl, empty, every, executeTextPattern, featureSmzAccessStates, fixDate$1 as fixDate, fixDateProperties, fixDates, flatten, flattenObject, getAuthenticationInitialState, getCleanApplicationState, getFirst, getFirstElement, getFirstElements, getFormInputFromDialog, getGlobalInitialState, getInitialApplicationState, getInitialDatabaseStoreState, getInitialState$8 as getInitialState, getLastElements, getPreset, getProperty, getSymbol, getTreeNodeFromKey, getUiDefinitionsInitialState, getUiLocalizationInitialState, getUsersInitialState, getValidatorsForInput, handleBase64, isArray, isConvertibleToNumber, isDeepObject, isEmpty$1 as isEmpty, isFunction$1 as isFunction, isInteger, isNil, isNull$1 as isNull, isNullOrEmptyString, isNumber$1 as isNumber, isNumberFinite$1 as isNumberFinite, isNumeric, isObject$2 as isObject, isObjectHelper, isPositive, isSimpleNamedEntity, isString$1 as isString, isUndefined$1 as isUndefined, isValidAttemptedRoute, isWithinTime, leftPad, longestStringInArray, mapParamsToObject, markAsDecorated, mergeClone, mergeDeep, nameof, namesof, ngxsModuleForFeatureFaqsDbState, ngxsModuleForFeatureUiAthenaLayoutState, ngxsModuleForFeatureUiHephaestusLayoutState, ngxsModuleForFeatureUiNewAthenaLayoutState, normalizeDateToUtc, orderArrayByProperty, pad, peekAttemptedRoute, provideSmzCoreLogging, provideSmzEnvironment, rbkSafeHtmlPipe, removeElementFromArray, replaceAll, replaceArrayItem, replaceArrayPartialItem, replaceItem, replaceNgOnInit, resolvePostLoginUrl, resolveSmzTableRowId, rightPad, routerModuleForChildUsersModule, routerParamsDispatch, routerParamsListener, setNestedObject, shorten, showConfirmation, showDialog, showMarkdownDialog, showMessage, showObjectDialog, showPersistentDialog, shuffle, slugSmzDialogTestIdKey, slugSmzTableTestIdKey, sortArray, sortArrayOfObjects, sortArrayOfStrings, sortMenuItemsByLabel, sum, synchronizeNodes, synchronizeRow, synchronizeTable, synchronizeTrees, takeUntil, takeWhile, toDecimal, toSimpleNamedEntity, toString, unwrapDeep, upperFirst, uuidv4, wrapDeep };
|
|
58357
|
+
export { AUTHORIZATION_HEADER, AccessControlService, ActionDispatchDirective, ApplicationActions, ApplicationSelectors, ApplicationState, AsPipe, AthenaLayout, AthenaLayoutComponent, AthenaLayoutModule, AuthClaimDefinitions, AuthHandler, AuthService, AuthenticationActions, AuthenticationSelectors, AuthenticationService, AuthenticationState, AuthorizationService, AxisOverflowDirection, AxisOverflowType, AxisPosition, BaseApiService, BoilerplateService, BreadcrumbService, CLAIMS_PAGE_ROUTE, CLAIMS_PATH, CLAIMS_STATE_NAME, CONTENT_ENCODING_HEADER, CachedRouteReuseStrategy, CalendarComponent, CalendarPipe, CanAccess, ChartType, CheckBoxComponent, CheckBoxGroupComponent, ClaimAccessType, ClaimAccessTypeDescription, ClaimAccessTypeValues, ClaimsActions, ClaimsModule, ClaimsSelectors, ClaimsState, ClickStopPropagationDirective, ClickStopPropagationModule, ClonePipe, ColorPallete, ColorPickerComponent, Confirmable, CreateLinearChart, CreateRadialChart, CustomError, CustomNgForDirective, CustomNgForModule, DATABASE_REQUIRED_ACTIONS, DATABASE_STATES, DECORATOR_APPLIED, DEFAULT_AUTHENTICATION_ENDPOINTS_ROUTES, DEFAULT_AUTHORIZATION_ENDPOINTS_ROUTES, DatabaseActions, DatabaseSelectors, DatabaseState, DatasetType, DeepWrapper, DescribeAnyPipe, DescribeArrayPipe, DescribeSimpleNamedPipe, DialogContentManagerComponent, DialogService, DropdownComponent, DynamicDialogComponent, DynamicDialogConfig, DynamicDialogInjector, DynamicDialogModule, DynamicDialogRef, ERROR_HANDLING_TYPE_HEADER, ExcelsUiActions, FEATURE_STATES, FeaturesActions, FeaturesSelectors, FeaturesState, FileUploadComponent, FilterContains, FirstOrDefaultPipe, FormGroupComponent, FormSubmitComponent, GenericInjectComponentDirective, GetElementById, GetElementsByParentId, GlobalActions, GlobalFilter, GlobalInjector, GlobalLoaderComponent, GlobalLoaderModule, GlobalState, GroupingType, HephaestusLayout, HephaestusLayoutComponent, HephaestusLayoutModule, HephaestusProviderModule, HostElement, HttpErrorHandler, IGNORE_ERROR_HANDLING, InViewportMetadata, InjectComponentDirective, InjectComponentService, InjectContentAppModule, InjectContentDirective, InjectContentService, InputBlurDetectionModule, InputChangeDetectionDirective, InputClearExtensionDirective, InputCurrencyComponent, InputListComponent, InputMaskComponent, InputNumberComponent, InputPasswordComponent, InputSwitchComponent, InputTagAreaComponent, InputTextAreaComponent, InputTextComponent, InputTreeComponent, IsVisiblePipe, IsVisiblePipeModule, JoinPipe, LOADING_BEHAVIOR_HEADER, LOCAL_LOADING_TAG_HEADER, LayoutUiActions, LayoutUiSelectors, LayoutUiState, LegacyAuthenticationSelectors, LinearChartBuilder, LinkedDropdownComponent, LinkedMultiSelectComponent, LoggingScope, LoggingService, MAIN_LAYOUT_PATH, MentionableTextareaComponent, MenuHelperService, MenuType, MergeClonePipe, MergeClonePipeModule, MultiSelectComponent, NG_ON_INIT, NewAthenaLayout, NewAthenaLayoutComponent, NewAthenaLayoutModule, NewAthenaProviderModule, NgCloneDirective, NgCloneModule, NgIfLandscapeDirective, NgIfLandscapeDirectiveModule, NgIfPortraitDirective, NgIfPortraitDirectiveModule, NgVar, NgVarContext, NgVarModule, NgxRbkUtilsConfig, NgxRbkUtilsModule, NgxSmzCardsModule, NgxSmzCommentsModule, NgxSmzDataInfoModule, NgxSmzDataPipesModule, NgxSmzDialogsModule, NgxSmzDockModule, NgxSmzDocumentsModule, NgxSmzFaqsModule, NgxSmzFormsModule, NgxSmzLayoutsModule, NgxSmzMenuModule, NgxSmzMultiTablesModule, NgxSmzRouterParamsModule, NgxSmzSafeImageModule, NgxSmzServerImageModule, NgxSmzServerImageToBase64Module, NgxSmzSideContentModule, NgxSmzTablesModule, NgxSmzTreeWithDetailsModule, NgxSmzTreesModule, NgxSmzUiBlockModule, NgxSmzUiComponent, NgxSmzUiConfig, NgxSmzUiGuidesModule, NgxSmzUiModule, NgxSmzViewportModule, NotificationFolder, NotificationFolderStatus, NotificationStatus, NotificationType, NotificationTypeClass, NotificationsUiActions, NotificationsUiSelectors, PrettyJsonPipe$1 as PrettyJsonPipe, PrettyJsonPipeModule, PrimeConfigService, REFRESH_TOKEN_BEHAVIOR_HEADER, RESTORE_STATE_ON_ERROR_HEADER, ROLES_PAGE_ROUTE, ROLES_PATH, ROLES_STATE_NAME, RadialChartBuilder, RadioButtonComponent, RbkAccessControlModule, RbkAuthGuard, RbkCanAccessAnyPipe, RbkCanAccessPipe, RbkClaimGuardDirective, RbkDatabaseStateGuard, RbkFeatureStateGuard, RbkPipesModule, RbkTableFilterClearDirectivesModule, RegistrySmzUiConfiguration, RepositoryForm, RoleMode, RoleModeDescription, RoleModeValues, RoleSource, RoleSourceDescription, RoleSourceValues, RolesActions, RolesModule, RolesSelectors, RolesState, RouterParamsActions, RouterParamsSelectors, SMZ_CORE_LOGGING_CONFIG, SMZ_UI_ENVIRONMENT_CONFIG, SafeHtmlPipe$2 as SafeHtmlPipe, SafeImageDirective, SafeUrlPipe$1 as SafeUrlPipe, SelectorPipe, ServerImageDirective, ServerImageToBase64Directive, ServerPathPipe, SetTemplateClasses, SetTemplateClassesPipe, SidebarState, SimpleCalendarPipe, SmzActionDispatchModule, SmzAuthorizationDeactivatedUsersTableBuilder, SmzAuthorizationUsersTableBuilder, SmzBaseColumnBuilder, SmzBaseEditableBuilder, SmzBreakpoints, SmzBuilderUtilities, SmzCardsBuilder, SmzCardsComponent, SmzCardsContentType, SmzCardsInjectableComponentBuilder, SmzCardsTemplate, SmzCardsView, SmzChartComponent, SmzChartModule, SmzClipboardService, SmzColumnCollectionBuilder, SmzCommentsBuilder, SmzCommentsComponent, SmzCommentsSectionComponent, SmzContentTheme, SmzContentThemes, SmzContentType, SmzControlType, SmzCoreLogging, SmzCurrencyColumnBuilder, SmzCustomColumnBuilder, SmzDataInfoComponent, SmzDataTransformColumnBuilder, SmzDataTransformTreePipe, SmzDateColumnBuilder, SmzDialogBuilder, SmzDialogComponentBuilder, SmzDialogFormBuilder, SmzDialogTableBuilder, SmzDialogsConfig, SmzDialogsPresets, SmzDialogsService, SmzDockComponent, SmzDockService, SmzDocumentBaseCellBuilder, SmzDocumentBuilder, SmzDocumentComponent, SmzDocumentsService, SmzDragDropModule, SmzDraggable, SmzDropdownEditableBuilder, SmzDroppable, SmzDynamicDialogConfig, SmzEasyBaseColumnBuilder, SmzEasyColumnCollectionBuilder, SmzEasyCustomColumnBuilder, SmzEasyDataTransformColumnBuilder, SmzEasyDateColumnBuilder, SmzEasyMenuTableBuilder, SmzEasyTableBuilder, SmzEasyTableComponent, SmzEasyTableContentType, SmzEasyTableModule, SmzEasyTextColumnBuilder, SmzEditableCollectionBuilder, SmzEditableTableBuilder, SmzEditableType, SmzEnvironment, SmzExcelColorDefinitions, SmzExcelDataDefinitions, SmzExcelFontDefinitions, SmzExcelService, SmzExcelSortOrderDefinitions, SmzExcelThemeDefinitions, SmzExcelTypeDefinitions, SmzExcelsBuilder, SmzExportDialogComponent, SmzExportDialogModule, SmzExportDialogService, SmzExportableContentSource, SmzExportableContentType, SmzFaqsComponent, SmzFaqsConfig, SmzFilterType, SmzFlattenMenuPipe, SmzFlipCardContext, SmzFormBuilder, SmzFormViewdata, SmzFormsConfig, SmzFormsPresets, SmzFormsRepositoryService, SmzGaugeBuilder, SmzGaugeComponent, SmzGaugeThresholdBuilder, SmzGetDataPipe, SmzGridItemComponent, SmzHelpDialogService, SmzHtmlViewerComponent, SmzHtmlViewerModule, SmzIconColumnBuilder, SmzIconMessageComponent, SmzInfoDateComponent, SmzInfoDateModule, SmzInitialPipe, SmzInputAutocompleteTagArea, SmzInputTextModule, SmzInputTextPipe, SmzLayoutsConfig, SmzLoader, SmzLoaders, SmzLoginBuilder, SmzLoginComponent, SmzLoginModule, SmzMenuBuilder, SmzMenuComponent, SmzMenuCreationBuilder, SmzMenuCreationItemBuilder, SmzMenuItemActionsDirective, SmzMenuItemBuilder, SmzMenuItemEasyTableBuilder, SmzMenuItemTableBuilder, SmzMenuTableBuilder, SmzMessagesModule, SmzMultiTablesBuilder, SmzMultiTablesComponent, SmzNotificationsComponent, SmzNotificationsModule, SmzNumberEditableBuilder, SmzPresets, SmzProxyStore, SmzResponsiveBreakpointsDirective, SmzResponsiveBreakpointsDirectiveModule, SmzResponsiveComponent, SmzRouteDatas, SmzRouteParams, SmzRouteQueryParams, SmzSideContentComponent, SmzSideContentDefault, SmzSincronizeTablePipe, SmzSmartTag, SmzSmartTagModule, SmzSubmitComponent, SmzSvgBuilder, SmzSvgComponent, SmzSvgFeatureBuilder, SmzSvgModule, SmzSvgPinBuilder, SmzSvgRootBuilder, SmzSvgWorldCoordinates, SmzSwitchEditableBuilder, SmzTableBuilder, SmzTableComponent, SmzTablesConfig, SmzTagMessage, SmzTailPipe, SmzTemplatesPipeModule, SmzTenantSwitchComponent, SmzTextColumnBuilder, SmzTextEditableBuilder, SmzTextPattern, SmzTimelineBuilder, SmzTimelineComponent, SmzToastComponent, SmzToastModule, SmzTooltipTouchSupportModule, SmzTreeBuilder, SmzTreeComponent, SmzTreeDragAndDropBuilder, SmzTreeDropBuilder, SmzTreeDynamicMenuBuilder, SmzTreeDynamicMenuItemBuilder, SmzTreeEmptyFeedbackBuilder, SmzTreeMenuBuilder, SmzTreeMenuItemBuilder, SmzTreeToolbarBuilder, SmzTreeToolbarButtonBuilder, SmzTreeToolbarButtonCollectionBuilder, SmzTreeWithDetailsBuilder, SmzTreeWithDetailsComponent, SmzUiBlockComponent, SmzUiBlockDirective, SmzUiBlockService, SmzUiBuilder, SmzUiEnvironment, SmzUiGuidesBuilder, SmzUiGuidesService, SmzViewportDirective, SmzViewportService, StandaloneInjectComponentDirective, StateBuilderPipe, TENANTS_PAGE_ROUTE, TENANTS_PATH, TENANTS_STATE_NAME, TableClearExtensionDirective, TableHelperService, TenantAuthenticationSelectors, TenantsActions, TenantsModule, TenantsSelectors, TenantsState, ThemeManagerService, TitleService, Toast, ToastActions, ToastItem, ToastService, TooltipTouchSupportDirective, TreeHelperService, TreeHelpers, Tunnel, UI_DEFINITIONS_STATE_NAME, UI_LOCALIZATION_STATE_NAME, USERS_PAGE_ROUTE, USERS_PATH, USERS_STATE_NAME, USER_ID_HEADER, LayoutUiActions as UiActions, UiDefinitionsDbActions, UiDefinitionsDbSelectors, UiDefinitionsDbState, UiDefinitionsService, UiLocalizationDbActions, UiLocalizationDbSelectors, UiLocalizationDbState, UiLocalizationService, LayoutUiSelectors as UiSelectors, UniqueFilterPipe, UrlCheckerPipe, UrlCheckerPipeModule, UsersActions, UsersModule, UsersSelectors, UsersState, WINDOWS_AUTHENTICATION_HEADER, Wait, applyTableContentNgStyle, b64toBlob, base64ToFile, breakLinesForHtml, buildAuthenticationEndpointsRoutes, buildAuthenticationUrl, buildAuthorizationEndpointsRoutes, buildLoginPageUrl, buildServerApiUrl, buildSmzDialogCustomButtonTestId, buildSmzDialogTestId, buildSmzDialogTopbarButtonTestId, buildSmzTableTestId, buildState, capitalizeFirstLetter, capitalizeWithSlash, captureAttemptedRoute, clearArray, clearAttemptedRoute, clone, cloneAndRemoveProperties, cloneAndRemoveProperty, compare, compareInsensitive, completeSubjectOnTheInstance, composeAttemptedRoute, consumeAttemptedRoute, convertFormCreationFeature, convertFormFeature, convertFormFeatureFromInputData, convertFormUpdateFeature, count, createObjectFromString, createRound, createSubjectOnTheInstance, dataURLtoFile, databaseSmzAccessStates, debounce, deepClone, deepEqual, deepIndexOf, deepMerge, defaultFormsModuleConfig, defaultState, downloadBase64File, downloadFromServerUrl, downloadFromUrl, empty, every, executeTextPattern, featureSmzAccessStates, fixDate$1 as fixDate, fixDateProperties, fixDates, flatten, flattenObject, getAuthenticationInitialState, getCleanApplicationState, getFirst, getFirstElement, getFirstElements, getFormInputFromDialog, getGlobalInitialState, getInitialApplicationState, getInitialDatabaseStoreState, getInitialState$8 as getInitialState, getLastElements, getPreset, getProperty, getSymbol, getTreeNodeFromKey, getUiDefinitionsInitialState, getUiLocalizationInitialState, getUsersInitialState, getValidatorsForInput, handleBase64, hasCardsGlobalFilterPaths, isArray, isConvertibleToNumber, isDeepObject, isEmpty$1 as isEmpty, isFunction$1 as isFunction, isInteger, isNil, isNull$1 as isNull, isNullOrEmptyString, isNumber$1 as isNumber, isNumberFinite$1 as isNumberFinite, isNumeric, isObject$2 as isObject, isObjectHelper, isPositive, isSimpleNamedEntity, isString$1 as isString, isUndefined$1 as isUndefined, isValidAttemptedRoute, isWithinTime, leftPad, longestStringInArray, mapParamsToObject, markAsDecorated, mergeClone, mergeDeep, nameof, namesof, ngxsModuleForFeatureFaqsDbState, ngxsModuleForFeatureUiAthenaLayoutState, ngxsModuleForFeatureUiHephaestusLayoutState, ngxsModuleForFeatureUiNewAthenaLayoutState, normalizeDateToUtc, orderArrayByProperty, pad, peekAttemptedRoute, provideSmzCoreLogging, provideSmzEnvironment, rbkSafeHtmlPipe, removeElementFromArray, replaceAll, replaceArrayItem, replaceArrayPartialItem, replaceItem, replaceNgOnInit, resolvePostLoginUrl, resolveSmzTableRowId, rightPad, routerModuleForChildUsersModule, routerParamsDispatch, routerParamsListener, setNestedObject, shorten, showConfirmation, showDialog, showMarkdownDialog, showMessage, showObjectDialog, showPersistentDialog, shuffle, slugSmzDialogTestIdKey, slugSmzTableTestIdKey, sortArray, sortArrayOfObjects, sortArrayOfStrings, sortMenuItemsByLabel, sum, synchronizeNodes, synchronizeRow, synchronizeTable, synchronizeTrees, takeUntil, takeWhile, toDecimal, toSimpleNamedEntity, toString, unwrapDeep, upperFirst, uuidv4, wrapDeep };
|
|
58237
58358
|
//# sourceMappingURL=ngx-smz-core.mjs.map
|