@frontile/notifications 0.17.0-beta.2 → 0.17.0-beta.20

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 (45) hide show
  1. package/declarations/-private/get-config.d.ts +1 -2
  2. package/declarations/-private/manager.d.ts +7 -4
  3. package/declarations/-private/notification.d.ts +4 -4
  4. package/declarations/-private/timer.d.ts +0 -1
  5. package/declarations/-private/types.d.ts +7 -2
  6. package/declarations/components/notification-card.d.ts +19 -9
  7. package/declarations/components/notifications-container.d.ts +13 -2
  8. package/declarations/index.d.ts +0 -1
  9. package/declarations/services/notifications.d.ts +5 -4
  10. package/declarations/template-registry.d.ts +0 -1
  11. package/dist/components/notification-card.js +40 -56
  12. package/dist/components/notification-card.js.map +1 -1
  13. package/dist/components/notifications-container.js +27 -27
  14. package/dist/components/notifications-container.js.map +1 -1
  15. package/dist/index.js +1 -2
  16. package/dist/index.js.map +1 -1
  17. package/dist/manager-C1Vyhk-A.js +175 -0
  18. package/dist/manager-C1Vyhk-A.js.map +1 -0
  19. package/dist/runtime-BPCpkOf1-B5Lbloj7.js +67 -0
  20. package/dist/runtime-BPCpkOf1-B5Lbloj7.js.map +1 -0
  21. package/dist/services/notifications.js +19 -15
  22. package/dist/services/notifications.js.map +1 -1
  23. package/package.json +48 -52
  24. package/declarations/-private/get-config.d.ts.map +0 -1
  25. package/declarations/-private/manager.d.ts.map +0 -1
  26. package/declarations/-private/notification.d.ts.map +0 -1
  27. package/declarations/-private/timer.d.ts.map +0 -1
  28. package/declarations/-private/types.d.ts.map +0 -1
  29. package/declarations/components/notification-card.d.ts.map +0 -1
  30. package/declarations/components/notifications-container.d.ts.map +0 -1
  31. package/declarations/get-config-a59d13fc.d.ts +0 -4
  32. package/declarations/get-config-a59d13fc.d.ts.map +0 -1
  33. package/declarations/index.d.ts.map +0 -1
  34. package/declarations/manager-IxquV5I2.d.ts +0 -11
  35. package/declarations/manager-IxquV5I2.d.ts.map +0 -1
  36. package/declarations/notification-64b501e5.d.ts +0 -16
  37. package/declarations/notification-64b501e5.d.ts.map +0 -1
  38. package/declarations/services/notifications.d.ts.map +0 -1
  39. package/declarations/template-registry.d.ts.map +0 -1
  40. package/declarations/timer-0a840cef.d.ts +0 -14
  41. package/declarations/timer-0a840cef.d.ts.map +0 -1
  42. package/declarations/types-16c08671.d.ts +0 -56
  43. package/declarations/types-16c08671.d.ts.map +0 -1
  44. package/dist/manager-IxquV5I2.js +0 -159
  45. package/dist/manager-IxquV5I2.js.map +0 -1
@@ -1,56 +0,0 @@
1
- type containerPlacement = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
2
- interface CustomAction {
3
- /**
4
- * The label of the action
5
- */
6
- label: string;
7
- /**
8
- * The function to be called when clicked
9
- */
10
- onClick: () => void;
11
- }
12
- interface NotificationOptions {
13
- /**
14
- * If set to false, the close button will not be displayed.
15
- *
16
- * @defaultValue true
17
- */
18
- allowClosing?: boolean;
19
- /**
20
- * Preserve the notification open, no auto-dismiss.
21
- *
22
- * @defaultValue false
23
- */
24
- preserve?: boolean;
25
- /**
26
- * Duration before the notification is auto-dismissed, in milliseconds.
27
- *
28
- * @defaultValue 5000
29
- */
30
- duration?: number;
31
- transitionDuration?: number;
32
- /**
33
- * The appearance of the notification
34
- *
35
- * @defaultValue 'info'
36
- */
37
- appearance?: 'info' | 'success' | 'warning' | 'error';
38
- /**
39
- * A list of custom actions
40
- *
41
- * @defaultValue undefined
42
- */
43
- customActions?: CustomAction[];
44
- }
45
- interface DefaultConfig extends NotificationOptions {
46
- /**
47
- * If set to true, we will preserve the notification, therefore skiping the timer.
48
- * This is useful in tests because Ember will wait for any runloop to
49
- * finish before proceeding.
50
- *
51
- * @defaultValue false
52
- */
53
- skipTimer?: boolean;
54
- }
55
- export { containerPlacement, CustomAction, NotificationOptions, DefaultConfig };
56
- //# sourceMappingURL=types-16c08671.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-16c08671.d.ts","sourceRoot":"","sources":["../src/-private/types.ts"],"names":[],"mappings":"AAAA,KAAY,kBAAkB,GAC1B,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB,UAAiB,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAiB,mBAAmB;IAClC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAOlB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAEtD;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;CAChC;AAED,UAAiB,aAAc,SAAQ,mBAAmB;IACxD;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
@@ -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-IxquV5I2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manager-IxquV5I2.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;AAAAD,IAAAA,0BAAA,oBAAAE,cAAA,EAAA,IAAA,CAAA;IAAAC,eAAA,CAAA,IAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;IAAAA,eAAA,CAAA,IAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;IAAAA,eAAA,CAAA,IAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;IAClD,IAAI,CAACC,SAAS,GAAGN,QAAQ;IACzB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACM,KAAK,EAAE;AACd;AAEQC,EAAAA,KAAKA,GAAS;IACpB,IAAI,CAACC,SAAS,GAAG,KAAK;IAEtB,IAAI,IAAI,CAACC,KAAK,EAAE;AACdC,MAAAA,MAAM,CAAC,IAAI,CAACD,KAAK,CAAC;AACpB;AACF;AAEQE,EAAAA,KAAKA,GAAS;IACpB,IAAI,CAACJ,KAAK,EAAE;IACZ,IAAI,CAACF,SAAS,IAAIO,IAAI,CAACC,GAAG,EAAE,GAAG,IAAI,CAACC,KAAK;AAC3C;AAEQC,EAAAA,MAAMA,GAAS;IACrB,IAAI,CAACR,KAAK,EAAE;IACZ,IAAI,CAACD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