@praxisui/metadata-editor 1.0.0-beta.64 → 1.0.0-beta.66
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.
|
@@ -6,7 +6,7 @@ import * as i3$1 from '@angular/common';
|
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import { DynamicFieldLoaderDirective } from '@praxisui/dynamic-fields';
|
|
8
8
|
import * as i2$1 from '@praxisui/core';
|
|
9
|
-
import { FieldControlType, PraxisIconDirective, INLINE_FILTER_CONTROL_TYPES,
|
|
9
|
+
import { FieldControlType, PraxisIconDirective, INLINE_FILTER_CONTROL_TYPES, resolveInlineFilterControlType, normalizeControlTypeToken } from '@praxisui/core';
|
|
10
10
|
import * as i5 from '@angular/material/expansion';
|
|
11
11
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
12
12
|
import * as i6 from '@angular/material/icon';
|
|
@@ -1901,7 +1901,7 @@ const dateRangeProperties = [
|
|
|
1901
1901
|
{ value: 'right', text: 'Direita' },
|
|
1902
1902
|
], hint: 'Escolhe em qual lado o painel de atalhos abre.'
|
|
1903
1903
|
},
|
|
1904
|
-
{ name: 'applyOnShortcutClick', label: 'Aplicar ao clicar', editorType: 'checkbox', group: 'Atalhos', hint: 'Compatibilidade legada para atalhos do date-range base. No
|
|
1904
|
+
{ name: 'applyOnShortcutClick', label: 'Aplicar ao clicar', editorType: 'checkbox', group: 'Atalhos', hint: 'Compatibilidade legada para atalhos do date-range base. No inlineDateRange, prefira inlineQuickPresetsApplyMode.' },
|
|
1905
1905
|
{
|
|
1906
1906
|
name: 'shortcuts', label: 'Atalhos visíveis', editorType: 'select', group: 'Atalhos', multiple: true, options: [
|
|
1907
1907
|
{ value: 'today', text: 'Hoje' },
|
|
@@ -1914,14 +1914,14 @@ const dateRangeProperties = [
|
|
|
1914
1914
|
{ value: 'lastYear', text: 'Ano passado' },
|
|
1915
1915
|
], hint: 'Selecione quais presets mostrar no painel de atalhos.'
|
|
1916
1916
|
},
|
|
1917
|
-
{ name: 'inlineQuickPresets.enabled', label: 'Atalhos inline', editorType: 'checkbox', group: 'Atalhos', hint: 'Exibe chips rápidos ao lado do campo no modo
|
|
1917
|
+
{ name: 'inlineQuickPresets.enabled', label: 'Atalhos inline', editorType: 'checkbox', group: 'Atalhos', hint: 'Exibe chips rápidos ao lado do campo no modo inlineDateRange.' },
|
|
1918
1918
|
{ name: 'inlineQuickPresets.maxVisible', label: 'Qtd. chips inline', editorType: 'number', group: 'Atalhos', hint: 'Define o número máximo de atalhos inline visíveis (1 a 8).' },
|
|
1919
1919
|
{ name: 'inlineQuickPresetsAriaLabel', label: 'ARIA atalhos inline', editorType: 'text', group: 'Atalhos', hint: 'Rótulo de acessibilidade do grupo de atalhos rápidos inline.' },
|
|
1920
1920
|
{
|
|
1921
1921
|
name: 'inlineQuickPresetsApplyMode', label: 'Modo de aplicação', editorType: 'select', group: 'Atalhos', options: [
|
|
1922
1922
|
{ value: 'auto', text: 'Auto apply' },
|
|
1923
1923
|
{ value: 'confirm', text: 'Confirmar no rodapé' },
|
|
1924
|
-
], hint: 'No
|
|
1924
|
+
], hint: 'No inlineDateRange: auto aplica imediatamente; confirm mantém seleção em rascunho até clicar em Aplicar.'
|
|
1925
1925
|
},
|
|
1926
1926
|
{ name: 'inlineQuickPresetsCancelLabel', label: 'Label botão cancelar', editorType: 'text', group: 'Atalhos', hint: 'Texto do botão de cancelamento no rodapé do overlay.' },
|
|
1927
1927
|
{ name: 'inlineQuickPresetsCancelAriaLabel', label: 'ARIA botão cancelar', editorType: 'text', group: 'Atalhos', hint: 'Descrição de acessibilidade para o botão cancelar no rodapé do overlay.' },
|
|
@@ -3868,7 +3868,7 @@ function cloneProperty$6(prop) {
|
|
|
3868
3868
|
: prop.options,
|
|
3869
3869
|
};
|
|
3870
3870
|
}
|
|
3871
|
-
const
|
|
3871
|
+
const inlineDistanceRadiusProperties = [
|
|
3872
3872
|
...rangeSliderProperties.map((prop) => cloneProperty$6(prop)),
|
|
3873
3873
|
{
|
|
3874
3874
|
name: 'distanceIcon',
|
|
@@ -4062,7 +4062,7 @@ function cloneProperty$5(prop) {
|
|
|
4062
4062
|
: prop.options,
|
|
4063
4063
|
};
|
|
4064
4064
|
}
|
|
4065
|
-
const
|
|
4065
|
+
const inlineRelativePeriodProperties = [
|
|
4066
4066
|
...selectProperties.map((prop) => cloneProperty$5(prop)),
|
|
4067
4067
|
{
|
|
4068
4068
|
name: 'relativePeriodSubtitle',
|
|
@@ -4248,7 +4248,7 @@ function cloneProperty$4(prop) {
|
|
|
4248
4248
|
: prop.options,
|
|
4249
4249
|
};
|
|
4250
4250
|
}
|
|
4251
|
-
const
|
|
4251
|
+
const inlineSentimentProperties = [
|
|
4252
4252
|
...selectProperties.map((prop) => cloneProperty$4(prop)),
|
|
4253
4253
|
{
|
|
4254
4254
|
name: 'sentimentSubtitle',
|
|
@@ -4429,7 +4429,7 @@ function cloneProperty$3(prop) {
|
|
|
4429
4429
|
: prop.options,
|
|
4430
4430
|
};
|
|
4431
4431
|
}
|
|
4432
|
-
const
|
|
4432
|
+
const inlineColorLabelProperties = [
|
|
4433
4433
|
...selectProperties.map((prop) => cloneProperty$3(prop)),
|
|
4434
4434
|
{
|
|
4435
4435
|
name: 'colorLabelSubtitle',
|
|
@@ -4583,7 +4583,7 @@ function cloneProperty$2(prop) {
|
|
|
4583
4583
|
: prop.options,
|
|
4584
4584
|
};
|
|
4585
4585
|
}
|
|
4586
|
-
const
|
|
4586
|
+
const inlinePipelineStatusProperties = [
|
|
4587
4587
|
...selectProperties.map((prop) => cloneProperty$2(prop)),
|
|
4588
4588
|
{
|
|
4589
4589
|
name: 'pipelineSubtitle',
|
|
@@ -4839,7 +4839,7 @@ function cloneProperty$1(prop) {
|
|
|
4839
4839
|
: prop.options,
|
|
4840
4840
|
};
|
|
4841
4841
|
}
|
|
4842
|
-
const
|
|
4842
|
+
const inlineRatingProperties = [
|
|
4843
4843
|
...rangeSliderProperties.map((prop) => cloneProperty$1(prop)),
|
|
4844
4844
|
{
|
|
4845
4845
|
name: 'ratingIcon',
|
|
@@ -5085,7 +5085,7 @@ function cloneProperty(prop) {
|
|
|
5085
5085
|
: prop.options,
|
|
5086
5086
|
};
|
|
5087
5087
|
}
|
|
5088
|
-
const
|
|
5088
|
+
const inlineScorePriorityProperties = [
|
|
5089
5089
|
...rangeSliderProperties.map((prop) => cloneProperty(prop)),
|
|
5090
5090
|
{
|
|
5091
5091
|
name: 'scoreSubtitle',
|
|
@@ -5291,16 +5291,16 @@ const INLINE_FILTER_EDITOR_PROPERTIES_BY_CONTROL_TYPE = Object.freeze({
|
|
|
5291
5291
|
[INLINE_FILTER_CONTROL_TYPES.NUMBER]: numberProperties,
|
|
5292
5292
|
[INLINE_FILTER_CONTROL_TYPES.CURRENCY]: currencyInputProperties,
|
|
5293
5293
|
[INLINE_FILTER_CONTROL_TYPES.CURRENCY_RANGE]: priceRangeProperties,
|
|
5294
|
-
[INLINE_FILTER_CONTROL_TYPES.RATING]:
|
|
5295
|
-
[INLINE_FILTER_CONTROL_TYPES.DISTANCE_RADIUS]:
|
|
5296
|
-
[INLINE_FILTER_CONTROL_TYPES.PIPELINE_STATUS]:
|
|
5297
|
-
[INLINE_FILTER_CONTROL_TYPES.SCORE_PRIORITY]:
|
|
5298
|
-
[INLINE_FILTER_CONTROL_TYPES.RELATIVE_PERIOD]:
|
|
5299
|
-
[INLINE_FILTER_CONTROL_TYPES.SENTIMENT]:
|
|
5300
|
-
[INLINE_FILTER_CONTROL_TYPES.COLOR_LABEL]:
|
|
5294
|
+
[INLINE_FILTER_CONTROL_TYPES.RATING]: inlineRatingProperties,
|
|
5295
|
+
[INLINE_FILTER_CONTROL_TYPES.DISTANCE_RADIUS]: inlineDistanceRadiusProperties,
|
|
5296
|
+
[INLINE_FILTER_CONTROL_TYPES.PIPELINE_STATUS]: inlinePipelineStatusProperties,
|
|
5297
|
+
[INLINE_FILTER_CONTROL_TYPES.SCORE_PRIORITY]: inlineScorePriorityProperties,
|
|
5298
|
+
[INLINE_FILTER_CONTROL_TYPES.RELATIVE_PERIOD]: inlineRelativePeriodProperties,
|
|
5299
|
+
[INLINE_FILTER_CONTROL_TYPES.SENTIMENT]: inlineSentimentProperties,
|
|
5300
|
+
[INLINE_FILTER_CONTROL_TYPES.COLOR_LABEL]: inlineColorLabelProperties,
|
|
5301
5301
|
});
|
|
5302
5302
|
function resolveInlineFilterEditorProperties(controlType) {
|
|
5303
|
-
const inlineType =
|
|
5303
|
+
const inlineType = resolveInlineFilterControlType(controlType);
|
|
5304
5304
|
if (!inlineType)
|
|
5305
5305
|
return undefined;
|
|
5306
5306
|
return INLINE_FILTER_EDITOR_PROPERTIES_BY_CONTROL_TYPE[inlineType];
|