@frontile/notifications 0.17.0-alpha.9 → 0.17.0-beta.10

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 (37) hide show
  1. package/declarations/-private/get-config.d.ts +1 -1
  2. package/declarations/-private/get-config.d.ts.map +1 -1
  3. package/declarations/-private/manager.d.ts +3 -0
  4. package/declarations/-private/manager.d.ts.map +1 -1
  5. package/declarations/-private/notification.d.ts +2 -2
  6. package/declarations/-private/notification.d.ts.map +1 -1
  7. package/declarations/components/notification-card.d.ts +18 -7
  8. package/declarations/components/notification-card.d.ts.map +1 -1
  9. package/declarations/components/notifications-container.d.ts +7 -1
  10. package/declarations/components/notifications-container.d.ts.map +1 -1
  11. package/declarations/services/notifications.d.ts +0 -2
  12. package/declarations/services/notifications.d.ts.map +1 -1
  13. package/dist/components/notification-card.js +63 -79
  14. package/dist/components/notification-card.js.map +1 -1
  15. package/dist/components/notifications-container.js +20 -30
  16. package/dist/components/notifications-container.js.map +1 -1
  17. package/dist/index.js +1 -2
  18. package/dist/index.js.map +1 -1
  19. package/dist/manager-i6QWzaob.js +166 -0
  20. package/dist/manager-i6QWzaob.js.map +1 -0
  21. package/dist/runtime-BPCpkOf1-DV8zmEr2.js +67 -0
  22. package/dist/runtime-BPCpkOf1-DV8zmEr2.js.map +1 -0
  23. package/dist/services/notifications.js +11 -15
  24. package/dist/services/notifications.js.map +1 -1
  25. package/package.json +50 -55
  26. package/declarations/get-config-a59d13fc.d.ts +0 -3
  27. package/declarations/manager-Bfx-JQOm.d.ts +0 -10
  28. package/declarations/manager-DDspsX9L.d.ts +0 -10
  29. package/declarations/manager-PexDbR1y.d.ts +0 -10
  30. package/declarations/notification-64b501e5.d.ts +0 -15
  31. package/declarations/notifications-02bGKw8W.d.ts +0 -10
  32. package/declarations/notifications-6S2s2xJm.d.ts +0 -10
  33. package/declarations/timer-0a840cef.d.ts +0 -13
  34. package/declarations/timer-dbe538e6.d.ts +0 -13
  35. package/declarations/types-16c08671.d.ts +0 -55
  36. package/dist/manager-DDspsX9L.js +0 -159
  37. package/dist/manager-DDspsX9L.js.map +0 -1
@@ -1,159 +0,0 @@
1
- import _initializerDefineProperty from '@babel/runtime/helpers/esm/initializerDefineProperty';
2
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
- import _applyDecoratedDescriptor from '@babel/runtime/helpers/esm/applyDecoratedDescriptor';
4
- import '@babel/runtime/helpers/esm/initializerWarningHelper';
5
- import { tracked } from '@glimmer/tracking';
6
- import { cancel, later } from '@ember/runloop';
7
- import { action, get } from '@ember/object';
8
- import config from 'ember-get-config';
9
-
10
- var _class$2, _descriptor$2, _descriptor2$1;
11
- let Timer = (_class$2 = class Timer {
12
- constructor(duration, onFinish) {
13
- _initializerDefineProperty(this, "remaining", _descriptor$2, this);
14
- _initializerDefineProperty(this, "isRunning", _descriptor2$1, this);
15
- _defineProperty(this, "onFinish", void 0);
16
- _defineProperty(this, "timer", void 0);
17
- _defineProperty(this, "start", void 0);
18
- this.remaining = duration;
19
- this.onFinish = onFinish;
20
- this.setup();
21
- }
22
- clear() {
23
- this.isRunning = false;
24
- if (this.timer) {
25
- cancel(this.timer);
26
- }
27
- }
28
- pause() {
29
- this.clear();
30
- this.remaining -= Date.now() - this.start;
31
- }
32
- resume() {
33
- this.clear();
34
- this.setup();
35
- }
36
- setup() {
37
- this.start = Date.now();
38
- this.isRunning = true;
39
- this.timer = later(this, () => {
40
- this.onFinish();
41
- this.isRunning = false;
42
- }, this.remaining);
43
- }
44
- }, (_descriptor$2 = _applyDecoratedDescriptor(_class$2.prototype, "remaining", [tracked], {
45
- configurable: true,
46
- enumerable: true,
47
- writable: true,
48
- initializer: null
49
- }), _descriptor2$1 = _applyDecoratedDescriptor(_class$2.prototype, "isRunning", [tracked], {
50
- configurable: true,
51
- enumerable: true,
52
- writable: true,
53
- initializer: function () {
54
- return true;
55
- }
56
- }), _applyDecoratedDescriptor(_class$2.prototype, "clear", [action], Object.getOwnPropertyDescriptor(_class$2.prototype, "clear"), _class$2.prototype), _applyDecoratedDescriptor(_class$2.prototype, "pause", [action], Object.getOwnPropertyDescriptor(_class$2.prototype, "pause"), _class$2.prototype), _applyDecoratedDescriptor(_class$2.prototype, "resume", [action], Object.getOwnPropertyDescriptor(_class$2.prototype, "resume"), _class$2.prototype)), _class$2);
57
-
58
- function getConfigOption(key, defaultValue) {
59
- const value = get(config['@frontile/notifications'] || {}, key);
60
- if (value === undefined) {
61
- return defaultValue;
62
- }
63
- return value;
64
- }
65
-
66
- var _class$1, _descriptor$1, _descriptor2;
67
- let Notification = (_class$1 = class Notification {
68
- constructor(message, options = {}) {
69
- _defineProperty(this, "message", void 0);
70
- _defineProperty(this, "transitionDuration", void 0);
71
- _defineProperty(this, "appearance", void 0);
72
- _defineProperty(this, "customActions", void 0);
73
- _defineProperty(this, "allowClosing", void 0);
74
- _defineProperty(this, "duration", void 0);
75
- _initializerDefineProperty(this, "timer", _descriptor$1, this);
76
- _initializerDefineProperty(this, "isRemoving", _descriptor2, this);
77
- this.message = message;
78
- this.appearance = options.appearance || getConfigOption('appearance', 'info');
79
- this.customActions = options.customActions;
80
- this.duration = options.duration || getConfigOption('duration', 5000);
81
- this.transitionDuration = typeof options.transitionDuration !== 'undefined' ? options.transitionDuration : getConfigOption('transitionDuration', 200);
82
- if (options.allowClosing === false) {
83
- this.allowClosing = false;
84
- } else {
85
- this.allowClosing = true;
86
- }
87
- }
88
- remove() {
89
- this.isRemoving = true;
90
- if (this.timer) {
91
- this.timer.clear();
92
- }
93
- }
94
- }, (_descriptor$1 = _applyDecoratedDescriptor(_class$1.prototype, "timer", [tracked], {
95
- configurable: true,
96
- enumerable: true,
97
- writable: true,
98
- initializer: null
99
- }), _descriptor2 = _applyDecoratedDescriptor(_class$1.prototype, "isRemoving", [tracked], {
100
- configurable: true,
101
- enumerable: true,
102
- writable: true,
103
- initializer: function () {
104
- return false;
105
- }
106
- })), _class$1);
107
-
108
- var _class, _descriptor;
109
- let NotificationsManager = (_class = class NotificationsManager {
110
- constructor() {
111
- _initializerDefineProperty(this, "notifications", _descriptor, this);
112
- }
113
- add(message, options = {}) {
114
- const notification = new Notification(message, options);
115
- this.notifications = [...this.notifications, notification];
116
- let preserve = typeof options.preserve === 'undefined' ? getConfigOption('preserve', false) : options.preserve;
117
-
118
- // if default config has set skipTimer to true, we will preserve the
119
- // notification, therefore skiping the timer
120
- if (getConfigOption('skipTimer', false) === true) {
121
- preserve = true;
122
- }
123
- if (preserve === false) {
124
- this.setupAutoRemoval(notification, notification.duration);
125
- }
126
- return notification;
127
- }
128
- remove(notification) {
129
- if (!notification) {
130
- return;
131
- }
132
- notification.remove();
133
- later(this, () => {
134
- this.notifications = this.notifications.filter(n => {
135
- return n !== notification;
136
- });
137
- }, notification.transitionDuration);
138
- }
139
- removeAll() {
140
- this.notifications.forEach(notification => {
141
- this.remove(notification);
142
- });
143
- }
144
- setupAutoRemoval(notification, duration) {
145
- notification.timer = new Timer(duration, () => {
146
- this.remove(notification);
147
- });
148
- }
149
- }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "notifications", [tracked], {
150
- configurable: true,
151
- enumerable: true,
152
- writable: true,
153
- initializer: function () {
154
- return [];
155
- }
156
- })), _class);
157
-
158
- export { Notification as N, Timer as T, NotificationsManager as a };
159
- //# sourceMappingURL=manager-DDspsX9L.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manager-DDspsX9L.js","sources":["../src/-private/timer.ts","../src/-private/get-config.ts","../src/-private/notification.ts","../src/-private/manager.ts"],"sourcesContent":["/* eslint-disable ember/no-runloop */\nimport { tracked } from '@glimmer/tracking';\nimport { later, cancel } from '@ember/runloop';\nimport type { Timer as EmberTimer } from '@ember/runloop';\nimport { action } from '@ember/object';\n\nexport default class Timer {\n @tracked remaining: number;\n @tracked isRunning = true;\n\n readonly onFinish: () => void;\n private timer?: EmberTimer;\n private start!: number;\n\n constructor(duration: number, onFinish: () => void) {\n this.remaining = duration;\n this.onFinish = onFinish;\n this.setup();\n }\n\n @action clear(): void {\n this.isRunning = false;\n\n if (this.timer) {\n cancel(this.timer);\n }\n }\n\n @action pause(): void {\n this.clear();\n this.remaining -= Date.now() - this.start;\n }\n\n @action resume(): void {\n this.clear();\n this.setup();\n }\n\n private setup(): void {\n this.start = Date.now();\n this.isRunning = true;\n\n this.timer = later(\n this,\n () => {\n this.onFinish();\n this.isRunning = false;\n },\n this.remaining\n );\n }\n}\n","import config from 'ember-get-config';\nimport { get } from '@ember/object';\nimport type { DefaultConfig } from './types';\n\nexport function getConfigOption<T extends keyof DefaultConfig>(\n key: T,\n defaultValue: NonNullable<DefaultConfig[T]>\n): NonNullable<DefaultConfig[T]> {\n const value = get(\n config['@frontile/notifications'] || ({} as never),\n key as never\n );\n\n if (value === undefined) {\n return defaultValue;\n }\n\n return value;\n}\n","import { tracked } from '@glimmer/tracking';\nimport Timer from './timer';\nimport { getConfigOption } from './get-config';\nimport type { NotificationOptions, CustomAction } from './types';\n\nexport default class Notification {\n readonly message: string;\n readonly transitionDuration: number;\n readonly appearance: NonNullable<NotificationOptions['appearance']>;\n readonly customActions?: CustomAction[];\n readonly allowClosing: boolean;\n readonly duration: number;\n\n @tracked timer?: Timer;\n @tracked isRemoving = false;\n\n constructor(message: string, options: NotificationOptions = {}) {\n this.message = message;\n this.appearance =\n options.appearance || getConfigOption('appearance', 'info');\n this.customActions = options.customActions;\n this.duration = options.duration || getConfigOption('duration', 5000);\n this.transitionDuration =\n typeof options.transitionDuration !== 'undefined'\n ? options.transitionDuration\n : getConfigOption('transitionDuration', 200);\n\n if (options.allowClosing === false) {\n this.allowClosing = false;\n } else {\n this.allowClosing = true;\n }\n }\n\n remove(): void {\n this.isRemoving = true;\n\n if (this.timer) {\n this.timer.clear();\n }\n }\n}\n","/* eslint-disable ember/no-runloop */\nimport Notification from './notification';\nimport Timer from './timer';\nimport { getConfigOption } from './get-config';\nimport { tracked } from '@glimmer/tracking';\nimport { later } from '@ember/runloop';\nimport type { NotificationOptions } from './types';\n\nexport default class NotificationsManager {\n @tracked notifications: Notification[] = [];\n\n add(message: string, options: NotificationOptions = {}): Notification {\n const notification = new Notification(message, options);\n this.notifications = [...this.notifications, notification];\n\n let preserve =\n typeof options.preserve === 'undefined'\n ? getConfigOption('preserve', false)\n : options.preserve;\n\n // if default config has set skipTimer to true, we will preserve the\n // notification, therefore skiping the timer\n if (getConfigOption('skipTimer', false) === true) {\n preserve = true;\n }\n\n if (preserve === false) {\n this.setupAutoRemoval(notification, notification.duration);\n }\n return notification;\n }\n\n remove(notification?: Notification): void {\n if (!notification) {\n return;\n }\n\n notification.remove();\n\n later(\n this,\n () => {\n this.notifications = this.notifications.filter((n) => {\n return n !== notification;\n });\n },\n notification.transitionDuration\n );\n }\n\n removeAll(): void {\n this.notifications.forEach((notification) => {\n this.remove(notification);\n });\n }\n\n private setupAutoRemoval(notification: Notification, duration: number): void {\n notification.timer = new Timer(duration, () => {\n this.remove(notification);\n });\n }\n}\n"],"names":["Timer","_class","constructor","duration","onFinish","_initializerDefineProperty","_descriptor","_descriptor2","_defineProperty","remaining","setup","clear","isRunning","timer","cancel","pause","Date","now","start","resume","later","_applyDecoratedDescriptor","prototype","tracked","configurable","enumerable","writable","initializer","action","Object","getOwnPropertyDescriptor","getConfigOption","key","defaultValue","value","get","config","undefined","Notification","message","options","appearance","customActions","transitionDuration","allowClosing","remove","isRemoving","NotificationsManager","add","notification","notifications","preserve","setupAutoRemoval","filter","n","removeAll","forEach"],"mappings":";;;;;;;;;;AAIuC,IAElBA,KAAK,IAAAC,QAAA,GAAX,MAAMD,KAAK,CAAC;AAQzBE,EAAAA,WAAWA,CAACC,QAAgB,EAAEC,QAAoB,EAAE;AAAAC,IAAAA,0BAAA,oBAAAC,aAAA,EAAA,IAAA,CAAA,CAAA;AAAAD,IAAAA,0BAAA,oBAAAE,cAAA,EAAA,IAAA,CAAA,CAAA;IAAAC,eAAA,CAAA,IAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAA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