@dereekb/dbx-web 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/README.md +1 -1
  2. package/_index.scss +5 -2
  3. package/esm2020/lib/action/action.confirm.directive.mjs +7 -7
  4. package/esm2020/lib/action/action.module.mjs +5 -10
  5. package/esm2020/lib/action/index.mjs +2 -2
  6. package/esm2020/lib/action/key.trigger.directive.mjs +6 -6
  7. package/esm2020/lib/action/snackbar/action.snackbar.component.mjs +95 -0
  8. package/esm2020/lib/action/snackbar/action.snackbar.default.mjs +107 -0
  9. package/esm2020/lib/action/snackbar/action.snackbar.directive.mjs +62 -0
  10. package/esm2020/lib/action/snackbar/action.snackbar.generator.mjs +44 -0
  11. package/esm2020/lib/action/snackbar/action.snackbar.mjs +2 -0
  12. package/esm2020/lib/action/snackbar/action.snackbar.module.mjs +51 -0
  13. package/esm2020/lib/action/snackbar/action.snackbar.service.mjs +82 -0
  14. package/esm2020/lib/action/snackbar/index.mjs +8 -0
  15. package/esm2020/lib/action/transition/action.transition.module.mjs +4 -4
  16. package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +8 -7
  17. package/esm2020/lib/action/transition/transition.safety.directive.mjs +6 -6
  18. package/esm2020/lib/button/button.component.mjs +4 -5
  19. package/esm2020/lib/button/button.module.mjs +16 -12
  20. package/esm2020/lib/button/button.spacer.component.mjs +12 -10
  21. package/esm2020/lib/dbx-web.module.mjs +8 -8
  22. package/esm2020/lib/error/error.action.directive.mjs +6 -6
  23. package/esm2020/lib/error/error.component.mjs +3 -3
  24. package/esm2020/lib/error/error.loading.directive.mjs +3 -3
  25. package/esm2020/lib/error/error.module.mjs +4 -4
  26. package/esm2020/lib/interaction/dialog/abstract.dialog.directive.mjs +3 -3
  27. package/esm2020/lib/interaction/dialog/dialog.content.component.mjs +3 -3
  28. package/esm2020/lib/interaction/dialog/dialog.module.mjs +4 -4
  29. package/esm2020/lib/interaction/filter/filter.module.mjs +4 -4
  30. package/esm2020/lib/interaction/filter/filter.popover.button.component.mjs +3 -3
  31. package/esm2020/lib/interaction/filter/filter.popover.button.directive.mjs +3 -3
  32. package/esm2020/lib/interaction/filter/filter.popover.component.mjs +3 -3
  33. package/esm2020/lib/interaction/filter/filter.wrapper.component.mjs +3 -3
  34. package/esm2020/lib/interaction/interaction.module.mjs +4 -4
  35. package/esm2020/lib/interaction/popover/abstract.popover.directive.mjs +3 -3
  36. package/esm2020/lib/interaction/popover/abstract.popover.ref.directive.mjs +6 -6
  37. package/esm2020/lib/interaction/popover/popover.action.button.directive.mjs +9 -9
  38. package/esm2020/lib/interaction/popover/popover.action.directive.mjs +6 -6
  39. package/esm2020/lib/interaction/popover/popover.component.mjs +3 -3
  40. package/esm2020/lib/interaction/popover/popover.content.component.mjs +3 -3
  41. package/esm2020/lib/interaction/popover/popover.controls.directive.mjs +3 -3
  42. package/esm2020/lib/interaction/popover/popover.coordinator.component.mjs +3 -3
  43. package/esm2020/lib/interaction/popover/popover.coordinator.service.mjs +3 -3
  44. package/esm2020/lib/interaction/popover/popover.header.component.mjs +3 -3
  45. package/esm2020/lib/interaction/popover/popover.module.mjs +4 -4
  46. package/esm2020/lib/interaction/popover/popover.scroll.content.component.mjs +3 -3
  47. package/esm2020/lib/interaction/popover/popover.service.mjs +3 -3
  48. package/esm2020/lib/interaction/popup/abstract.popup.directive.mjs +3 -3
  49. package/esm2020/lib/interaction/popup/popup.component.mjs +3 -3
  50. package/esm2020/lib/interaction/popup/popup.content.component.mjs +3 -3
  51. package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +6 -6
  52. package/esm2020/lib/interaction/popup/popup.controls.component.mjs +3 -3
  53. package/esm2020/lib/interaction/popup/popup.coordinator.component.mjs +3 -3
  54. package/esm2020/lib/interaction/popup/popup.coordinator.service.mjs +3 -3
  55. package/esm2020/lib/interaction/popup/popup.module.mjs +4 -4
  56. package/esm2020/lib/interaction/popup/popup.service.mjs +3 -3
  57. package/esm2020/lib/interaction/prompt/prompt.box.component.mjs +3 -3
  58. package/esm2020/lib/interaction/prompt/prompt.button.confirm.directive.mjs +3 -3
  59. package/esm2020/lib/interaction/prompt/prompt.component.mjs +3 -3
  60. package/esm2020/lib/interaction/prompt/prompt.confirm.component.mjs +3 -3
  61. package/esm2020/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +3 -3
  62. package/esm2020/lib/interaction/prompt/prompt.confirm.directive.mjs +6 -6
  63. package/esm2020/lib/interaction/prompt/prompt.module.mjs +4 -4
  64. package/esm2020/lib/interaction/prompt/prompt.page.component.mjs +3 -3
  65. package/esm2020/lib/keypress/keydown.listener.directive.mjs +3 -3
  66. package/esm2020/lib/keypress/keypress.module.mjs +4 -4
  67. package/esm2020/lib/layout/bar/bar.directive.mjs +3 -3
  68. package/esm2020/lib/layout/bar/bar.header.component.mjs +3 -3
  69. package/esm2020/lib/layout/bar/bar.layout.module.mjs +4 -4
  70. package/esm2020/lib/layout/bar/pagebar.component.mjs +3 -3
  71. package/esm2020/lib/layout/block/block.layout.module.mjs +4 -4
  72. package/esm2020/lib/layout/block/two.block.component.mjs +3 -3
  73. package/esm2020/lib/layout/card/card.box.component.mjs +3 -3
  74. package/esm2020/lib/layout/card/card.box.container.component.mjs +3 -3
  75. package/esm2020/lib/layout/card/card.box.layout.module.mjs +4 -4
  76. package/esm2020/lib/layout/column/column.layout.module.mjs +4 -4
  77. package/esm2020/lib/layout/column/one/one.column.component.mjs +3 -3
  78. package/esm2020/lib/layout/column/one/one.column.module.mjs +4 -4
  79. package/esm2020/lib/layout/column/two/two.column.back.directive.mjs +3 -3
  80. package/esm2020/lib/layout/column/two/two.column.component.mjs +3 -3
  81. package/esm2020/lib/layout/column/two/two.column.full.left.directive.mjs +3 -3
  82. package/esm2020/lib/layout/column/two/two.column.head.component.mjs +3 -3
  83. package/esm2020/lib/layout/column/two/two.column.module.mjs +4 -4
  84. package/esm2020/lib/layout/column/two/two.column.right.component.mjs +3 -3
  85. package/esm2020/lib/layout/column/two/two.column.sref.directive.mjs +3 -3
  86. package/esm2020/lib/layout/column/two/two.column.store.mjs +3 -3
  87. package/esm2020/lib/layout/compact/compact.directive.mjs +3 -3
  88. package/esm2020/lib/layout/compact/compact.layout.module.mjs +4 -4
  89. package/esm2020/lib/layout/compact/compact.store.mjs +3 -3
  90. package/esm2020/lib/layout/content/content.border.directive.mjs +3 -3
  91. package/esm2020/lib/layout/content/content.box.directive.mjs +3 -3
  92. package/esm2020/lib/layout/content/content.container.directive.mjs +3 -3
  93. package/esm2020/lib/layout/content/content.directive.mjs +3 -3
  94. package/esm2020/lib/layout/content/content.elevate.directive.mjs +3 -3
  95. package/esm2020/lib/layout/content/content.layout.module.mjs +4 -4
  96. package/esm2020/lib/layout/content/content.page.directive.mjs +3 -3
  97. package/esm2020/lib/layout/flag/flag.component.mjs +3 -3
  98. package/esm2020/lib/layout/flag/flag.layout.module.mjs +4 -4
  99. package/esm2020/lib/layout/flag/flag.prompt.component.mjs +3 -3
  100. package/esm2020/lib/layout/flex/flex.group.directive.mjs +3 -3
  101. package/esm2020/lib/layout/flex/flex.layout.module.mjs +4 -4
  102. package/esm2020/lib/layout/flex/flex.size.directive.mjs +3 -3
  103. package/esm2020/lib/layout/item/item.icon.component.mjs +3 -3
  104. package/esm2020/lib/layout/item/item.layout.module.mjs +4 -4
  105. package/esm2020/lib/layout/layout.module.mjs +4 -4
  106. package/esm2020/lib/layout/list/list.component.mjs +6 -6
  107. package/esm2020/lib/layout/list/list.content.empty.component.mjs +3 -3
  108. package/esm2020/lib/layout/list/list.directive.mjs +6 -6
  109. package/esm2020/lib/layout/list/list.layout.module.mjs +4 -4
  110. package/esm2020/lib/layout/list/list.view.directive.mjs +3 -3
  111. package/esm2020/lib/layout/list/list.view.selection.directive.mjs +3 -3
  112. package/esm2020/lib/layout/list/list.view.value.component.mjs +3 -3
  113. package/esm2020/lib/layout/list/list.view.value.directive.mjs +3 -3
  114. package/esm2020/lib/layout/list/list.view.value.item.directive.mjs +3 -3
  115. package/esm2020/lib/layout/list/list.view.value.selection.component.mjs +6 -6
  116. package/esm2020/lib/layout/section/section.component.mjs +3 -3
  117. package/esm2020/lib/layout/section/section.header.component.mjs +9 -6
  118. package/esm2020/lib/layout/section/section.intro.component.mjs +3 -3
  119. package/esm2020/lib/layout/section/section.layout.module.mjs +4 -4
  120. package/esm2020/lib/layout/section/section.page.component.mjs +3 -3
  121. package/esm2020/lib/layout/section/subsection.component.mjs +3 -3
  122. package/esm2020/lib/layout/step/step.component.mjs +3 -3
  123. package/esm2020/lib/layout/step/step.layout.module.mjs +4 -4
  124. package/esm2020/lib/layout/style/spacer.directive.mjs +3 -3
  125. package/esm2020/lib/layout/style/style.body.directive.mjs +3 -3
  126. package/esm2020/lib/layout/style/style.directive.mjs +3 -3
  127. package/esm2020/lib/layout/style/style.layout.module.mjs +4 -4
  128. package/esm2020/lib/layout/style/style.service.mjs +3 -3
  129. package/esm2020/lib/layout/style/style.set.directive.mjs +3 -3
  130. package/esm2020/lib/layout/text/hint.component.mjs +3 -3
  131. package/esm2020/lib/layout/text/icon.spacer.component.mjs +19 -0
  132. package/esm2020/lib/layout/text/index.mjs +2 -1
  133. package/esm2020/lib/layout/text/label.component.mjs +3 -3
  134. package/esm2020/lib/layout/text/linkify.component.mjs +3 -3
  135. package/esm2020/lib/layout/text/note.component.mjs +3 -3
  136. package/esm2020/lib/layout/text/notice.component.mjs +3 -3
  137. package/esm2020/lib/layout/text/ok.component.mjs +3 -3
  138. package/esm2020/lib/layout/text/success.component.mjs +3 -3
  139. package/esm2020/lib/layout/text/text.chips.component.mjs +3 -3
  140. package/esm2020/lib/layout/text/text.module.mjs +14 -9
  141. package/esm2020/lib/layout/text/warn.component.mjs +3 -3
  142. package/esm2020/lib/loading/basic-loading.component.mjs +3 -3
  143. package/esm2020/lib/loading/index.mjs +2 -1
  144. package/esm2020/lib/loading/loading-progress.component.mjs +3 -3
  145. package/esm2020/lib/loading/loading.action.directive.mjs +37 -0
  146. package/esm2020/lib/loading/loading.component.mjs +3 -3
  147. package/esm2020/lib/loading/loading.module.mjs +14 -9
  148. package/esm2020/lib/router/layout/anchor/anchor.component.mjs +3 -3
  149. package/esm2020/lib/router/layout/anchor/anchor.content.component.mjs +21 -0
  150. package/esm2020/lib/router/layout/anchor/anchor.icon.component.mjs +3 -3
  151. package/esm2020/lib/router/layout/anchor/anchor.link.component.mjs +3 -3
  152. package/esm2020/lib/router/layout/anchor/anchor.module.mjs +14 -9
  153. package/esm2020/lib/router/layout/anchor/anchor.segue.directive.mjs +3 -3
  154. package/esm2020/lib/router/layout/anchor/index.mjs +2 -1
  155. package/esm2020/lib/router/layout/anchorlist/anchorlist.component.mjs +3 -3
  156. package/esm2020/lib/router/layout/anchorlist/anchorlist.module.mjs +4 -4
  157. package/esm2020/lib/router/layout/layout.module.mjs +4 -4
  158. package/esm2020/lib/router/layout/navbar/navbar.component.mjs +3 -3
  159. package/esm2020/lib/router/layout/navbar/navbar.module.mjs +4 -4
  160. package/esm2020/lib/router/layout/sidenav/sidenav.button.component.mjs +3 -3
  161. package/esm2020/lib/router/layout/sidenav/sidenav.component.mjs +3 -3
  162. package/esm2020/lib/router/layout/sidenav/sidenav.module.mjs +4 -4
  163. package/esm2020/lib/router/layout/sidenav/sidenav.page.component.mjs +3 -3
  164. package/esm2020/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +4 -4
  165. package/esm2020/lib/router/provider/ngrouter/anchor.component.mjs +3 -3
  166. package/esm2020/lib/router/provider/ngrouter/angular.router.module.mjs +4 -4
  167. package/esm2020/lib/router/provider/uirouter/anchor.component.mjs +3 -3
  168. package/esm2020/lib/router/provider/uirouter/uirouter.router.module.mjs +4 -4
  169. package/esm2020/lib/screen/screen.module.mjs +4 -4
  170. package/esm2020/lib/screen/screen.service.mjs +3 -3
  171. package/fesm2015/dereekb-dbx-web.mjs +1300 -913
  172. package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
  173. package/fesm2020/dereekb-dbx-web.mjs +1297 -910
  174. package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
  175. package/lib/action/_action.scss +8 -35
  176. package/lib/action/action.confirm.directive.d.ts +13 -4
  177. package/lib/action/action.module.d.ts +9 -10
  178. package/lib/action/index.d.ts +1 -1
  179. package/lib/action/key.trigger.directive.d.ts +3 -3
  180. package/lib/action/snackbar/_snackbar.scss +33 -0
  181. package/lib/action/snackbar/action.snackbar.component.d.ts +36 -0
  182. package/lib/action/snackbar/action.snackbar.d.ts +52 -0
  183. package/lib/action/snackbar/action.snackbar.default.d.ts +2 -0
  184. package/lib/action/snackbar/action.snackbar.directive.d.ts +25 -0
  185. package/lib/action/snackbar/action.snackbar.generator.d.ts +32 -0
  186. package/lib/action/snackbar/action.snackbar.module.d.ts +14 -0
  187. package/lib/action/snackbar/action.snackbar.service.d.ts +39 -0
  188. package/lib/action/snackbar/index.d.ts +7 -0
  189. package/lib/action/transition/transition.safety.directive.d.ts +3 -3
  190. package/lib/button/button.module.d.ts +2 -1
  191. package/lib/button/button.spacer.component.d.ts +4 -4
  192. package/lib/error/error.action.directive.d.ts +3 -3
  193. package/lib/interaction/popover/popover.action.button.directive.d.ts +3 -3
  194. package/lib/interaction/popover/popover.action.directive.d.ts +3 -3
  195. package/lib/layout/content/_content.scss +13 -0
  196. package/lib/layout/section/section.header.component.d.ts +1 -0
  197. package/lib/layout/text/icon.spacer.component.d.ts +8 -0
  198. package/lib/layout/text/index.d.ts +1 -0
  199. package/lib/layout/text/text.module.d.ts +6 -5
  200. package/lib/loading/index.d.ts +1 -0
  201. package/lib/loading/loading.action.directive.d.ts +19 -0
  202. package/lib/loading/loading.module.d.ts +6 -5
  203. package/lib/router/layout/anchor/anchor.content.component.d.ts +11 -0
  204. package/lib/router/layout/anchor/anchor.module.d.ts +6 -5
  205. package/lib/router/layout/anchor/index.d.ts +1 -0
  206. package/lib/style/_all-core.scss +2 -0
  207. package/lib/style/_all-theme.scss +2 -0
  208. package/lib/style/_all-typography.scss +2 -0
  209. package/lib/style/_function.scss +4 -0
  210. package/package.json +21 -20
  211. package/esm2020/lib/action/action.snackbar.component.mjs +0 -104
  212. package/lib/action/action.snackbar.component.d.ts +0 -22
@@ -0,0 +1,11 @@
1
+ import { ClickableAnchorLink } from '@dereekb/dbx-core';
2
+ import { Maybe } from '@dereekb/util';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Component that displays an anchor and a span with the title.
6
+ */
7
+ export declare class DbxAnchorContentComponent {
8
+ anchor: Maybe<Partial<ClickableAnchorLink>>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAnchorContentComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxAnchorContentComponent, "dbx-anchor-content", never, { "anchor": "anchor"; }, {}, never, never>;
11
+ }
@@ -2,12 +2,13 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./anchor.component";
3
3
  import * as i2 from "./anchor.icon.component";
4
4
  import * as i3 from "./anchor.link.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/material/icon";
7
- import * as i6 from "@angular/material/button";
8
- import * as i7 from "@dereekb/dbx-core";
5
+ import * as i4 from "./anchor.content.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/material/icon";
8
+ import * as i7 from "@angular/material/button";
9
+ import * as i8 from "@dereekb/dbx-core";
9
10
  export declare class DbxAnchorModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxAnchorModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxAnchorModule, [typeof i1.DbxAnchorComponent, typeof i2.DbxAnchorIconComponent, typeof i3.DbxAnchorLinkComponent], [typeof i4.CommonModule, typeof i5.MatIconModule, typeof i6.MatButtonModule, typeof i7.DbxInjectedComponentModule], [typeof i1.DbxAnchorComponent, typeof i2.DbxAnchorIconComponent, typeof i3.DbxAnchorLinkComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxAnchorModule, [typeof i1.DbxAnchorComponent, typeof i2.DbxAnchorIconComponent, typeof i3.DbxAnchorLinkComponent, typeof i4.DbxAnchorContentComponent], [typeof i5.CommonModule, typeof i6.MatIconModule, typeof i7.MatButtonModule, typeof i8.DbxInjectedComponentModule], [typeof i1.DbxAnchorComponent, typeof i2.DbxAnchorIconComponent, typeof i3.DbxAnchorLinkComponent, typeof i4.DbxAnchorContentComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxAnchorModule>;
13
14
  }
@@ -3,3 +3,4 @@ export * from './anchor.icon.component';
3
3
  export * from './anchor.module';
4
4
  export * from './anchor.segue.directive';
5
5
  export * from './anchor.link.component';
6
+ export * from './anchor.content.component';
@@ -1,3 +1,4 @@
1
+ @use '../action/action';
1
2
  @use '../button/button';
2
3
  @use '../error/error';
3
4
  @use '../interaction/interaction';
@@ -8,6 +9,7 @@
8
9
  @mixin all-component-core() {
9
10
  @include button.core();
10
11
  @include error.core();
12
+ @include action.all-action-core();
11
13
  @include interaction.all-interaction-core();
12
14
  @include layout.all-layout-core();
13
15
  @include router.all-router-core();
@@ -1,4 +1,5 @@
1
1
  @use './theming';
2
+ @use '../action/action';
2
3
  @use '../button/button';
3
4
  @use '../error/error';
4
5
  @use '../interaction/interaction';
@@ -9,6 +10,7 @@
9
10
  @mixin all-component-themes($theme-config) {
10
11
  @include button.theme($theme-config);
11
12
  @include error.theme($theme-config);
13
+ @include action.all-action-theme($theme-config);
12
14
  @include interaction.all-interaction-theme($theme-config);
13
15
  @include layout.all-layout-theme($theme-config);
14
16
  @include router.all-router-theme($theme-config);
@@ -1,4 +1,5 @@
1
1
  @use './theming';
2
+ @use '../action/action';
2
3
  @use '../button/button';
3
4
  @use '../error/error';
4
5
  @use '../interaction/interaction';
@@ -9,6 +10,7 @@
9
10
  @mixin all-component-typographies($typography-config) {
10
11
  @include button.typography($typography-config);
11
12
  @include error.typography($typography-config);
13
+ @include action.all-action-typography($typography-config);
12
14
  @include interaction.all-interaction-typography($typography-config);
13
15
  @include layout.all-layout-typography($typography-config);
14
16
  @include router.all-router-typography($typography-config);
@@ -0,0 +1,4 @@
1
+
2
+ @function vh($from100: 100) {
3
+ @return calc(var(--vh100) * ($from100 / 100));
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },
@@ -25,36 +25,37 @@
25
25
  },
26
26
  "sideEffects": false,
27
27
  "peerDependencies": {
28
- "@angular/core": "^13.2.0",
29
- "@angular/material": "^13.2.0",
30
- "@dereekb/rxjs": "1.0.0",
28
+ "@angular/core": "^13.0.0",
29
+ "@angular/material": "^13.0.0",
30
+ "@dereekb/rxjs": "2.0.0",
31
31
  "rxjs": "^7.5.2",
32
- "@dereekb/util": "1.0.0",
32
+ "@dereekb/util": "2.0.0",
33
33
  "extra-set": "^2.2.11",
34
+ "make-error": "^1.3.0",
34
35
  "ms": "^3.0.0-canary.1",
35
- "@dereekb/dbx-core": "1.0.0",
36
- "@angular/common": "^13.2.0",
36
+ "@dereekb/dbx-core": "2.0.0",
37
+ "@angular/common": "^13.0.0",
37
38
  "@ngrx/component-store": "^13.0.2",
38
39
  "@ngrx/data": "^13.0.2",
39
40
  "@ngrx/effects": "^13.0.2",
40
41
  "@ngrx/entity": "^13.0.2",
41
42
  "@ngrx/store": "^13.0.2",
42
- "@angular/platform-browser": "^13.2.0",
43
- "date-fns": "2.28.0",
44
- "@dereekb/date": "1.0.0",
45
- "class-transformer": "0.5.1",
46
- "class-validator": "0.13.2",
47
- "date-fns-tz": "1.2.2",
48
- "rrule": "dereekb/rrule#17adf5708d6567b4d01a3a8afd106261421ea492",
49
- "@angular/router": "^13.2.0",
43
+ "@angular/platform-browser": "^13.0.0",
44
+ "date-fns": "^2.28.0",
45
+ "@dereekb/date": "2.0.0",
46
+ "class-transformer": "^0.5.1",
47
+ "class-validator": "^0.13.2",
48
+ "date-fns-tz": "^1.2.2",
49
+ "rrule": "git+https://git@github.com/dereekb/rrule.git#17adf5708d6567b4d01a3a8afd106261421ea492",
50
+ "@angular/router": "^13.0.0",
50
51
  "@uirouter/core": "^6.0.8",
51
52
  "@uirouter/angular": "^9.1.0",
52
- "mat-progress-buttons": "9.3.1",
53
- "@angular/flex-layout": "^13.0.0-beta.36",
54
- "ng-overlay-container": "11.0.4",
55
- "@angular/cdk": "^13.2.0",
53
+ "mat-progress-buttons": "git+https://git@github.com/dereekb/mat-progress-buttons.git#60b0374a45644e8756f20b8d761738151ca3df64",
54
+ "@angular/flex-layout": "^13.0.0-beta.38",
55
+ "ng-overlay-container": "^13.0.0",
56
+ "@angular/cdk": "^13.0.0",
56
57
  "angular-resize-event": "^3.1.1",
57
- "ngx-infinite-scroll": "10.0.1",
58
+ "ngx-infinite-scroll": "^10.0.1",
58
59
  "linkify-string": "4.0.0-beta.3"
59
60
  }
60
61
  }
@@ -1,104 +0,0 @@
1
- import { distinctUntilChanged, shareReplay } from 'rxjs';
2
- import { Component, Inject } from '@angular/core';
3
- import { MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
4
- import ms from 'ms';
5
- import { map } from 'rxjs/operators';
6
- import { ActionState } from '@dereekb/dbx-core';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/material/snack-bar";
9
- import * as i2 from "../button/button.component";
10
- import * as i3 from "../button/button.spacer.component";
11
- import * as i4 from "@angular/common";
12
- import * as i5 from "@dereekb/dbx-core";
13
- /**
14
- * Component for a snackbar that contains an action.
15
- */
16
- export class DbxActionSnackbarComponent {
17
- constructor(snackbar, data) {
18
- this.snackbar = snackbar;
19
- this.data = data;
20
- this.complete$ = this.actionSourceInstance.isSuccess$;
21
- this.snackbarStatusClass$ = this.actionSourceInstance.actionState$.pipe(map((x) => {
22
- let classes = 'dbx-action-snackbar-';
23
- switch (x) {
24
- case ActionState.Rejected:
25
- classes += 'error';
26
- break;
27
- case ActionState.Success:
28
- classes += 'success';
29
- break;
30
- default:
31
- classes += 'idle';
32
- break;
33
- }
34
- return classes;
35
- }), distinctUntilChanged(), shareReplay(1));
36
- this.dismissEarly = () => {
37
- this.snackbar._dismissAfter(ms('3s'));
38
- };
39
- this.dismiss = () => {
40
- this.snackbar.dismiss();
41
- };
42
- if (!data.actionSource) {
43
- throw new Error('No action was provided to ActionSnackbar.');
44
- }
45
- }
46
- get message() {
47
- return this.data.message;
48
- }
49
- get action() {
50
- return this.data.action;
51
- }
52
- get actionSourceInstance() {
53
- return this.data.actionSource;
54
- }
55
- }
56
- DbxActionSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSnackbarComponent, deps: [{ token: i1.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
57
- DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DbxActionSnackbarComponent, selector: "ng-component", ngImport: i0, template: `
58
- <div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
59
- <ng-container [ngSwitch]="complete$ | async">
60
- <ng-container *ngSwitchCase="true">
61
- <div class="spacer"></div>
62
- <dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
63
- </ng-container>
64
- <ng-container *ngSwitchCase="false">
65
- <span>{{ message }}</span>
66
- <div class="spacer"></div>
67
- <dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
68
- <dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
69
- </dbx-action>
70
- <dbx-button-spacer></dbx-button-spacer>
71
- <dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
72
- </ng-container>
73
- </ng-container>
74
- </div>
75
- `, isInline: true, components: [{ type: i2.DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }, { type: i3.DbxButtonSpacerComponent, selector: "dbx-button-spacer" }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i5.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action"] }, { type: i5.DbxActionValueDirective, selector: "[dbxActionValue]", inputs: ["dbxActionValue"] }, { type: i5.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { type: i5.DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: ["dbxActionSuccess"] }], pipes: { "async": i4.AsyncPipe } });
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
77
- type: Component,
78
- args: [{
79
- template: `
80
- <div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
81
- <ng-container [ngSwitch]="complete$ | async">
82
- <ng-container *ngSwitchCase="true">
83
- <div class="spacer"></div>
84
- <dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
85
- </ng-container>
86
- <ng-container *ngSwitchCase="false">
87
- <span>{{ message }}</span>
88
- <div class="spacer"></div>
89
- <dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
90
- <dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
91
- </dbx-action>
92
- <dbx-button-spacer></dbx-button-spacer>
93
- <dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
94
- </ng-container>
95
- </ng-container>
96
- </div>
97
- `,
98
- // TODO: styleUrls: ['./action.scss']
99
- }]
100
- }], ctorParameters: function () { return [{ type: i1.MatSnackBarRef }, { type: undefined, decorators: [{
101
- type: Inject,
102
- args: [MAT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AgICAgICBjbGFzc2VzICs9ICdzdWNjZXNzJztcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICBjbGFzc2VzICs9ICdpZGxlJztcbiAgICAgICAgICBicmVhaztcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGNsYXNzZXM7XG4gICAgfSksXG4gICAgZGlzdGluY3RVbnRpbENoYW5nZWQoKSxcbiAgICBzaGFyZVJlcGxheSgxKVxuICApO1xuXG4gIGdldCBtZXNzYWdlKCk6IE1heWJlPHN0cmluZz4ge1xuICAgIHJldHVybiB0aGlzLmRhdGEubWVzc2FnZTtcbiAgfVxuXG4gIGdldCBhY3Rpb24oKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5kYXRhLmFjdGlvbjtcbiAgfVxuXG4gIGdldCBhY3Rpb25Tb3VyY2VJbnN0YW5jZSgpOiBBY3Rpb25Db250ZXh0U3RvcmVTb3VyY2VJbnN0YW5jZSB7XG4gICAgcmV0dXJuIHRoaXMuZGF0YS5hY3Rpb25Tb3VyY2U7XG4gIH1cblxuICBkaXNtaXNzRWFybHkgPSAoKTogdm9pZCA9PiB7XG4gICAgdGhpcy5zbmFja2Jhci5fZGlzbWlzc0FmdGVyKG1zKCczcycpKTtcbiAgfVxuXG4gIGRpc21pc3MgPSAoKTogdm9pZCA9PiB7XG4gICAgdGhpcy5zbmFja2Jhci5kaXNtaXNzKCk7XG4gIH1cblxufVxuIl19
@@ -1,22 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { MatSnackBarRef } from '@angular/material/snack-bar';
3
- import { Maybe } from '@dereekb/util';
4
- import { ActionContextStoreSourceInstance, DbxActionSnackbarComponentConfig } from '@dereekb/dbx-core';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Component for a snackbar that contains an action.
8
- */
9
- export declare class DbxActionSnackbarComponent {
10
- readonly snackbar: MatSnackBarRef<DbxActionSnackbarComponent>;
11
- readonly data: DbxActionSnackbarComponentConfig;
12
- constructor(snackbar: MatSnackBarRef<DbxActionSnackbarComponent>, data: DbxActionSnackbarComponentConfig);
13
- readonly complete$: Observable<boolean>;
14
- readonly snackbarStatusClass$: Observable<string>;
15
- get message(): Maybe<string>;
16
- get action(): string;
17
- get actionSourceInstance(): ActionContextStoreSourceInstance;
18
- dismissEarly: () => void;
19
- dismiss: () => void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSnackbarComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxActionSnackbarComponent, "ng-component", never, {}, {}, never, never>;
22
- }