@po-ui/ng-components 18.19.1 → 18.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/po-field/po-combo/po-combo.component.mjs +41 -41
- package/esm2022/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.mjs +23 -23
- package/esm2022/lib/components/po-field/po-lookup/po-lookup.component.mjs +47 -38
- package/esm2022/lib/po.module.mjs +1 -1
- package/esm2022/lib/services/po-theme/enum/po-theme-a11y.enum.mjs +30 -0
- package/esm2022/lib/services/po-theme/enum/po-theme-type.enum.mjs +4 -1
- package/esm2022/lib/services/po-theme/helpers/accessibilities/po-theme-default-aa.constant.mjs +14 -0
- package/esm2022/lib/services/po-theme/helpers/accessibilities/po-theme-default-aaa.constant.mjs +18 -0
- package/esm2022/lib/services/po-theme/helpers/po-theme-poui.constant.mjs +29 -13
- package/esm2022/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.mjs +210 -0
- package/esm2022/lib/services/po-theme/helpers/types/po-theme-light-defaults.constant.mjs +114 -0
- package/esm2022/lib/services/po-theme/index.mjs +7 -4
- package/esm2022/lib/services/po-theme/interfaces/po-theme.interface.mjs +1 -1
- package/esm2022/lib/services/po-theme/po-theme.service.mjs +216 -32
- package/fesm2022/po-ui-ng-components.mjs +626 -372
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/services/po-theme/enum/po-theme-a11y.enum.d.ts +28 -0
- package/lib/services/po-theme/enum/po-theme-type.enum.d.ts +3 -0
- package/lib/services/po-theme/helpers/accessibilities/po-theme-default-aa.constant.d.ts +10 -0
- package/lib/services/po-theme/helpers/accessibilities/po-theme-default-aaa.constant.d.ts +14 -0
- package/lib/services/po-theme/helpers/po-theme-poui.constant.d.ts +5 -1
- package/lib/services/po-theme/helpers/{po-theme-dark-defaults.constant.d.ts → types/po-theme-dark-defaults.constant.d.ts} +4 -11
- package/lib/services/po-theme/helpers/types/po-theme-light-defaults.constant.d.ts +25 -0
- package/lib/services/po-theme/index.d.ts +6 -3
- package/lib/services/po-theme/interfaces/po-theme.interface.d.ts +18 -5
- package/lib/services/po-theme/po-theme.service.d.ts +90 -10
- package/package.json +4 -4
- package/po-ui-ng-components-18.20.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/esm2022/lib/services/po-theme/helpers/po-theme-dark-defaults.constant.mjs +0 -203
- package/esm2022/lib/services/po-theme/helpers/po-theme-light-defaults.constant.mjs +0 -134
- package/lib/services/po-theme/helpers/po-theme-light-defaults.constant.d.ts +0 -41
- package/po-ui-ng-components-18.19.1.tgz +0 -0
|
@@ -19622,6 +19622,36 @@ class PoNotificationModule {
|
|
|
19622
19622
|
}], null, null); })();
|
|
19623
19623
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoNotificationModule, { imports: [CommonModule, PoButtonModule, PoIconModule, PoToasterModule] }); })();
|
|
19624
19624
|
|
|
19625
|
+
/**
|
|
19626
|
+
* Enum para definir os níveis de acessibilidade suportados pelo serviço de temas.
|
|
19627
|
+
*
|
|
19628
|
+
* @usedBy PoThemeService
|
|
19629
|
+
*
|
|
19630
|
+
* @example
|
|
19631
|
+
*
|
|
19632
|
+
* Em um serviço de tema, você pode usar este enum de acessibilidade para alternar entre os níveis de temas suportados.
|
|
19633
|
+
*
|
|
19634
|
+
* ```
|
|
19635
|
+
* import { PoThemeA11yEnum } from '@po-ui/theme';
|
|
19636
|
+
*
|
|
19637
|
+
* // Definindo o nível de acessibilidade ao setar o tema junto com o tipo
|
|
19638
|
+
* themeService.setTheme(...theme, ...type, PoThemeA11yEnum.AA);
|
|
19639
|
+
*
|
|
19640
|
+
* // Definir o tema junto com o nível de acessibilidade
|
|
19641
|
+
* themeService.setThemeA11y(...theme, PoThemeA11yEnum.AAA);
|
|
19642
|
+
*
|
|
19643
|
+
* // Definir o nível de acessibilidade de um tema já aplicado
|
|
19644
|
+
* themeService.setCurrentThemeA11y(PoThemeA11yEnum.AAA);
|
|
19645
|
+
* ```
|
|
19646
|
+
*/
|
|
19647
|
+
var PoThemeA11yEnum;
|
|
19648
|
+
(function (PoThemeA11yEnum) {
|
|
19649
|
+
/** Nível de acessibilidade duplo A (AA) */
|
|
19650
|
+
PoThemeA11yEnum["AA"] = "AA";
|
|
19651
|
+
/** Nível de acessibilidade triplo A (AAA) */
|
|
19652
|
+
PoThemeA11yEnum["AAA"] = "AAA";
|
|
19653
|
+
})(PoThemeA11yEnum || (PoThemeA11yEnum = {}));
|
|
19654
|
+
|
|
19625
19655
|
/**
|
|
19626
19656
|
* Enum para definir os tipos de tema suportados pelo serviço de temas.
|
|
19627
19657
|
*
|
|
@@ -19639,6 +19669,9 @@ class PoNotificationModule {
|
|
|
19639
19669
|
*
|
|
19640
19670
|
* // Definindo o tipo de tema para dark
|
|
19641
19671
|
* themeService.setTheme(...theme, PoThemeTypeEnum.dark);
|
|
19672
|
+
*
|
|
19673
|
+
* // Definir o tipo do tema de um tema já aplicado
|
|
19674
|
+
* themeService.setCurrentThemeType(PoThemeTypeEnum.dark);
|
|
19642
19675
|
* ```
|
|
19643
19676
|
*/
|
|
19644
19677
|
var PoThemeTypeEnum;
|
|
@@ -19649,6 +19682,38 @@ var PoThemeTypeEnum;
|
|
|
19649
19682
|
PoThemeTypeEnum[PoThemeTypeEnum["dark"] = 1] = "dark";
|
|
19650
19683
|
})(PoThemeTypeEnum || (PoThemeTypeEnum = {}));
|
|
19651
19684
|
|
|
19685
|
+
/**
|
|
19686
|
+
* Define estilos específicos por componente e onRoot para temas de acessibilidade AA.
|
|
19687
|
+
*/
|
|
19688
|
+
const poThemeDefaultAA = {
|
|
19689
|
+
perComponent: {},
|
|
19690
|
+
onRoot: {
|
|
19691
|
+
/*------------------------------------*\
|
|
19692
|
+
COMMON
|
|
19693
|
+
\*------------------------------------*/
|
|
19694
|
+
'--outline-width': 'var(--border-width-md)',
|
|
19695
|
+
'--outline-width-focus-visible': 'var(--border-width-md)'
|
|
19696
|
+
}
|
|
19697
|
+
};
|
|
19698
|
+
|
|
19699
|
+
/**
|
|
19700
|
+
* Define estilos específicos por componente e onRoot para temas de acessibilidade AAA.
|
|
19701
|
+
*/
|
|
19702
|
+
const poThemeDefaultAAA = {
|
|
19703
|
+
perComponent: {},
|
|
19704
|
+
onRoot: {
|
|
19705
|
+
/*------------------------------------*\
|
|
19706
|
+
FONT
|
|
19707
|
+
\*------------------------------------*/
|
|
19708
|
+
'--font-family': 'Roboto',
|
|
19709
|
+
'--font-family-theme': 'Roboto',
|
|
19710
|
+
'--font-family-theme-bold': 'Roboto-Bold',
|
|
19711
|
+
'--font-family-theme-extra-light': 'Roboto-Condensed-Light',
|
|
19712
|
+
'--font-family-heading': 'Roboto',
|
|
19713
|
+
'--font-family-code': 'Monospace'
|
|
19714
|
+
}
|
|
19715
|
+
};
|
|
19716
|
+
|
|
19652
19717
|
/**
|
|
19653
19718
|
* Define as cores de ação padrão para temas claros.
|
|
19654
19719
|
*/
|
|
@@ -19734,6 +19799,9 @@ const poThemeDefaultFeedback = {
|
|
|
19734
19799
|
darkest: '#473400'
|
|
19735
19800
|
}
|
|
19736
19801
|
};
|
|
19802
|
+
/**
|
|
19803
|
+
* Define as cores da Brand padrão para temas claros.
|
|
19804
|
+
*/
|
|
19737
19805
|
const poThemeDefaultBrands = {
|
|
19738
19806
|
'01': {
|
|
19739
19807
|
lightest: '#f2eaf6',
|
|
@@ -19752,33 +19820,219 @@ const poThemeDefaultBrands = {
|
|
|
19752
19820
|
}
|
|
19753
19821
|
};
|
|
19754
19822
|
/**
|
|
19755
|
-
* Define estilos específicos por componente e onRoot para temas claros.
|
|
19823
|
+
* Define estilos específicos por componente e onRoot para temas claros para AAA.
|
|
19756
19824
|
*/
|
|
19757
19825
|
const poThemeDefaultLightValues = {
|
|
19758
19826
|
perComponent: {},
|
|
19827
|
+
onRoot: {}
|
|
19828
|
+
};
|
|
19829
|
+
|
|
19830
|
+
/**
|
|
19831
|
+
* Define as cores de ação padrão para temas escuros.
|
|
19832
|
+
*/
|
|
19833
|
+
const poThemeDefaultActionsDark = {
|
|
19834
|
+
/** Cor padrão. */
|
|
19835
|
+
default: 'var(--color-brand-01-dark)',
|
|
19836
|
+
/** Cor ao passar o mouse. */
|
|
19837
|
+
hover: 'var(--color-brand-01-darker)',
|
|
19838
|
+
/** Cor quando pressionado. */
|
|
19839
|
+
pressed: 'var(--color-brand-01-darkest)',
|
|
19840
|
+
/** Cor quando desabilitado. */
|
|
19841
|
+
disabled: 'var(--color-neutral-mid-40)',
|
|
19842
|
+
/** Cor ao focar. */
|
|
19843
|
+
focus: 'var(--color-brand-01-darkest)'
|
|
19844
|
+
};
|
|
19845
|
+
/**
|
|
19846
|
+
* Define as cores neutras padrão para temas escuros.
|
|
19847
|
+
*/
|
|
19848
|
+
const poThemeDefaultNeutralsDark = {
|
|
19849
|
+
/** Tons de cinza claro. */
|
|
19850
|
+
light: {
|
|
19851
|
+
'00': '#1c1c1c',
|
|
19852
|
+
'05': '#202020',
|
|
19853
|
+
'10': '#2b2b2b',
|
|
19854
|
+
'20': '#3b3b3b',
|
|
19855
|
+
'30': '#5a5a5a'
|
|
19856
|
+
},
|
|
19857
|
+
/** Tons de cinza intermediários. */
|
|
19858
|
+
mid: {
|
|
19859
|
+
'40': '#7c7c7c',
|
|
19860
|
+
'60': '#a1a1a1'
|
|
19861
|
+
},
|
|
19862
|
+
/** Tons de cinza escuro. */
|
|
19863
|
+
dark: {
|
|
19864
|
+
'70': '#c1c1c1',
|
|
19865
|
+
'80': '#d9d9d9',
|
|
19866
|
+
'90': '#eeeeee',
|
|
19867
|
+
'95': '#fbfbfb'
|
|
19868
|
+
}
|
|
19869
|
+
};
|
|
19870
|
+
/**
|
|
19871
|
+
* Define as cores de feedback padrão para temas escuros.
|
|
19872
|
+
*/
|
|
19873
|
+
const poThemeDefaultFeedbackDark = {
|
|
19874
|
+
/** Cores para feedback negativo. */
|
|
19875
|
+
negative: {
|
|
19876
|
+
lightest: '#4a1512',
|
|
19877
|
+
lighter: '#72211d',
|
|
19878
|
+
light: '#9b2d27',
|
|
19879
|
+
base: '#be3e37',
|
|
19880
|
+
dark: '#d58581',
|
|
19881
|
+
darker: '#e3aeab',
|
|
19882
|
+
darkest: '#f6e6e5'
|
|
19883
|
+
},
|
|
19884
|
+
/** Cores para feedback informativo. */
|
|
19885
|
+
info: {
|
|
19886
|
+
lightest: '#081536',
|
|
19887
|
+
lighter: '#0f2557',
|
|
19888
|
+
light: '#173782',
|
|
19889
|
+
base: '#0079b8',
|
|
19890
|
+
dark: '#7996d7',
|
|
19891
|
+
darker: '#b0c1e8',
|
|
19892
|
+
darkest: '#e3e9f7'
|
|
19893
|
+
},
|
|
19894
|
+
/** Cores para feedback positivo. */
|
|
19895
|
+
positive: {
|
|
19896
|
+
lightest: '#002415',
|
|
19897
|
+
lighter: '#083a25',
|
|
19898
|
+
light: '#0f5236',
|
|
19899
|
+
base: '#107048',
|
|
19900
|
+
dark: '#41b483',
|
|
19901
|
+
darker: '#7ecead',
|
|
19902
|
+
darkest: '#def7ed'
|
|
19903
|
+
},
|
|
19904
|
+
/** Cores para feedback de aviso. */
|
|
19905
|
+
warning: {
|
|
19906
|
+
lightest: '#473400',
|
|
19907
|
+
lighter: '#705200',
|
|
19908
|
+
light: '#d8a20e',
|
|
19909
|
+
base: '#efba2a',
|
|
19910
|
+
dark: '#f1cd6a',
|
|
19911
|
+
darker: '#f7dd97',
|
|
19912
|
+
darkest: '#fcf6e3'
|
|
19913
|
+
}
|
|
19914
|
+
};
|
|
19915
|
+
const poThemeDefaultBrandsDark = {
|
|
19916
|
+
'01': {
|
|
19917
|
+
lightest: '#260538',
|
|
19918
|
+
lighter: '#400e58',
|
|
19919
|
+
light: '#5b1c7d',
|
|
19920
|
+
base: '#753399',
|
|
19921
|
+
dark: '#bd94d1',
|
|
19922
|
+
darker: '#d9c2e5',
|
|
19923
|
+
darkest: '#f2eaf6'
|
|
19924
|
+
},
|
|
19925
|
+
'02': {
|
|
19926
|
+
base: '#b92f72'
|
|
19927
|
+
},
|
|
19928
|
+
'03': {
|
|
19929
|
+
base: '#ffd464'
|
|
19930
|
+
}
|
|
19931
|
+
};
|
|
19932
|
+
/**
|
|
19933
|
+
* Define estilos específicos por componente e onRoot para temas escuros.
|
|
19934
|
+
*/
|
|
19935
|
+
const poThemeDefaultDarkValues = {
|
|
19936
|
+
perComponent: {
|
|
19937
|
+
/** TAB */
|
|
19938
|
+
'.po-tab-border-active': {
|
|
19939
|
+
'background-color': 'var(--color)'
|
|
19940
|
+
},
|
|
19941
|
+
/** GAUGE */
|
|
19942
|
+
'.po-gauge-wrapper': {
|
|
19943
|
+
'background-color': 'var(--color-neutral-light-00)'
|
|
19944
|
+
},
|
|
19945
|
+
/** OVERLAY */
|
|
19946
|
+
'po-overlay': {
|
|
19947
|
+
'--color-overlay': 'var(--color-neutral-light-20)'
|
|
19948
|
+
},
|
|
19949
|
+
/** MODAL */
|
|
19950
|
+
'po-modal': {
|
|
19951
|
+
'--color-overlay': 'var(--color-neutral-light-20)'
|
|
19952
|
+
},
|
|
19953
|
+
/** TOASTER */
|
|
19954
|
+
'po-toaster': {
|
|
19955
|
+
'--color-icon': 'var(--color-neutral-dark-80)',
|
|
19956
|
+
'--color-icon-warning': 'var(--color-neutral-light-00)'
|
|
19957
|
+
},
|
|
19958
|
+
/** BADGE */
|
|
19959
|
+
'po-badge': {
|
|
19960
|
+
'--color': 'var(--color-neutral-dark-95)'
|
|
19961
|
+
},
|
|
19962
|
+
'po-badge[p-status=warning]': {
|
|
19963
|
+
'--color': 'var(--color-neutral-light-00)'
|
|
19964
|
+
},
|
|
19965
|
+
// CHART: AXIS LABEL
|
|
19966
|
+
'po-chart po-chart-container > svg .po-chart-axis-x-label, .po-chart-axis-y-label': {
|
|
19967
|
+
'fill': 'var(--color-neutral-dark-95)'
|
|
19968
|
+
},
|
|
19969
|
+
// LINK: item visitado
|
|
19970
|
+
'po-link': {
|
|
19971
|
+
'--text-color-visited': 'var(--color-action-default)'
|
|
19972
|
+
},
|
|
19973
|
+
// focus e outline: po-rich-text-body/ poinfo/ po-list-view/ po-stepper-circle (mudar no po-style)
|
|
19974
|
+
'po-rich-text-body .po-rich-text-body:focus-visible, po-info .po-info-link:focus-visible, po-list-view a.po-list-view-title-link:focus-visible, po-stepper-circle .po-stepper-circle:focus-visible': {
|
|
19975
|
+
'border-color': 'var(--color-action-default);',
|
|
19976
|
+
'outline-color': 'var(--color-action-focus);',
|
|
19977
|
+
'outline-width': 'var(--outline-width-focus-visible);',
|
|
19978
|
+
'outline-style': 'solid;',
|
|
19979
|
+
'outline-offset': '2px;'
|
|
19980
|
+
},
|
|
19981
|
+
// background container
|
|
19982
|
+
'po-container': {
|
|
19983
|
+
'--background': 'var(--color-neutral-light-00);'
|
|
19984
|
+
},
|
|
19985
|
+
// Background input disabled
|
|
19986
|
+
'div.po-lookup-filter-content input.po-input, input.po-input, po-datepicker, po-datepicker-range, po-decimal, po-email, po-input, po-login, po-lookup, po-number, po-password, po-url, po-combo, po-search, po-select, po-multiselect': {
|
|
19987
|
+
'--background-disabled': 'var(--color-neutral-light-20);'
|
|
19988
|
+
},
|
|
19989
|
+
// autocomplete dos inputs (setar no po-style)
|
|
19990
|
+
'po-input input:-webkit-autofill, po-datepicker input:-webkit-autofill, po-datepicker-range input:-webkit-autofill, po-decimal input:-webkit-autofill, po-email input:-webkit-autofill, po-input input:-webkit-autofill, po-login input:-webkit-autofill, po-lookup input:-webkit-autofill, po-number input:-webkit-autofill, po-password input:-webkit-autofill, po-url input:-webkit-autofill, po-combo input:-webkit-autofill': {
|
|
19991
|
+
'-webkit-background-clip': 'text',
|
|
19992
|
+
'-webkit-text-fill-color': '#ffffff',
|
|
19993
|
+
'transition': 'background-color 5000s ease-in-out 0s',
|
|
19994
|
+
'box-shadow': 'inset 0 0 20px 20px #23232329'
|
|
19995
|
+
},
|
|
19996
|
+
'po-overlay, po-page-slide': {
|
|
19997
|
+
'--color-overlay': 'var(--color-neutral-light-05)'
|
|
19998
|
+
},
|
|
19999
|
+
/** SELECT */
|
|
20000
|
+
'po-select': {
|
|
20001
|
+
'--color-hover': 'var(--color-action-hover);'
|
|
20002
|
+
}
|
|
20003
|
+
},
|
|
19759
20004
|
onRoot: {
|
|
19760
|
-
/*
|
|
19761
|
-
'--color-
|
|
19762
|
-
'--color-
|
|
19763
|
-
'--color-
|
|
19764
|
-
'--color-
|
|
19765
|
-
'--color-
|
|
19766
|
-
'--color-
|
|
19767
|
-
|
|
19768
|
-
'--color-
|
|
19769
|
-
'--color-
|
|
19770
|
-
'--color-
|
|
19771
|
-
'--color-
|
|
19772
|
-
'--color-
|
|
19773
|
-
'--color-
|
|
19774
|
-
'--color-
|
|
19775
|
-
'--color-
|
|
19776
|
-
'--color-
|
|
19777
|
-
|
|
19778
|
-
'--color-
|
|
19779
|
-
|
|
20005
|
+
/* CORES LEGADAS */
|
|
20006
|
+
'--color-neutral': 'var(--color-neutral-dark-70)',
|
|
20007
|
+
'--color-secondary': 'var(--color-action-default)',
|
|
20008
|
+
'--color-secondary-light-20': 'var(--color-brand-01-lighter)',
|
|
20009
|
+
'--color-secondary-light-40': 'var(--color-brand-01-light)',
|
|
20010
|
+
'--color-secondary-dark-20': 'var(--color-brand-01-dark)',
|
|
20011
|
+
'--color-secondary-dark-40': 'var(--color-brand-01-darker)',
|
|
20012
|
+
'--color-secondary-dark-80': 'var(--color-brand-01-darkest)',
|
|
20013
|
+
'--color-black-alpha-10': 'rgba(255, 255, 255, 0.1)',
|
|
20014
|
+
'--color-black-alpha-15': 'rgba(255, 255, 255, 0.15)',
|
|
20015
|
+
'--color-black-alpha-30': 'rgba(255, 255, 255, 0.3)',
|
|
20016
|
+
'--color-primary-light-80': 'color-mix(in srgb, var(--color-brand-02-base) 80%, black)',
|
|
20017
|
+
'--color-primary-light-95': 'color-mix(in srgb, var(--color-brand-02-base) 95%, black)',
|
|
20018
|
+
'--color-primary-alpha-50': 'color-mix(in srgb, var(--color-brand-02-base) 50%, white)',
|
|
20019
|
+
'--color-primary-dark-20': 'color-mix(in srgb, var(--color-brand-02-base) 20%, white)',
|
|
20020
|
+
'--color-primary-dark-40': 'color-mix(in srgb, var(--color-brand-02-base) 40%, white)',
|
|
20021
|
+
'--color-secondary-dark-60-alpha-70': 'color-mix(in srgb, var(--color-neutral-mid-60) 70%, white)',
|
|
20022
|
+
'--color-tertiary-light-90': 'color-mix(in srgb, var(--color-brand-03-base) 90%, black)',
|
|
20023
|
+
'--color-tertiary-dark-5': 'color-mix(in srgb, var(--color-brand-03-base) 5%, white)',
|
|
20024
|
+
/* PAGE */
|
|
20025
|
+
'--color-page-background-color-page': 'var(--color-neutral-light-05)',
|
|
20026
|
+
/* TOOLBAR BADGE */
|
|
20027
|
+
'--color-toolbar-color-badge-text': 'var(--color-neutral-dark-95)',
|
|
20028
|
+
/* POPOVER */
|
|
20029
|
+
'--shadow-popover-box-shadow': '0 0 4px 0 var(--color-neutral-light-20)',
|
|
20030
|
+
'--shadow-popover-box-shadow-arrow': '-1px -1px 1px 0 var(--color-neutral-light-20)',
|
|
19780
20031
|
/* CALENDAR */
|
|
19781
|
-
'--color-calendar-background-color-box-background-range': 'var(--color-
|
|
20032
|
+
'--color-calendar-background-color-box-background-range': 'var(--color-brand-01-lightest)',
|
|
20033
|
+
/* STEPPER */
|
|
20034
|
+
'--color-stepper-circle-disabled': 'var(--color-neutral-mid-40)',
|
|
20035
|
+
'--color-stepper-bar-disabled': 'var(--color-neutral-mid-40)'
|
|
19782
20036
|
}
|
|
19783
20037
|
};
|
|
19784
20038
|
|
|
@@ -19791,12 +20045,17 @@ const poThemeDefaultLight = {
|
|
|
19791
20045
|
action: poThemeDefaultActions,
|
|
19792
20046
|
neutral: poThemeDefaultNeutrals,
|
|
19793
20047
|
feedback: poThemeDefaultFeedback
|
|
19794
|
-
}
|
|
19795
|
-
|
|
19796
|
-
|
|
19797
|
-
|
|
19798
|
-
|
|
19799
|
-
|
|
20048
|
+
}
|
|
20049
|
+
};
|
|
20050
|
+
/**
|
|
20051
|
+
* Tokens de tema padrão para o tema escuro.
|
|
20052
|
+
*/
|
|
20053
|
+
const poThemeDefaultDark = {
|
|
20054
|
+
color: {
|
|
20055
|
+
brand: poThemeDefaultBrandsDark,
|
|
20056
|
+
action: poThemeDefaultActionsDark,
|
|
20057
|
+
neutral: poThemeDefaultNeutralsDark,
|
|
20058
|
+
feedback: poThemeDefaultFeedbackDark
|
|
19800
20059
|
}
|
|
19801
20060
|
};
|
|
19802
20061
|
/**
|
|
@@ -19804,10 +20063,19 @@ const poThemeDefaultLight = {
|
|
|
19804
20063
|
*/
|
|
19805
20064
|
const poThemeDefault = {
|
|
19806
20065
|
name: 'default',
|
|
19807
|
-
type:
|
|
19808
|
-
|
|
19809
|
-
|
|
19810
|
-
|
|
20066
|
+
type: [
|
|
20067
|
+
{
|
|
20068
|
+
light: poThemeDefaultLight,
|
|
20069
|
+
dark: poThemeDefaultDark,
|
|
20070
|
+
a11y: PoThemeA11yEnum.AAA
|
|
20071
|
+
},
|
|
20072
|
+
{
|
|
20073
|
+
light: poThemeDefaultLight,
|
|
20074
|
+
dark: poThemeDefaultDark,
|
|
20075
|
+
a11y: PoThemeA11yEnum.AA
|
|
20076
|
+
}
|
|
20077
|
+
],
|
|
20078
|
+
active: { type: PoThemeTypeEnum.light, a11y: PoThemeA11yEnum.AAA }
|
|
19811
20079
|
};
|
|
19812
20080
|
|
|
19813
20081
|
/**
|
|
@@ -19832,7 +20100,7 @@ class PoThemeService {
|
|
|
19832
20100
|
window;
|
|
19833
20101
|
document;
|
|
19834
20102
|
renderer;
|
|
19835
|
-
theme
|
|
20103
|
+
theme;
|
|
19836
20104
|
_iconToken;
|
|
19837
20105
|
get iconNameLib() {
|
|
19838
20106
|
return this._iconToken.NAME_LIB;
|
|
@@ -19842,24 +20110,37 @@ class PoThemeService {
|
|
|
19842
20110
|
this.document = document;
|
|
19843
20111
|
this.renderer = rendererFactory.createRenderer(null, null);
|
|
19844
20112
|
this._iconToken = value ?? PhosphorIconDictionary;
|
|
19845
|
-
|
|
19846
|
-
|
|
19847
|
-
|
|
19848
|
-
|
|
19849
|
-
|
|
19850
|
-
|
|
19851
|
-
|
|
19852
|
-
|
|
19853
|
-
|
|
19854
|
-
|
|
19855
|
-
|
|
20113
|
+
// set triple A for all themes (its the base theme)
|
|
20114
|
+
// result: html:root
|
|
20115
|
+
this.setPerComponentAndOnRoot(undefined, poThemeDefaultAAA.perComponent, poThemeDefaultAAA.onRoot);
|
|
20116
|
+
// set double A
|
|
20117
|
+
// result: html[class*="-AA"]:root
|
|
20118
|
+
this.setPerComponentAndOnRoot({ a11y: PoThemeA11yEnum.AA }, poThemeDefaultAA.perComponent, poThemeDefaultAA.onRoot);
|
|
20119
|
+
// set Light mode values
|
|
20120
|
+
// result: html[class*="-light"]:root
|
|
20121
|
+
this.setPerComponentAndOnRoot({ type: PoThemeTypeEnum.light }, poThemeDefaultLightValues.perComponent, poThemeDefaultLightValues.onRoot);
|
|
20122
|
+
// set Dark mode values
|
|
20123
|
+
// result: html[class*="-dark"]:root
|
|
20124
|
+
this.setPerComponentAndOnRoot({ type: PoThemeTypeEnum.dark }, poThemeDefaultDarkValues.perComponent, poThemeDefaultDarkValues.onRoot);
|
|
20125
|
+
}
|
|
20126
|
+
/**
|
|
20127
|
+
* Aplica um tema ao componente de acordo com o tipo de tema e o nível de acessibilidade especificados.
|
|
20128
|
+
*
|
|
20129
|
+
* Este método configura o tema do componente com base no objeto `themeConfig` fornecido, no `themeType` e no `a11yLevel`.
|
|
20130
|
+
* Além disso, ele pode opcionalmente salvar a preferência de tema no localStorage, se solicitado.
|
|
20131
|
+
*
|
|
20132
|
+
* @param {PoTheme} themeConfig - Configuração de tema a ser aplicada ao componente.
|
|
20133
|
+
* @param {PoThemeTypeEnum} [themeType=PoThemeTypeEnum.light] - (Opcional) Tipo de tema, podendo ser 'light' (claro) ou 'dark' (escuro). O tema claro é o padrão.
|
|
20134
|
+
* @param {PoThemeA11yEnum} [a11yLevel=PoThemeA11yEnum.AAA] - (Opcional) Nível de acessibilidade do tema, podendo ser AA ou AAA. Padrão é AAA.
|
|
20135
|
+
* @param {boolean} [persistPreference=true] - (Opcional) Define se a preferência de tema deve ser salva no localStorage para persistência. `true` para salvar, `false` para não salvar.
|
|
20136
|
+
*/
|
|
20137
|
+
setTheme(themeConfig, themeType = PoThemeTypeEnum.light, a11yLevel = PoThemeA11yEnum.AAA, persistPreference = true) {
|
|
19856
20138
|
// Change theme name, remove special characteres and number, replace space with dash
|
|
19857
|
-
|
|
19858
|
-
|
|
19859
|
-
.
|
|
19860
|
-
.
|
|
19861
|
-
|
|
19862
|
-
const _themeType = theme.type[PoThemeTypeEnum[themeType]];
|
|
20139
|
+
this.formatTheme(themeConfig, themeType, a11yLevel);
|
|
20140
|
+
const _themeActive = Array.isArray(themeConfig.type) && themeConfig.type.length >= 1
|
|
20141
|
+
? themeConfig.type.find(e => e.a11y === a11yLevel)
|
|
20142
|
+
: themeConfig.type;
|
|
20143
|
+
const _themeType = _themeActive[PoThemeTypeEnum[themeType]];
|
|
19863
20144
|
if (!_themeType) {
|
|
19864
20145
|
return;
|
|
19865
20146
|
}
|
|
@@ -19868,14 +20149,91 @@ class PoThemeService {
|
|
|
19868
20149
|
const onRootStyles = _themeType.onRoot ? this.generateAdditionalStyles(_themeType.onRoot) : '';
|
|
19869
20150
|
const additionalStyles = this.generateAdditionalStyles(_themeType);
|
|
19870
20151
|
const combinedStyles = `
|
|
19871
|
-
.${
|
|
20152
|
+
html.${themeConfig.name}-${PoThemeTypeEnum[themeType]}-${a11yLevel}:root {
|
|
19872
20153
|
${colorStyles}
|
|
19873
20154
|
${perComponentStyles}
|
|
19874
20155
|
${onRootStyles}
|
|
19875
20156
|
${additionalStyles}
|
|
19876
20157
|
}`;
|
|
19877
20158
|
this.applyThemeStyles(combinedStyles);
|
|
19878
|
-
this.changeThemeType(
|
|
20159
|
+
this.changeThemeType(themeConfig, persistPreference);
|
|
20160
|
+
}
|
|
20161
|
+
/**
|
|
20162
|
+
* @docsPrivate
|
|
20163
|
+
*
|
|
20164
|
+
* Aplica estilos customizados para o componente e para o root HTML, utilizando os tokens definidos.
|
|
20165
|
+
*
|
|
20166
|
+
* Esse método é chamado para inserir ou atualizar estilos no DOM, aplicando tanto tokens de `onRoot` (ex: `--font-family: 'Roboto'`)
|
|
20167
|
+
* quanto estilos específicos de componentes (`perComponent`, como `po-listbox [hidden]: { display: 'flex !important' }`).
|
|
20168
|
+
*
|
|
20169
|
+
* O seletor CSS gerado leva em consideração o tema (`type`) e as configurações de acessibilidade (`a11y`) do tema ativo.
|
|
20170
|
+
* A classe do tema é aplicada no HTML e pode ser formatada como `html[class*="-light-AA"]` para personalizações
|
|
20171
|
+
* em temas específicos.
|
|
20172
|
+
*
|
|
20173
|
+
* @param {PoThemeActive} active - Objeto que define o tema ativo, com `type` e `a11y`.
|
|
20174
|
+
* @param {any} perComponent - Objeto contendo os estilos específicos para componentes a serem aplicados.
|
|
20175
|
+
* @param {any} onRoot - Objeto contendo tokens de estilo que serão aplicados diretamente no seletor `:root` do HTML.
|
|
20176
|
+
*
|
|
20177
|
+
* @example
|
|
20178
|
+
*
|
|
20179
|
+
* // Exemplo de utilização com um tema ativo e tokens de estilo
|
|
20180
|
+
* const themeActive = { type: 'light', a11y: 'AA' };
|
|
20181
|
+
* const perComponentStyles = {
|
|
20182
|
+
* 'po-listbox [hidden]': {
|
|
20183
|
+
* 'display': 'flex !important'
|
|
20184
|
+
* }
|
|
20185
|
+
* };
|
|
20186
|
+
* const onRootStyles = {
|
|
20187
|
+
* '--font-family': 'Roboto',
|
|
20188
|
+
* '--background-color': '#fff'
|
|
20189
|
+
* };
|
|
20190
|
+
*
|
|
20191
|
+
* this.setPerComponentAndOnRoot(themeActive, perComponentStyles, onRootStyles);
|
|
20192
|
+
*
|
|
20193
|
+
* // Resultado:
|
|
20194
|
+
* // Gera e aplica os seguintes estilos no DOM
|
|
20195
|
+
* // html[class*="-light-AA"]:root {
|
|
20196
|
+
* // --font-family: 'Roboto';
|
|
20197
|
+
* // --background-color: '#fff';
|
|
20198
|
+
* // po-listbox [hidden] {
|
|
20199
|
+
* // display: flex !important;
|
|
20200
|
+
* // }
|
|
20201
|
+
* // }
|
|
20202
|
+
*
|
|
20203
|
+
*/
|
|
20204
|
+
setPerComponentAndOnRoot(active, perComponent, onRoot) {
|
|
20205
|
+
const perComponentStyles = perComponent ? this.generatePerComponentStyles(perComponent) : '';
|
|
20206
|
+
const onRootStyles = onRoot ? this.generateAdditionalStyles(onRoot) : '';
|
|
20207
|
+
let selector = 'html';
|
|
20208
|
+
const typeSelector = active?.type !== undefined ? `-${PoThemeTypeEnum[active.type]}` : '';
|
|
20209
|
+
const accessibilitySelector = active?.a11y !== undefined ? `-${PoThemeA11yEnum[active.a11y]}` : '';
|
|
20210
|
+
if (typeSelector && accessibilitySelector) {
|
|
20211
|
+
selector += `[class*="${typeSelector}${accessibilitySelector}"]`;
|
|
20212
|
+
}
|
|
20213
|
+
else if (!typeSelector && accessibilitySelector) {
|
|
20214
|
+
selector += `[class$="${accessibilitySelector}"]`;
|
|
20215
|
+
}
|
|
20216
|
+
else if (typeSelector) {
|
|
20217
|
+
selector += `[class*="${typeSelector}"]`;
|
|
20218
|
+
}
|
|
20219
|
+
const styleCss = `
|
|
20220
|
+
${selector}:root {
|
|
20221
|
+
${perComponentStyles}
|
|
20222
|
+
${onRootStyles}
|
|
20223
|
+
}
|
|
20224
|
+
`;
|
|
20225
|
+
let styleElement = this.document.head.querySelector('#baseStyle');
|
|
20226
|
+
if (!styleElement) {
|
|
20227
|
+
styleElement = this.renderer.createElement('style');
|
|
20228
|
+
styleElement.id = 'baseStyle';
|
|
20229
|
+
this.renderer.appendChild(styleElement, this.renderer.createText(styleCss));
|
|
20230
|
+
this.renderer.appendChild(this.document.head, styleElement);
|
|
20231
|
+
}
|
|
20232
|
+
else {
|
|
20233
|
+
if (!styleElement.textContent.includes(styleCss.trim())) {
|
|
20234
|
+
this.renderer.appendChild(styleElement, this.renderer.createText(styleCss));
|
|
20235
|
+
}
|
|
20236
|
+
}
|
|
19879
20237
|
}
|
|
19880
20238
|
/**
|
|
19881
20239
|
* @docsPrivate
|
|
@@ -19897,17 +20255,23 @@ class PoThemeService {
|
|
|
19897
20255
|
* @param styleCss Os estilos CSS a serem aplicados.
|
|
19898
20256
|
*/
|
|
19899
20257
|
applyThemeStyles(styleCss) {
|
|
19900
|
-
const styleElement = this.createStyleElement(styleCss);
|
|
19901
|
-
const existingStyleElement = document.head.querySelector('#
|
|
20258
|
+
const styleElement = this.createStyleElement(styleCss, 'theme');
|
|
20259
|
+
const existingStyleElement = document.head.querySelector('#theme');
|
|
19902
20260
|
if (existingStyleElement) {
|
|
19903
20261
|
this.renderer.removeChild(document.head, existingStyleElement);
|
|
19904
20262
|
}
|
|
19905
20263
|
this.renderer.appendChild(document.head, styleElement);
|
|
19906
20264
|
}
|
|
19907
|
-
changeThemeType(theme) {
|
|
19908
|
-
this.cleanThemeActive();
|
|
19909
|
-
|
|
19910
|
-
|
|
20265
|
+
changeThemeType(theme, persistPreference = true) {
|
|
20266
|
+
this.cleanThemeActive(persistPreference);
|
|
20267
|
+
if (persistPreference) {
|
|
20268
|
+
this.setThemeLocal(theme);
|
|
20269
|
+
}
|
|
20270
|
+
document
|
|
20271
|
+
.getElementsByTagName('html')[0]
|
|
20272
|
+
.classList.add(...[
|
|
20273
|
+
`${theme.name}-${PoThemeTypeEnum[this.getActiveTypeFromTheme(theme.active)]}-${PoThemeA11yEnum[this.getActiveA11yFromTheme(theme.active)]}`
|
|
20274
|
+
]);
|
|
19911
20275
|
}
|
|
19912
20276
|
/**
|
|
19913
20277
|
* Persiste e define o tema do aplicativo com base nos dados armazenados.
|
|
@@ -19918,9 +20282,35 @@ class PoThemeService {
|
|
|
19918
20282
|
*/
|
|
19919
20283
|
persistThemeActive() {
|
|
19920
20284
|
const _theme = this.getThemeActive();
|
|
19921
|
-
this.setTheme(_theme, _theme.active);
|
|
20285
|
+
this.setTheme(_theme, this.getActiveTypeFromTheme(_theme.active), this.getActiveA11yFromTheme(_theme.active));
|
|
19922
20286
|
return _theme;
|
|
19923
20287
|
}
|
|
20288
|
+
formatTheme(themeConfig, themeType, a11yLevel) {
|
|
20289
|
+
themeConfig.name = themeConfig.name
|
|
20290
|
+
.toLowerCase()
|
|
20291
|
+
.replace(/[^a-zA-Z ]/g, '')
|
|
20292
|
+
.replace(/\s+/g, '-');
|
|
20293
|
+
themeConfig.active = { type: themeType, a11y: a11yLevel };
|
|
20294
|
+
}
|
|
20295
|
+
applyTheme(theme) {
|
|
20296
|
+
const _localTheme = this.getThemeActive();
|
|
20297
|
+
if (!theme) {
|
|
20298
|
+
if (_localTheme) {
|
|
20299
|
+
this.persistThemeActive();
|
|
20300
|
+
return _localTheme;
|
|
20301
|
+
}
|
|
20302
|
+
return undefined;
|
|
20303
|
+
}
|
|
20304
|
+
const _type = this.getActiveTypeFromTheme(theme.active);
|
|
20305
|
+
const _accessibility = this.getActiveA11yFromTheme(theme.active);
|
|
20306
|
+
if (_localTheme && JSON.stringify(_localTheme) === JSON.stringify(theme)) {
|
|
20307
|
+
this.persistThemeActive();
|
|
20308
|
+
return _localTheme;
|
|
20309
|
+
}
|
|
20310
|
+
this.formatTheme(theme, _type, _accessibility);
|
|
20311
|
+
this.setTheme(theme, _type, _accessibility);
|
|
20312
|
+
return theme;
|
|
20313
|
+
}
|
|
19924
20314
|
/**
|
|
19925
20315
|
* Altera o tipo do tema armazenado e aplica os novos estilos ao documento.
|
|
19926
20316
|
*
|
|
@@ -19930,17 +20320,35 @@ class PoThemeService {
|
|
|
19930
20320
|
*/
|
|
19931
20321
|
changeCurrentThemeType(type) {
|
|
19932
20322
|
const _theme = this.getThemeActive();
|
|
19933
|
-
_theme.active = type;
|
|
20323
|
+
typeof _theme.active === 'object' ? (_theme.active.type = type) : (_theme.active = type);
|
|
19934
20324
|
this.changeThemeType(_theme);
|
|
19935
20325
|
}
|
|
19936
20326
|
/**
|
|
19937
20327
|
* Método remove o tema armazenado e limpa todos os estilos de tema
|
|
19938
20328
|
* aplicados ao documento.
|
|
20329
|
+
*
|
|
20330
|
+
* @param {boolean} [persistPreference=true] - (Opcional) Define se a preferência de tema não deve ser mantida no localStorage para persistência. `true` para remover, `false` para manter.
|
|
19939
20331
|
*/
|
|
19940
|
-
cleanThemeActive() {
|
|
19941
|
-
|
|
19942
|
-
|
|
19943
|
-
|
|
20332
|
+
cleanThemeActive(persistPreference = true) {
|
|
20333
|
+
// Sufixo existentes hoje
|
|
20334
|
+
const themeSuffixes = ['-light-', '-dark-'];
|
|
20335
|
+
const htmlElement = document.getElementsByTagName('html')[0];
|
|
20336
|
+
// Converte `classList` em um array e remove as classes que terminam com os sufixos especificados
|
|
20337
|
+
Array.from(htmlElement.classList).forEach(className => {
|
|
20338
|
+
if (themeSuffixes.some(suffix => className.includes(suffix))) {
|
|
20339
|
+
htmlElement.classList.remove(className);
|
|
20340
|
+
}
|
|
20341
|
+
});
|
|
20342
|
+
// Remove o tema ativo do localStorage
|
|
20343
|
+
if (persistPreference) {
|
|
20344
|
+
localStorage.removeItem('totvs-theme');
|
|
20345
|
+
}
|
|
20346
|
+
}
|
|
20347
|
+
getActiveTypeFromTheme(active) {
|
|
20348
|
+
return typeof active === 'object' ? active.type : active;
|
|
20349
|
+
}
|
|
20350
|
+
getActiveA11yFromTheme(active) {
|
|
20351
|
+
return typeof active === 'object' ? active.a11y : PoThemeA11yEnum.AAA;
|
|
19944
20352
|
}
|
|
19945
20353
|
/**
|
|
19946
20354
|
* @docsPrivate
|
|
@@ -19948,7 +20356,7 @@ class PoThemeService {
|
|
|
19948
20356
|
* Este método define um dados do tema e o armazena.
|
|
19949
20357
|
* @param theme Os tokens de tema contendo os estilos adicionais a serem gerados.
|
|
19950
20358
|
*/
|
|
19951
|
-
|
|
20359
|
+
setThemeLocal(theme) {
|
|
19952
20360
|
if (theme) {
|
|
19953
20361
|
localStorage.setItem('totvs-theme', JSON.stringify(theme));
|
|
19954
20362
|
this.theme = theme;
|
|
@@ -19974,12 +20382,13 @@ class PoThemeService {
|
|
|
19974
20382
|
* @docsPrivate
|
|
19975
20383
|
*
|
|
19976
20384
|
* Gera estilos CSS com base nos tokens de cores fornecidos.
|
|
19977
|
-
* @param
|
|
20385
|
+
* @param css Os tokens de cor a serem usados para gerar os estilos.
|
|
20386
|
+
* @param id id do style a ser aplicado.
|
|
19978
20387
|
* @returns Uma string contendo os estilos CSS gerados.
|
|
19979
20388
|
*/
|
|
19980
|
-
createStyleElement(css) {
|
|
20389
|
+
createStyleElement(css, id) {
|
|
19981
20390
|
const styleElement = this.renderer.createElement('style');
|
|
19982
|
-
styleElement.id =
|
|
20391
|
+
styleElement.id = id;
|
|
19983
20392
|
this.renderer.appendChild(styleElement, this.renderer.createText(css));
|
|
19984
20393
|
return styleElement;
|
|
19985
20394
|
}
|
|
@@ -20084,6 +20493,44 @@ class PoThemeService {
|
|
|
20084
20493
|
svg = svg.concat(`%3E%3C/path%3E%3C/svg%3E");`);
|
|
20085
20494
|
return svg;
|
|
20086
20495
|
}
|
|
20496
|
+
/**
|
|
20497
|
+
* Define o tipo (light/dark) quando um tema está sendo aplicado.
|
|
20498
|
+
*
|
|
20499
|
+
* @param {PoTheme} theme - Objeto contendo as definições de tema a serem aplicadas no componente.
|
|
20500
|
+
* @param {PoThemeTypeEnum} [themeType=PoThemeTypeEnum.light] - (Opcional) Tipo de tema a ser aplicado, podendo ser 'light' (claro) ou 'dark' (escuro). Por padrão, o tema claro é aplicado.
|
|
20501
|
+
*/
|
|
20502
|
+
setThemeType(theme, themeType = PoThemeTypeEnum.light) {
|
|
20503
|
+
const _accessibility = typeof theme.active === 'object' ? theme.active.a11y : PoThemeA11yEnum.AAA;
|
|
20504
|
+
this.setTheme(theme, themeType, _accessibility);
|
|
20505
|
+
}
|
|
20506
|
+
/**
|
|
20507
|
+
* Define o tipo (light/dark) para um tema já ativo.
|
|
20508
|
+
*
|
|
20509
|
+
* @param {PoThemeTypeEnum} [themeType=PoThemeTypeEnum.light] - (Opcional) Tipo de tema a ser aplicado, podendo ser 'light' (claro) ou 'dark' (escuro). Por padrão, o tema claro é aplicado.
|
|
20510
|
+
*/
|
|
20511
|
+
setCurrentThemeType(themeType = PoThemeTypeEnum.light) {
|
|
20512
|
+
const _theme = this.getThemeActive();
|
|
20513
|
+
this.setThemeType(_theme, themeType);
|
|
20514
|
+
}
|
|
20515
|
+
/**
|
|
20516
|
+
* Define o nivel de acessibilidade quando um tema está sendo aplicado.
|
|
20517
|
+
*
|
|
20518
|
+
* @param {PoTheme} theme - Objeto contendo as definições de tema a serem aplicadas no componente.
|
|
20519
|
+
* @param {PoThemeA11yEnum} [a11y=PoThemeA11yEnum.AAA] - (Opcional) Nível de acessibilidade a ser aplicado ao tema, como AA ou AAA. Se não for informado, por padrão a acessibilidade será AAA.
|
|
20520
|
+
*/
|
|
20521
|
+
setThemeA11y(theme, a11y = PoThemeA11yEnum.AAA) {
|
|
20522
|
+
const _type = (typeof theme.active === 'object' ? theme.active.type : theme.active) || 0;
|
|
20523
|
+
this.setTheme(theme, _type, a11y);
|
|
20524
|
+
}
|
|
20525
|
+
/**
|
|
20526
|
+
* Define o nivel de acessibilidade para um tema já ativo.
|
|
20527
|
+
*
|
|
20528
|
+
* @param {PoThemeA11yEnum} [a11y=PoThemeA11yEnum.AAA] - (Opcional) Nível de acessibilidade a ser aplicado ao tema, como AA ou AAA. Se não for informado, por padrão a acessibilidade será AAA.
|
|
20529
|
+
*/
|
|
20530
|
+
setCurrentThemeA11y(a11y = PoThemeA11yEnum.AAA) {
|
|
20531
|
+
const _theme = this.getThemeActive();
|
|
20532
|
+
this.setThemeA11y(_theme, a11y);
|
|
20533
|
+
}
|
|
20087
20534
|
static ɵfac = function PoThemeService_Factory(t) { return new (t || PoThemeService)(i0.ɵɵinject('Window'), i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i0.RendererFactory2), i0.ɵɵinject(ICONS_DICTIONARY, 8)); };
|
|
20088
20535
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoThemeService, factory: PoThemeService.ɵfac, providedIn: 'root' });
|
|
20089
20536
|
}
|
|
@@ -28759,9 +29206,9 @@ const _c2$b = ["contentElement"];
|
|
|
28759
29206
|
const _c3$7 = ["iconArrow"];
|
|
28760
29207
|
const _c4$2 = ["inp"];
|
|
28761
29208
|
const _c5 = ["poListbox"];
|
|
28762
|
-
function
|
|
28763
|
-
i0.ɵɵelementStart(0, "div",
|
|
28764
|
-
i0.ɵɵelement(1, "po-icon",
|
|
29209
|
+
function PoComboComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
29210
|
+
i0.ɵɵelementStart(0, "div", 20);
|
|
29211
|
+
i0.ɵɵelement(1, "po-icon", 21);
|
|
28765
29212
|
i0.ɵɵelementEnd();
|
|
28766
29213
|
} if (rf & 2) {
|
|
28767
29214
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -28769,50 +29216,50 @@ function PoComboComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
28769
29216
|
i0.ɵɵclassProp("po-field-icon-disabled", ctx_r1.disabled);
|
|
28770
29217
|
i0.ɵɵproperty("p-icon", ctx_r1.icon);
|
|
28771
29218
|
} }
|
|
28772
|
-
function
|
|
29219
|
+
function PoComboComponent_po_clean_11_Template(rf, ctx) { if (rf & 1) {
|
|
28773
29220
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
28774
|
-
i0.ɵɵelementStart(0, "po-clean",
|
|
28775
|
-
i0.ɵɵlistener("p-change-event", function
|
|
29221
|
+
i0.ɵɵelementStart(0, "po-clean", 22);
|
|
29222
|
+
i0.ɵɵlistener("p-change-event", function PoComboComponent_po_clean_11_Template_po_clean_p_change_event_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.clear($event)); })("click", function PoComboComponent_po_clean_11_Template_po_clean_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.clear(null); return i0.ɵɵresetView($event.preventDefault()); })("keydown.enter", function PoComboComponent_po_clean_11_Template_po_clean_keydown_enter_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.clearAndFocus(); return i0.ɵɵresetView($event.preventDefault()); });
|
|
28776
29223
|
i0.ɵɵelementEnd();
|
|
28777
29224
|
} if (rf & 2) {
|
|
28778
29225
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
28779
29226
|
i0.ɵɵproperty("p-element-ref", ctx_r1.inputEl);
|
|
28780
29227
|
i0.ɵɵattribute("aria-label", ctx_r1.literals.clean);
|
|
28781
29228
|
} }
|
|
28782
|
-
function
|
|
29229
|
+
function PoComboComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
28783
29230
|
i0.ɵɵelementContainer(0);
|
|
28784
29231
|
} }
|
|
28785
|
-
function
|
|
29232
|
+
function PoComboComponent_ng_template_16_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
28786
29233
|
i0.ɵɵelementContainer(0);
|
|
28787
29234
|
} }
|
|
28788
|
-
function
|
|
28789
|
-
i0.ɵɵtemplate(0,
|
|
29235
|
+
function PoComboComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
29236
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_16_ng_container_0_Template, 1, 0, "ng-container", 23);
|
|
28790
29237
|
} if (rf & 2) {
|
|
28791
29238
|
i0.ɵɵnextContext();
|
|
28792
|
-
const dropdownListbox_r4 = i0.ɵɵreference(
|
|
29239
|
+
const dropdownListbox_r4 = i0.ɵɵreference(22);
|
|
28793
29240
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r4);
|
|
28794
29241
|
} }
|
|
28795
|
-
function
|
|
29242
|
+
function PoComboComponent_ng_template_18_ng_template_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
28796
29243
|
i0.ɵɵelementContainer(0);
|
|
28797
29244
|
} }
|
|
28798
|
-
function
|
|
28799
|
-
i0.ɵɵtemplate(0,
|
|
29245
|
+
function PoComboComponent_ng_template_18_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
29246
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_ng_template_0_ng_container_0_Template, 1, 0, "ng-container", 23);
|
|
28800
29247
|
} if (rf & 2) {
|
|
28801
29248
|
i0.ɵɵnextContext(2);
|
|
28802
|
-
const dropdownListbox_r4 = i0.ɵɵreference(
|
|
29249
|
+
const dropdownListbox_r4 = i0.ɵɵreference(22);
|
|
28803
29250
|
i0.ɵɵproperty("ngTemplateOutlet", dropdownListbox_r4);
|
|
28804
29251
|
} }
|
|
28805
|
-
function
|
|
28806
|
-
i0.ɵɵtemplate(0,
|
|
29252
|
+
function PoComboComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
29253
|
+
i0.ɵɵtemplate(0, PoComboComponent_ng_template_18_ng_template_0_Template, 1, 1, "ng-template", 24);
|
|
28807
29254
|
} if (rf & 2) {
|
|
28808
29255
|
i0.ɵɵnextContext();
|
|
28809
|
-
const trigger_r5 = i0.ɵɵreference(
|
|
29256
|
+
const trigger_r5 = i0.ɵɵreference(5);
|
|
28810
29257
|
i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r5)("cdkConnectedOverlayOpen", true);
|
|
28811
29258
|
} }
|
|
28812
|
-
function
|
|
29259
|
+
function PoComboComponent_ng_template_21_Template(rf, ctx) { if (rf & 1) {
|
|
28813
29260
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
28814
|
-
i0.ɵɵelementStart(0, "div",
|
|
28815
|
-
i0.ɵɵlistener("p-selectcombo-item", function
|
|
29261
|
+
i0.ɵɵelementStart(0, "div", 25, 7)(2, "po-listbox", 26, 8);
|
|
29262
|
+
i0.ɵɵlistener("p-selectcombo-item", function PoComboComponent_ng_template_21_Template_po_listbox_p_selectcombo_item_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOptionClick($event, $event.event)); })("p-update-infinite-scroll", function PoComboComponent_ng_template_21_Template_po_listbox_p_update_infinite_scroll_2_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showMoreInfiniteScroll()); })("p-close", function PoComboComponent_ng_template_21_Template_po_listbox_p_close_2_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onCloseCombo()); });
|
|
28816
29263
|
i0.ɵɵelementEnd()();
|
|
28817
29264
|
} if (rf & 2) {
|
|
28818
29265
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -29392,31 +29839,31 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
29392
29839
|
useExisting: forwardRef(() => PoComboComponent),
|
|
29393
29840
|
multi: true
|
|
29394
29841
|
}
|
|
29395
|
-
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls:
|
|
29842
|
+
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 23, vars: 31, consts: [["outerContainer", ""], ["searchContainer", "", "trigger", "cdkOverlayOrigin"], ["inp", ""], ["iconArrow", ""], ["dropdownDefault", ""], ["dropdownCDK", ""], ["dropdownListbox", ""], ["containerElement", ""], ["poListbox", "", "contentElement", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], ["cdkOverlayOrigin", "", 1, "po-field-container-content", "po-combo-container-content"], [1, "po-combo-container-wrapper"], ["class", "po-field-icon-container-left", 4, "ngIf"], ["autocomplete", "off", "type", "text", 1, "po-combo-input", 3, "click", "keyup", "blur", "keydown", "ngClass", "disabled", "id", "placeholder", "required"], [1, "po-field-icon-container-right"], ["tabindex", "0", "role", "button", "class", "po-combo-clean po-icon-input", 3, "p-element-ref", "p-change-event", "click", "keydown.enter", 4, "ngIf"], [1, "po-combo-arrow", "po-field-icon", 3, "click"], [3, "p-icon"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "p-help", "p-disabled", "p-error-pattern"], [1, "po-field-icon-container-left"], [1, "po-field-icon", "po-icon-input", 3, "p-icon"], ["tabindex", "0", "role", "button", 1, "po-combo-clean", "po-icon-input", 3, "p-change-event", "click", "keydown.enter", "p-element-ref"], [4, "ngTemplateOutlet"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen"], [1, "po-combo-container", 3, "hidden"], ["p-type", "option", 3, "p-selectcombo-item", "p-update-infinite-scroll", "p-close", "p-items", "p-field-value", "p-field-label", "p-template", "p-search-value", "p-infinite-loading", "p-infinite-scroll", "p-filtering", "p-cache", "p-filter-mode", "p-visible", "p-is-searching", "p-should-mark-letter", "p-compare-cache", "p-combo-service", "p-infinite-scroll-distance", "p-container-width"]], template: function PoComboComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29396
29843
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
29397
|
-
i0.ɵɵelementStart(0, "div", null, 0)(2, "po-field-container", 9)(3, "div", 10, 1);
|
|
29398
|
-
i0.ɵɵtemplate(
|
|
29399
|
-
i0.ɵɵelementStart(
|
|
29400
|
-
i0.ɵɵlistener("click", function
|
|
29844
|
+
i0.ɵɵelementStart(0, "div", null, 0)(2, "po-field-container", 9)(3, "div", 10, 1)(6, "div", 11);
|
|
29845
|
+
i0.ɵɵtemplate(7, PoComboComponent_div_7_Template, 2, 3, "div", 12);
|
|
29846
|
+
i0.ɵɵelementStart(8, "input", 13, 2);
|
|
29847
|
+
i0.ɵɵlistener("click", function PoComboComponent_Template_input_click_8_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.toggleComboVisibility()); })("keyup", function PoComboComponent_Template_input_keyup_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeyUp($event)); })("blur", function PoComboComponent_Template_input_blur_8_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBlur()); })("keyup", function PoComboComponent_Template_input_keyup_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.searchOnEnterOrArrow($event, $event.target.value)); })("keydown", function PoComboComponent_Template_input_keydown_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeyDown($event)); });
|
|
29401
29848
|
i0.ɵɵelementEnd();
|
|
29402
|
-
i0.ɵɵelementStart(
|
|
29403
|
-
i0.ɵɵtemplate(
|
|
29404
|
-
i0.ɵɵelementStart(
|
|
29405
|
-
i0.ɵɵlistener("click", function
|
|
29406
|
-
i0.ɵɵelement(
|
|
29407
|
-
i0.ɵɵelementEnd()()();
|
|
29408
|
-
i0.ɵɵtemplate(
|
|
29409
|
-
i0.ɵɵelement(
|
|
29849
|
+
i0.ɵɵelementStart(10, "div", 14);
|
|
29850
|
+
i0.ɵɵtemplate(11, PoComboComponent_po_clean_11_Template, 1, 2, "po-clean", 15);
|
|
29851
|
+
i0.ɵɵelementStart(12, "div", 16, 3);
|
|
29852
|
+
i0.ɵɵlistener("click", function PoComboComponent_Template_div_click_12_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.toggleComboVisibility(true)); });
|
|
29853
|
+
i0.ɵɵelement(14, "po-icon", 17);
|
|
29854
|
+
i0.ɵɵelementEnd()()()();
|
|
29855
|
+
i0.ɵɵtemplate(15, PoComboComponent_ng_container_15_Template, 1, 0, "ng-container", 18)(16, PoComboComponent_ng_template_16_Template, 1, 1, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor)(18, PoComboComponent_ng_template_18_Template, 1, 2, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
29856
|
+
i0.ɵɵelement(20, "po-field-container-bottom", 19);
|
|
29410
29857
|
i0.ɵɵelementEnd();
|
|
29411
|
-
i0.ɵɵtemplate(
|
|
29858
|
+
i0.ɵɵtemplate(21, PoComboComponent_ng_template_21_Template, 5, 18, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
29412
29859
|
i0.ɵɵelementEnd();
|
|
29413
29860
|
} if (rf & 2) {
|
|
29414
|
-
const inp_r7 = i0.ɵɵreference(
|
|
29415
|
-
const dropdownDefault_r8 = i0.ɵɵreference(
|
|
29416
|
-
const dropdownCDK_r9 = i0.ɵɵreference(
|
|
29861
|
+
const inp_r7 = i0.ɵɵreference(9);
|
|
29862
|
+
const dropdownDefault_r8 = i0.ɵɵreference(17);
|
|
29863
|
+
const dropdownCDK_r9 = i0.ɵɵreference(19);
|
|
29417
29864
|
i0.ɵɵadvance(2);
|
|
29418
29865
|
i0.ɵɵproperty("p-disabled", ctx.disabled)("p-id", ctx.id)("p-label", ctx.label)("p-optional", ctx.optional)("p-required", ctx.required)("p-show-required", ctx.showRequired);
|
|
29419
|
-
i0.ɵɵadvance(
|
|
29866
|
+
i0.ɵɵadvance(5);
|
|
29420
29867
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
29421
29868
|
i0.ɵɵadvance();
|
|
29422
29869
|
i0.ɵɵclassProp("po-input-icon-left", ctx.icon);
|
|
@@ -29450,7 +29897,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
29450
29897
|
useExisting: forwardRef(() => PoComboComponent),
|
|
29451
29898
|
multi: true
|
|
29452
29899
|
}
|
|
29453
|
-
], template: "<div #outerContainer>\n <po-field-container\n [p-disabled]=\"disabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n >\n <div
|
|
29900
|
+
], template: "<div #outerContainer>\n <po-field-container\n [p-disabled]=\"disabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n >\n <div\n #searchContainer\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content po-combo-container-content\"\n >\n <div class=\"po-combo-container-wrapper\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon po-icon-input\"\n [class.po-field-icon-disabled]=\"disabled\"\n [p-icon]=\"icon\"\n ></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-combo-input\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [class.po-input-icon-left]=\"icon\"\n autocomplete=\"off\"\n type=\"text\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [required]=\"required\"\n (click)=\"toggleComboVisibility()\"\n (keyup)=\"onKeyUp($event)\"\n (blur)=\"onBlur()\"\n (keyup)=\"searchOnEnterOrArrow($event, $event.target.value)\"\n (keydown)=\"onKeyDown($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-combo-clean po-icon-input\"\n *ngIf=\"clean && !disabled && inp.value\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n (click)=\"clear(null); $event.preventDefault()\"\n (keydown.enter)=\"clearAndFocus(); $event.preventDefault()\"\n >\n </po-clean>\n\n <div\n #iconArrow\n class=\"po-combo-arrow po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n (click)=\"toggleComboVisibility(true)\"\n >\n <po-icon\n [p-icon]=\"comboOpen ? 'ICON_ARROW_UP po-icon-input' : 'ICON_ARROW_DOWN po-icon-input'\"\n [class.po-field-icon]=\"!disabled\"\n [class.po-combo-default-border]=\"!disabled && inp.value\"\n [class.po-combo-background-arrow-up]=\"!disabled && comboOpen\"\n ></po-icon>\n </div>\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"appendBox; then dropdownCDK; else dropdownDefault\"> </ng-container>\n\n <ng-template #dropdownDefault>\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"> </ng-container>\n </ng-template>\n\n <ng-template #dropdownCDK>\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"trigger\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"></ng-container>\n </ng-template>\n </ng-template>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n </po-field-container>\n\n <ng-template #dropdownListbox>\n <div #containerElement class=\"po-combo-container\" [hidden]=\"!comboOpen && !isServerSearching\">\n <po-listbox\n #poListbox\n #contentElement\n p-type=\"option\"\n [p-items]=\"visibleOptions\"\n [p-field-value]=\"dynamicValue\"\n [p-field-label]=\"dynamicLabel\"\n [p-template]=\"comboOptionTemplate\"\n [p-search-value]=\"getInputValue()\"\n [p-infinite-loading]=\"infiniteLoading\"\n [p-infinite-scroll]=\"infiniteScroll\"\n [p-filtering]=\"isFiltering\"\n [p-cache]=\"cache\"\n (p-selectcombo-item)=\"onOptionClick($event, $event.event)\"\n [p-filter-mode]=\"filterMode\"\n [p-visible]=\"comboOpen\"\n [p-is-searching]=\"isServerSearching\"\n [p-should-mark-letter]=\"shouldMarkLetters\"\n [p-compare-cache]=\"compareObjects(cacheOptions, visibleOptions)\"\n [p-combo-service]=\"service\"\n [p-infinite-scroll-distance]=\"infiniteScrollDistance\"\n (p-update-infinite-scroll)=\"showMoreInfiniteScroll()\"\n (p-close)=\"onCloseCombo()\"\n [p-container-width]=\"containerWidth\"\n ></po-listbox>\n </div>\n </ng-template>\n</div>\n" }]
|
|
29454
29901
|
}], () => [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: PoComboFilterService }, { type: i0.Renderer2 }, { type: PoControlPositionService }, { type: i0.ChangeDetectorRef }, { type: PoLanguageService }], { comboOptionTemplate: [{
|
|
29455
29902
|
type: ContentChild,
|
|
29456
29903
|
args: [PoComboOptionTemplateDirective, { static: true }]
|
|
@@ -30123,17 +30570,17 @@ const _c1$m = ["endDateInput"];
|
|
|
30123
30570
|
const _c2$a = ["startDateInput"];
|
|
30124
30571
|
const _c3$6 = ["iconCalendar"];
|
|
30125
30572
|
const _c4$1 = ["calendarPicker"];
|
|
30126
|
-
function
|
|
30573
|
+
function PoDatepickerRangeComponent_po_clean_14_Template(rf, ctx) { if (rf & 1) {
|
|
30127
30574
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
30128
|
-
i0.ɵɵelementStart(0, "po-clean",
|
|
30129
|
-
i0.ɵɵlistener("p-change-event", function
|
|
30575
|
+
i0.ɵɵelementStart(0, "po-clean", 18);
|
|
30576
|
+
i0.ɵɵlistener("p-change-event", function PoDatepickerRangeComponent_po_clean_14_Template_po_clean_p_change_event_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.clear()); });
|
|
30130
30577
|
i0.ɵɵelementEnd();
|
|
30131
30578
|
} }
|
|
30132
|
-
function
|
|
30579
|
+
function PoDatepickerRangeComponent_ng_container_19_Template(rf, ctx) { if (rf & 1) {
|
|
30133
30580
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
30134
30581
|
i0.ɵɵelementContainerStart(0);
|
|
30135
|
-
i0.ɵɵelementStart(1, "div",
|
|
30136
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
30582
|
+
i0.ɵɵelementStart(1, "div", 19, 4)(3, "po-calendar", 20);
|
|
30583
|
+
i0.ɵɵlistener("ngModelChange", function PoDatepickerRangeComponent_ng_container_19_Template_po_calendar_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onCalendarChange($event)); });
|
|
30137
30584
|
i0.ɵɵelementEnd()();
|
|
30138
30585
|
i0.ɵɵelementContainerEnd();
|
|
30139
30586
|
} if (rf & 2) {
|
|
@@ -30578,30 +31025,30 @@ class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent {
|
|
|
30578
31025
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.startDateInput = _t.first);
|
|
30579
31026
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconCalendar = _t.first);
|
|
30580
31027
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.calendarPicker = _t.first);
|
|
30581
|
-
} }, features: [i0.ɵɵProvidersFeature(providers$5), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls:
|
|
31028
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$5), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 20, vars: 30, consts: [["dateRangeField", ""], ["startDateInput", ""], ["endDateInput", ""], ["iconCalendar", ""], ["calendarPicker", ""], [3, "p-disabled", "p-label", "p-optional", "p-required", "p-show-required"], [1, "po-field-container-content"], [1, "po-field-container-input"], [1, "po-datepicker-range-field", "po-input"], [1, "po-datepicker-range-start-date"], ["maxlength", "10", "type", "text", 1, "po-datepicker-range-input", 3, "blur", "focus", "keydown", "keyup", "click", "autocomplete", "disabled", "name", "readonly"], [1, "po-datepicker-range-separator"], [1, "po-datepicker-range-end-date"], [1, "po-datepicker-range-icon"], ["class", "po-icon-input", 3, "p-change-event", 4, "ngIf"], [3, "click", "p-icon"], [3, "p-help", "p-disabled", "p-error-pattern"], [4, "ngIf"], [1, "po-icon-input", 3, "p-change-event"], [1, "po-calendar-range-picker"], ["p-mode", "range", 3, "ngModelChange", "ngModel", "p-max-date", "p-min-date", "p-locale"]], template: function PoDatepickerRangeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30582
31029
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
30583
|
-
i0.ɵɵelementStart(0, "po-field-container", 5)(1, "div", 6,
|
|
30584
|
-
i0.ɵɵlistener("blur", function
|
|
31030
|
+
i0.ɵɵelementStart(0, "po-field-container", 5)(1, "div", 6)(2, "div", 7)(3, "div", 8, 0)(5, "div", 9)(6, "input", 10, 1);
|
|
31031
|
+
i0.ɵɵlistener("blur", function PoDatepickerRangeComponent_Template_input_blur_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBlur($event)); })("focus", function PoDatepickerRangeComponent_Template_input_focus_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onFocus($event)); })("keydown", function PoDatepickerRangeComponent_Template_input_keydown_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeydown($event)); })("keyup", function PoDatepickerRangeComponent_Template_input_keyup_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeyup($event)); })("click", function PoDatepickerRangeComponent_Template_input_click_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.eventOnClick($event)); });
|
|
30585
31032
|
i0.ɵɵelementEnd()();
|
|
30586
|
-
i0.ɵɵelementStart(
|
|
30587
|
-
i0.ɵɵtext(
|
|
31033
|
+
i0.ɵɵelementStart(8, "div", 11);
|
|
31034
|
+
i0.ɵɵtext(9, "-");
|
|
30588
31035
|
i0.ɵɵelementEnd();
|
|
30589
|
-
i0.ɵɵelementStart(
|
|
30590
|
-
i0.ɵɵlistener("blur", function
|
|
31036
|
+
i0.ɵɵelementStart(10, "div", 12)(11, "input", 10, 2);
|
|
31037
|
+
i0.ɵɵlistener("blur", function PoDatepickerRangeComponent_Template_input_blur_11_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBlur($event)); })("focus", function PoDatepickerRangeComponent_Template_input_focus_11_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onFocus($event)); })("keydown", function PoDatepickerRangeComponent_Template_input_keydown_11_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeydown($event)); })("keyup", function PoDatepickerRangeComponent_Template_input_keyup_11_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onKeyup($event)); })("click", function PoDatepickerRangeComponent_Template_input_click_11_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.eventOnClick($event)); });
|
|
30591
31038
|
i0.ɵɵelementEnd()();
|
|
30592
|
-
i0.ɵɵelementStart(
|
|
30593
|
-
i0.ɵɵtemplate(
|
|
31039
|
+
i0.ɵɵelementStart(13, "div", 13);
|
|
31040
|
+
i0.ɵɵtemplate(14, PoDatepickerRangeComponent_po_clean_14_Template, 1, 0, "po-clean", 14);
|
|
30594
31041
|
i0.ɵɵelementEnd();
|
|
30595
|
-
i0.ɵɵelementStart(
|
|
30596
|
-
i0.ɵɵlistener("click", function
|
|
30597
|
-
i0.ɵɵelementEnd()()();
|
|
30598
|
-
i0.ɵɵelement(
|
|
31042
|
+
i0.ɵɵelementStart(15, "div", 13)(16, "po-icon", 15, 3);
|
|
31043
|
+
i0.ɵɵlistener("click", function PoDatepickerRangeComponent_Template_po_icon_click_16_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.toggleCalendar()); });
|
|
31044
|
+
i0.ɵɵelementEnd()()()()();
|
|
31045
|
+
i0.ɵɵelement(18, "po-field-container-bottom", 16);
|
|
30599
31046
|
i0.ɵɵelementEnd();
|
|
30600
|
-
i0.ɵɵtemplate(
|
|
31047
|
+
i0.ɵɵtemplate(19, PoDatepickerRangeComponent_ng_container_19_Template, 4, 4, "ng-container", 17);
|
|
30601
31048
|
} if (rf & 2) {
|
|
30602
31049
|
i0.ɵɵclassProp("po-date-picker-container-disabled", ctx.disabled);
|
|
30603
31050
|
i0.ɵɵproperty("p-disabled", ctx.disabled)("p-label", ctx.label)("p-optional", ctx.optional)("p-required", ctx.required)("p-show-required", ctx.showRequired);
|
|
30604
|
-
i0.ɵɵadvance();
|
|
31051
|
+
i0.ɵɵadvance(3);
|
|
30605
31052
|
i0.ɵɵclassProp("po-datepicker-range-field-disabled", ctx.disabled);
|
|
30606
31053
|
i0.ɵɵattribute("disabled", ctx.disabled);
|
|
30607
31054
|
i0.ɵɵadvance(3);
|
|
@@ -30623,7 +31070,7 @@ class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent {
|
|
|
30623
31070
|
}
|
|
30624
31071
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDatepickerRangeComponent, [{
|
|
30625
31072
|
type: Component,
|
|
30626
|
-
args: [{ selector: 'po-datepicker-range', providers: providers$5, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container\n [class.po-date-picker-container-disabled]=\"disabled\"\n [p-disabled]=\"disabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div\n #dateRangeField\n
|
|
31073
|
+
args: [{ selector: 'po-datepicker-range', providers: providers$5, changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-field-container\n [class.po-date-picker-container-disabled]=\"disabled\"\n [p-disabled]=\"disabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content\">\n <div class=\"po-field-container-input\">\n <div\n #dateRangeField\n class=\"po-datepicker-range-field po-input\"\n [class.po-datepicker-range-field-disabled]=\"disabled\"\n [attr.disabled]=\"disabled\"\n >\n <div class=\"po-datepicker-range-start-date\">\n <input\n #startDateInput\n class=\"po-datepicker-range-input\"\n maxlength=\"10\"\n type=\"text\"\n [attr.aria-label]=\"label\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [name]=\"startDateInputName\"\n [readonly]=\"readonly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\"\n (click)=\"eventOnClick($event)\"\n />\n </div>\n\n <div class=\"po-datepicker-range-separator\">-</div>\n\n <div class=\"po-datepicker-range-end-date\">\n <input\n #endDateInput\n class=\"po-datepicker-range-input\"\n maxlength=\"10\"\n type=\"text\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [name]=\"endDateInputName\"\n [readonly]=\"readonly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\"\n (click)=\"eventOnClick($event)\"\n />\n </div>\n\n <div class=\"po-datepicker-range-icon\">\n <po-clean class=\"po-icon-input\" *ngIf=\"enableCleaner\" (p-change-event)=\"clear()\"></po-clean>\n </div>\n\n <div class=\"po-datepicker-range-icon\">\n <po-icon\n #iconCalendar\n [p-icon]=\"!disabled || !readonly ? 'ICON_CALENDAR po-clickable' : 'ICON_CALENDAR'\"\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled || readonly\"\n (click)=\"toggleCalendar()\"\n >\n </po-icon>\n </div>\n </div>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorMessage\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<ng-container *ngIf=\"isCalendarVisible\">\n <div #calendarPicker class=\"po-calendar-range-picker\">\n <po-calendar\n p-mode=\"range\"\n [ngModel]=\"dateRange\"\n [p-max-date]=\"maxDate\"\n [p-min-date]=\"minDate\"\n [p-locale]=\"locale\"\n (ngModelChange)=\"onCalendarChange($event)\"\n ></po-calendar>\n </div>\n</ng-container>\n" }]
|
|
30627
31074
|
}], () => [{ type: i0.ChangeDetectorRef }, { type: PoControlPositionService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: PoLanguageService }, { type: PoDateService }, { type: i0.ElementRef }], { dateRangeField: [{
|
|
30628
31075
|
type: ViewChild,
|
|
30629
31076
|
args: ['dateRangeField', { read: ElementRef, static: true }]
|
|
@@ -34784,38 +35231,42 @@ class PoLookupBaseComponent {
|
|
|
34784
35231
|
}] }); })();
|
|
34785
35232
|
|
|
34786
35233
|
const _c0$Q = ["inp"];
|
|
34787
|
-
function
|
|
35234
|
+
function PoLookupComponent_div_1_po_clean_5_Template(rf, ctx) { if (rf & 1) {
|
|
34788
35235
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
34789
|
-
i0.ɵɵelementStart(0, "
|
|
34790
|
-
i0.ɵɵlistener("click", function
|
|
34791
|
-
i0.ɵɵelement(1, "po-clean", 13);
|
|
35236
|
+
i0.ɵɵelementStart(0, "po-clean", 13);
|
|
35237
|
+
i0.ɵɵlistener("p-change-event", function PoLookupComponent_div_1_po_clean_5_Template_po_clean_p_change_event_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.cleanModel()); })("click", function PoLookupComponent_div_1_po_clean_5_Template_po_clean_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.cleanModel(); return i0.ɵɵresetView($event.preventDefault()); })("keydown.enter", function PoLookupComponent_div_1_po_clean_5_Template_po_clean_keydown_enter_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.cleanModel(); return i0.ɵɵresetView($event.preventDefault()); });
|
|
34792
35238
|
i0.ɵɵelementEnd();
|
|
34793
35239
|
} if (rf & 2) {
|
|
34794
|
-
|
|
34795
|
-
i0.ɵɵ
|
|
35240
|
+
i0.ɵɵnextContext();
|
|
35241
|
+
const inp_r4 = i0.ɵɵreference(3);
|
|
35242
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
35243
|
+
i0.ɵɵproperty("p-element-ref", inp_r4);
|
|
35244
|
+
i0.ɵɵattribute("aria-label", ctx_r1.literals.clean);
|
|
34796
35245
|
} }
|
|
34797
35246
|
function PoLookupComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
34798
35247
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
34799
|
-
i0.ɵɵelementStart(0, "div", 6)(1, "
|
|
34800
|
-
i0.ɵɵlistener("blur", function
|
|
34801
|
-
i0.ɵɵelementEnd();
|
|
34802
|
-
i0.ɵɵelementStart(
|
|
34803
|
-
i0.ɵɵtemplate(
|
|
34804
|
-
i0.ɵɵelementStart(
|
|
34805
|
-
i0.ɵɵlistener("click", function
|
|
34806
|
-
i0.ɵɵelement(
|
|
34807
|
-
i0.ɵɵelementEnd()()();
|
|
35248
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "div", 7)(2, "input", 8, 1);
|
|
35249
|
+
i0.ɵɵlistener("blur", function PoLookupComponent_div_1_Template_input_blur_2_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.searchEvent()); });
|
|
35250
|
+
i0.ɵɵelementEnd();
|
|
35251
|
+
i0.ɵɵelementStart(4, "div", 9);
|
|
35252
|
+
i0.ɵɵtemplate(5, PoLookupComponent_div_1_po_clean_5_Template, 1, 2, "po-clean", 10);
|
|
35253
|
+
i0.ɵɵelementStart(6, "div", 11, 2);
|
|
35254
|
+
i0.ɵɵlistener("p-change-event", function PoLookupComponent_div_1_Template_div_p_change_event_6_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.openLookup()); })("click", function PoLookupComponent_div_1_Template_div_click_6_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.openLookup(); return i0.ɵɵresetView($event.preventDefault()); })("keydown.enter", function PoLookupComponent_div_1_Template_div_keydown_enter_6_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.openLookup(); return i0.ɵɵresetView($event.preventDefault()); });
|
|
35255
|
+
i0.ɵɵelement(8, "po-icon", 12);
|
|
35256
|
+
i0.ɵɵelementEnd()()()();
|
|
34808
35257
|
} if (rf & 2) {
|
|
34809
|
-
const inp_r4 = i0.ɵɵreference(
|
|
35258
|
+
const inp_r4 = i0.ɵɵreference(3);
|
|
34810
35259
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
34811
35260
|
i0.ɵɵclassProp("po-lookup-disabled", ctx_r1.disabled);
|
|
34812
|
-
i0.ɵɵadvance();
|
|
35261
|
+
i0.ɵɵadvance(2);
|
|
34813
35262
|
i0.ɵɵproperty("ngClass", ctx_r1.clean && inp_r4.value ? "po-input-double-icon-right" : "po-input-icon-right")("id", ctx_r1.id)("autocomplete", ctx_r1.autocomplete)("disabled", ctx_r1.disabled)("placeholder", ctx_r1.placeholder)("required", ctx_r1.required);
|
|
34814
35263
|
i0.ɵɵadvance(3);
|
|
34815
35264
|
i0.ɵɵproperty("ngIf", ctx_r1.clean && !ctx_r1.disabled && !!inp_r4.value);
|
|
34816
35265
|
i0.ɵɵadvance();
|
|
34817
|
-
i0.ɵɵclassProp("po-
|
|
34818
|
-
i0.ɵɵproperty("ariaLabel", ctx_r1.literals.search)
|
|
35266
|
+
i0.ɵɵclassProp("po-field-icon-disabled", ctx_r1.disabled);
|
|
35267
|
+
i0.ɵɵproperty("ariaLabel", ctx_r1.literals.search);
|
|
35268
|
+
i0.ɵɵadvance(2);
|
|
35269
|
+
i0.ɵɵclassProp("po-field-icon", !ctx_r1.disabled);
|
|
34819
35270
|
} }
|
|
34820
35271
|
function PoLookupComponent_ng_template_3_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
34821
35272
|
i0.ɵɵelementStart(0, "span", 18);
|
|
@@ -34837,26 +35288,28 @@ function PoLookupComponent_ng_template_3_po_disclaimer_4_Template(rf, ctx) { if
|
|
|
34837
35288
|
i0.ɵɵclassProp("po-clickable", disclaimer_r7.value === "" && !ctx_r1.disabled);
|
|
34838
35289
|
i0.ɵɵproperty("p-label", disclaimer_r7.label)("p-value", disclaimer_r7.value)("p-hide-close", disclaimer_r7.value === "" || ctx_r1.disabled);
|
|
34839
35290
|
} }
|
|
34840
|
-
function
|
|
35291
|
+
function PoLookupComponent_ng_template_3_po_clean_6_Template(rf, ctx) { if (rf & 1) {
|
|
34841
35292
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
34842
|
-
i0.ɵɵelementStart(0, "
|
|
34843
|
-
i0.ɵɵlistener("click", function
|
|
34844
|
-
i0.ɵɵelement(1, "po-clean", 13);
|
|
35293
|
+
i0.ɵɵelementStart(0, "po-clean", 13);
|
|
35294
|
+
i0.ɵɵlistener("p-change-event", function PoLookupComponent_ng_template_3_po_clean_6_Template_po_clean_p_change_event_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.cleanModel()); })("click", function PoLookupComponent_ng_template_3_po_clean_6_Template_po_clean_click_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.cleanModel(); return i0.ɵɵresetView($event.preventDefault()); })("keydown.enter", function PoLookupComponent_ng_template_3_po_clean_6_Template_po_clean_keydown_enter_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.cleanModel(); return i0.ɵɵresetView($event.preventDefault()); });
|
|
34845
35295
|
i0.ɵɵelementEnd();
|
|
34846
35296
|
} if (rf & 2) {
|
|
34847
|
-
|
|
34848
|
-
i0.ɵɵ
|
|
35297
|
+
i0.ɵɵnextContext();
|
|
35298
|
+
const inp_r9 = i0.ɵɵreference(2);
|
|
35299
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
35300
|
+
i0.ɵɵproperty("p-element-ref", inp_r9);
|
|
35301
|
+
i0.ɵɵattribute("aria-label", ctx_r1.literals.clean);
|
|
34849
35302
|
} }
|
|
34850
35303
|
function PoLookupComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
34851
35304
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
34852
|
-
i0.ɵɵelementStart(0, "div",
|
|
34853
|
-
i0.ɵɵtemplate(3, PoLookupComponent_ng_template_3_span_3_Template, 2, 1, "span",
|
|
34854
|
-
i0.ɵɵelementEnd();
|
|
34855
|
-
i0.ɵɵelementStart(5, "div",
|
|
34856
|
-
i0.ɵɵtemplate(6,
|
|
34857
|
-
i0.ɵɵelementStart(7, "
|
|
34858
|
-
i0.ɵɵlistener("click", function
|
|
34859
|
-
i0.ɵɵelement(9, "po-icon",
|
|
35305
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "div", 15, 1);
|
|
35306
|
+
i0.ɵɵtemplate(3, PoLookupComponent_ng_template_3_span_3_Template, 2, 1, "span", 16)(4, PoLookupComponent_ng_template_3_po_disclaimer_4_Template, 1, 5, "po-disclaimer", 17);
|
|
35307
|
+
i0.ɵɵelementEnd();
|
|
35308
|
+
i0.ɵɵelementStart(5, "div", 9);
|
|
35309
|
+
i0.ɵɵtemplate(6, PoLookupComponent_ng_template_3_po_clean_6_Template, 1, 2, "po-clean", 10);
|
|
35310
|
+
i0.ɵɵelementStart(7, "div", 11, 2);
|
|
35311
|
+
i0.ɵɵlistener("p-change-event", function PoLookupComponent_ng_template_3_Template_div_p_change_event_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.openLookup()); })("click", function PoLookupComponent_ng_template_3_Template_div_click_7_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.openLookup(); return i0.ɵɵresetView($event.preventDefault()); })("keydown.enter", function PoLookupComponent_ng_template_3_Template_div_keydown_enter_7_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.openLookup(); return i0.ɵɵresetView($event.preventDefault()); });
|
|
35312
|
+
i0.ɵɵelement(9, "po-icon", 12);
|
|
34860
35313
|
i0.ɵɵelementEnd()()();
|
|
34861
35314
|
} if (rf & 2) {
|
|
34862
35315
|
const inp_r9 = i0.ɵɵreference(2);
|
|
@@ -34870,9 +35323,12 @@ function PoLookupComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
34870
35323
|
i0.ɵɵadvance();
|
|
34871
35324
|
i0.ɵɵproperty("ngForOf", ctx_r1.visibleDisclaimers);
|
|
34872
35325
|
i0.ɵɵadvance(2);
|
|
34873
|
-
i0.ɵɵproperty("ngIf", ctx_r1.clean && !ctx_r1.disabled);
|
|
35326
|
+
i0.ɵɵproperty("ngIf", ctx_r1.clean && !ctx_r1.disabled && !!inp_r9.value);
|
|
34874
35327
|
i0.ɵɵadvance();
|
|
34875
|
-
i0.ɵɵ
|
|
35328
|
+
i0.ɵɵclassProp("po-field-icon-disabled", ctx_r1.disabled);
|
|
35329
|
+
i0.ɵɵproperty("ariaLabel", ctx_r1.literals.search);
|
|
35330
|
+
i0.ɵɵadvance(2);
|
|
35331
|
+
i0.ɵɵclassProp("po-field-icon", !ctx_r1.disabled);
|
|
34876
35332
|
} }
|
|
34877
35333
|
/* istanbul ignore next */
|
|
34878
35334
|
const providers$2 = [
|
|
@@ -35252,12 +35708,12 @@ class PoLookupComponent extends PoLookupBaseComponent {
|
|
|
35252
35708
|
} if (rf & 2) {
|
|
35253
35709
|
let _t;
|
|
35254
35710
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
35255
|
-
} }, features: [i0.ɵɵProvidersFeature(providers$2), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 11, consts: [["disclaimersTemplate", ""], ["inp", ""], ["iconLookup", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], ["class", "po-lookup", 3, "po-lookup-disabled", 4, "ngIf", "ngIfElse"], [3, "p-help", "p-disabled", "p-error-pattern"], [1, "po-lookup"], ["type", "text", 1, "po-lookup-input", "po-lookup-input-trigger", 3, "blur", "ngClass", "id", "autocomplete", "disabled", "placeholder", "required"], [1, "po-lookup-buttons"], ["
|
|
35711
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$2), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 11, consts: [["disclaimersTemplate", ""], ["inp", ""], ["iconLookup", ""], [3, "p-disabled", "p-id", "p-label", "p-optional", "p-required", "p-show-required"], ["class", "po-field-container-content po-lookup", 3, "po-lookup-disabled", 4, "ngIf", "ngIfElse"], [3, "p-help", "p-disabled", "p-error-pattern"], [1, "po-field-container-content", "po-lookup"], [1, "po-search-container-wrapper"], ["type", "text", 1, "po-lookup-input", "po-lookup-input-trigger", 3, "blur", "ngClass", "id", "autocomplete", "disabled", "placeholder", "required"], [1, "po-field-icon-container-right", "po-lookup-buttons"], ["tabindex", "0", "role", "button", "class", "po-lookup-button po-lookup-button-clean", 3, "p-element-ref", "p-change-event", "click", "keydown.enter", 4, "ngIf"], ["tabindex", "0", "role", "button", 1, "po-lookup-button", "po-lookup-button-trigger", "po-field-icon", 3, "p-change-event", "click", "keydown.enter", "ariaLabel"], ["p-icon", "ICON_SEARCH"], ["tabindex", "0", "role", "button", 1, "po-lookup-button", "po-lookup-button-clean", 3, "p-change-event", "click", "keydown.enter", "p-element-ref"], [1, "po-lookup"], [1, "po-lookup-input", "po-input-icon-right", "po-lookup-input", "po-icon-input", 3, "tabindex", "ngClass"], ["class", "po-lookup-input-placeholder", 4, "ngIf"], ["class", "po-lookup-input-disclaimer", 3, "p-label", "p-value", "p-hide-close", "po-clickable", "p-close-action", 4, "ngFor", "ngForOf"], [1, "po-lookup-input-placeholder"], [1, "po-lookup-input-disclaimer", 3, "p-close-action", "p-label", "p-value", "p-hide-close"]], template: function PoLookupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35256
35712
|
i0.ɵɵelementStart(0, "po-field-container", 3);
|
|
35257
|
-
i0.ɵɵtemplate(1, PoLookupComponent_div_1_Template,
|
|
35713
|
+
i0.ɵɵtemplate(1, PoLookupComponent_div_1_Template, 9, 14, "div", 4);
|
|
35258
35714
|
i0.ɵɵelement(2, "po-field-container-bottom", 5);
|
|
35259
35715
|
i0.ɵɵelementEnd();
|
|
35260
|
-
i0.ɵɵtemplate(3, PoLookupComponent_ng_template_3_Template, 10,
|
|
35716
|
+
i0.ɵɵtemplate(3, PoLookupComponent_ng_template_3_Template, 10, 20, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
35261
35717
|
} if (rf & 2) {
|
|
35262
35718
|
const disclaimersTemplate_r10 = i0.ɵɵreference(4);
|
|
35263
35719
|
i0.ɵɵproperty("p-disabled", ctx.disabled)("p-id", ctx.id)("p-label", ctx.label)("p-optional", ctx.optional)("p-required", ctx.required)("p-show-required", ctx.showRequired);
|
|
@@ -35269,7 +35725,7 @@ class PoLookupComponent extends PoLookupBaseComponent {
|
|
|
35269
35725
|
}
|
|
35270
35726
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLookupComponent, [{
|
|
35271
35727
|
type: Component,
|
|
35272
|
-
args: [{ selector: 'po-lookup', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$2, template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div
|
|
35728
|
+
args: [{ selector: 'po-lookup', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$2, template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div\n class=\"po-field-container-content po-lookup\"\n [class.po-lookup-disabled]=\"disabled\"\n *ngIf=\"!disclaimers.length; else disclaimersTemplate\"\n >\n <div class=\"po-search-container-wrapper\">\n <input\n #inp\n class=\"po-lookup-input po-lookup-input-trigger\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [id]=\"id\"\n type=\"text\"\n [autocomplete]=\"autocomplete\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n (blur)=\"searchEvent()\"\n />\n\n <div class=\"po-field-icon-container-right po-lookup-buttons\">\n <po-clean\n *ngIf=\"clean && !disabled && !!inp.value\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-icon-input po-lookup-button po-lookup-button-clean\"\n class=\"po-lookup-button po-lookup-button-clean\"\n [p-element-ref]=\"inp\"\n (p-change-event)=\"cleanModel()\"\n (click)=\"cleanModel(); $event.preventDefault()\"\n (keydown.enter)=\"cleanModel(); $event.preventDefault()\"\n >\n </po-clean>\n <div\n #iconLookup\n tabindex=\"0\"\n role=\"button\"\n class=\"po-lookup-button po-lookup-button-trigger po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n [ariaLabel]=\"literals.search\"\n (p-change-event)=\"openLookup()\"\n (click)=\"openLookup(); $event.preventDefault()\"\n (keydown.enter)=\"openLookup(); $event.preventDefault()\"\n >\n <po-icon p-icon=\"ICON_SEARCH\" [class.po-field-icon]=\"!disabled\"></po-icon>\n </div>\n </div>\n </div>\n </div>\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n\n<ng-template #disclaimersTemplate>\n <div class=\"po-lookup\" [class.po-lookup-disabled]=\"disabled\">\n <div\n #inp\n [tabindex]=\"disabled ? -1 : 0\"\n class=\"po-lookup-input po-input-icon-right po-lookup-input po-icon-input\"\n [ngClass]=\"clean && inp.value ? 'po-input-double-icon-right' : 'po-input-icon-right'\"\n [class.po-lookup-input-auto]=\"autoHeight\"\n [class.po-lookup-input-static]=\"!autoHeight\"\n [class.po-lookup-input-padding-button-clean]=\"clean\"\n [class.po-lookup-input-disabled]=\"disabled\"\n >\n <span *ngIf=\"placeholder && !disclaimers?.length\" class=\"po-lookup-input-placeholder\">\n {{ placeholder }}\n </span>\n\n <po-disclaimer\n *ngFor=\"let disclaimer of visibleDisclaimers\"\n class=\"po-lookup-input-disclaimer\"\n [p-label]=\"disclaimer.label\"\n [p-value]=\"disclaimer.value\"\n [p-hide-close]=\"disclaimer.value === '' || disabled\"\n [class.po-clickable]=\"disclaimer.value === '' && !disabled\"\n (p-close-action)=\"closeDisclaimer(disclaimer.value)\"\n >\n </po-disclaimer>\n </div>\n <div class=\"po-field-icon-container-right po-lookup-buttons\">\n <po-clean\n *ngIf=\"clean && !disabled && !!inp.value\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"literals.clean\"\n class=\"po-lookup-button po-lookup-button-clean\"\n [p-element-ref]=\"inp\"\n (p-change-event)=\"cleanModel()\"\n (click)=\"cleanModel(); $event.preventDefault()\"\n (keydown.enter)=\"cleanModel(); $event.preventDefault()\"\n >\n </po-clean>\n <div\n #iconLookup\n tabindex=\"0\"\n role=\"button\"\n class=\"po-lookup-button po-lookup-button-trigger po-field-icon\"\n [class.po-field-icon-disabled]=\"disabled\"\n [ariaLabel]=\"literals.search\"\n (p-change-event)=\"openLookup()\"\n (click)=\"openLookup(); $event.preventDefault()\"\n (keydown.enter)=\"openLookup(); $event.preventDefault()\"\n >\n <po-icon p-icon=\"ICON_SEARCH\" [class.po-field-icon]=\"!disabled\"></po-icon>\n </div>\n </div>\n </div>\n</ng-template>\n" }]
|
|
35273
35729
|
}], () => [{ type: PoLanguageService }, { type: i0.Renderer2 }, { type: PoLookupFilterService }, { type: PoLookupModalService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Injector }], { inputEl: [{
|
|
35274
35730
|
type: ViewChild,
|
|
35275
35731
|
args: ['inp', { read: ElementRef, static: false }]
|
|
@@ -59874,213 +60330,11 @@ function initializeLanguageDefault(config, languageService) {
|
|
|
59874
60330
|
*
|
|
59875
60331
|
*/
|
|
59876
60332
|
|
|
59877
|
-
/**
|
|
59878
|
-
* Define as cores de ação padrão para temas escuros.
|
|
59879
|
-
*/
|
|
59880
|
-
const poThemeDefaultActionsDark = {
|
|
59881
|
-
/** Cor padrão. */
|
|
59882
|
-
default: 'var(--color-brand-01-dark)',
|
|
59883
|
-
/** Cor ao passar o mouse. */
|
|
59884
|
-
hover: 'var(--color-brand-01-darker)',
|
|
59885
|
-
/** Cor quando pressionado. */
|
|
59886
|
-
pressed: 'var(--color-brand-01-darkest)',
|
|
59887
|
-
/** Cor quando desabilitado. */
|
|
59888
|
-
disabled: 'var(--color-neutral-mid-40)',
|
|
59889
|
-
/** Cor ao focar. */
|
|
59890
|
-
focus: 'var(--color-brand-01-darkest)'
|
|
59891
|
-
};
|
|
59892
|
-
/**
|
|
59893
|
-
* Define as cores neutras padrão para temas escuros.
|
|
59894
|
-
*/
|
|
59895
|
-
const poThemeDefaultNeutralsDark = {
|
|
59896
|
-
/** Tons de cinza claro. */
|
|
59897
|
-
light: {
|
|
59898
|
-
'00': '#1c1c1c',
|
|
59899
|
-
'05': '#202020',
|
|
59900
|
-
'10': '#2b2b2b',
|
|
59901
|
-
'20': '#3b3b3b',
|
|
59902
|
-
'30': '#5a5a5a'
|
|
59903
|
-
},
|
|
59904
|
-
/** Tons de cinza intermediários. */
|
|
59905
|
-
mid: {
|
|
59906
|
-
'40': '#7c7c7c',
|
|
59907
|
-
'60': '#a1a1a1'
|
|
59908
|
-
},
|
|
59909
|
-
/** Tons de cinza escuro. */
|
|
59910
|
-
dark: {
|
|
59911
|
-
'70': '#c1c1c1',
|
|
59912
|
-
'80': '#d9d9d9',
|
|
59913
|
-
'90': '#eeeeee',
|
|
59914
|
-
'95': '#fbfbfb'
|
|
59915
|
-
}
|
|
59916
|
-
};
|
|
59917
|
-
/**
|
|
59918
|
-
* Define as cores de feedback padrão para temas escuros.
|
|
59919
|
-
*/
|
|
59920
|
-
const poThemeDefaultFeedbackDark = {
|
|
59921
|
-
/** Cores para feedback negativo. */
|
|
59922
|
-
negative: {
|
|
59923
|
-
lightest: '#4a1512',
|
|
59924
|
-
lighter: '#72211d',
|
|
59925
|
-
light: '#9b2d27',
|
|
59926
|
-
base: '#be3e37',
|
|
59927
|
-
dark: '#d58581',
|
|
59928
|
-
darker: '#e3aeab',
|
|
59929
|
-
darkest: '#f6e6e5'
|
|
59930
|
-
},
|
|
59931
|
-
/** Cores para feedback informativo. */
|
|
59932
|
-
info: {
|
|
59933
|
-
lightest: '#081536',
|
|
59934
|
-
lighter: '#0f2557',
|
|
59935
|
-
light: '#173782',
|
|
59936
|
-
base: '#23489f',
|
|
59937
|
-
dark: '#7996d7',
|
|
59938
|
-
darker: '#b0c1e8',
|
|
59939
|
-
darkest: '#e3e9f7'
|
|
59940
|
-
},
|
|
59941
|
-
/** Cores para feedback positivo. */
|
|
59942
|
-
positive: {
|
|
59943
|
-
lightest: '#002415',
|
|
59944
|
-
lighter: '#083a25',
|
|
59945
|
-
light: '#0f5236',
|
|
59946
|
-
base: '#107048',
|
|
59947
|
-
dark: '#41b483',
|
|
59948
|
-
darker: '#7ecead',
|
|
59949
|
-
darkest: '#def7ed'
|
|
59950
|
-
},
|
|
59951
|
-
/** Cores para feedback de aviso. */
|
|
59952
|
-
warning: {
|
|
59953
|
-
lightest: '#473400',
|
|
59954
|
-
lighter: '#705200',
|
|
59955
|
-
light: '#d8a20e',
|
|
59956
|
-
base: '#efba2a',
|
|
59957
|
-
dark: '#f1cd6a',
|
|
59958
|
-
darker: '#f7dd97',
|
|
59959
|
-
darkest: '#fcf6e3'
|
|
59960
|
-
}
|
|
59961
|
-
};
|
|
59962
|
-
/**
|
|
59963
|
-
* Define estilos específicos por componente e onRoot para temas escuros.
|
|
59964
|
-
*/
|
|
59965
|
-
const poThemeDefaultDarkValues = {
|
|
59966
|
-
perComponent: {
|
|
59967
|
-
/** TAB */
|
|
59968
|
-
'.po-tab-border-active': {
|
|
59969
|
-
'background-color': 'var(--color)'
|
|
59970
|
-
},
|
|
59971
|
-
/** GAUGE */
|
|
59972
|
-
'.po-gauge-wrapper': {
|
|
59973
|
-
'background-color': 'var(--color-neutral-light-00)'
|
|
59974
|
-
},
|
|
59975
|
-
/** OVERLAY */
|
|
59976
|
-
'po-overlay': {
|
|
59977
|
-
'--color-overlay': 'var(--color-neutral-light-20)'
|
|
59978
|
-
},
|
|
59979
|
-
/** MODAL */
|
|
59980
|
-
'po-modal': {
|
|
59981
|
-
'--color-overlay': 'var(--color-neutral-light-20)'
|
|
59982
|
-
},
|
|
59983
|
-
/** TOASTER */
|
|
59984
|
-
'po-toaster': {
|
|
59985
|
-
'--color-icon': 'var(--color-neutral-dark-80)',
|
|
59986
|
-
'--color-icon-warning': 'var(--color-neutral-light-00)'
|
|
59987
|
-
},
|
|
59988
|
-
/** BADGE */
|
|
59989
|
-
'po-badge': {
|
|
59990
|
-
'--color': 'var(--color-neutral-dark-95)'
|
|
59991
|
-
},
|
|
59992
|
-
'po-badge[p-status=warning]': {
|
|
59993
|
-
'--color': 'var(--color-neutral-light-00)'
|
|
59994
|
-
},
|
|
59995
|
-
// CHART: AXIS LABEL
|
|
59996
|
-
'po-chart po-chart-container > svg .po-chart-axis-x-label, .po-chart-axis-y-label': {
|
|
59997
|
-
'fill': 'var(--color-neutral-dark-95)'
|
|
59998
|
-
},
|
|
59999
|
-
// RICH-TEXT: color button border
|
|
60000
|
-
'po-rich-text-toolbar .po-button-default.po-rich-text-toolbar-color-picker-button': {
|
|
60001
|
-
'border-style': 'solid'
|
|
60002
|
-
},
|
|
60003
|
-
// LINK: item visitado
|
|
60004
|
-
'po-link': {
|
|
60005
|
-
'--text-color-visited': 'var(--color-action-default)'
|
|
60006
|
-
},
|
|
60007
|
-
// focus e outline: po-rich-text-body/ poinfo/ po-list-view/ po-stepper-circle (mudar no po-style)
|
|
60008
|
-
'po-rich-text-body .po-rich-text-body:focus-visible, po-info .po-info-link:focus-visible, po-list-view a.po-list-view-title-link:focus-visible, po-stepper-circle .po-stepper-circle:focus-visible': {
|
|
60009
|
-
'border-color': 'var(--color-action-default);',
|
|
60010
|
-
'outline-color': 'var(--color-action-focus);',
|
|
60011
|
-
'outline-width': 'var(--outline-width-focus-visible);',
|
|
60012
|
-
'outline-style': 'solid;',
|
|
60013
|
-
'outline-offset': '2px;'
|
|
60014
|
-
},
|
|
60015
|
-
// background container
|
|
60016
|
-
'po-container': {
|
|
60017
|
-
'--background': 'var(--color-neutral-light-00);'
|
|
60018
|
-
},
|
|
60019
|
-
// Background input disabled
|
|
60020
|
-
'div.po-lookup-filter-content input.po-input, input.po-input, po-datepicker, po-datepicker-range, po-decimal, po-email, po-input, po-login, po-lookup, po-number, po-password, po-url, po-combo, po-search, po-select, po-multiselect': {
|
|
60021
|
-
'--background-disabled': 'var(--color-neutral-light-20);'
|
|
60022
|
-
},
|
|
60023
|
-
// autocomplete dos inputs (setar no po-style)
|
|
60024
|
-
'po-input input:-webkit-autofill, po-datepicker input:-webkit-autofill, po-datepicker-range input:-webkit-autofill, po-decimal input:-webkit-autofill, po-email input:-webkit-autofill, po-input input:-webkit-autofill, po-login input:-webkit-autofill, po-lookup input:-webkit-autofill, po-number input:-webkit-autofill, po-password input:-webkit-autofill, po-url input:-webkit-autofill, po-combo input:-webkit-autofill': {
|
|
60025
|
-
'-webkit-background-clip': 'text',
|
|
60026
|
-
'-webkit-text-fill-color': '#ffffff',
|
|
60027
|
-
'transition': 'background-color 5000s ease-in-out 0s',
|
|
60028
|
-
'box-shadow': 'inset 0 0 20px 20px #23232329'
|
|
60029
|
-
},
|
|
60030
|
-
'po-overlay, po-page-slide': {
|
|
60031
|
-
'--color-overlay': 'var(--color-neutral-light-05)'
|
|
60032
|
-
},
|
|
60033
|
-
'po-select': {
|
|
60034
|
-
'--color-hover': 'var(--color-action-hover);'
|
|
60035
|
-
},
|
|
60036
|
-
'po-select select': {
|
|
60037
|
-
'--color': 'var(--color-neutral-light-30);'
|
|
60038
|
-
}
|
|
60039
|
-
},
|
|
60040
|
-
onRoot: {
|
|
60041
|
-
/* CORES LEGADAS */
|
|
60042
|
-
'--color-neutral': 'var(--color-neutral-dark-70)',
|
|
60043
|
-
'--color-secondary': 'var(--color-action-default)',
|
|
60044
|
-
'--color-secondary-light-20': 'var(--color-brand-01-lighter)',
|
|
60045
|
-
'--color-secondary-light-40': 'var(--color-brand-01-light)',
|
|
60046
|
-
'--color-secondary-dark-20': 'var(--color-brand-01-dark)',
|
|
60047
|
-
'--color-secondary-dark-40': 'var(--color-brand-01-darker)',
|
|
60048
|
-
'--color-secondary-dark-80': 'var(--color-brand-01-darkest)',
|
|
60049
|
-
'--color-black-alpha-10': 'rgba(255, 255, 255, 0.1)',
|
|
60050
|
-
'--color-black-alpha-15': 'rgba(255, 255, 255, 0.15)',
|
|
60051
|
-
'--color-black-alpha-30': 'rgba(255, 255, 255, 0.3)',
|
|
60052
|
-
'--color-primary-light-80': 'color-mix(in srgb, var(--color-brand-02-base) 80%, black)',
|
|
60053
|
-
'--color-primary-light-95': 'color-mix(in srgb, var(--color-brand-02-base) 95%, black)',
|
|
60054
|
-
'--color-primary-alpha-50': 'color-mix(in srgb, var(--color-brand-02-base) 50%, white)',
|
|
60055
|
-
'--color-primary-dark-20': 'color-mix(in srgb, var(--color-brand-02-base) 20%, white)',
|
|
60056
|
-
'--color-primary-dark-40': 'color-mix(in srgb, var(--color-brand-02-base) 40%, white)',
|
|
60057
|
-
'--color-secondary-dark-60-alpha-70': 'color-mix(in srgb, var(--color-neutral-mid-60) 70%, white)',
|
|
60058
|
-
'--color-tertiary-light-90': 'color-mix(in srgb, var(--color-brand-03-base) 90%, black)',
|
|
60059
|
-
'--color-tertiary-dark-5': 'color-mix(in srgb, var(--color-brand-03-base) 5%, white)',
|
|
60060
|
-
/* PO-PAGE */
|
|
60061
|
-
'--color-page-background-color-page': 'var(--color-neutral-light-00)',
|
|
60062
|
-
/* TOOLBAR BADGE */
|
|
60063
|
-
'--color-toolbar-color-badge-text': 'var(--color-neutral-dark-95)',
|
|
60064
|
-
/* POPOVER */
|
|
60065
|
-
'--shadow-popover-box-shadow': '0 0 4px 0 var(--color-neutral-light-20)',
|
|
60066
|
-
'--shadow-popover-box-shadow-arrow': '-1px -1px 1px 0 var(--color-neutral-light-20)',
|
|
60067
|
-
/* CALENDAR */
|
|
60068
|
-
'--color-calendar-background-color-box-background-range': 'var(--color-brand-01-lightest)',
|
|
60069
|
-
/* STEPPER */
|
|
60070
|
-
'--color-stepper-circle-disabled': 'var(--color-neutral-mid-40)',
|
|
60071
|
-
'--color-stepper-bar-disabled': 'var(--color-neutral-mid-40)',
|
|
60072
|
-
/* TAB */
|
|
60073
|
-
'--po-tab-smart-active': 'var(--color-neutral-dark-95)',
|
|
60074
|
-
'--po-tab-smart-background-item-selected': 'var(--color-brand-01-lighter)',
|
|
60075
|
-
'--po-tab-smart-background-hover': 'var(--color-brand-01-lightest)'
|
|
60076
|
-
}
|
|
60077
|
-
};
|
|
60078
|
-
|
|
60079
60333
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
60080
60334
|
|
|
60081
60335
|
/**
|
|
60082
60336
|
* Generated bundle index. Do not edit.
|
|
60083
60337
|
*/
|
|
60084
60338
|
|
|
60085
|
-
export { ForceBooleanComponentEnum, ForceOptionComponentEnum, I18N_CONFIG, ICONS_DICTIONARY, InputBoolean, InputRequired, PO_CONTROL_POSITIONS, PhosphorIconDictionary, PoAccordionComponent, PoAccordionItemComponent, PoAccordionModule, PoActiveOverlayModule, PoActiveOverlayService, PoAvatarComponent, PoAvatarModule, PoBadgeComponent, PoBadgeModule, PoBreadcrumbComponent, PoBreadcrumbModule, PoButtonComponent, PoButtonGroupComponent, PoButtonGroupModule, PoButtonGroupToggle, PoButtonModule, PoButtonType, PoCalendarComponent, PoCalendarMode, PoCalendarModule, PoChartComponent, PoChartModule, PoChartType, PoCheckboxComponent, PoCheckboxGroupComponent, PoCheckboxGroupModule, PoCheckboxModule, PoCheckboxSize, PoCleanComponent, PoCleanModule, PoColorPaletteModule, PoColorPaletteService, PoComboComponent, PoComboFilterMode, PoComboOptionTemplateDirective, PoComponentInjectorModule, PoComponentInjectorService, PoComponentsModule, PoContainerComponent, PoContainerModule, PoControlPositionModule, PoDateService, PoDateTimeModule, PoDatepickerComponent, PoDatepickerIsoFormat, PoDatepickerModule, PoDatepickerRangeComponent, PoDecimalComponent, PoDialogComponent, PoDialogModule, PoDialogService, PoDialogType, PoDirectivesModule, PoDisclaimerComponent, PoDisclaimerGroupComponent, PoDisclaimerGroupModule, PoDisclaimerModule, PoDividerComponent, PoDividerModule, PoDividerSize, PoDropdownComponent, PoDropdownModule, PoDynamicContainerComponent, PoDynamicFieldType, PoDynamicFormComponent, PoDynamicModule, PoDynamicSharedBase, PoDynamicViewComponent, PoEmailComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoFieldContainerModule, PoFieldModule, PoGaugeComponent, PoGaugeModule, PoGridComponent, PoGridModule, PoGuardsModule, PoHttpInterceptorModule, PoHttpInterceptorService, PoHttpRequestInterceptorService, PoHttpRequestModule, PoI18nModule, PoI18nPipe, PoI18nService, PoIconComponent, PoIconDictionary, PoIconModule, PoImageComponent, PoImageModule, PoInfoComponent, PoInfoModule, PoInfoOrientation, PoInputComponent, PoInterceptorsModule, PoItemListComponent, PoLabelComponent, PoLabelModule, PoLanguageModule, PoLanguageService, PoLinkComponent, PoLinkModule, PoListBoxComponent, PoListBoxModule, PoListViewComponent, PoListViewContentTemplateDirective, PoListViewDetailTemplateDirective, PoListViewModule, PoLoadingComponent, PoLoadingIconComponent, PoLoadingModule, PoLoadingOverlayComponent, PoLoginComponent, PoLogoComponent, PoLogoModule, PoLookupComponent, PoLookupModalComponent, PoMask, PoMediaQueryModule, PoMediaQueryService, PoMenuComponent, PoMenuGlobalService, PoMenuHeaderTemplateDirective, PoMenuModule, PoMenuPanelComponent, PoMenuPanelModule, PoModalComponent, PoModalFooterComponent, PoModalModule, PoModule, PoMultiselectComponent, PoMultiselectFilterMode, PoMultiselectOptionTemplateDirective, PoNavbarComponent, PoNavbarModule, PoNotificationModule, PoNotificationService, PoNumberComponent, PoOverlayComponent, PoOverlayModule, PoPageDefaultComponent, PoPageDetailComponent, PoPageEditComponent, PoPageListComponent, PoPageModule, PoPageSlideComponent, PoPageSlideFooterComponent, PoPageSlideModule, PoPasswordComponent, PoPipesModule, PoPopoverComponent, PoPopoverModule, PoPopupComponent, PoPopupModule, PoProgressComponent, PoProgressModule, PoProgressSize, PoProgressStatus, PoRadioComponent, PoRadioGroupComponent, PoRadioGroupModule, PoRadioModule, PoRichTextComponent, PoRichTextToolbarActions, PoSearchComponent, PoSearchFilterMode, PoSearchListComponent, PoSearchModule, PoSelectComponent, PoServicesModule, PoSlideComponent, PoSlideContentTemplateDirective, PoSlideModule, PoStepComponent, PoStepperComponent, PoStepperModule, PoStepperOrientation, PoStepperStatus, PoSwitchComponent, PoSwitchLabelPosition, PoSwitchModule, PoTabComponent, PoTableCellTemplateDirective, PoTableColumnFrozenDirective, PoTableColumnSortType, PoTableColumnSpacing, PoTableColumnTemplateDirective, PoTableComponent, PoTableModule, PoTableRowTemplateArrowDirection, PoTableRowTemplateDirective, PoTabsComponent, PoTabsModule, PoTabsService, PoTagComponent, PoTagModule, PoTagOrientation, PoTagType, PoTextareaComponent, PoThemeModule, PoThemeService, PoThemeTypeEnum, PoTimeModule, PoTimePipe, PoToasterComponent, PoToasterMode, PoToasterModule, PoToasterOrientation, PoToasterType, PoToolbarComponent, PoToolbarModule, PoTooltipDirective, PoTooltipModule, PoTreeViewComponent, PoTreeViewModule, PoUploadComponent, PoUploadFile, PoUploadStatus, PoUrlComponent, PoWidgetComponent, PoWidgetModule, initializeLanguageDefault, poBreadcrumbLiterals, poDialogAlertLiteralsDefault, poDialogConfirmLiteralsDefault, poLanguageDefault, poLocaleDateSeparatorList, poLocaleDecimalSeparatorList, poLocaleDefault, poLocaleThousandSeparatorList, poLocales, poPageSlideLiteralsDefault, poTabsLiterals, poThemeDefault, poThemeDefaultActions, poThemeDefaultActionsDark, poThemeDefaultBrands, poThemeDefaultDarkValues, poThemeDefaultFeedback, poThemeDefaultFeedbackDark, poThemeDefaultLight, poThemeDefaultLightValues, poThemeDefaultNeutrals, poThemeDefaultNeutralsDark, poToasterLiterals, returnPoI18nService };
|
|
60339
|
+
export { ForceBooleanComponentEnum, ForceOptionComponentEnum, I18N_CONFIG, ICONS_DICTIONARY, InputBoolean, InputRequired, PO_CONTROL_POSITIONS, PhosphorIconDictionary, PoAccordionComponent, PoAccordionItemComponent, PoAccordionModule, PoActiveOverlayModule, PoActiveOverlayService, PoAvatarComponent, PoAvatarModule, PoBadgeComponent, PoBadgeModule, PoBreadcrumbComponent, PoBreadcrumbModule, PoButtonComponent, PoButtonGroupComponent, PoButtonGroupModule, PoButtonGroupToggle, PoButtonModule, PoButtonType, PoCalendarComponent, PoCalendarMode, PoCalendarModule, PoChartComponent, PoChartModule, PoChartType, PoCheckboxComponent, PoCheckboxGroupComponent, PoCheckboxGroupModule, PoCheckboxModule, PoCheckboxSize, PoCleanComponent, PoCleanModule, PoColorPaletteModule, PoColorPaletteService, PoComboComponent, PoComboFilterMode, PoComboOptionTemplateDirective, PoComponentInjectorModule, PoComponentInjectorService, PoComponentsModule, PoContainerComponent, PoContainerModule, PoControlPositionModule, PoDateService, PoDateTimeModule, PoDatepickerComponent, PoDatepickerIsoFormat, PoDatepickerModule, PoDatepickerRangeComponent, PoDecimalComponent, PoDialogComponent, PoDialogModule, PoDialogService, PoDialogType, PoDirectivesModule, PoDisclaimerComponent, PoDisclaimerGroupComponent, PoDisclaimerGroupModule, PoDisclaimerModule, PoDividerComponent, PoDividerModule, PoDividerSize, PoDropdownComponent, PoDropdownModule, PoDynamicContainerComponent, PoDynamicFieldType, PoDynamicFormComponent, PoDynamicModule, PoDynamicSharedBase, PoDynamicViewComponent, PoEmailComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoFieldContainerModule, PoFieldModule, PoGaugeComponent, PoGaugeModule, PoGridComponent, PoGridModule, PoGuardsModule, PoHttpInterceptorModule, PoHttpInterceptorService, PoHttpRequestInterceptorService, PoHttpRequestModule, PoI18nModule, PoI18nPipe, PoI18nService, PoIconComponent, PoIconDictionary, PoIconModule, PoImageComponent, PoImageModule, PoInfoComponent, PoInfoModule, PoInfoOrientation, PoInputComponent, PoInterceptorsModule, PoItemListComponent, PoLabelComponent, PoLabelModule, PoLanguageModule, PoLanguageService, PoLinkComponent, PoLinkModule, PoListBoxComponent, PoListBoxModule, PoListViewComponent, PoListViewContentTemplateDirective, PoListViewDetailTemplateDirective, PoListViewModule, PoLoadingComponent, PoLoadingIconComponent, PoLoadingModule, PoLoadingOverlayComponent, PoLoginComponent, PoLogoComponent, PoLogoModule, PoLookupComponent, PoLookupModalComponent, PoMask, PoMediaQueryModule, PoMediaQueryService, PoMenuComponent, PoMenuGlobalService, PoMenuHeaderTemplateDirective, PoMenuModule, PoMenuPanelComponent, PoMenuPanelModule, PoModalComponent, PoModalFooterComponent, PoModalModule, PoModule, PoMultiselectComponent, PoMultiselectFilterMode, PoMultiselectOptionTemplateDirective, PoNavbarComponent, PoNavbarModule, PoNotificationModule, PoNotificationService, PoNumberComponent, PoOverlayComponent, PoOverlayModule, PoPageDefaultComponent, PoPageDetailComponent, PoPageEditComponent, PoPageListComponent, PoPageModule, PoPageSlideComponent, PoPageSlideFooterComponent, PoPageSlideModule, PoPasswordComponent, PoPipesModule, PoPopoverComponent, PoPopoverModule, PoPopupComponent, PoPopupModule, PoProgressComponent, PoProgressModule, PoProgressSize, PoProgressStatus, PoRadioComponent, PoRadioGroupComponent, PoRadioGroupModule, PoRadioModule, PoRichTextComponent, PoRichTextToolbarActions, PoSearchComponent, PoSearchFilterMode, PoSearchListComponent, PoSearchModule, PoSelectComponent, PoServicesModule, PoSlideComponent, PoSlideContentTemplateDirective, PoSlideModule, PoStepComponent, PoStepperComponent, PoStepperModule, PoStepperOrientation, PoStepperStatus, PoSwitchComponent, PoSwitchLabelPosition, PoSwitchModule, PoTabComponent, PoTableCellTemplateDirective, PoTableColumnFrozenDirective, PoTableColumnSortType, PoTableColumnSpacing, PoTableColumnTemplateDirective, PoTableComponent, PoTableModule, PoTableRowTemplateArrowDirection, PoTableRowTemplateDirective, PoTabsComponent, PoTabsModule, PoTabsService, PoTagComponent, PoTagModule, PoTagOrientation, PoTagType, PoTextareaComponent, PoThemeA11yEnum, PoThemeModule, PoThemeService, PoThemeTypeEnum, PoTimeModule, PoTimePipe, PoToasterComponent, PoToasterMode, PoToasterModule, PoToasterOrientation, PoToasterType, PoToolbarComponent, PoToolbarModule, PoTooltipDirective, PoTooltipModule, PoTreeViewComponent, PoTreeViewModule, PoUploadComponent, PoUploadFile, PoUploadStatus, PoUrlComponent, PoWidgetComponent, PoWidgetModule, initializeLanguageDefault, poBreadcrumbLiterals, poDialogAlertLiteralsDefault, poDialogConfirmLiteralsDefault, poLanguageDefault, poLocaleDateSeparatorList, poLocaleDecimalSeparatorList, poLocaleDefault, poLocaleThousandSeparatorList, poLocales, poPageSlideLiteralsDefault, poTabsLiterals, poThemeDefault, poThemeDefaultAA, poThemeDefaultAAA, poThemeDefaultActions, poThemeDefaultActionsDark, poThemeDefaultBrands, poThemeDefaultBrandsDark, poThemeDefaultDark, poThemeDefaultDarkValues, poThemeDefaultFeedback, poThemeDefaultFeedbackDark, poThemeDefaultLight, poThemeDefaultLightValues, poThemeDefaultNeutrals, poThemeDefaultNeutralsDark, poToasterLiterals, returnPoI18nService };
|
|
60086
60340
|
//# sourceMappingURL=po-ui-ng-components.mjs.map
|