@coolon/angular-ui-powerups 16.1.0-aplpha.149 → 16.1.0-aplpha.15
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/assets/activities/input-activities.scss +6 -14
- package/assets/form.scss +27 -74
- package/assets/icons.scss +0 -1
- package/assets/styles.scss +0 -2
- package/assets/table.scss +27 -47
- package/assets/tabs.scss +5 -15
- package/esm2022/lib/animations/slide-animations.mjs +10 -15
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
- package/esm2022/lib/components/commands/command/command.component.mjs +29 -34
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +3 -11
- package/esm2022/lib/components/commands/command-face.mjs +11 -12
- package/esm2022/lib/components/commands/group/popup-aware.component.mjs +8 -31
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +23 -25
- package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +20 -11
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +7 -12
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +20 -11
- package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +6 -8
- package/esm2022/lib/components/commands/separator.component.mjs +12 -6
- package/esm2022/lib/components/components.module.mjs +19 -44
- package/esm2022/lib/components/disposable-component.mjs +7 -32
- package/esm2022/lib/components/exports.mjs +2 -10
- package/esm2022/lib/components/forms/abstract-input.component.mjs +12 -55
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +2 -2
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +6 -8
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -2
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +9 -84
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +3 -40
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +10 -11
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +10 -26
- package/esm2022/lib/components/forms/text-input/text-input.component.mjs +2 -6
- package/esm2022/lib/components/icon/icon.component.mjs +4 -7
- package/esm2022/lib/components/loadable-component.mjs +2 -4
- package/esm2022/lib/components/resize-aware.component.mjs +24 -61
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +7 -5
- package/esm2022/lib/components/tables/abstract-table-model.mjs +47 -77
- package/esm2022/lib/components/tables/abstract-table.component.mjs +5 -19
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +6 -16
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +13 -35
- package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +2 -2
- package/esm2022/lib/components/tables/editor/edit-session.mjs +1 -3
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +2 -4
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -16
- package/esm2022/lib/components/tables/paginator/paginator.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +5 -23
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +3 -3
- package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +2 -3
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +40 -150
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +6 -6
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +5 -12
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +2 -7
- package/esm2022/lib/components/tables/table/table-model.mjs +3 -12
- package/esm2022/lib/components/tables/table/table.component.mjs +61 -39
- package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +4 -5
- package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +1 -1
- package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +5 -12
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +7 -4
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
- package/esm2022/lib/directives/command.directive.mjs +7 -18
- package/esm2022/lib/directives/directives.module.mjs +1 -1
- package/esm2022/lib/directives/exports.mjs +1 -2
- package/esm2022/lib/directives/highlight.pipe.mjs +7 -9
- package/esm2022/lib/interaction/activity.mjs +21 -20
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +8 -11
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +41 -1
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +16 -28
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +11 -36
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +15 -53
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
- package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +10 -10
- package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +8 -4
- package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +8 -4
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +9 -7
- package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +3 -3
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +5 -21
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +2 -4
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +4 -8
- package/esm2022/lib/interaction/confirm.mjs +2 -26
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
- package/esm2022/lib/interaction/exports.mjs +1 -6
- package/esm2022/lib/interaction/interaction-context.mjs +2 -3
- package/esm2022/lib/interaction/interaction.module.mjs +14 -22
- package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +4 -4
- package/esm2022/lib/interaction/services/interaction.service.mjs +6 -18
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +2 -7
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +4 -3
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +9 -7
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +2 -2
- package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +1 -1
- package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
- package/esm2022/lib/place/guards/place.guard.mjs +5 -6
- package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
- package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +6 -3
- package/esm2022/lib/place/navigation/session/navigation-session.mjs +2 -2
- package/esm2022/lib/place/place-auth-service.mjs +5 -5
- package/esm2022/lib/place/place-component.mjs +19 -29
- package/esm2022/lib/place/place-definition.mjs +4 -15
- package/esm2022/lib/place/place-history.mjs +2 -2
- package/esm2022/lib/place/place-router.mjs +20 -22
- package/esm2022/lib/place/place.decorator.mjs +2 -2
- package/esm2022/lib/place/place.module.mjs +5 -1
- package/esm2022/lib/place/route/formatter.mjs +2 -2
- package/esm2022/lib/place/route/parameter-decorators.mjs +50 -54
- package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
- package/esm2022/lib/place/url-snapshot.mjs +3 -3
- package/esm2022/lib/place/visit-segment.mjs +2 -2
- package/esm2022/lib/place/visit.mjs +2 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +999 -2220
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/animations/slide-animations.d.ts +0 -1
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/components/commands/command/command.component.d.ts +8 -8
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -2
- package/lib/components/commands/command-face.d.ts +9 -8
- package/lib/components/commands/group/popup-aware.component.d.ts +4 -9
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +4 -4
- package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +4 -2
- package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +0 -2
- package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +4 -2
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
- package/lib/components/commands/separator.component.d.ts +4 -2
- package/lib/components/components.module.d.ts +53 -58
- package/lib/components/disposable-component.d.ts +3 -16
- package/lib/components/exports.d.ts +1 -9
- package/lib/components/forms/abstract-input.component.d.ts +5 -13
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +0 -2
- package/lib/components/forms/number-input/number-input.component.d.ts +4 -16
- package/lib/components/forms/password-input/password-input.component.d.ts +1 -7
- package/lib/components/forms/select-input/select-input.component.d.ts +3 -4
- package/lib/components/forms/string-input/string-input.component.d.ts +1 -6
- package/lib/components/forms/text-input/text-input.component.d.ts +0 -3
- package/lib/components/loadable-component.d.ts +2 -5
- package/lib/components/resize-aware.component.d.ts +5 -24
- package/lib/components/switch-case/switch-case.component.d.ts +3 -2
- package/lib/components/tables/abstract-table-model.d.ts +11 -29
- package/lib/components/tables/abstract-table.component.d.ts +3 -4
- package/lib/components/tables/column/column-list-model.d.ts +13 -0
- package/lib/components/tables/column/column-model.d.ts +3 -7
- package/lib/components/tables/column/custom-template-column-model.d.ts +2 -3
- package/lib/components/tables/column/custom-value-column-model.d.ts +2 -3
- package/lib/components/tables/column/editor-controls-column-model.d.ts +2 -3
- package/lib/components/tables/column/list-propery-column-model.d.ts +2 -3
- package/lib/components/tables/column/property-column-model.d.ts +2 -3
- package/lib/components/tables/column/selection-column-model.d.ts +4 -10
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
- package/lib/components/tables/editor/edit-session.d.ts +1 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +0 -9
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +12 -20
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +16 -40
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +3 -2
- package/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.d.ts +2 -5
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +1 -2
- package/lib/components/tables/table/table-model.d.ts +4 -4
- package/lib/components/tables/table/table.component.d.ts +10 -14
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-table-component.d.ts +0 -3
- package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
- package/lib/directives/command.directive.d.ts +4 -6
- package/lib/directives/exports.d.ts +0 -1
- package/lib/interaction/activity.d.ts +7 -7
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +1 -2
- package/lib/interaction/components/abstract-dialog.component.d.ts +14 -5
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +9 -12
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +3 -8
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +3 -3
- package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +1 -6
- package/lib/interaction/components/editors/edit-context.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +3 -5
- package/lib/interaction/confirm.d.ts +0 -4
- package/lib/interaction/exports.d.ts +0 -5
- package/lib/interaction/interaction-context.d.ts +0 -5
- package/lib/interaction/interaction.module.d.ts +33 -35
- package/lib/interaction/services/interaction-service-routing-adapter.d.ts +2 -2
- package/lib/interaction/services/interaction.service.d.ts +1 -2
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -3
- package/lib/place/place-auth-service.d.ts +4 -4
- package/lib/place/place-component.d.ts +5 -7
- package/lib/place/place-definition.d.ts +0 -2
- package/lib/place/place-router.d.ts +2 -6
- package/lib/place/place.module.d.ts +5 -4
- package/package.json +4 -6
- package/assets/draw.scss +0 -20
- package/assets/layout.scss +0 -3
- package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +0 -115
- package/esm2022/lib/components/file/file-download/file-download.component.mjs +0 -78
- package/esm2022/lib/components/forms/form-field.mjs +0 -2
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +0 -33
- package/esm2022/lib/components/tables/column/column-manager.mjs +0 -81
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +0 -19
- package/esm2022/lib/components/tables/footer/footer-row-model.mjs +0 -38
- package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +0 -7
- package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +0 -30
- package/esm2022/lib/directives/resize-observer.directive.mjs +0 -40
- package/esm2022/lib/interaction/activity-context.mjs +0 -4
- package/esm2022/lib/interaction/components/alert-renderer/alert-renderer.component.mjs +0 -55
- package/esm2022/lib/interaction/components/confirm-renderer/confirm-renderer.component.mjs +0 -54
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +0 -134
- package/esm2022/lib/interaction/interaction-context-provider.mjs +0 -17
- package/lib/components/commands/button-renderer/button-renderer.component.d.ts +0 -30
- package/lib/components/file/file-download/file-download.component.d.ts +0 -43
- package/lib/components/forms/form-field.d.ts +0 -5
- package/lib/components/forms/search-input/search-input.component.d.ts +0 -10
- package/lib/components/tables/column/column-manager.d.ts +0 -19
- package/lib/components/tables/column/column-order-manager.d.ts +0 -20
- package/lib/components/tables/footer/footer-row-model.d.ts +0 -22
- package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +0 -6
- package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +0 -11
- package/lib/directives/resize-observer.directive.d.ts +0 -16
- package/lib/interaction/activity-context.d.ts +0 -9
- package/lib/interaction/components/alert-renderer/alert-renderer.component.d.ts +0 -17
- package/lib/interaction/components/confirm-renderer/confirm-renderer.component.d.ts +0 -15
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +0 -53
- package/lib/interaction/interaction-context-provider.d.ts +0 -11
|
@@ -6,42 +6,40 @@ import * as i4 from "./components/confirm-then-execute-dialog/confirm-then-execu
|
|
|
6
6
|
import * as i5 from "./components/alert-dialog/alert-dialog.component";
|
|
7
7
|
import * as i6 from "./components/activity-container/activity-outlet/activity-outlet.component";
|
|
8
8
|
import * as i7 from "./components/inplace-interaction-context/in-place-interaction-context.component";
|
|
9
|
-
import * as i8 from "./components/
|
|
10
|
-
import * as i9 from "./components/
|
|
11
|
-
import * as i10 from "./components/
|
|
12
|
-
import * as i11 from "./components/
|
|
13
|
-
import * as i12 from "./components/input-activities/
|
|
14
|
-
import * as i13 from "./components/input-activities/
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "./activity";
|
|
18
|
-
import * as i17 from "./components/activity-
|
|
19
|
-
import * as i18 from "./components/activity-
|
|
20
|
-
import * as i19 from "./components/activity-triggers/
|
|
21
|
-
import * as i20 from "./components/activity-triggers/
|
|
22
|
-
import * as i21 from "./components/activity-triggers/
|
|
23
|
-
import * as i22 from "./components/
|
|
24
|
-
import * as i23 from "./components/
|
|
25
|
-
import * as i24 from "./components/
|
|
26
|
-
import * as i25 from "./components/abstract-dialog.component";
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "
|
|
29
|
-
import * as i28 from "
|
|
30
|
-
import * as i29 from "@angular/
|
|
31
|
-
import * as i30 from "@angular/
|
|
32
|
-
import * as i31 from "@angular/
|
|
33
|
-
import * as i32 from "@angular/material/
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "@angular/
|
|
36
|
-
import * as i35 from "
|
|
37
|
-
import * as i36 from "
|
|
38
|
-
import * as i37 from "
|
|
39
|
-
import * as i38 from "@angular/
|
|
40
|
-
import * as i39 from "@angular/
|
|
41
|
-
import * as i40 from "@angular/material/form-field";
|
|
42
|
-
import * as i41 from "@angular/cdk/a11y";
|
|
9
|
+
import * as i8 from "./components/add-item-interaction-context/add-item-interaction-context.component";
|
|
10
|
+
import * as i9 from "./components/activity-actions/activity-actions.component";
|
|
11
|
+
import * as i10 from "./components/popup-interaction-context/popup-interaction-context.component";
|
|
12
|
+
import * as i11 from "./components/input-activities/string-input-activity";
|
|
13
|
+
import * as i12 from "./components/input-activities/select-input-activity";
|
|
14
|
+
import * as i13 from "./components/input-activities/input-activity";
|
|
15
|
+
import * as i14 from "./directives/interaction-context-trigger-for.directive";
|
|
16
|
+
import * as i15 from "./activity";
|
|
17
|
+
import * as i16 from "./components/activity-title/activity-title.component";
|
|
18
|
+
import * as i17 from "./components/activity-body/activity-body.component";
|
|
19
|
+
import * as i18 from "./components/activity-triggers/abstract-activity-trigger.component";
|
|
20
|
+
import * as i19 from "./components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component";
|
|
21
|
+
import * as i20 from "./components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component";
|
|
22
|
+
import * as i21 from "./components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component";
|
|
23
|
+
import * as i22 from "./components/add-card-activity/add-card-activity.component";
|
|
24
|
+
import * as i23 from "./components/editors/inline-string-editor/inline-string-editor.component";
|
|
25
|
+
import * as i24 from "./components/abstract-dialog.component";
|
|
26
|
+
import * as i25 from "./components/abstract-confirm-dialog.component";
|
|
27
|
+
import * as i26 from "@angular/common";
|
|
28
|
+
import * as i27 from "@angular/material/button";
|
|
29
|
+
import * as i28 from "@angular/material/dialog";
|
|
30
|
+
import * as i29 from "@angular/material/tabs";
|
|
31
|
+
import * as i30 from "@angular/cdk/portal";
|
|
32
|
+
import * as i31 from "@angular/router";
|
|
33
|
+
import * as i32 from "@angular/material/icon";
|
|
34
|
+
import * as i33 from "../directives/directives.module";
|
|
35
|
+
import * as i34 from "@angular/flex-layout";
|
|
36
|
+
import * as i35 from "../components/components.module";
|
|
37
|
+
import * as i36 from "@angular/forms";
|
|
38
|
+
import * as i37 from "@angular/material/input";
|
|
39
|
+
import * as i38 from "@angular/material/form-field";
|
|
40
|
+
import * as i39 from "@angular/cdk/a11y";
|
|
43
41
|
export declare class InteractionModule {
|
|
44
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionModule, never>;
|
|
45
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InteractionModule, [typeof i1.ActivityContainerComponent, typeof i2.ConfirmationDialogComponent, typeof i3.ConfirmThenDialogComponent, typeof i4.ConfirmThenExecuteDialogComponent, typeof i5.AlertDialogComponent, typeof i6.ActivityOutletComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.
|
|
43
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InteractionModule, [typeof i1.ActivityContainerComponent, typeof i2.ConfirmationDialogComponent, typeof i3.ConfirmThenDialogComponent, typeof i4.ConfirmThenExecuteDialogComponent, typeof i5.AlertDialogComponent, typeof i6.ActivityOutletComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.AddItemInteractionContextComponent, typeof i9.ActivityActionsComponent, typeof i10.PopupInteractionContextComponent, typeof i11.StringInputActivity, typeof i12.SelectInputActivity, typeof i13.InputActivity, typeof i14.InteractionContextTriggerForDirective, typeof i15.Activity, typeof i16.ActivityTitleComponent, typeof i17.ActivityBodyComponent, typeof i9.ActivityActionsComponent, typeof i18.AbstractActivityTriggerComponent, typeof i19.PopupActivityTriggerComponent, typeof i20.InlineActivityTriggerComponent, typeof i21.ModalActivityTriggerComponent, typeof i22.AddCardActivityComponent, typeof i23.InlineStringEditorComponent, typeof i24.AbstractDialogComponent, typeof i25.AbstractConfirmDialogComponent], [typeof i26.CommonModule, typeof i27.MatButtonModule, typeof i28.MatDialogModule, typeof i29.MatTabsModule, typeof i30.PortalModule, typeof i31.RouterModule, typeof i32.MatIconModule, typeof i33.DirectivesModule, typeof i34.FlexModule, typeof i34.GridModule, typeof i35.ComponentsModule, typeof i36.FormsModule, typeof i37.MatInputModule, typeof i38.MatFormFieldModule, typeof i39.A11yModule], [typeof i1.ActivityContainerComponent, typeof i6.ActivityOutletComponent, typeof i16.ActivityTitleComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.AddItemInteractionContextComponent, typeof i9.ActivityActionsComponent, typeof i10.PopupInteractionContextComponent, typeof i14.InteractionContextTriggerForDirective, typeof i11.StringInputActivity, typeof i12.SelectInputActivity, typeof i17.ActivityBodyComponent, typeof i19.PopupActivityTriggerComponent, typeof i20.InlineActivityTriggerComponent, typeof i21.ModalActivityTriggerComponent, typeof i22.AddCardActivityComponent, typeof i23.InlineStringEditorComponent]>;
|
|
46
44
|
static ɵinj: i0.ɵɵInjectorDeclaration<InteractionModule>;
|
|
47
45
|
}
|
|
@@ -4,8 +4,8 @@ import { InteractionContext } from '../interaction-context';
|
|
|
4
4
|
export declare class InteractionServiceRoutingAdapter {
|
|
5
5
|
private readonly activeInteractionContextIds;
|
|
6
6
|
private readonly activeModalContext;
|
|
7
|
-
readonly
|
|
8
|
-
constructor(activeInteractionContextIds: ListModel<string>, activeModalContext: ValueModel<InteractionContext>,
|
|
7
|
+
readonly createExclusiveInteractionContext: () => InteractionContext;
|
|
8
|
+
constructor(activeInteractionContextIds: ListModel<string>, activeModalContext: ValueModel<InteractionContext>, createExclusiveInteractionContext: () => InteractionContext);
|
|
9
9
|
isActive(): boolean;
|
|
10
10
|
isModalActive(): boolean;
|
|
11
11
|
isComponentInteracting(component: PlaceComponent): boolean;
|
|
@@ -11,7 +11,7 @@ export declare class InteractionService {
|
|
|
11
11
|
readonly active: BooleanValueModelChain;
|
|
12
12
|
private readonly _navigationInProgress;
|
|
13
13
|
private placeRouter;
|
|
14
|
-
private
|
|
14
|
+
private exclusiveInteractionRegistry;
|
|
15
15
|
private modalInteractionRegistry;
|
|
16
16
|
private inPlaceInteractionRegistry;
|
|
17
17
|
private activeModalContext;
|
|
@@ -19,7 +19,6 @@ export declare class InteractionService {
|
|
|
19
19
|
readonly inModalInteraction: BooleanValueModelChain;
|
|
20
20
|
constructor(modelInteractionContextFactory: ModalInteractionContextFactory);
|
|
21
21
|
isActive(): boolean;
|
|
22
|
-
cancelAllActivities(): Promise<void>;
|
|
23
22
|
/**
|
|
24
23
|
* @deprecated use #createModalInteractionContextDisposedWith instead.
|
|
25
24
|
* @param disposable
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
2
|
-
import { EventEmitter, InjectionToken } from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter, InjectionToken } from '@angular/core';
|
|
3
3
|
import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
|
|
4
4
|
import { BooleanValueModelChain, Constructable, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
5
5
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
@@ -13,6 +13,7 @@ export declare class PlaceOutletComponent extends DisposableComponent {
|
|
|
13
13
|
private readonly router;
|
|
14
14
|
private readonly placeRouter;
|
|
15
15
|
readonly placeConfig: PlaceConfig;
|
|
16
|
+
private readonly cdr;
|
|
16
17
|
accessor animate$: ValueModel<boolean>;
|
|
17
18
|
accessor animate: boolean;
|
|
18
19
|
accessor customPlaceAnimationOrder$: ListModel<Constructable<PlaceComponent>>;
|
|
@@ -36,7 +37,7 @@ export declare class PlaceOutletComponent extends DisposableComponent {
|
|
|
36
37
|
readonly animationEnabled: BooleanValueModelChain;
|
|
37
38
|
readonly authorised: ValueModelChain<boolean>;
|
|
38
39
|
readonly notAuthorisedNoticePortal: ComponentPortal<any>;
|
|
39
|
-
constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent);
|
|
40
|
+
constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent, cdr: ChangeDetectorRef);
|
|
40
41
|
getAnimationOrder(): number;
|
|
41
42
|
get animationDuration(): string;
|
|
42
43
|
get isAuthorised(): boolean;
|
|
@@ -52,6 +53,6 @@ export declare class PlaceOutletComponent extends DisposableComponent {
|
|
|
52
53
|
private notifyComponentVisitSegmentChanged;
|
|
53
54
|
animationStarted(): void;
|
|
54
55
|
animationDone(): void;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }]>;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
56
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<PlaceOutletComponent, "aup-place-outlet", never, { "animate$": { "alias": "animate$"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "customPlaceAnimationOrder$": { "alias": "placeAnimationOrderModel"; "required": false; }; "customPlaceAnimationOrder": { "alias": "placeAnimationOrder"; "required": false; }; }, { "placeChanged": "placeChanged"; }, never, never, false, never>;
|
|
57
58
|
}
|
|
@@ -19,8 +19,8 @@ export declare class PlaceAuthService extends GarbageCollector {
|
|
|
19
19
|
enablePlace(placeDefinition: Constructable<PlaceComponent>, options: PlaceAuthService.AuthPlaceOptions): void;
|
|
20
20
|
waitUntilAuthenticationReady(): Promise<void>;
|
|
21
21
|
waitUntilAuthorisationReadyFor(placeDef: PlaceDefinition): Promise<void>;
|
|
22
|
-
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot):
|
|
23
|
-
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>):
|
|
22
|
+
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
|
|
23
|
+
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
|
|
24
24
|
isAuthenticated(): boolean;
|
|
25
25
|
isAuthorised(c: PlaceDefinition): boolean;
|
|
26
26
|
}
|
|
@@ -28,12 +28,12 @@ export declare namespace PlaceAuthService {
|
|
|
28
28
|
type AuthorisationCheck = (def: PlaceDefinition) => boolean;
|
|
29
29
|
interface AuthenticationOptions extends ComputedModelMechanics.PostponeOptions {
|
|
30
30
|
isAuthenticated$: ValueModel<boolean>;
|
|
31
|
-
redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent
|
|
31
|
+
redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent>;
|
|
32
32
|
}
|
|
33
33
|
interface AuthorisationOptions extends ComputedModelMechanics.PostponeOptions {
|
|
34
34
|
isAuthorised: AuthorisationCheck;
|
|
35
35
|
dependsOn$?: HasValue<any>;
|
|
36
|
-
redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[]
|
|
36
|
+
redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[];
|
|
37
37
|
}
|
|
38
38
|
interface AuthPlaceOptions extends ComputedModelMechanics.PostponeOptions {
|
|
39
39
|
when$?: ValueModel<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
-
import { Constructable, ListModel } from '@coolon/pectin';
|
|
2
|
+
import { Constructable, ListModel, ValueModel } from '@coolon/pectin';
|
|
3
3
|
import 'reflect-metadata';
|
|
4
|
-
import {
|
|
4
|
+
import { DisposableComponent } from '../components/disposable-component';
|
|
5
5
|
import { InteractionContext } from '../interaction/interaction-context';
|
|
6
6
|
import { PlaceDefinition } from './place-definition';
|
|
7
7
|
import { PlaceRouter } from "./place-router";
|
|
@@ -11,17 +11,15 @@ import { VisitSegment } from './visit-segment';
|
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare const DEFINITION_META_DATA_KEY = "PLACE_DEFINITION_OPTIONS";
|
|
13
13
|
export declare const ROUTE_PARAMETER_LIST_KEY: unique symbol;
|
|
14
|
-
export declare class PlaceComponent extends
|
|
14
|
+
export declare class PlaceComponent extends DisposableComponent {
|
|
15
15
|
private readonly _placeReadyCallbacks;
|
|
16
|
-
private
|
|
16
|
+
private visitModel;
|
|
17
17
|
private _inVisitUpdate;
|
|
18
18
|
private _active;
|
|
19
19
|
interactionContext?: InteractionContext;
|
|
20
20
|
readonly childPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
21
|
-
readonly placeId: string;
|
|
22
21
|
canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
|
|
23
22
|
protected readonly placeRouter: PlaceRouter;
|
|
24
|
-
private readonly activatedRoute;
|
|
25
23
|
constructor();
|
|
26
24
|
initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
|
|
27
25
|
get childPlaces(): readonly Constructable<PlaceComponent>[];
|
|
@@ -34,7 +32,7 @@ export declare class PlaceComponent extends LoadableComponent {
|
|
|
34
32
|
*/
|
|
35
33
|
private installAndInitialiseBinding;
|
|
36
34
|
get placeDefinition(): PlaceDefinition;
|
|
37
|
-
get active():
|
|
35
|
+
get active(): ValueModel<boolean>;
|
|
38
36
|
/**
|
|
39
37
|
* Called by the router to see if this component can deactivate. This isn't called for route parameter changes.
|
|
40
38
|
* @param interactionContext
|
|
@@ -13,11 +13,9 @@ export declare class PlaceDefinition {
|
|
|
13
13
|
readonly children: PlaceDefinition[];
|
|
14
14
|
readonly redirectToFirstChild: boolean;
|
|
15
15
|
private _parent;
|
|
16
|
-
readonly name: string;
|
|
17
16
|
constructor(component: Constructable<PlaceComponent>, path: string, authenticate: boolean, role: any, data: Record<string, any>, routeParameters: ParameterDefinition<any>[], children: PlaceDefinition[], redirectToFirstChild: boolean);
|
|
18
17
|
ancestors(): PlaceDefinition[];
|
|
19
18
|
ancestorsAndSelf(): PlaceDefinition[];
|
|
20
|
-
get placeId(): string;
|
|
21
19
|
protected setParent(parent: PlaceDefinition): void;
|
|
22
20
|
get parent(): PlaceDefinition;
|
|
23
21
|
isRoot(): boolean;
|
|
@@ -27,16 +27,12 @@ export declare class PlaceRouter extends GarbageCollector {
|
|
|
27
27
|
private readonly routerInteractionAdapter;
|
|
28
28
|
private sessionFinishedJobs;
|
|
29
29
|
readonly authService: PlaceAuthService;
|
|
30
|
-
private readonly _ready$;
|
|
31
|
-
readonly ready$: ValueModel<boolean>;
|
|
32
30
|
constructor(angularRouter: Router, angularLocation: Location, interactionService: InteractionService, urlService: UrlService, placeHistory: PlaceHistory);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Promise<Visit[]>;
|
|
31
|
+
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
|
|
32
|
+
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
|
|
36
33
|
get navigationSession(): NavigationSession;
|
|
37
34
|
get currentSession(): NavigationSession;
|
|
38
35
|
isNavigating(): boolean;
|
|
39
|
-
waitUntilRouterReady(): Promise<this>;
|
|
40
36
|
waitUntilIdle(): Promise<this>;
|
|
41
37
|
waitActivitiesSynchronised(): Promise<this>;
|
|
42
38
|
onPopState(event: NavigationStart): void;
|
|
@@ -14,11 +14,12 @@ import * as i12 from "@angular/material/list";
|
|
|
14
14
|
import * as i13 from "@angular/material/tooltip";
|
|
15
15
|
import * as i14 from "@angular/material/icon";
|
|
16
16
|
import * as i15 from "../directives/directives.module";
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "@angular/
|
|
17
|
+
import * as i16 from "@angular/flex-layout";
|
|
18
|
+
import * as i17 from "../components/components.module";
|
|
19
|
+
import * as i18 from "@angular/cdk/portal";
|
|
20
|
+
import * as i19 from "@angular/material/card";
|
|
20
21
|
export declare class PlaceModule {
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.MatProgressSpinnerModule, typeof i10.RouterModule, typeof i11.MatTabsModule, typeof i12.MatListModule, typeof i13.MatTooltipModule, typeof i14.MatIconModule, typeof i15.DirectivesModule, typeof i16.
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.MatProgressSpinnerModule, typeof i10.RouterModule, typeof i11.MatTabsModule, typeof i12.MatListModule, typeof i13.MatTooltipModule, typeof i14.MatIconModule, typeof i15.DirectivesModule, typeof i16.FlexModule, typeof i17.ComponentsModule, typeof i18.PortalModule, typeof i19.MatCardModule], [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent]>;
|
|
23
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<PlaceModule>;
|
|
24
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-aplpha.
|
|
3
|
+
"version": "16.1.0-aplpha.15",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.2.9",
|
|
6
6
|
"@angular/common": "^16.2.9",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"@angular/platform-browser-dynamic": "^16.2.9",
|
|
13
13
|
"@angular/material-moment-adapter": "^16.2.10",
|
|
14
14
|
"@angular/router": "^16.2.9",
|
|
15
|
-
"@coolon/pectin": "^5.0.0-alpha.
|
|
16
|
-
"fast-
|
|
15
|
+
"@coolon/pectin": "^5.0.0-alpha.2",
|
|
16
|
+
"@typescript-plus/fast-memoize-decorator": "^0.2.1",
|
|
17
17
|
"lodash-es": "^4.17.21",
|
|
18
18
|
"marked": "4.0.10",
|
|
19
19
|
"reflect-metadata": "^0.1.13",
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
"json5": "^2.1.0",
|
|
23
23
|
"immer": ">=10.0.3",
|
|
24
24
|
"escape-string-regexp": "^5.0.0",
|
|
25
|
-
"@coolon/typescript-utilities": "^5.0.0-alpha.
|
|
26
|
-
"fractional-indexing": "^3.2.0",
|
|
27
|
-
"ng-table-virtual-scroll": "^1.6.1"
|
|
25
|
+
"@coolon/typescript-utilities": "^5.0.0-alpha.3"
|
|
28
26
|
},
|
|
29
27
|
"optionalDependencies": {
|
|
30
28
|
"@fortawesome/fontawesome-free": "^6.0.0"
|
package/assets/draw.scss
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
mat-drawer-container {
|
|
2
|
-
background-color: white;
|
|
3
|
-
&.flex, &[flex] {
|
|
4
|
-
flex: 1;
|
|
5
|
-
::ng-deep {
|
|
6
|
-
.mat-drawer-inner-container {
|
|
7
|
-
display:flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: stretch;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
mat-drawer-content {
|
|
14
|
-
display:flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: stretch;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
}
|
package/assets/layout.scss
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, HostBinding, Input, ViewChild } from '@angular/core';
|
|
3
|
-
import { Dsl, ListModel, Proxify, proxify, StoreInListModel, StoreInValueModel, ValueModel } from "@coolon/pectin";
|
|
4
|
-
import { isEmpty } from "lodash-es";
|
|
5
|
-
import { HorizontalAlignment } from "../../alignment";
|
|
6
|
-
import { CommandFace as CommandFaceUtils } from '../command-face';
|
|
7
|
-
import { PopupAwareComponent } from "../group/popup-aware.component";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@angular/common";
|
|
10
|
-
import * as i2 from "@angular/material/button";
|
|
11
|
-
import * as i3 from "@angular/material/tooltip";
|
|
12
|
-
import * as i4 from "@angular/material/menu";
|
|
13
|
-
import * as i5 from "../command-face/command-face.component";
|
|
14
|
-
export class ButtonRendererComponent extends PopupAwareComponent {
|
|
15
|
-
#faces$_accessor_storage = proxify((ListModel));
|
|
16
|
-
get faces$() { return this.#faces$_accessor_storage; }
|
|
17
|
-
set faces$(value) { this.#faces$_accessor_storage = value; }
|
|
18
|
-
#faces_accessor_storage;
|
|
19
|
-
get faces() { return this.#faces_accessor_storage; }
|
|
20
|
-
set faces(value) { this.#faces_accessor_storage = value; }
|
|
21
|
-
#enabled$_accessor_storage = proxify((ValueModel));
|
|
22
|
-
get enabled$() { return this.#enabled$_accessor_storage; }
|
|
23
|
-
set enabled$(value) { this.#enabled$_accessor_storage = value; }
|
|
24
|
-
#enabled_accessor_storage = true;
|
|
25
|
-
get enabled() { return this.#enabled_accessor_storage; }
|
|
26
|
-
set enabled(value) { this.#enabled_accessor_storage = value; }
|
|
27
|
-
#busy$_accessor_storage = proxify((ValueModel));
|
|
28
|
-
get busy$() { return this.#busy$_accessor_storage; }
|
|
29
|
-
set busy$(value) { this.#busy$_accessor_storage = value; }
|
|
30
|
-
#busy_accessor_storage;
|
|
31
|
-
get busy() { return this.#busy_accessor_storage; }
|
|
32
|
-
set busy(value) { this.#busy_accessor_storage = value; }
|
|
33
|
-
alignFace = HorizontalAlignment.CENTER;
|
|
34
|
-
forceRenderAsButton = false;
|
|
35
|
-
matControl;
|
|
36
|
-
buttonStyle$;
|
|
37
|
-
color$;
|
|
38
|
-
activeFace$;
|
|
39
|
-
iconOnly$;
|
|
40
|
-
tooltip$;
|
|
41
|
-
CommandFaceUtils = CommandFaceUtils;
|
|
42
|
-
constructor() {
|
|
43
|
-
super();
|
|
44
|
-
const { chain, when } = Dsl.disposeWith(this);
|
|
45
|
-
this.activeFace$ = chain(this.faces$).first();
|
|
46
|
-
this.buttonStyle$ = chain(this.activeFace$).map(f => CommandFaceUtils.getStyleOf(f));
|
|
47
|
-
this.color$ = chain(this.activeFace$).map(f => CommandFaceUtils.getColorOf(f));
|
|
48
|
-
this.tooltip$ = chain(this.activeFace$).map(f => CommandFaceUtils.getTooltipOf(f));
|
|
49
|
-
this.iconOnly$ = chain(this.faces$).select(face => {
|
|
50
|
-
return isEmpty(CommandFaceUtils.getTextOf(face)) && !isEmpty(CommandFaceUtils.getIconOf(face));
|
|
51
|
-
}).count().equals(chain(this.faces$).count());
|
|
52
|
-
}
|
|
53
|
-
get renderAsMenuItem() {
|
|
54
|
-
return this.inPopup && !this.forceRenderAsButton;
|
|
55
|
-
}
|
|
56
|
-
focus() {
|
|
57
|
-
this.matControl.focus();
|
|
58
|
-
}
|
|
59
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ButtonRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ButtonRendererComponent, selector: "aup-button-renderer", inputs: { faces$: "faces$", faces: "faces", enabled$: "enabled$", enabled: "enabled", busy$: "busy$", busy: "busy", alignFace: "alignFace", forceRenderAsButton: "forceRenderAsButton" }, host: { properties: { "class": "this.alignFace", "class.in-popup": "this.renderAsMenuItem" } }, viewQueries: [{ propertyName: "matControl", first: true, predicate: ["button"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!renderAsMenuItem\">\n <ng-container *ngIf=\"iconOnly$.value\">\n <button #button mat-icon-button [color]=\"color$.value\" [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngIf=\"!iconOnly$.value\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.STROKED\">\n <button #button mat-stroked-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.RAISED\">\n <button #button mat-raised-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button #button mat-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"renderAsMenuItem\">\n <button #button mat-menu-item [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n</ng-container>\n", styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.in-popup{display:contents}:host button{flex:1}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "component", type: i5.CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
61
|
-
}
|
|
62
|
-
__decorate([
|
|
63
|
-
Proxify(),
|
|
64
|
-
__metadata("design:type", ListModel)
|
|
65
|
-
], ButtonRendererComponent.prototype, "faces$", null);
|
|
66
|
-
__decorate([
|
|
67
|
-
StoreInListModel(),
|
|
68
|
-
__metadata("design:type", Array)
|
|
69
|
-
], ButtonRendererComponent.prototype, "faces", null);
|
|
70
|
-
__decorate([
|
|
71
|
-
Proxify(),
|
|
72
|
-
__metadata("design:type", ValueModel)
|
|
73
|
-
], ButtonRendererComponent.prototype, "enabled$", null);
|
|
74
|
-
__decorate([
|
|
75
|
-
StoreInValueModel(),
|
|
76
|
-
__metadata("design:type", Boolean)
|
|
77
|
-
], ButtonRendererComponent.prototype, "enabled", null);
|
|
78
|
-
__decorate([
|
|
79
|
-
Proxify(),
|
|
80
|
-
__metadata("design:type", ValueModel)
|
|
81
|
-
], ButtonRendererComponent.prototype, "busy$", null);
|
|
82
|
-
__decorate([
|
|
83
|
-
StoreInValueModel(),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], ButtonRendererComponent.prototype, "busy", null);
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ButtonRendererComponent, decorators: [{
|
|
87
|
-
type: Component,
|
|
88
|
-
args: [{ selector: 'aup-button-renderer', template: "<ng-container *ngIf=\"!renderAsMenuItem\">\n <ng-container *ngIf=\"iconOnly$.value\">\n <button #button mat-icon-button [color]=\"color$.value\" [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngIf=\"!iconOnly$.value\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.STROKED\">\n <button #button mat-stroked-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtils.Style.RAISED\">\n <button #button mat-raised-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button #button mat-button [color]=\"color$.value\" [disabled]=\"!enabled\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"renderAsMenuItem\">\n <button #button mat-menu-item [disabled]=\"!enabled\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </button>\n</ng-container>\n", styles: [":host{display:inline-flex;flex-direction:row;justify-content:stretch}:host.in-popup{display:contents}:host button{flex:1}:host.centered button{text-align:center}:host.start button{text-align:start}:host.end button{text-align:end}\n"] }]
|
|
89
|
-
}], ctorParameters: function () { return []; }, propDecorators: { faces$: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], faces: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], enabled$: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}], enabled: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}], busy$: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], busy: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], alignFace: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}, {
|
|
104
|
-
type: HostBinding,
|
|
105
|
-
args: ["class"]
|
|
106
|
-
}], forceRenderAsButton: [{
|
|
107
|
-
type: Input
|
|
108
|
-
}], matControl: [{
|
|
109
|
-
type: ViewChild,
|
|
110
|
-
args: ["button"]
|
|
111
|
-
}], renderAs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XT1cImZhY2VzJC52YWx1ZVwiPjwvYXVwLWNvbW1hbmQtZmFjZT5cbiAgICAgICAgPC9idXR0b24+XG4gICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICA8L25nLWNvbnRhaW5lcj5cbiAgPC9uZy1jb250YWluZXI+XG48L25nLWNvbnRhaW5lcj5cblxuPG5nLWNvbnRhaW5lciAqbmdJZj1cInJlbmRlckFzTWVudUl0ZW1cIj5cbiAgPGJ1dHRvbiAjYnV0dG9uIG1hdC1tZW51LWl0ZW0gW2Rpc2FibGVkXT1cIiFlbmFibGVkXCIgW21hdFRvb2x0aXBdPVwidG9vbHRpcCQudmFsdWVcIj5cbiAgICA8YXVwLWNvbW1hbmQtZmFjZSBbY2xhc3NdPVwiYWxpZ25GYWNlXCIgW2ZhY2VzXT1cImZhY2VzJC52YWx1ZVwiPjwvYXVwLWNvbW1hbmQtZmFjZT5cbiAgPC9idXR0b24+XG48L25nLWNvbnRhaW5lcj5cbiJdfQ==
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, HostBinding, Input } from '@angular/core';
|
|
3
|
-
import { Dsl, proxify, Proxify, StoreInValueModel, ValueModel } from '@coolon/pectin';
|
|
4
|
-
import { HorizontalAlignment } from "../../alignment";
|
|
5
|
-
import { CommandFace as CommandFaceUtil } from '../../commands/command-face';
|
|
6
|
-
import { PopupAwareComponent } from '../../commands/group/popup-aware.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/common";
|
|
9
|
-
import * as i2 from "@angular/material/button";
|
|
10
|
-
import * as i3 from "@angular/material/tooltip";
|
|
11
|
-
import * as i4 from "@angular/material/menu";
|
|
12
|
-
import * as i5 from "../../commands/command-face/command-face.component";
|
|
13
|
-
// TODO: this is an ugly copy and paste hack from the Command component.
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
export class FileDownloadComponent extends PopupAwareComponent {
|
|
18
|
-
CommandFaceUtil = CommandFaceUtil;
|
|
19
|
-
#download$_accessor_storage = proxify((ValueModel));
|
|
20
|
-
get download$() { return this.#download$_accessor_storage; }
|
|
21
|
-
set download$(value) { this.#download$_accessor_storage = value; }
|
|
22
|
-
#download_accessor_storage;
|
|
23
|
-
get download() { return this.#download_accessor_storage; }
|
|
24
|
-
set download(value) { this.#download_accessor_storage = value; }
|
|
25
|
-
alignFace = HorizontalAlignment.CENTER;
|
|
26
|
-
faces$;
|
|
27
|
-
buttonStyle$;
|
|
28
|
-
color$;
|
|
29
|
-
tooltip$;
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
const { chain } = Dsl.disposeWith(this);
|
|
33
|
-
this.faces$ = chain(this.download$).map(it => {
|
|
34
|
-
return it.icon ? it : {
|
|
35
|
-
...it,
|
|
36
|
-
icon() {
|
|
37
|
-
return 'mat:file_download';
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
}).mapToList();
|
|
41
|
-
this.buttonStyle$ = chain(this.download$).map(f => CommandFaceUtil.getStyleOf(f));
|
|
42
|
-
this.color$ = chain(this.download$).map(f => CommandFaceUtil.getColorOf(f));
|
|
43
|
-
this.tooltip$ = chain(this.download$).map(f => CommandFaceUtil.getTooltipOf(f));
|
|
44
|
-
}
|
|
45
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FileDownloadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FileDownloadComponent, selector: "aup-file-download", inputs: { download$: "download$", download: "download", alignFace: "alignFace" }, host: { properties: { "class": "this.alignFace" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!inPopup\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtil.Style.STROKED\">\n <a mat-stroked-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtil.Style.RAISED\">\n <a mat-raised-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <a mat-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n </ng-container>\n\n</ng-container>\n\n<ng-container *ngIf=\"inPopup\">\n <a mat-menu-item [href]=\"download?.url\" [download]=\"download?.saveAs\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n</ng-container>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "component", type: i5.CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }] });
|
|
47
|
-
}
|
|
48
|
-
__decorate([
|
|
49
|
-
Proxify(),
|
|
50
|
-
__metadata("design:type", ValueModel)
|
|
51
|
-
], FileDownloadComponent.prototype, "download$", null);
|
|
52
|
-
__decorate([
|
|
53
|
-
StoreInValueModel(),
|
|
54
|
-
__metadata("design:type", Object)
|
|
55
|
-
], FileDownloadComponent.prototype, "download", null);
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FileDownloadComponent, decorators: [{
|
|
57
|
-
type: Component,
|
|
58
|
-
args: [{ selector: 'aup-file-download', template: "<ng-container *ngIf=\"!inPopup\">\n <ng-container [ngSwitch]=\"buttonStyle$.value\">\n <ng-container *ngSwitchCase=\"CommandFaceUtil.Style.STROKED\">\n <a mat-stroked-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"CommandFaceUtil.Style.RAISED\">\n <a mat-raised-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <a mat-button [href]=\"download?.url\" [download]=\"download?.saveAs\"\n [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n </ng-container>\n </ng-container>\n\n</ng-container>\n\n<ng-container *ngIf=\"inPopup\">\n <a mat-menu-item [href]=\"download?.url\" [download]=\"download?.saveAs\" [matTooltip]=\"tooltip$.value\">\n <aup-command-face [class]=\"alignFace\" [faces]=\"faces$.value\"></aup-command-face>\n </a>\n</ng-container>\n\n" }]
|
|
59
|
-
}], ctorParameters: function () { return []; }, propDecorators: { download$: [{
|
|
60
|
-
type: Input
|
|
61
|
-
}], download: [{
|
|
62
|
-
type: Input
|
|
63
|
-
}], alignFace: [{
|
|
64
|
-
type: Input
|
|
65
|
-
}, {
|
|
66
|
-
type: HostBinding,
|
|
67
|
-
args: ["class"]
|
|
68
|
-
}] } });
|
|
69
|
-
(function (FileDownloadComponent) {
|
|
70
|
-
function createInfo(options) {
|
|
71
|
-
return {
|
|
72
|
-
...options,
|
|
73
|
-
...options.face,
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
FileDownloadComponent.createInfo = createInfo;
|
|
77
|
-
})(FileDownloadComponent || (FileDownloadComponent = {}));
|
|
78
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1kb3dubG9hZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL2ZpbGUvZmlsZS1kb3dubG9hZC9maWxlLWRvd25sb2FkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvZmlsZS9maWxlLWRvd25sb2FkL2ZpbGUtZG93bmxvYWQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQWMsV0FBVyxFQUFVLEtBQUssRUFBVyxNQUFNLGVBQWUsQ0FBQztBQUcxRixPQUFPLEVBRUwsR0FBRyxFQUVILE9BQU8sRUFDUCxPQUFPLEVBQ1AsaUJBQWlCLEVBQ2pCLFVBQVUsRUFFWCxNQUFNLGdCQUFnQixDQUFDO0FBQ3hCLE9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BdPVwidG9vbHRpcCQudmFsdWVcIj5cbiAgICAgICAgPGF1cC1jb21tYW5kLWZhY2UgW2NsYXNzXT1cImFsaWduRmFjZVwiIFtmYWNlc109XCJmYWNlcyQudmFsdWVcIj48L2F1cC1jb21tYW5kLWZhY2U+XG4gICAgICA8L2E+XG4gICAgPC9uZy1jb250YWluZXI+XG4gICAgPG5nLWNvbnRhaW5lciAqbmdTd2l0Y2hEZWZhdWx0PlxuICAgICAgPGEgbWF0LWJ1dHRvbiBbaHJlZl09XCJkb3dubG9hZD8udXJsXCIgW2Rvd25sb2FkXT1cImRvd25sb2FkPy5zYXZlQXNcIlxuICAgICAgICAgW21hdFRvb2x0aXBdPVwidG9vbHRpcCQudmFsdWVcIj5cbiAgICAgICAgPGF1cC1jb21tYW5kLWZhY2UgW2NsYXNzXT1cImFsaWduRmFjZVwiIFtmYWNlc109XCJmYWNlcyQudmFsdWVcIj48L2F1cC1jb21tYW5kLWZhY2U+XG4gICAgICA8L2E+XG4gICAgPC9uZy1jb250YWluZXI+XG4gIDwvbmctY29udGFpbmVyPlxuXG48L25nLWNvbnRhaW5lcj5cblxuPG5nLWNvbnRhaW5lciAqbmdJZj1cImluUG9wdXBcIj5cbiAgPGEgbWF0LW1lbnUtaXRlbSBbaHJlZl09XCJkb3dubG9hZD8udXJsXCIgW2Rvd25sb2FkXT1cImRvd25sb2FkPy5zYXZlQXNcIiBbbWF0VG9vbHRpcF09XCJ0b29sdGlwJC52YWx1ZVwiPlxuICAgIDxhdXAtY29tbWFuZC1mYWNlIFtjbGFzc109XCJhbGlnbkZhY2VcIiBbZmFjZXNdPVwiZmFjZXMkLnZhbHVlXCI+PC9hdXAtY29tbWFuZC1mYWNlPlxuICA8L2E+XG48L25nLWNvbnRhaW5lcj5cblxuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2NvbXBvbmVudHMvZm9ybXMvZm9ybS1maWVsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBGb3JtRmllbGQge1xuICBsYWJlbCgpOnN0cmluZztcbiAgaGludD8oKTpzdHJpbmc7XG4gIHBsYWNlaG9sZGVyPygpOnN0cmluZztcbn1cbiJdfQ==
|