@acorex/components 7.1.0 → 7.1.1
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/action-sheet/index.d.ts +5 -5
- package/action-sheet/public-api.d.ts +3 -3
- package/action-sheet/src/action-sheet.component.d.ts +25 -25
- package/action-sheet/src/action-sheet.interface.d.ts +20 -20
- package/action-sheet/src/action-sheet.module.d.ts +14 -14
- package/action-sheet/src/action-sheet.service.d.ts +13 -13
- package/alert/index.d.ts +5 -5
- package/alert/public-api.d.ts +2 -2
- package/alert/src/alert.component.d.ts +88 -88
- package/alert/src/alert.module.d.ts +9 -9
- package/avatar/index.d.ts +5 -5
- package/avatar/public-api.d.ts +3 -3
- package/avatar/src/avatar-group.component.d.ts +8 -8
- package/avatar/src/avatar.component.d.ts +20 -20
- package/avatar/src/avatar.module.d.ts +9 -9
- package/badge/index.d.ts +5 -5
- package/badge/public-api.d.ts +2 -2
- package/badge/src/badge.component.d.ts +41 -41
- package/badge/src/badge.module.d.ts +8 -8
- package/breadcrumbs/index.d.ts +5 -5
- package/breadcrumbs/public-api.d.ts +4 -4
- package/breadcrumbs/src/breadcrumbs-item.class.d.ts +9 -9
- package/breadcrumbs/src/breadcrumbs-item.component.d.ts +77 -79
- package/breadcrumbs/src/breadcrumbs.component.d.ts +13 -13
- package/breadcrumbs/src/breadcrumbs.module.d.ts +9 -9
- package/button/index.d.ts +5 -5
- package/button/public-api.d.ts +5 -5
- package/button/src/button-group.component.d.ts +86 -86
- package/button/src/button-item.class.d.ts +24 -24
- package/button/src/button-item.component.d.ts +82 -80
- package/button/src/button.component.d.ts +23 -23
- package/button/src/button.module.d.ts +11 -11
- package/calendar/index.d.ts +5 -5
- package/calendar/public-api.d.ts +4 -4
- package/calendar/src/calendar-range.component.d.ts +29 -29
- package/calendar/src/calendar.class.d.ts +100 -100
- package/calendar/src/calendar.component.d.ts +44 -44
- package/calendar/src/calendar.module.d.ts +10 -10
- package/card/index.d.ts +5 -5
- package/card/public-api.d.ts +2 -2
- package/card/src/card.component.d.ts +10 -10
- package/card/src/card.module.d.ts +8 -8
- package/checkbox/index.d.ts +5 -5
- package/checkbox/public-api.d.ts +2 -2
- package/checkbox/src/checkbox.component.d.ts +12 -12
- package/checkbox/src/checkbox.module.d.ts +10 -10
- package/chips/index.d.ts +5 -5
- package/chips/public-api.d.ts +2 -2
- package/chips/src/chips.component.d.ts +72 -72
- package/chips/src/chips.module.d.ts +8 -8
- package/collapse/index.d.ts +5 -5
- package/collapse/public-api.d.ts +3 -3
- package/collapse/src/collapse-group.component.d.ts +15 -15
- package/collapse/src/collapse.component.d.ts +17 -17
- package/collapse/src/collapse.module.d.ts +9 -9
- package/color-palette/index.d.ts +5 -5
- package/color-palette/public-api.d.ts +7 -7
- package/color-palette/src/color-palette-input.component.d.ts +22 -22
- package/color-palette/src/color-palette-picker.component.d.ts +32 -32
- package/color-palette/src/color-palette-preview.component.d.ts +11 -11
- package/color-palette/src/color-palette-swatches.component.d.ts +18 -18
- package/color-palette/src/color-palette.class.d.ts +22 -22
- package/color-palette/src/color-palette.component.d.ts +16 -16
- package/color-palette/src/color-palette.module.d.ts +19 -19
- package/color-picker/index.d.ts +5 -5
- package/color-picker/public-api.d.ts +2 -2
- package/color-picker/src/color-picker.component.d.ts +190 -193
- package/color-picker/src/color-picker.module.d.ts +18 -18
- package/common/index.d.ts +5 -5
- package/common/public-api.d.ts +16 -16
- package/common/src/classes/components.class.d.ts +62 -62
- package/common/src/classes/data.class.d.ts +4 -4
- package/common/src/classes/drawing.class.d.ts +9 -9
- package/common/src/classes/events.class.d.ts +95 -95
- package/common/src/classes/styles.class.d.ts +17 -17
- package/common/src/common.module.d.ts +11 -11
- package/common/src/components/base-component.class.d.ts +28 -28
- package/common/src/components/button-base-component.class.d.ts +36 -36
- package/common/src/components/color-component.class.d.ts +15 -15
- package/common/src/components/colorlook-component.class.d.ts +9 -9
- package/common/src/components/index.d.ts +7 -7
- package/common/src/components/interactive-component.class.d.ts +37 -37
- package/common/src/components/look-component.class.d.ts +15 -15
- package/common/src/components/value-component.class.d.ts +45 -45
- package/common/src/constant/positions.d.ts +75 -75
- package/common/src/directives/auto-focus.directive.d.ts +13 -13
- package/common/src/directives/debounce-time.directive.d.ts +17 -17
- package/common/src/directives/hotkey.directive.d.ts +22 -22
- package/common/src/directives/infinite-scroll.directive.d.ts +25 -25
- package/common/src/directives/responsive.directive.d.ts +10 -10
- package/common/src/services/custom-cdk-overlay.service.d.ts +19 -19
- package/common/src/services/hotkey.service.d.ts +17 -17
- package/common/src/services/overlay.service.d.ts +34 -34
- package/context-menu/index.d.ts +5 -5
- package/context-menu/public-api.d.ts +2 -2
- package/context-menu/src/context-menu.component.d.ts +34 -34
- package/context-menu/src/context-menu.module.d.ts +13 -13
- package/data-pager/index.d.ts +5 -5
- package/data-pager/public-api.d.ts +9 -9
- package/data-pager/src/data-pager-base.component.d.ts +49 -49
- package/data-pager/src/data-pager-info.component.d.ts +15 -15
- package/data-pager/src/data-pager-input-selector.component.d.ts +15 -15
- package/data-pager/src/data-pager-next-buttons.components.d.ts +16 -16
- package/data-pager/src/data-pager-numeric-selector.component.d.ts +18 -18
- package/data-pager/src/data-pager-pagesize-dropdown.component.d.ts +18 -18
- package/data-pager/src/data-pager-prev-buttons.component.d.ts +15 -15
- package/data-pager/src/data-pager.component.d.ts +35 -35
- package/data-pager/src/data-pager.module.d.ts +18 -18
- package/data-table/index.d.ts +5 -5
- package/data-table/public-api.d.ts +4 -4
- package/data-table/src/data-column-cell-template.directive.d.ts +8 -8
- package/data-table/src/data-column.directive.d.ts +16 -16
- package/data-table/src/data-table.component.d.ts +37 -37
- package/data-table/src/data-table.module.d.ts +14 -14
- package/date-picker/index.d.ts +5 -5
- package/date-picker/public-api.d.ts +2 -2
- package/date-picker/src/datepicker.component.d.ts +154 -154
- package/date-picker/src/datepicker.module.d.ts +15 -15
- package/decorators/index.d.ts +5 -5
- package/decorators/public-api.d.ts +14 -14
- package/decorators/src/close-button.component.d.ts +14 -14
- package/decorators/src/content.component.d.ts +8 -8
- package/decorators/src/decorators.module.d.ts +20 -20
- package/decorators/src/footer.component.d.ts +8 -8
- package/decorators/src/form-hint.component.d.ts +8 -8
- package/decorators/src/header.component.d.ts +8 -8
- package/decorators/src/icon.component.d.ts +10 -10
- package/decorators/src/overlay.component.d.ts +6 -6
- package/decorators/src/placeholder.component.d.ts +5 -5
- package/decorators/src/prefix.component.d.ts +8 -8
- package/decorators/src/sub-title.component.d.ts +9 -9
- package/decorators/src/suffix.component.d.ts +8 -8
- package/decorators/src/text.component.d.ts +9 -9
- package/decorators/src/title.component.d.ts +8 -8
- package/dialog/index.d.ts +5 -5
- package/dialog/public-api.d.ts +4 -4
- package/dialog/src/dialog.class.d.ts +13 -13
- package/dialog/src/dialog.component.d.ts +16 -16
- package/dialog/src/dialog.module.d.ts +14 -14
- package/dialog/src/dialog.service.d.ts +38 -38
- package/drawer/index.d.ts +5 -5
- package/drawer/public-api.d.ts +3 -3
- package/drawer/src/drawer-container.component.d.ts +10 -10
- package/drawer/src/drawer.component.d.ts +36 -36
- package/drawer/src/drawer.module.d.ts +9 -9
- package/dropdown/index.d.ts +5 -5
- package/dropdown/public-api.d.ts +2 -2
- package/dropdown/src/dropdown-panel.component.d.ts +30 -30
- package/dropdown/src/dropdown.module.d.ts +14 -14
- package/esm2022/acorex-components.mjs +4 -4
- package/esm2022/action-sheet/acorex-components-action-sheet.mjs +4 -4
- package/esm2022/action-sheet/public-api.mjs +3 -3
- package/esm2022/action-sheet/src/action-sheet.component.mjs +81 -80
- package/esm2022/action-sheet/src/action-sheet.interface.mjs +2 -2
- package/esm2022/action-sheet/src/action-sheet.module.mjs +27 -26
- package/esm2022/action-sheet/src/action-sheet.service.mjs +94 -93
- package/esm2022/alert/acorex-components-alert.mjs +4 -4
- package/esm2022/alert/public-api.mjs +2 -2
- package/esm2022/alert/src/alert.component.mjs +189 -188
- package/esm2022/alert/src/alert.module.mjs +23 -22
- package/esm2022/avatar/acorex-components-avatar.mjs +4 -4
- package/esm2022/avatar/public-api.mjs +3 -3
- package/esm2022/avatar/src/avatar-group.component.mjs +17 -16
- package/esm2022/avatar/src/avatar.component.mjs +44 -43
- package/esm2022/avatar/src/avatar.module.mjs +23 -22
- package/esm2022/badge/acorex-components-badge.mjs +4 -4
- package/esm2022/badge/public-api.mjs +2 -2
- package/esm2022/badge/src/badge.component.mjs +29 -28
- package/esm2022/badge/src/badge.module.mjs +22 -21
- package/esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs +4 -4
- package/esm2022/breadcrumbs/public-api.mjs +4 -4
- package/esm2022/breadcrumbs/src/breadcrumbs-item.class.mjs +1 -1
- package/esm2022/breadcrumbs/src/breadcrumbs-item.component.mjs +51 -50
- package/esm2022/breadcrumbs/src/breadcrumbs.component.mjs +28 -27
- package/esm2022/breadcrumbs/src/breadcrumbs.module.mjs +21 -20
- package/esm2022/button/acorex-components-button.mjs +4 -4
- package/esm2022/button/public-api.mjs +5 -5
- package/esm2022/button/src/button-group.component.mjs +92 -91
- package/esm2022/button/src/button-item.class.mjs +1 -1
- package/esm2022/button/src/button-item.component.mjs +70 -69
- package/esm2022/button/src/button.component.mjs +79 -78
- package/esm2022/button/src/button.module.mjs +33 -32
- package/esm2022/calendar/acorex-components-calendar.mjs +4 -4
- package/esm2022/calendar/public-api.mjs +4 -4
- package/esm2022/calendar/src/calendar-range.component.mjs +175 -174
- package/esm2022/calendar/src/calendar.class.mjs +282 -280
- package/esm2022/calendar/src/calendar.component.mjs +373 -372
- package/esm2022/calendar/src/calendar.module.mjs +24 -23
- package/esm2022/card/acorex-components-card.mjs +4 -4
- package/esm2022/card/public-api.mjs +2 -2
- package/esm2022/card/src/card.component.mjs +19 -18
- package/esm2022/card/src/card.module.mjs +20 -19
- package/esm2022/checkbox/acorex-components-checkbox.mjs +4 -4
- package/esm2022/checkbox/public-api.mjs +2 -2
- package/esm2022/checkbox/src/checkbox.component.mjs +43 -42
- package/esm2022/checkbox/src/checkbox.module.mjs +22 -21
- package/esm2022/chips/acorex-components-chips.mjs +4 -4
- package/esm2022/chips/public-api.mjs +2 -2
- package/esm2022/chips/src/chips.component.mjs +34 -33
- package/esm2022/chips/src/chips.module.mjs +20 -19
- package/esm2022/collapse/acorex-components-collapse.mjs +4 -4
- package/esm2022/collapse/public-api.mjs +3 -3
- package/esm2022/collapse/src/collapse-group.component.mjs +53 -52
- package/esm2022/collapse/src/collapse.component.mjs +48 -47
- package/esm2022/collapse/src/collapse.module.mjs +21 -20
- package/esm2022/color-palette/acorex-components-color-palette.mjs +4 -4
- package/esm2022/color-palette/public-api.mjs +7 -7
- package/esm2022/color-palette/src/color-palette-input.component.mjs +131 -130
- package/esm2022/color-palette/src/color-palette-picker.component.mjs +160 -159
- package/esm2022/color-palette/src/color-palette-preview.component.mjs +57 -56
- package/esm2022/color-palette/src/color-palette-swatches.component.mjs +295 -294
- package/esm2022/color-palette/src/color-palette.class.mjs +19 -17
- package/esm2022/color-palette/src/color-palette.component.mjs +76 -75
- package/esm2022/color-palette/src/color-palette.module.mjs +61 -60
- package/esm2022/color-picker/acorex-components-color-picker.mjs +4 -4
- package/esm2022/color-picker/public-api.mjs +2 -2
- package/esm2022/color-picker/src/color-picker.component.mjs +120 -119
- package/esm2022/color-picker/src/color-picker.module.mjs +62 -61
- package/esm2022/common/acorex-components-common.mjs +4 -4
- package/esm2022/common/public-api.mjs +16 -16
- package/esm2022/common/src/classes/components.class.mjs +78 -72
- package/esm2022/common/src/classes/data.class.mjs +1 -1
- package/esm2022/common/src/classes/drawing.class.mjs +1 -1
- package/esm2022/common/src/classes/events.class.mjs +95 -95
- package/esm2022/common/src/classes/styles.class.mjs +12 -12
- package/esm2022/common/src/common.module.mjs +43 -42
- package/esm2022/common/src/components/base-component.class.mjs +56 -56
- package/esm2022/common/src/components/button-base-component.class.mjs +68 -68
- package/esm2022/common/src/components/color-component.class.mjs +26 -26
- package/esm2022/common/src/components/colorlook-component.class.mjs +10 -10
- package/esm2022/common/src/components/index.mjs +7 -7
- package/esm2022/common/src/components/interactive-component.class.mjs +62 -62
- package/esm2022/common/src/components/look-component.class.mjs +26 -26
- package/esm2022/common/src/components/value-component.class.mjs +207 -206
- package/esm2022/common/src/constant/positions.mjs +74 -74
- package/esm2022/common/src/directives/auto-focus.directive.mjs +58 -57
- package/esm2022/common/src/directives/debounce-time.directive.mjs +50 -49
- package/esm2022/common/src/directives/hotkey.directive.mjs +83 -82
- package/esm2022/common/src/directives/infinite-scroll.directive.mjs +70 -69
- package/esm2022/common/src/directives/responsive.directive.mjs +36 -35
- package/esm2022/common/src/services/custom-cdk-overlay.service.mjs +52 -50
- package/esm2022/common/src/services/hotkey.service.mjs +41 -40
- package/esm2022/common/src/services/overlay.service.mjs +116 -115
- package/esm2022/context-menu/acorex-components-context-menu.mjs +4 -4
- package/esm2022/context-menu/public-api.mjs +2 -2
- package/esm2022/context-menu/src/context-menu.component.mjs +271 -270
- package/esm2022/context-menu/src/context-menu.module.mjs +37 -36
- package/esm2022/data-pager/acorex-components-data-pager.mjs +4 -4
- package/esm2022/data-pager/public-api.mjs +9 -9
- package/esm2022/data-pager/src/data-pager-base.component.mjs +37 -35
- package/esm2022/data-pager/src/data-pager-info.component.mjs +62 -61
- package/esm2022/data-pager/src/data-pager-input-selector.component.mjs +46 -45
- package/esm2022/data-pager/src/data-pager-next-buttons.components.mjs +51 -50
- package/esm2022/data-pager/src/data-pager-numeric-selector.component.mjs +75 -74
- package/esm2022/data-pager/src/data-pager-pagesize-dropdown.component.mjs +67 -66
- package/esm2022/data-pager/src/data-pager-prev-buttons.component.mjs +48 -47
- package/esm2022/data-pager/src/data-pager.component.mjs +147 -146
- package/esm2022/data-pager/src/data-pager.module.mjs +52 -51
- package/esm2022/data-table/acorex-components-data-table.mjs +4 -4
- package/esm2022/data-table/public-api.mjs +4 -4
- package/esm2022/data-table/src/data-column-cell-template.directive.mjs +19 -18
- package/esm2022/data-table/src/data-column.directive.mjs +51 -50
- package/esm2022/data-table/src/data-table.component.mjs +140 -139
- package/esm2022/data-table/src/data-table.module.mjs +28 -27
- package/esm2022/date-picker/acorex-components-date-picker.mjs +4 -4
- package/esm2022/date-picker/public-api.mjs +2 -2
- package/esm2022/date-picker/src/datepicker.component.mjs +241 -240
- package/esm2022/date-picker/src/datepicker.module.mjs +45 -44
- package/esm2022/decorators/acorex-components-decorators.mjs +4 -4
- package/esm2022/decorators/public-api.mjs +14 -14
- package/esm2022/decorators/src/close-button.component.mjs +44 -43
- package/esm2022/decorators/src/content.component.mjs +22 -21
- package/esm2022/decorators/src/decorators.module.mjs +72 -71
- package/esm2022/decorators/src/footer.component.mjs +22 -21
- package/esm2022/decorators/src/form-hint.component.mjs +21 -20
- package/esm2022/decorators/src/header.component.mjs +22 -21
- package/esm2022/decorators/src/icon.component.mjs +31 -30
- package/esm2022/decorators/src/overlay.component.mjs +21 -20
- package/esm2022/decorators/src/placeholder.component.mjs +15 -14
- package/esm2022/decorators/src/prefix.component.mjs +22 -21
- package/esm2022/decorators/src/sub-title.component.mjs +26 -25
- package/esm2022/decorators/src/suffix.component.mjs +22 -21
- package/esm2022/decorators/src/text.component.mjs +23 -22
- package/esm2022/decorators/src/title.component.mjs +21 -20
- package/esm2022/dialog/acorex-components-dialog.mjs +4 -4
- package/esm2022/dialog/public-api.mjs +4 -4
- package/esm2022/dialog/src/dialog.class.mjs +1 -1
- package/esm2022/dialog/src/dialog.component.mjs +56 -55
- package/esm2022/dialog/src/dialog.module.mjs +28 -27
- package/esm2022/dialog/src/dialog.service.mjs +155 -154
- package/esm2022/drawer/acorex-components-drawer.mjs +4 -4
- package/esm2022/drawer/public-api.mjs +3 -3
- package/esm2022/drawer/src/drawer-container.component.mjs +31 -30
- package/esm2022/drawer/src/drawer.component.mjs +139 -138
- package/esm2022/drawer/src/drawer.module.mjs +23 -22
- package/esm2022/dropdown/acorex-components-dropdown.mjs +4 -4
- package/esm2022/dropdown/public-api.mjs +2 -2
- package/esm2022/dropdown/src/dropdown-panel.component.mjs +106 -105
- package/esm2022/dropdown/src/dropdown.module.mjs +26 -25
- package/esm2022/form/acorex-components-form.mjs +4 -4
- package/esm2022/form/public-api.mjs +6 -6
- package/esm2022/form/src/form-field.component.mjs +16 -15
- package/esm2022/form/src/form.component.mjs +164 -163
- package/esm2022/form/src/form.module.mjs +64 -63
- package/esm2022/form/src/validation-rule.widget.mjs +114 -113
- package/esm2022/form/src/validation-summary.component.mjs +82 -81
- package/esm2022/form/src/validation.class.mjs +1 -1
- package/esm2022/image/acorex-components-image.mjs +4 -4
- package/esm2022/image/public-api.mjs +2 -2
- package/esm2022/image/src/image.component.mjs +80 -79
- package/esm2022/image/src/image.module.mjs +20 -19
- package/esm2022/label/acorex-components-label.mjs +4 -4
- package/esm2022/label/public-api.mjs +2 -2
- package/esm2022/label/src/label.component.mjs +49 -48
- package/esm2022/label/src/label.module.mjs +22 -21
- package/esm2022/loading/acorex-components-loading.mjs +4 -4
- package/esm2022/loading/public-api.mjs +5 -5
- package/esm2022/loading/src/loading-spinner.component.mjs +18 -17
- package/esm2022/loading/src/loading.component.mjs +58 -57
- package/esm2022/loading/src/loading.directive.mjs +77 -76
- package/esm2022/loading/src/loading.module.mjs +36 -35
- package/esm2022/loading/src/loading.service.mjs +159 -158
- package/esm2022/menu/acorex-components-menu.mjs +4 -4
- package/esm2022/menu/public-api.mjs +2 -2
- package/esm2022/menu/src/menu.component.mjs +347 -346
- package/esm2022/menu/src/menu.module.mjs +34 -33
- package/esm2022/mixin/acorex-components-mixin.mjs +4 -4
- package/esm2022/mixin/public-api.mjs +17 -17
- package/esm2022/mixin/src/base-components.class.mjs +111 -110
- package/esm2022/mixin/src/base-menu-mixin.class.mjs +133 -133
- package/esm2022/mixin/src/button-mixin.class.mjs +70 -70
- package/esm2022/mixin/src/clickable-mixin.class.mjs +23 -23
- package/esm2022/mixin/src/color-look-mixing.class.mjs +47 -47
- package/esm2022/mixin/src/constratctor.mjs +1 -1
- package/esm2022/mixin/src/datalist-component.class.mjs +150 -150
- package/esm2022/mixin/src/datalist.class.mjs +2 -2
- package/esm2022/mixin/src/dropdown-mixin.class.mjs +98 -98
- package/esm2022/mixin/src/interactive-mixin.class.mjs +80 -80
- package/esm2022/mixin/src/loading-mixin.class.mjs +25 -25
- package/esm2022/mixin/src/mixin.class.mjs +25 -25
- package/esm2022/mixin/src/page-component.class.mjs +10 -10
- package/esm2022/mixin/src/selection-component.class.mjs +182 -182
- package/esm2022/mixin/src/sizable-mixin.class.mjs +21 -21
- package/esm2022/mixin/src/textbox-mixin.class.mjs +65 -65
- package/esm2022/mixin/src/value-mixin.class.mjs +219 -219
- package/esm2022/notification/acorex-components-notification.mjs +4 -4
- package/esm2022/notification/public-api.mjs +4 -4
- package/esm2022/notification/src/notification.class.mjs +1 -1
- package/esm2022/notification/src/notification.component.mjs +93 -92
- package/esm2022/notification/src/notification.module.mjs +24 -23
- package/esm2022/notification/src/notification.service.mjs +110 -109
- package/esm2022/number-box/acorex-components-number-box.mjs +4 -4
- package/esm2022/number-box/public-api.mjs +2 -2
- package/esm2022/number-box/src/number-box.component.mjs +269 -268
- package/esm2022/number-box/src/number-box.module.mjs +36 -35
- package/esm2022/page/acorex-components-page.mjs +4 -4
- package/esm2022/page/public-api.mjs +3 -3
- package/esm2022/page/src/base-page.class.mjs +64 -63
- package/esm2022/page/src/page.component.mjs +47 -46
- package/esm2022/page/src/page.module.mjs +19 -18
- package/esm2022/password-box/acorex-components-password-box.mjs +4 -4
- package/esm2022/password-box/public-api.mjs +2 -2
- package/esm2022/password-box/src/password-box.component.mjs +64 -63
- package/esm2022/password-box/src/password-box.module.mjs +33 -32
- package/esm2022/picker/acorex-components-picker.mjs +4 -4
- package/esm2022/picker/public-api.mjs +3 -3
- package/esm2022/picker/src/picker-column.component.mjs +21 -20
- package/esm2022/picker/src/picker.component.mjs +17 -16
- package/esm2022/picker/src/picker.module.mjs +38 -37
- package/esm2022/popover/acorex-components-popover.mjs +4 -4
- package/esm2022/popover/public-api.mjs +2 -2
- package/esm2022/popover/src/popover.component.mjs +263 -262
- package/esm2022/popover/src/popover.module.mjs +20 -19
- package/esm2022/popup/acorex-components-popup.mjs +4 -4
- package/esm2022/popup/public-api.mjs +3 -3
- package/esm2022/popup/src/popup.component.mjs +146 -145
- package/esm2022/popup/src/popup.module.mjs +28 -27
- package/esm2022/popup/src/popup.service.mjs +117 -116
- package/esm2022/progress-bar/acorex-components-progress-bar.mjs +4 -4
- package/esm2022/progress-bar/public-api.mjs +2 -2
- package/esm2022/progress-bar/src/progress-bar.component.mjs +34 -33
- package/esm2022/progress-bar/src/progress-bar.module.mjs +20 -19
- package/esm2022/public-api.mjs +4 -4
- package/esm2022/radio/acorex-components-radio.mjs +4 -4
- package/esm2022/radio/public-api.mjs +2 -2
- package/esm2022/radio/src/radio.component.mjs +40 -39
- package/esm2022/radio/src/radio.module.mjs +23 -22
- package/esm2022/range-slider/acorex-components-range-slider.mjs +4 -4
- package/esm2022/range-slider/public-api.mjs +2 -2
- package/esm2022/range-slider/src/range-slider.component.mjs +118 -117
- package/esm2022/range-slider/src/range-slider.module.mjs +23 -22
- package/esm2022/rating/acorex-components-rating.mjs +4 -4
- package/esm2022/rating/public-api.mjs +2 -2
- package/esm2022/rating/src/rating.component.mjs +42 -41
- package/esm2022/rating/src/rating.component.module.mjs +20 -19
- package/esm2022/result/acorex-components-result.mjs +4 -4
- package/esm2022/result/public-api.mjs +2 -2
- package/esm2022/result/src/result.component.mjs +27 -26
- package/esm2022/result/src/result.module.mjs +20 -19
- package/esm2022/search-box/acorex-components-search-box.mjs +4 -4
- package/esm2022/search-box/public-api.mjs +2 -2
- package/esm2022/search-box/src/search-box.component.mjs +55 -54
- package/esm2022/search-box/src/search-box.module.mjs +26 -25
- package/esm2022/select-box/acorex-components-select-box.mjs +4 -4
- package/esm2022/select-box/public-api.mjs +2 -2
- package/esm2022/select-box/src/selectbox.component.mjs +392 -391
- package/esm2022/select-box/src/selectbox.module.mjs +65 -64
- package/esm2022/selection-list/acorex-components-selection-list.mjs +4 -4
- package/esm2022/selection-list/public-api.mjs +2 -2
- package/esm2022/selection-list/src/selection-list.component.mjs +60 -60
- package/esm2022/selection-list/src/selection-list.module.mjs +25 -24
- package/esm2022/switch/acorex-components-switch.mjs +4 -4
- package/esm2022/switch/public-api.mjs +3 -3
- package/esm2022/switch/src/switch-content.component.mjs +17 -16
- package/esm2022/switch/src/switch.component.mjs +55 -54
- package/esm2022/switch/src/switch.module.mjs +23 -22
- package/esm2022/tabs/acorex-components-tabs.mjs +4 -4
- package/esm2022/tabs/public-api.mjs +5 -5
- package/esm2022/tabs/src/tab-content.directive.mjs +32 -31
- package/esm2022/tabs/src/tab-item.component.mjs +91 -90
- package/esm2022/tabs/src/tabs.class.mjs +5 -5
- package/esm2022/tabs/src/tabs.component.mjs +103 -102
- package/esm2022/tabs/src/tabs.module.mjs +26 -25
- package/esm2022/tag/acorex-components-tag.mjs +4 -4
- package/esm2022/tag/public-api.mjs +2 -2
- package/esm2022/tag/src/tag.component.mjs +30 -29
- package/esm2022/tag/src/tag.module.mjs +20 -19
- package/esm2022/textarea/acorex-components-textarea.mjs +4 -4
- package/esm2022/textarea/public-api.mjs +2 -2
- package/esm2022/textarea/src/textarea.component.mjs +30 -29
- package/esm2022/textarea/src/textarea.module.mjs +20 -19
- package/esm2022/textbox/acorex-components-textbox.mjs +4 -4
- package/esm2022/textbox/public-api.mjs +3 -3
- package/esm2022/textbox/src/mask-options.directive.mjs +20 -19
- package/esm2022/textbox/src/textbox.component.mjs +96 -95
- package/esm2022/textbox/src/textbox.module.mjs +39 -38
- package/esm2022/time-box/acorex-components-time-box.mjs +4 -4
- package/esm2022/time-box/public-api.mjs +2 -2
- package/esm2022/time-box/src/time-box.component.mjs +306 -305
- package/esm2022/time-box/src/time-box.module.mjs +33 -32
- package/esm2022/toast/acorex-components-toast.mjs +4 -4
- package/esm2022/toast/public-api.mjs +4 -4
- package/esm2022/toast/src/toast.class.mjs +1 -1
- package/esm2022/toast/src/toast.component.mjs +68 -67
- package/esm2022/toast/src/toast.module.mjs +23 -22
- package/esm2022/toast/src/toast.service.mjs +137 -136
- package/esm2022/tooltip/acorex-components-tooltip.mjs +4 -4
- package/esm2022/tooltip/public-api.mjs +3 -3
- package/esm2022/tooltip/src/tooltip.component.mjs +22 -21
- package/esm2022/tooltip/src/tooltip.directive.mjs +164 -163
- package/esm2022/tooltip/src/tooltip.module.mjs +23 -22
- package/esm2022/tree-view/acorex-components-tree-view.mjs +4 -4
- package/esm2022/tree-view/public-api.mjs +2 -2
- package/esm2022/tree-view/src/tree-view.component.mjs +108 -107
- package/esm2022/tree-view/src/tree-view.module.mjs +21 -20
- package/esm2022/uploader/acorex-components-uploader.mjs +4 -4
- package/esm2022/uploader/public-api.mjs +2 -2
- package/esm2022/uploader/src/uploader.component.mjs +102 -101
- package/esm2022/uploader/src/uploader.module.mjs +21 -20
- package/fesm2022/acorex-components-action-sheet.mjs +170 -170
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +196 -196
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +66 -66
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +39 -39
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +78 -78
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +245 -245
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +815 -815
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-card.mjs +28 -28
- package/fesm2022/acorex-components-card.mjs.map +1 -1
- package/fesm2022/acorex-components-checkbox.mjs +51 -51
- package/fesm2022/acorex-components-checkbox.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +42 -42
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +102 -102
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +717 -717
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-color-picker.mjs +153 -153
- package/fesm2022/acorex-components-color-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +1150 -1150
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-context-menu.mjs +287 -287
- package/fesm2022/acorex-components-context-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +487 -487
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +205 -205
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-date-picker.mjs +256 -256
- package/fesm2022/acorex-components-date-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +287 -287
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +207 -207
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +174 -174
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +111 -111
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +392 -392
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +88 -88
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +59 -59
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +308 -308
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +359 -359
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-mixin.mjs +1214 -1214
- package/fesm2022/acorex-components-mixin.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +200 -200
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +284 -284
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-page.mjs +112 -112
- package/fesm2022/acorex-components-page.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +81 -81
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +54 -54
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +266 -266
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +258 -258
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +43 -43
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +50 -50
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +127 -127
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-rating.mjs +51 -51
- package/fesm2022/acorex-components-rating.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +35 -35
- package/fesm2022/acorex-components-result.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +59 -59
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +422 -422
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +68 -69
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +74 -74
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +227 -227
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +38 -38
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-textarea.mjs +37 -37
- package/fesm2022/acorex-components-textarea.mjs.map +1 -1
- package/fesm2022/acorex-components-textbox.mjs +130 -130
- package/fesm2022/acorex-components-textbox.mjs.map +1 -1
- package/fesm2022/acorex-components-time-box.mjs +319 -319
- package/fesm2022/acorex-components-time-box.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +204 -204
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +187 -187
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +116 -116
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +109 -109
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components.mjs +5 -5
- package/form/index.d.ts +5 -5
- package/form/public-api.d.ts +6 -6
- package/form/src/form-field.component.d.ts +8 -8
- package/form/src/form.component.d.ts +51 -51
- package/form/src/form.module.d.ts +15 -15
- package/form/src/validation-rule.widget.d.ts +18 -18
- package/form/src/validation-summary.component.d.ts +23 -23
- package/form/src/validation.class.d.ts +18 -18
- package/image/index.d.ts +5 -5
- package/image/public-api.d.ts +2 -2
- package/image/src/image.component.d.ts +27 -27
- package/image/src/image.module.d.ts +8 -8
- package/index.d.ts +5 -5
- package/label/index.d.ts +5 -5
- package/label/public-api.d.ts +2 -2
- package/label/src/label.component.d.ts +17 -17
- package/label/src/label.module.d.ts +8 -8
- package/loading/index.d.ts +5 -5
- package/loading/public-api.d.ts +5 -5
- package/loading/src/loading-spinner.component.d.ts +6 -6
- package/loading/src/loading.component.d.ts +21 -21
- package/loading/src/loading.directive.d.ts +22 -22
- package/loading/src/loading.module.d.ts +13 -13
- package/loading/src/loading.service.d.ts +48 -48
- package/menu/index.d.ts +5 -5
- package/menu/public-api.d.ts +2 -2
- package/menu/src/menu.component.d.ts +39 -39
- package/menu/src/menu.module.d.ts +12 -12
- package/mixin/index.d.ts +5 -5
- package/mixin/public-api.d.ts +17 -17
- package/mixin/src/base-components.class.d.ts +84 -84
- package/mixin/src/base-menu-mixin.class.d.ts +53 -53
- package/mixin/src/button-mixin.class.d.ts +53 -53
- package/mixin/src/clickable-mixin.class.d.ts +36 -36
- package/mixin/src/color-look-mixing.class.d.ts +44 -44
- package/mixin/src/constratctor.d.ts +4 -4
- package/mixin/src/datalist-component.class.d.ts +59 -59
- package/mixin/src/datalist.class.d.ts +11 -11
- package/mixin/src/dropdown-mixin.class.d.ts +47 -47
- package/mixin/src/interactive-mixin.class.d.ts +63 -63
- package/mixin/src/loading-mixin.class.d.ts +40 -40
- package/mixin/src/mixin.class.d.ts +679 -679
- package/mixin/src/page-component.class.d.ts +28 -28
- package/mixin/src/selection-component.class.d.ts +61 -61
- package/mixin/src/sizable-mixin.class.d.ts +34 -34
- package/mixin/src/textbox-mixin.class.d.ts +72 -72
- package/mixin/src/value-mixin.class.d.ts +63 -63
- package/notification/index.d.ts +5 -5
- package/notification/public-api.d.ts +4 -4
- package/notification/src/notification.class.d.ts +18 -18
- package/notification/src/notification.component.d.ts +30 -30
- package/notification/src/notification.module.d.ts +10 -10
- package/notification/src/notification.service.d.ts +16 -16
- package/number-box/index.d.ts +5 -5
- package/number-box/public-api.d.ts +2 -2
- package/number-box/src/number-box.component.d.ts +77 -77
- package/number-box/src/number-box.module.d.ts +12 -12
- package/package.json +8 -8
- package/page/index.d.ts +5 -5
- package/page/public-api.d.ts +3 -3
- package/page/src/base-page.class.d.ts +25 -25
- package/page/src/page.component.d.ts +14 -14
- package/page/src/page.module.d.ts +6 -6
- package/password-box/index.d.ts +5 -5
- package/password-box/public-api.d.ts +2 -2
- package/password-box/src/password-box.component.d.ts +25 -25
- package/password-box/src/password-box.module.d.ts +11 -11
- package/picker/index.d.ts +5 -5
- package/picker/public-api.d.ts +3 -3
- package/picker/src/picker-column.component.d.ts +11 -11
- package/picker/src/picker.component.d.ts +10 -10
- package/picker/src/picker.module.d.ts +14 -14
- package/popover/index.d.ts +5 -5
- package/popover/public-api.d.ts +2 -2
- package/popover/src/popover.component.d.ts +51 -51
- package/popover/src/popover.module.d.ts +8 -8
- package/popup/index.d.ts +5 -5
- package/popup/public-api.d.ts +3 -3
- package/popup/src/popup.component.d.ts +45 -45
- package/popup/src/popup.module.d.ts +14 -14
- package/popup/src/popup.service.d.ts +42 -42
- package/progress-bar/index.d.ts +5 -5
- package/progress-bar/public-api.d.ts +2 -2
- package/progress-bar/src/progress-bar.component.d.ts +18 -18
- package/progress-bar/src/progress-bar.module.d.ts +8 -8
- package/public-api.d.ts +1 -1
- package/radio/index.d.ts +5 -5
- package/radio/public-api.d.ts +2 -2
- package/radio/src/radio.component.d.ts +18 -18
- package/radio/src/radio.module.d.ts +9 -9
- package/range-slider/index.d.ts +5 -5
- package/range-slider/public-api.d.ts +2 -2
- package/range-slider/src/range-slider.component.d.ts +41 -41
- package/range-slider/src/range-slider.module.d.ts +9 -9
- package/rating/index.d.ts +5 -5
- package/rating/public-api.d.ts +2 -2
- package/rating/src/rating.component.d.ts +21 -21
- package/rating/src/rating.component.module.d.ts +8 -8
- package/result/index.d.ts +5 -5
- package/result/public-api.d.ts +2 -2
- package/result/src/result.component.d.ts +12 -12
- package/result/src/result.module.d.ts +8 -8
- package/search-box/index.d.ts +5 -5
- package/search-box/public-api.d.ts +2 -2
- package/search-box/src/search-box.component.d.ts +18 -18
- package/search-box/src/search-box.module.d.ts +12 -12
- package/select-box/index.d.ts +5 -5
- package/select-box/public-api.d.ts +2 -2
- package/select-box/src/selectbox.component.d.ts +66 -66
- package/select-box/src/selectbox.module.d.ts +19 -19
- package/selection-list/index.d.ts +5 -5
- package/selection-list/public-api.d.ts +2 -2
- package/selection-list/src/selection-list.component.d.ts +23 -23
- package/selection-list/src/selection-list.module.d.ts +13 -13
- package/switch/index.d.ts +5 -5
- package/switch/public-api.d.ts +3 -3
- package/switch/src/switch-content.component.d.ts +8 -8
- package/switch/src/switch.component.d.ts +13 -13
- package/switch/src/switch.module.d.ts +11 -11
- package/tabs/index.d.ts +5 -5
- package/tabs/public-api.d.ts +5 -5
- package/tabs/src/tab-content.directive.d.ts +11 -11
- package/tabs/src/tab-item.component.d.ts +48 -48
- package/tabs/src/tabs.class.d.ts +7 -7
- package/tabs/src/tabs.component.d.ts +29 -29
- package/tabs/src/tabs.module.d.ts +12 -12
- package/tag/index.d.ts +5 -5
- package/tag/public-api.d.ts +2 -2
- package/tag/src/tag.component.d.ts +11 -11
- package/tag/src/tag.module.d.ts +8 -8
- package/textarea/index.d.ts +5 -5
- package/textarea/public-api.d.ts +2 -2
- package/textarea/src/textarea.component.d.ts +14 -14
- package/textarea/src/textarea.module.d.ts +9 -9
- package/textbox/index.d.ts +5 -5
- package/textbox/public-api.d.ts +3 -3
- package/textbox/src/mask-options.directive.d.ts +13 -13
- package/textbox/src/textbox.component.d.ts +27 -27
- package/textbox/src/textbox.module.d.ts +13 -13
- package/time-box/index.d.ts +5 -5
- package/time-box/public-api.d.ts +2 -2
- package/time-box/src/time-box.component.d.ts +50 -50
- package/time-box/src/time-box.module.d.ts +11 -11
- package/toast/index.d.ts +5 -5
- package/toast/public-api.d.ts +4 -4
- package/toast/src/toast.class.d.ts +15 -15
- package/toast/src/toast.component.d.ts +25 -25
- package/toast/src/toast.module.d.ts +9 -9
- package/toast/src/toast.service.d.ts +21 -21
- package/tooltip/index.d.ts +5 -5
- package/tooltip/public-api.d.ts +3 -3
- package/tooltip/src/tooltip.component.d.ts +11 -11
- package/tooltip/src/tooltip.directive.d.ts +22 -22
- package/tooltip/src/tooltip.module.d.ts +10 -10
- package/tree-view/index.d.ts +5 -5
- package/tree-view/public-api.d.ts +2 -2
- package/tree-view/src/tree-view.component.d.ts +33 -33
- package/tree-view/src/tree-view.module.d.ts +9 -9
- package/uploader/index.d.ts +5 -5
- package/uploader/public-api.d.ts +2 -2
- package/uploader/src/uploader.component.d.ts +28 -28
- package/uploader/src/uploader.module.d.ts +9 -9
@@ -1,151 +1,151 @@
|
|
1
|
-
import { unionBy, flatMapDeep } from 'lodash-es';
|
2
|
-
export function _DatalistComponenetMixin(Base) {
|
3
|
-
return class extends Base {
|
4
|
-
valueField = 'id';
|
5
|
-
textField = 'text';
|
6
|
-
childrenField;
|
7
|
-
pageSize = 10;
|
8
|
-
#currentPage = 0;
|
9
|
-
#isLoading = false;
|
10
|
-
#loadedItems = [];
|
11
|
-
#flatItems = [];
|
12
|
-
#totalItems = 0;
|
13
|
-
#isLazy = false;
|
14
|
-
get totalCount() {
|
15
|
-
return this.#totalItems;
|
16
|
-
}
|
17
|
-
get isLazy() {
|
18
|
-
return this.#isLazy;
|
19
|
-
}
|
20
|
-
get loadedCount() {
|
21
|
-
return this.#loadedItems?.length || 0;
|
22
|
-
}
|
23
|
-
constructor(...args) {
|
24
|
-
super(...args);
|
25
|
-
}
|
26
|
-
#items = [];
|
27
|
-
get items() {
|
28
|
-
return this.#items;
|
29
|
-
}
|
30
|
-
set items(v) {
|
31
|
-
if (Array.isArray(v)) {
|
32
|
-
this.#items = this._formatData(v);
|
33
|
-
this._onDataLoaded();
|
34
|
-
this.#generateFlatItems();
|
35
|
-
}
|
36
|
-
else if (typeof v === 'function') {
|
37
|
-
this.#isLazy = true;
|
38
|
-
this.#items = v;
|
39
|
-
}
|
40
|
-
else {
|
41
|
-
this.#items = [];
|
42
|
-
this._onDataLoaded();
|
43
|
-
this.#generateFlatItems();
|
44
|
-
}
|
45
|
-
}
|
46
|
-
get displayItems() {
|
47
|
-
if (Array.isArray(this.items)) {
|
48
|
-
return (this.#items || []);
|
49
|
-
}
|
50
|
-
else if (typeof this.#items == 'function') {
|
51
|
-
return this.#loadedItems || [];
|
52
|
-
}
|
53
|
-
return [];
|
54
|
-
}
|
55
|
-
get flatItems() {
|
56
|
-
return this.#flatItems || [];
|
57
|
-
}
|
58
|
-
get isLoading() {
|
59
|
-
return this.#isLoading;
|
60
|
-
}
|
61
|
-
_formatData(v) {
|
62
|
-
return unionBy(v.map((o, i) => {
|
63
|
-
if (typeof o == 'object')
|
64
|
-
return o;
|
65
|
-
else {
|
66
|
-
const no = {};
|
67
|
-
no[this.valueField] = o;
|
68
|
-
no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
69
|
-
return no;
|
70
|
-
}
|
71
|
-
}), this.valueField);
|
72
|
-
// return v.map((o, i) => {
|
73
|
-
// if (typeof o == 'object')
|
74
|
-
// return o
|
75
|
-
// else {
|
76
|
-
// const no: any = {};
|
77
|
-
// no[this.valueField] = o;
|
78
|
-
// no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
79
|
-
// return no;
|
80
|
-
// }
|
81
|
-
// });
|
82
|
-
}
|
83
|
-
_fetchData(opts) {
|
84
|
-
const skip = this.#currentPage * this.pageSize, take = this.pageSize;
|
85
|
-
if ((this.loadedCount >= this.totalCount && this.totalCount != 0) ||
|
86
|
-
this.#isLoading ||
|
87
|
-
!this.#isLazy ||
|
88
|
-
skip > this.totalCount) {
|
89
|
-
return;
|
90
|
-
}
|
91
|
-
if (this.#items) {
|
92
|
-
this.#isLoading = true;
|
93
|
-
const fetchFn = this.#items;
|
94
|
-
fetchFn({ skip, take, searchQuery: opts?.searchQuery })
|
95
|
-
.then((c) => {
|
96
|
-
if (Array.isArray(c)) {
|
97
|
-
this.#loadedItems = this._formatData(c);
|
98
|
-
this.#totalItems = c.length;
|
99
|
-
}
|
100
|
-
else {
|
101
|
-
this.#totalItems = c.total || c.items?.length || 0;
|
102
|
-
this.#loadedItems = [
|
103
|
-
...new Set(this.#loadedItems.concat(this._formatData(c.items))),
|
104
|
-
];
|
105
|
-
this.#currentPage++;
|
106
|
-
}
|
107
|
-
this._cdr.markForCheck();
|
108
|
-
})
|
109
|
-
.finally(() => {
|
110
|
-
this.#isLoading = false;
|
111
|
-
this._onDataLoaded();
|
112
|
-
this.#generateFlatItems();
|
113
|
-
});
|
114
|
-
}
|
115
|
-
}
|
116
|
-
_onDataLoaded() { }
|
117
|
-
#generateFlatItems() {
|
118
|
-
const flattenFn = (item) => {
|
119
|
-
return [item, flatMapDeep(item.children, flattenFn)];
|
120
|
-
};
|
121
|
-
this.#flatItems = flatMapDeep(this.displayItems, flattenFn);
|
122
|
-
}
|
123
|
-
_getItemDisplayTextTemplte(item) {
|
124
|
-
if (item)
|
125
|
-
return Array.isArray(this.textField)
|
126
|
-
? this.textField.map((c) => item[c]).join(',')
|
127
|
-
: item[this.textField];
|
128
|
-
else
|
129
|
-
return 'Loading...';
|
130
|
-
}
|
131
|
-
_trackByFunction(item) {
|
132
|
-
if (!item)
|
133
|
-
return null;
|
134
|
-
return item[this.valueField];
|
135
|
-
}
|
136
|
-
refresh() {
|
137
|
-
this.empty();
|
138
|
-
this._fetchData();
|
139
|
-
}
|
140
|
-
empty() {
|
141
|
-
this.#isLoading = false;
|
142
|
-
this.#currentPage = 0;
|
143
|
-
if (this.#loadedItems) {
|
144
|
-
this.#loadedItems.length = 0;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
};
|
148
|
-
}
|
149
|
-
export const DATALIST_INPUTS = ['pageSize', 'valueField', 'textField', 'items'];
|
150
|
-
export const DATALIST_OUTPUT = [];
|
1
|
+
import { unionBy, flatMapDeep } from 'lodash-es';
|
2
|
+
export function _DatalistComponenetMixin(Base) {
|
3
|
+
return class extends Base {
|
4
|
+
valueField = 'id';
|
5
|
+
textField = 'text';
|
6
|
+
childrenField;
|
7
|
+
pageSize = 10;
|
8
|
+
#currentPage = 0;
|
9
|
+
#isLoading = false;
|
10
|
+
#loadedItems = [];
|
11
|
+
#flatItems = [];
|
12
|
+
#totalItems = 0;
|
13
|
+
#isLazy = false;
|
14
|
+
get totalCount() {
|
15
|
+
return this.#totalItems;
|
16
|
+
}
|
17
|
+
get isLazy() {
|
18
|
+
return this.#isLazy;
|
19
|
+
}
|
20
|
+
get loadedCount() {
|
21
|
+
return this.#loadedItems?.length || 0;
|
22
|
+
}
|
23
|
+
constructor(...args) {
|
24
|
+
super(...args);
|
25
|
+
}
|
26
|
+
#items = [];
|
27
|
+
get items() {
|
28
|
+
return this.#items;
|
29
|
+
}
|
30
|
+
set items(v) {
|
31
|
+
if (Array.isArray(v)) {
|
32
|
+
this.#items = this._formatData(v);
|
33
|
+
this._onDataLoaded();
|
34
|
+
this.#generateFlatItems();
|
35
|
+
}
|
36
|
+
else if (typeof v === 'function') {
|
37
|
+
this.#isLazy = true;
|
38
|
+
this.#items = v;
|
39
|
+
}
|
40
|
+
else {
|
41
|
+
this.#items = [];
|
42
|
+
this._onDataLoaded();
|
43
|
+
this.#generateFlatItems();
|
44
|
+
}
|
45
|
+
}
|
46
|
+
get displayItems() {
|
47
|
+
if (Array.isArray(this.items)) {
|
48
|
+
return (this.#items || []);
|
49
|
+
}
|
50
|
+
else if (typeof this.#items == 'function') {
|
51
|
+
return this.#loadedItems || [];
|
52
|
+
}
|
53
|
+
return [];
|
54
|
+
}
|
55
|
+
get flatItems() {
|
56
|
+
return this.#flatItems || [];
|
57
|
+
}
|
58
|
+
get isLoading() {
|
59
|
+
return this.#isLoading;
|
60
|
+
}
|
61
|
+
_formatData(v) {
|
62
|
+
return unionBy(v.map((o, i) => {
|
63
|
+
if (typeof o == 'object')
|
64
|
+
return o;
|
65
|
+
else {
|
66
|
+
const no = {};
|
67
|
+
no[this.valueField] = o;
|
68
|
+
no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
69
|
+
return no;
|
70
|
+
}
|
71
|
+
}), this.valueField);
|
72
|
+
// return v.map((o, i) => {
|
73
|
+
// if (typeof o == 'object')
|
74
|
+
// return o
|
75
|
+
// else {
|
76
|
+
// const no: any = {};
|
77
|
+
// no[this.valueField] = o;
|
78
|
+
// no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
79
|
+
// return no;
|
80
|
+
// }
|
81
|
+
// });
|
82
|
+
}
|
83
|
+
_fetchData(opts) {
|
84
|
+
const skip = this.#currentPage * this.pageSize, take = this.pageSize;
|
85
|
+
if ((this.loadedCount >= this.totalCount && this.totalCount != 0) ||
|
86
|
+
this.#isLoading ||
|
87
|
+
!this.#isLazy ||
|
88
|
+
skip > this.totalCount) {
|
89
|
+
return;
|
90
|
+
}
|
91
|
+
if (this.#items) {
|
92
|
+
this.#isLoading = true;
|
93
|
+
const fetchFn = this.#items;
|
94
|
+
fetchFn({ skip, take, searchQuery: opts?.searchQuery })
|
95
|
+
.then((c) => {
|
96
|
+
if (Array.isArray(c)) {
|
97
|
+
this.#loadedItems = this._formatData(c);
|
98
|
+
this.#totalItems = c.length;
|
99
|
+
}
|
100
|
+
else {
|
101
|
+
this.#totalItems = c.total || c.items?.length || 0;
|
102
|
+
this.#loadedItems = [
|
103
|
+
...new Set(this.#loadedItems.concat(this._formatData(c.items))),
|
104
|
+
];
|
105
|
+
this.#currentPage++;
|
106
|
+
}
|
107
|
+
this._cdr.markForCheck();
|
108
|
+
})
|
109
|
+
.finally(() => {
|
110
|
+
this.#isLoading = false;
|
111
|
+
this._onDataLoaded();
|
112
|
+
this.#generateFlatItems();
|
113
|
+
});
|
114
|
+
}
|
115
|
+
}
|
116
|
+
_onDataLoaded() { }
|
117
|
+
#generateFlatItems() {
|
118
|
+
const flattenFn = (item) => {
|
119
|
+
return [item, flatMapDeep(item.children, flattenFn)];
|
120
|
+
};
|
121
|
+
this.#flatItems = flatMapDeep(this.displayItems, flattenFn);
|
122
|
+
}
|
123
|
+
_getItemDisplayTextTemplte(item) {
|
124
|
+
if (item)
|
125
|
+
return Array.isArray(this.textField)
|
126
|
+
? this.textField.map((c) => item[c]).join(',')
|
127
|
+
: item[this.textField];
|
128
|
+
else
|
129
|
+
return 'Loading...';
|
130
|
+
}
|
131
|
+
_trackByFunction(item) {
|
132
|
+
if (!item)
|
133
|
+
return null;
|
134
|
+
return item[this.valueField];
|
135
|
+
}
|
136
|
+
refresh() {
|
137
|
+
this.empty();
|
138
|
+
this._fetchData();
|
139
|
+
}
|
140
|
+
empty() {
|
141
|
+
this.#isLoading = false;
|
142
|
+
this.#currentPage = 0;
|
143
|
+
if (this.#loadedItems) {
|
144
|
+
this.#loadedItems.length = 0;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
};
|
148
|
+
}
|
149
|
+
export const DATALIST_INPUTS = ['pageSize', 'valueField', 'textField', 'items'];
|
150
|
+
export const DATALIST_OUTPUT = [];
|
151
151
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YWxpc3QtY29tcG9uZW50LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2NvbXBvbmVudHMvbWl4aW4vc3JjL2RhdGFsaXN0LWNvbXBvbmVudC5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUtqRCxNQUFNLFVBQVUsd0JBQXdCLENBRXRDLElBQVc7SUFDWCxPQUFPLEtBQU0sU0FBUSxJQUFJO1FBQ3ZCLFVBQVUsR0FBVyxJQUFJLENBQUM7UUFDMUIsU0FBUyxHQUFXLE1BQU0sQ0FBQztRQUMzQixhQUFhLENBQVM7UUFDdEIsUUFBUSxHQUFXLEVBQUUsQ0FBQztRQUV0QixZQUFZLEdBQVcsQ0FBQyxDQUFDO1FBQ3pCLFVBQVUsR0FBWSxLQUFLLENBQUM7UUFDNUIsWUFBWSxHQUFVLEVBQUUsQ0FBQztRQUN6QixVQUFVLEdBQVUsRUFBRSxDQUFDO1FBQ3ZCLFdBQVcsR0FBVyxDQUFDLENBQUM7UUFFeEIsT0FBTyxHQUFZLEtBQUssQ0FBQztRQUV6QixJQUFJLFVBQVU7WUFDWixPQUFPLElBQUksQ0FBQyxXQUFXLENBQUM7UUFDMUIsQ0FBQztRQUVELElBQUksTUFBTTtZQUNSLE9BQU8sSUFBSSxDQUFDLE9BQU8s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KG8sIGkpID0+IHtcclxuICAgICAgLy8gICAgIGlmICh0eXBlb2YgbyA9PSAnb2JqZWN0JylcclxuICAgICAgLy8gICAgICAgICByZXR1cm4gb1xyXG4gICAgICAvLyAgICAgZWxzZSB7XHJcbiAgICAgIC8vICAgICAgICAgY29uc3Qgbm86IGFueSA9IHt9O1xyXG4gICAgICAvLyAgICAgICAgIG5vW3RoaXMudmFsdWVGaWVsZF0gPSBvO1xyXG4gICAgICAvLyAgICAgICAgIG5vW0FycmF5LmlzQXJyYXkodGhpcy50ZXh0RmllbGQpID8gdGhpcy50ZXh0RmllbGRbMF0gOiB0aGlzLnRleHRGaWVsZF0gPSBvO1xyXG4gICAgICAvLyAgICAgICAgIHJldHVybiBubztcclxuICAgICAgLy8gICAgIH1cclxuICAgICAgLy8gfSk7XHJcbiAgICB9XHJcblxyXG4gICAgX2ZldGNoRGF0YShvcHRzPzogeyBzZWFyY2hRdWVyeT86IHN0cmluZyB9KSB7XHJcbiAgICAgIGNvbnN0IHNraXAgPSB0aGlzLiNjdXJyZW50UGFnZSAqIHRoaXMucGFnZVNpemUsIHRha2UgPSB0aGlzLnBhZ2VTaXplO1xyXG4gICAgICBpZiAoXHJcbiAgICAgICAgKHRoaXMubG9hZGVkQ291bnQgPj0gdGhpcy50b3RhbENvdW50ICYmIHRoaXMudG90YWxDb3VudCAhPSAwKSB8fFxyXG4gICAgICAgIHRoaXMuI2lzTG9hZGluZyB8fFxyXG4gICAgICAgICF0aGlzLiNpc0xhenkgfHxcclxuICAgICAgICBza2lwID4gdGhpcy50b3RhbENvdW50XHJcbiAgICAgICkge1xyXG4gICAgICAgIHJldHVybjtcclxuICAgICAgfVxyXG4gICAgICBpZiAodGhpcy4jaXRlbXMpIHtcclxuICAgICAgICB0aGlzLiNpc0xvYWRpbmcgPSB0cnVlO1xyXG4gICAgICAgIGNvbnN0IGZldGNoRm4gPSB0aGlzLiNpdGVtcyBhcyBBWERhdGFMaXN0RmV0Y2hEYXRhQ2FsbGJhY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YUxpc3RGZXRjaERhdGFDYWxsYmFjazsiXX0=
|
@@ -1,99 +1,99 @@
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
2
|
-
export function _DropdownComponenetMixin(Base) {
|
3
|
-
class Mixin extends Base {
|
4
|
-
readonly = false;
|
5
|
-
onOpened = new EventEmitter();
|
6
|
-
onClosed = new EventEmitter();
|
7
|
-
position = [];
|
8
|
-
_emitOnOpenedEvent() {
|
9
|
-
this.onOpened.emit({
|
10
|
-
component: this,
|
11
|
-
htmlElement: this._getHostElement()
|
12
|
-
});
|
13
|
-
}
|
14
|
-
_emitOnClosedEvent() {
|
15
|
-
this.onClosed.emit({
|
16
|
-
component: this,
|
17
|
-
htmlElement: this._getHostElement()
|
18
|
-
});
|
19
|
-
}
|
20
|
-
onInit() {
|
21
|
-
super.onInit();
|
22
|
-
this.popover.onOpened.subscribe(this.onOpened);
|
23
|
-
this.popover.onClosed.subscribe(this.onClosed);
|
24
|
-
}
|
25
|
-
onViewInit() {
|
26
|
-
// wait for documentElement
|
27
|
-
setTimeout(() => {
|
28
|
-
if (this.position.length == 0) {
|
29
|
-
const offset = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', ''));
|
30
|
-
const list = [
|
31
|
-
{
|
32
|
-
originX: 'start',
|
33
|
-
originY: 'bottom',
|
34
|
-
overlayX: 'start',
|
35
|
-
overlayY: 'top',
|
36
|
-
offsetY: offset
|
37
|
-
},
|
38
|
-
{
|
39
|
-
originX: 'start',
|
40
|
-
originY: 'top',
|
41
|
-
overlayX: 'start',
|
42
|
-
overlayY: 'bottom',
|
43
|
-
offsetY: -offset
|
44
|
-
},
|
45
|
-
{
|
46
|
-
originX: 'end',
|
47
|
-
originY: 'bottom',
|
48
|
-
overlayX: 'end',
|
49
|
-
overlayY: 'top',
|
50
|
-
offsetY: offset
|
51
|
-
},
|
52
|
-
{
|
53
|
-
originX: 'end',
|
54
|
-
originY: 'top',
|
55
|
-
overlayX: 'end',
|
56
|
-
overlayY: 'bottom',
|
57
|
-
offsetY: -offset
|
58
|
-
},
|
59
|
-
];
|
60
|
-
this.position.push(...list);
|
61
|
-
}
|
62
|
-
}, 500);
|
63
|
-
}
|
64
|
-
toggle() {
|
65
|
-
if (this['disabled'] !== true) {
|
66
|
-
this.popover.toggle();
|
67
|
-
}
|
68
|
-
}
|
69
|
-
close() {
|
70
|
-
if (!this.isOpen || this['disabled']) {
|
71
|
-
return;
|
72
|
-
}
|
73
|
-
this.popover.close();
|
74
|
-
this?.focus();
|
75
|
-
}
|
76
|
-
open() {
|
77
|
-
if (this.isOpen || this['disabled']) {
|
78
|
-
return;
|
79
|
-
}
|
80
|
-
this.popover.open();
|
81
|
-
this.popover.focus();
|
82
|
-
}
|
83
|
-
get isOpen() {
|
84
|
-
return this.popover?.isOpen;
|
85
|
-
}
|
86
|
-
constructor(...args) {
|
87
|
-
super(...args);
|
88
|
-
}
|
89
|
-
}
|
90
|
-
return Mixin;
|
91
|
-
}
|
92
|
-
export const DROPDOWN_INPUTS = [
|
93
|
-
'isOpen',
|
94
|
-
'fitParent',
|
95
|
-
'dropdownWidth',
|
96
|
-
'position'
|
97
|
-
];
|
98
|
-
export const DROPDOWN_OUTPUT = ['onOpened', 'onClosed'];
|
1
|
+
import { EventEmitter } from "@angular/core";
|
2
|
+
export function _DropdownComponenetMixin(Base) {
|
3
|
+
class Mixin extends Base {
|
4
|
+
readonly = false;
|
5
|
+
onOpened = new EventEmitter();
|
6
|
+
onClosed = new EventEmitter();
|
7
|
+
position = [];
|
8
|
+
_emitOnOpenedEvent() {
|
9
|
+
this.onOpened.emit({
|
10
|
+
component: this,
|
11
|
+
htmlElement: this._getHostElement()
|
12
|
+
});
|
13
|
+
}
|
14
|
+
_emitOnClosedEvent() {
|
15
|
+
this.onClosed.emit({
|
16
|
+
component: this,
|
17
|
+
htmlElement: this._getHostElement()
|
18
|
+
});
|
19
|
+
}
|
20
|
+
onInit() {
|
21
|
+
super.onInit();
|
22
|
+
this.popover.onOpened.subscribe(this.onOpened);
|
23
|
+
this.popover.onClosed.subscribe(this.onClosed);
|
24
|
+
}
|
25
|
+
onViewInit() {
|
26
|
+
// wait for documentElement
|
27
|
+
setTimeout(() => {
|
28
|
+
if (this.position.length == 0) {
|
29
|
+
const offset = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', ''));
|
30
|
+
const list = [
|
31
|
+
{
|
32
|
+
originX: 'start',
|
33
|
+
originY: 'bottom',
|
34
|
+
overlayX: 'start',
|
35
|
+
overlayY: 'top',
|
36
|
+
offsetY: offset
|
37
|
+
},
|
38
|
+
{
|
39
|
+
originX: 'start',
|
40
|
+
originY: 'top',
|
41
|
+
overlayX: 'start',
|
42
|
+
overlayY: 'bottom',
|
43
|
+
offsetY: -offset
|
44
|
+
},
|
45
|
+
{
|
46
|
+
originX: 'end',
|
47
|
+
originY: 'bottom',
|
48
|
+
overlayX: 'end',
|
49
|
+
overlayY: 'top',
|
50
|
+
offsetY: offset
|
51
|
+
},
|
52
|
+
{
|
53
|
+
originX: 'end',
|
54
|
+
originY: 'top',
|
55
|
+
overlayX: 'end',
|
56
|
+
overlayY: 'bottom',
|
57
|
+
offsetY: -offset
|
58
|
+
},
|
59
|
+
];
|
60
|
+
this.position.push(...list);
|
61
|
+
}
|
62
|
+
}, 500);
|
63
|
+
}
|
64
|
+
toggle() {
|
65
|
+
if (this['disabled'] !== true) {
|
66
|
+
this.popover.toggle();
|
67
|
+
}
|
68
|
+
}
|
69
|
+
close() {
|
70
|
+
if (!this.isOpen || this['disabled']) {
|
71
|
+
return;
|
72
|
+
}
|
73
|
+
this.popover.close();
|
74
|
+
this?.focus();
|
75
|
+
}
|
76
|
+
open() {
|
77
|
+
if (this.isOpen || this['disabled']) {
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
this.popover.open();
|
81
|
+
this.popover.focus();
|
82
|
+
}
|
83
|
+
get isOpen() {
|
84
|
+
return this.popover?.isOpen;
|
85
|
+
}
|
86
|
+
constructor(...args) {
|
87
|
+
super(...args);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
return Mixin;
|
91
|
+
}
|
92
|
+
export const DROPDOWN_INPUTS = [
|
93
|
+
'isOpen',
|
94
|
+
'fitParent',
|
95
|
+
'dropdownWidth',
|
96
|
+
'position'
|
97
|
+
];
|
98
|
+
export const DROPDOWN_OUTPUT = ['onOpened', 'onClosed'];
|
99
99
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tbWl4aW4uY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29tcG9uZW50cy9taXhpbi9zcmMvZHJvcGRvd24tbWl4aW4uY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQWU3QyxNQUFNLFVBQVUsd0JBQXdCLENBQTZDLElBQVc7SUFFNUYsTUFBZSxLQUFNLFNBQVEsSUFBSTtRQUU3QixRQUFRLEdBQVksS0FBSyxDQUFDO1FBRzFCLFFBQVEsR0FBMEIsSUFBSSxZQUFZLEVBQVcsQ0FBQztRQUM5RCxRQUFRLEdBQTBCLElBQUksWUFBWSxFQUFXLENBQUM7UUFLOUQsUUFBUSxHQUEwQixFQUFFLENBQUM7UUFFckMsa0JBQWtCO1lBRWQsSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUM7Z0JBQ2YsU0FBUyxFQUFFLElBQUk7Z0JBQ2YsV0FBVyxFQUFFLElBQUksQ0FBQyxlQUFlLEVBQUU7YUFDdEMsQ0FBQyxDQUFDO1FBQ1AsQ0FBQztRQUVELGtCQUFrQjtZQUNkLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDO2dCQUNmLFNBQVMsRUFBRSxJQUFJO2dCQUNmLFdBQVcsRUF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gICAgICB9XHJcblxyXG5cclxuICAgICAgICBvbkluaXQoKTogdm9pZCB7XHJcbiAgICAgICAgICAgIHN1cGVyLm9uSW5pdCgpO1xyXG4gICAgICAgICAgICB0aGlzLnBvcG92ZXIub25PcGVuZWQuc3Vic2NyaWJlKHRoaXMub25PcGVuZWQpO1xyXG4gICAgICAgICAgICB0aGlzLnBvcG92ZXIub25DbG9zZWQuc3Vic2NyaWJlKHRoaXMub25DbG9zZWQpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgb25WaWV3SW5pdCgpIHtcclxuICAgICAgICAgICAgLy8gd2FpdCBmb3IgZG9jdW1lbnRFbGVtZW50XHJcbiAgICAgICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMucG9zaXRpb24ubGVuZ3RoID09IDApIHtcclxuICAgICAgICAgICAgICAgICAgICBjb25zdCBvZmZzZXQgPSBOdW1iZXIoZ2V0Q29tcHV0ZWRTdHlsZShkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQpLmdldFByb3BlcnR5VmFsdWUoJy0tYXgtYmFzZS1zaXplJykucmVwbGFjZSgncHgnLCAnJykpO1xyXG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGxpc3Q6IEFYQ29ubmVjdGVkUG9zaXRpb25bXSA9IFtcclxuICAgICAgICAgICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luWDogJ3N0YXJ0JyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yaWdpblk6ICdib3R0b20nLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3ZlcmxheVg6ICdzdGFydCcsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVybGF5WTogJ3RvcCcsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvZmZzZXRZOiBvZmZzZXRcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luWDogJ3N0YXJ0JyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yaWdpblk6ICd0b3AnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3ZlcmxheVg6ICdzdGFydCcsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVybGF5WTogJ2JvdHRvbScsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvZmZzZXRZOiAtb2Zmc2V0XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yaWdpblg6ICdlbmQnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luWTogJ2JvdHRvbScsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVybGF5WDogJ2VuZCcsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVybGF5WTogJ3RvcCcsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvZmZzZXRZOiBvZmZzZXRcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luWDogJ2VuZCcsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvcmlnaW5ZOiAndG9wJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG92ZXJsYXlYOiAnZW5kJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG92ZXJsYXlZOiAnYm90dG9tJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9mZnNldFk6IC1vZmZzZXRcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgICAgICBdO1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMucG9zaXRpb24ucHVzaCguLi5saXN0KTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSwgNTAwKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHRvZ2dsZSgpIHtcclxuICAgICAgICAgICAgaWYgKHRoaXNbJ2Rpc2FibGVkJ10gIT09IHRydWUpIHtcclxuICAgICAgICAgICAgICAgIHRoaXMucG9wb3Zlci50b2dnbGUoKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgY2xvc2UoKSB7XHJcbiAgICAgICAgICAgIGlmICghdGhpcy5pc09wZW4gfHwgdGhpc1snZGlzYWJsZWQnXSkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIHRoaXMucG9wb3Zlci5jbG9zZSgpO1xyXG4gICAgICAgICAgICAodGhpcyBhcyBhbnkpPy5mb2N1cygpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgb3BlbigpIHtcclxuICAgICAgICAgICAgaWYgKHRoaXMuaXNPcGVuIHx8IHRoaXNbJ2Rpc2FibGVkJ10pIHtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB0aGlzLnBvcG92ZXIub3BlbigpO1xyXG4gICAgICAgICAgICB0aGlzLnBvcG92ZXIuZm9jdXMoKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGdldCBpc09wZW4oKTogYm9vbGVhbiB7XHJcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnBvcG92ZXI/LmlzT3BlbjtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGNvbnN0cnVjdG9yKC4uLmFyZ3M6IGFueVtdKSB7XHJcbiAgICAgICAgICAgIHN1cGVyKC4uLmFyZ3MpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICB9XHJcblxyXG4gICAgcmV0dXJuIE1peGluO1xyXG59XHJcblxyXG5cclxuZXhwb3J0IGNvbnN0IERST1BET1dOX0lOUFVUUyA9IFtcclxuICAgICdpc09wZW4nLFxyXG4gICAgJ2ZpdFBhcmVudCcsXHJcbiAgICAnZHJvcGRvd25XaWR0aCcsXHJcbiAgICAncG9zaXRpb24nXHJcbl07XHJcbmV4cG9ydCBjb25zdCBEUk9QRE9XTl9PVVRQVVQgPSBbJ29uT3BlbmVkJywgJ29uQ2xvc2VkJ107Il19
|