@getflip/swirl-components 0.9.0 → 0.10.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.
- package/components.json +12 -2
- package/dist/cjs/flip-theme-provider.cjs.entry.js +13 -0
- package/dist/collection/components/flip-theme-provider/flip-theme-provider.js +33 -1
- package/dist/collection/components/flip-theme-provider/flip-theme-provider.stories.js +3 -0
- package/dist/components/flip-theme-provider.js +14 -1
- package/dist/esm/flip-theme-provider.entry.js +14 -1
- package/dist/swirl-components/p-31d676d3.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/flip-theme-provider/flip-theme-provider.d.ts +7 -0
- package/dist/types/components.d.ts +6 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/swirl-components/p-d5ed5f60.entry.js +0 -1
package/components.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2022-12-
|
|
2
|
+
"timestamp": "2022-12-14T13:04:22",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "2.17.3",
|
|
@@ -13466,7 +13466,17 @@
|
|
|
13466
13466
|
"docsTags": []
|
|
13467
13467
|
}
|
|
13468
13468
|
],
|
|
13469
|
-
"events": [
|
|
13469
|
+
"events": [
|
|
13470
|
+
{
|
|
13471
|
+
"event": "themeChange",
|
|
13472
|
+
"detail": "{ activeTheme: FlipTheme; preferredTheme: FlipTheme; }",
|
|
13473
|
+
"bubbles": true,
|
|
13474
|
+
"cancelable": true,
|
|
13475
|
+
"composed": true,
|
|
13476
|
+
"docs": "",
|
|
13477
|
+
"docsTags": []
|
|
13478
|
+
}
|
|
13479
|
+
],
|
|
13470
13480
|
"listeners": [],
|
|
13471
13481
|
"styles": [],
|
|
13472
13482
|
"slots": [],
|
|
@@ -244,6 +244,7 @@ const tenantColorMapping = {
|
|
|
244
244
|
const FlipThemeProvider = class {
|
|
245
245
|
constructor(hostRef) {
|
|
246
246
|
index.registerInstance(this, hostRef);
|
|
247
|
+
this.themeChange = index.createEvent(this, "themeChange", 7);
|
|
247
248
|
}
|
|
248
249
|
componentWillLoad() {
|
|
249
250
|
this.resolveConfig();
|
|
@@ -320,6 +321,18 @@ const FlipThemeProvider = class {
|
|
|
320
321
|
document.documentElement.classList.add("theme-light");
|
|
321
322
|
}
|
|
322
323
|
this.updateTenantVariables();
|
|
324
|
+
const themeChangeEventData = {
|
|
325
|
+
activeTheme: await this.getActiveTheme(),
|
|
326
|
+
preferredTheme: await this.getPreferredTheme(),
|
|
327
|
+
};
|
|
328
|
+
if (!Boolean(this.recentThemeChangeEventData) ||
|
|
329
|
+
themeChangeEventData.activeTheme !==
|
|
330
|
+
this.recentThemeChangeEventData.activeTheme ||
|
|
331
|
+
themeChangeEventData.preferredTheme !==
|
|
332
|
+
this.recentThemeChangeEventData.preferredTheme) {
|
|
333
|
+
this.recentThemeChangeEventData = themeChangeEventData;
|
|
334
|
+
this.themeChange.emit(this.recentThemeChangeEventData);
|
|
335
|
+
}
|
|
323
336
|
}
|
|
324
337
|
updateTenantVariables() {
|
|
325
338
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, h, Host, Method, Prop, Watch } from "@stencil/core";
|
|
1
|
+
import { Component, Event, h, Host, Method, Prop, Watch, } from "@stencil/core";
|
|
2
2
|
import { hsla, parseToHsla, toRgba } from "color2k";
|
|
3
3
|
const preferredThemeStorageKey = "flip-preferred-theme";
|
|
4
4
|
const tenantColorMapping = {
|
|
@@ -94,6 +94,18 @@ export class FlipThemeProvider {
|
|
|
94
94
|
document.documentElement.classList.add("theme-light");
|
|
95
95
|
}
|
|
96
96
|
this.updateTenantVariables();
|
|
97
|
+
const themeChangeEventData = {
|
|
98
|
+
activeTheme: await this.getActiveTheme(),
|
|
99
|
+
preferredTheme: await this.getPreferredTheme(),
|
|
100
|
+
};
|
|
101
|
+
if (!Boolean(this.recentThemeChangeEventData) ||
|
|
102
|
+
themeChangeEventData.activeTheme !==
|
|
103
|
+
this.recentThemeChangeEventData.activeTheme ||
|
|
104
|
+
themeChangeEventData.preferredTheme !==
|
|
105
|
+
this.recentThemeChangeEventData.preferredTheme) {
|
|
106
|
+
this.recentThemeChangeEventData = themeChangeEventData;
|
|
107
|
+
this.themeChange.emit(this.recentThemeChangeEventData);
|
|
108
|
+
}
|
|
97
109
|
}
|
|
98
110
|
updateTenantVariables() {
|
|
99
111
|
var _a;
|
|
@@ -162,6 +174,26 @@ export class FlipThemeProvider {
|
|
|
162
174
|
}
|
|
163
175
|
}
|
|
164
176
|
}; }
|
|
177
|
+
static get events() { return [{
|
|
178
|
+
"method": "themeChange",
|
|
179
|
+
"name": "themeChange",
|
|
180
|
+
"bubbles": true,
|
|
181
|
+
"cancelable": true,
|
|
182
|
+
"composed": true,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": ""
|
|
186
|
+
},
|
|
187
|
+
"complexType": {
|
|
188
|
+
"original": "FlipThemeChangeEventData",
|
|
189
|
+
"resolved": "{ activeTheme: FlipTheme; preferredTheme: FlipTheme; }",
|
|
190
|
+
"references": {
|
|
191
|
+
"FlipThemeChangeEventData": {
|
|
192
|
+
"location": "local"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}]; }
|
|
165
197
|
static get methods() { return {
|
|
166
198
|
"getActiveTheme": {
|
|
167
199
|
"complexType": {
|
|
@@ -74,6 +74,9 @@ const Template = (args) => {
|
|
|
74
74
|
element.resetPreferredTheme();
|
|
75
75
|
});
|
|
76
76
|
element.append(lightModeButton, darkModeButton, tenantButton, resetButton);
|
|
77
|
+
element.addEventListener("themeChange", (event) => {
|
|
78
|
+
console.log(event.detail);
|
|
79
|
+
});
|
|
77
80
|
return element;
|
|
78
81
|
};
|
|
79
82
|
export const FlipThemeProvider = Template.bind({});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A simple guard function:
|
|
@@ -241,6 +241,7 @@ const FlipThemeProvider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
241
241
|
constructor() {
|
|
242
242
|
super();
|
|
243
243
|
this.__registerHost();
|
|
244
|
+
this.themeChange = createEvent(this, "themeChange", 7);
|
|
244
245
|
}
|
|
245
246
|
componentWillLoad() {
|
|
246
247
|
this.resolveConfig();
|
|
@@ -317,6 +318,18 @@ const FlipThemeProvider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
317
318
|
document.documentElement.classList.add("theme-light");
|
|
318
319
|
}
|
|
319
320
|
this.updateTenantVariables();
|
|
321
|
+
const themeChangeEventData = {
|
|
322
|
+
activeTheme: await this.getActiveTheme(),
|
|
323
|
+
preferredTheme: await this.getPreferredTheme(),
|
|
324
|
+
};
|
|
325
|
+
if (!Boolean(this.recentThemeChangeEventData) ||
|
|
326
|
+
themeChangeEventData.activeTheme !==
|
|
327
|
+
this.recentThemeChangeEventData.activeTheme ||
|
|
328
|
+
themeChangeEventData.preferredTheme !==
|
|
329
|
+
this.recentThemeChangeEventData.preferredTheme) {
|
|
330
|
+
this.recentThemeChangeEventData = themeChangeEventData;
|
|
331
|
+
this.themeChange.emit(this.recentThemeChangeEventData);
|
|
332
|
+
}
|
|
320
333
|
}
|
|
321
334
|
updateTenantVariables() {
|
|
322
335
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-5a3b2828.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-5a3b2828.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A simple guard function:
|
|
@@ -240,6 +240,7 @@ const tenantColorMapping = {
|
|
|
240
240
|
const FlipThemeProvider = class {
|
|
241
241
|
constructor(hostRef) {
|
|
242
242
|
registerInstance(this, hostRef);
|
|
243
|
+
this.themeChange = createEvent(this, "themeChange", 7);
|
|
243
244
|
}
|
|
244
245
|
componentWillLoad() {
|
|
245
246
|
this.resolveConfig();
|
|
@@ -316,6 +317,18 @@ const FlipThemeProvider = class {
|
|
|
316
317
|
document.documentElement.classList.add("theme-light");
|
|
317
318
|
}
|
|
318
319
|
this.updateTenantVariables();
|
|
320
|
+
const themeChangeEventData = {
|
|
321
|
+
activeTheme: await this.getActiveTheme(),
|
|
322
|
+
preferredTheme: await this.getPreferredTheme(),
|
|
323
|
+
};
|
|
324
|
+
if (!Boolean(this.recentThemeChangeEventData) ||
|
|
325
|
+
themeChangeEventData.activeTheme !==
|
|
326
|
+
this.recentThemeChangeEventData.activeTheme ||
|
|
327
|
+
themeChangeEventData.preferredTheme !==
|
|
328
|
+
this.recentThemeChangeEventData.preferredTheme) {
|
|
329
|
+
this.recentThemeChangeEventData = themeChangeEventData;
|
|
330
|
+
this.themeChange.emit(this.recentThemeChangeEventData);
|
|
331
|
+
}
|
|
319
332
|
}
|
|
320
333
|
updateTenantVariables() {
|
|
321
334
|
var _a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as r,H as s}from"./p-9fe00e8a.js";function i(e,t,r){return Math.min(Math.max(e,r),t)}class n extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var o=n;function a(e){if("string"!=typeof e)throw new o(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=p.test(e)?function(e){const t=e.toLowerCase().trim(),r=_[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new o(e);return`#${r}`}(e):e;const r=d.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(c(e,2),16))),parseInt(c(e[3]||"f",2),16)/255]}const s=l.exec(t);if(s){const e=Array.from(s).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const n=f.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const a=u.exec(t);if(a){const[t,r,s,n]=Array.from(a).slice(1).map(parseFloat);if(i(0,100,r)!==r)throw new o(e);if(i(0,100,s)!==s)throw new o(e);return[...g(t,r,s),n||1]}throw new o(e)}const h=e=>parseInt(e.replace(/_/g,""),36),_="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=h(t.substring(0,3)),s=h(t.substring(3)).toString(16);let i="";for(let e=0;e<6-s.length;e++)i+="0";return e[r]=`${i}${s}`,e}),{}),c=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),d=new RegExp(`^#${c("([a-f0-9])",3)}([a-f0-9])?$`,"i"),l=new RegExp(`^#${c("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),f=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${c(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),u=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,p=/^[a-z]+$/i,y=e=>Math.round(255*e),g=(e,t,r)=>{let s=r/100;if(0===t)return[s,s,s].map(y);const i=(e%360+360)%360/60,n=(1-Math.abs(2*s-1))*(t/100),o=n*(1-Math.abs(i%2-1));let a=0,h=0,_=0;i>=0&&i<1?(a=n,h=o):i>=1&&i<2?(a=o,h=n):i>=2&&i<3?(h=n,_=o):i>=3&&i<4?(h=o,_=n):i>=4&&i<5?(a=o,_=n):i>=5&&i<6&&(a=n,_=o);const c=s-n/2;return[a+c,h+c,_+c].map(y)};function m(e){const[t,r,s,i]=a(e).map(((e,t)=>3===t?e:e/255)),n=Math.max(t,r,s),o=Math.min(t,r,s),h=(n+o)/2;if(n===o)return[0,0,h,i];const _=n-o;return[60*(t===n?(r-s)/_+(r<s?6:0):r===n?(s-t)/_+2:(t-r)/_+4),h>.5?_/(2-n-o):_/(n+o),h,i]}function v(e,t,r,s){return`hsla(${(e%360).toFixed()}, ${i(0,100,100*t).toFixed()}%, ${i(0,100,100*r).toFixed()}%, ${parseFloat(i(0,1,s).toFixed(3))})`}function w(e){return function(e,t,r,s){return`rgba(${i(0,255,e).toFixed()}, ${i(0,255,t).toFixed()}, ${i(0,255,r).toFixed()}, ${parseFloat(i(0,1,s).toFixed(3))})`}(...a(e))}const z={"--s-action-primary-default":"primary","--s-action-primary-hovered":"primaryHovered","--s-action-primary-pressed":"primaryPressed","--s-text-on-action-primary":"primaryContrast","--s-icon-on-action-primary":"primaryContrast","--s-surface-highlight-default":"secondary","--s-surface-highlight-hovered":"secondaryHovered","--s-surface-highlight-pressed":"secondaryPressed","--s-on-surface-highlight-default":"secondaryHovered","--s-text-on-surface-highlight":"secondaryContrast","--s-icon-on-surface-highlight":"secondaryContrast","--s-text-highlight":"text","--s-interactive-primary-default":"text","--s-interactive-primary-hovered":"textHovered","--s-interactive-primary-pressed":"textPressed"},k=class{constructor(r){e(this,r),this.themeChange=t(this,"themeChange",7)}componentWillLoad(){this.resolveConfig(),this.determineOSTheme(),this.updateAppTheme()}watchConfig(){this.resolveConfig(),this.determineOSTheme(),this.updateAppTheme()}async getActiveTheme(){return this.appTheme}async getPreferredTheme(){if(Boolean(this.resolvedConfig.storage))return this.resolvedConfig.storage.getItem("flip-preferred-theme")}async setPreferredTheme(e){Boolean(this.resolvedConfig.storage)&&(this.resolvedConfig.storage.setItem("flip-preferred-theme",e),this.updateAppTheme())}async resetPreferredTheme(){Boolean(this.resolvedConfig.storage)&&(this.resolvedConfig.storage.removeItem("flip-preferred-theme"),this.updateAppTheme())}resolveConfig(){var e,t;this.resolvedConfig=Object.assign(Object.assign({},this.config||{}),{rootElement:(null===(e=this.config)||void 0===e?void 0:e.rootElement)||document.documentElement,storage:(null===(t=this.config)||void 0===t?void 0:t.storage)||(null===window||void 0===window?void 0:window.localStorage)})}determineOSTheme(){if(!Boolean(window.matchMedia))return void(this.osTheme="light");const e=window.matchMedia("(prefers-color-scheme: dark)");this.osTheme=e.matches?"dark":"light",e.addEventListener("change",(e=>{this.osTheme=e.matches?"dark":"light",this.updateAppTheme()}))}async updateAppTheme(){this.appTheme=await this.getPreferredTheme()||this.osTheme,"dark"===this.appTheme?(document.documentElement.classList.remove("theme-light"),document.documentElement.classList.add("theme-dark")):(document.documentElement.classList.remove("theme-dark"),document.documentElement.classList.add("theme-light")),this.updateTenantVariables();const e={activeTheme:await this.getActiveTheme(),preferredTheme:await this.getPreferredTheme()};Boolean(this.recentThemeChangeEventData)&&e.activeTheme===this.recentThemeChangeEventData.activeTheme&&e.preferredTheme===this.recentThemeChangeEventData.preferredTheme||(this.recentThemeChangeEventData=e,this.themeChange.emit(this.recentThemeChangeEventData))}updateTenantVariables(){var e;const t=null===(e=this.resolvedConfig)||void 0===e?void 0:e.tenantColors;if(!Boolean(t))return void this.resetTenantVariables();const r=this.resolvedConfig.rootElement,s=m(t.primary),i=m(t.secondary),n=m(t.text),o=w(v(s[0],s[1]-.21,s[2]+.09,1)),a=w(v(s[0],s[1]-.2,s[2]+.17,1)),h=w(v(i[0],i[1],i[2]+.07,1)),_=w(v(i[0],i[1],i[2]+.15,1)),c=w(v(n[0],n[1]-.34,n[2]+.1,1)),d=w(v(n[0],n[1]-.48,n[2]+.2,1)),l=Object.assign(Object.assign({},t),{primaryHovered:o,primaryPressed:a,secondaryHovered:h,secondaryPressed:_,textHovered:c,textPressed:d});Object.entries(z).forEach((([e,t])=>r.style.setProperty(e,l[t])))}resetTenantVariables(){const e=this.resolvedConfig.rootElement;[...Object.keys(z),"primaryHovered","primaryPressed","secondaryHovered","secondaryPressed","textHovered","textPressed"].forEach((t=>e.style.removeProperty(t)))}render(){return r(s,null,r("slot",null))}static get watchers(){return{config:["watchConfig"]}}};k.style=".sc-flip-theme-provider-h{display:block}";export{k as flip_theme_provider}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-9fe00e8a.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((e=>i(JSON.parse('[["p-025eef8f",[[1,"file-manager",{"selectedDirectory":[32],"selectedFile":[32]}]]],["p-969d1f43",[[1,"flip-pdf-reader",{"autoZoomLabel":[1,"auto-zoom-label"],"closeButtonLabel":[1,"close-button-label"],"downloadButtonLabel":[1,"download-button-label"],"file":[1],"label":[1],"printButtonLabel":[1,"print-button-label"],"zoomInButtonLabel":[1,"zoom-in-button-label"],"zoomOutButtonLabel":[1,"zoom-out-button-label"],"zoomSelectLabel":[1,"zoom-select-label"],"active":[32],"closing":[32],"downloading":[32],"zoom":[32],"zoomSteps":[32],"open":[64],"close":[64]},[[9,"resize","onWindowResize"]]]]],["p-01aac6a2",[[2,"flip-autocomplete",{"autoSelect":[4,"auto-select"],"clearable":[4],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"flipAriaDescribedby":[1,"flip-aria-describedby"],"generateSuggestions":[1040],"invalid":[4],"maxLength":[2,"max-length"],"menuLabel":[1,"menu-label"],"mode":[1],"required":[4],"spellCheck":[4,"spell-check"],"value":[1537],"active":[32],"loading":[32],"position":[32],"suggestions":[32]},[[8,"click","onWindowClick"]]]]],["p-fc1da155",[[1,"flip-resource-list-file-item",{"description":[1],"errorMessage":[1,"error-message"],"icon":[1],"label":[1],"loading":[4],"removable":[4],"removeButtonLabel":[1,"remove-button-label"]}]]],["p-9483fed0",[[1,"flip-lightbox",{"closeButtonLabel":[1,"close-button-label"],"downloadButtonLabel":[1,"download-button-label"],"label":[1],"nextSlideButtonLabel":[1,"next-slide-button-label"],"previousSlideButtonLabel":[1,"previous-slide-button-label"],"activeSlideIndex":[32],"closing":[32],"slides":[32],"open":[64],"close":[64],"activateSlide":[64]}]]],["p-be8e91cb",[[1,"flip-modal",{"closeButtonLabel":[1,"close-button-label"],"label":[1],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"closing":[32],"scrollable":[32],"scrolled":[32],"scrolledDown":[32],"open":[64],"close":[64]},[[9,"resize","onWindowResize"]]]]],["p-215365c6",[[6,"flip-select",{"disabled":[4],"flipAriaDescribedby":[1,"flip-aria-describedby"],"invalid":[4],"label":[1],"multiSelect":[4,"multi-select"],"required":[4],"value":[1040],"options":[32],"open":[32]},[[8,"focusin","onWindowFocusIn"]]]]],["p-7a637c6f",[[1,"flip-console-layout",{"appName":[1,"app-name"],"backButonLabel":[1,"back-buton-label"],"heading":[1],"helpButonLabel":[1,"help-buton-label"],"hideNavigationButtonLabel":[1,"hide-navigation-button-label"],"logoText":[1,"logo-text"],"showNavigationButtonLabel":[1,"show-navigation-button-label"],"navigationLabel":[1,"navigation-label"],"showBackButton":[4,"show-back-button"],"showHelpButton":[4,"show-help-button"],"subheading":[1],"sidebarActive":[32],"toggleSidebar":[64],"showSidebar":[64],"hideSidebar":[64]},[[9,"resize","onWindowResize"]]]]],["p-9263c183",[[2,"flip-date-input",{"autoFocus":[4,"auto-focus"],"autoSelect":[4,"auto-select"],"datePickerLabel":[1,"date-picker-label"],"disabled":[4],"flipAriaDescribedby":[1,"flip-aria-describedby"],"format":[1],"invalid":[4],"locale":[16],"placeholder":[1],"required":[4],"value":[1537]}]]],["p-1ea161d9",[[1,"flip-dialog",{"hideLabel":[4,"hide-label"],"intent":[1],"label":[1],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"closing":[32],"open":[64],"close":[64]}]]],["p-5f949000",[[1,"flip-pagination",{"accessibleNextButtonLabel":[1,"accessible-next-button-label"],"accessiblePrevButtonLabel":[1,"accessible-prev-button-label"],"nextButtonLabel":[1,"next-button-label"],"pageLabel":[1,"page-label"],"prevButtonLabel":[1,"prev-button-label"],"label":[1],"page":[2],"pages":[2],"pageSelectLabel":[1,"page-select-label"],"variant":[1]}]]],["p-4743c7ae",[[1,"flip-toast-provider",{"globalDuration":[2,"global-duration"],"toasts":[32],"clearAll":[64],"dismiss":[64],"toast":[64]}]]],["p-96c0db13",[[2,"flip-checkbox",{"checked":[1032],"description":[1],"disabled":[4],"flipAriaDescribedby":[1,"flip-aria-describedby"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"invalid":[4],"label":[1],"value":[1]}]]],["p-fd9592ce",[[2,"flip-file-uploader",{"accept":[1],"ctaLabel":[1,"cta-label"],"description":[1],"disabled":[4],"dragDropLabel":[1,"drag-drop-label"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"label":[1],"multiple":[4],"showDropzone":[4,"show-dropzone"],"uploadButtonLabel":[1,"upload-button-label"],"reset":[64]}]]],["p-6b6ccfd4",[[6,"flip-form-control",{"description":[1],"disabled":[4],"errorMessage":[1,"error-message"],"invalid":[4],"label":[1],"hasFocus":[32],"inputValue":[32]},[[8,"click","onWindowClick"]]]]],["p-f0ca5a81",[[2,"flip-search",{"autoFocus":[4,"auto-focus"],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"inputName":[1,"input-name"],"inputId":[1,"input-id"],"label":[1],"placeholder":[1],"value":[1025]},[[8,"keydown","onKeyDown"]]]]],["p-3c94b97a",[[1,"flip-avatar",{"badge":[1],"badgePosition":[1,"badge-position"],"color":[1],"icon":[1],"initials":[1],"interactive":[4],"label":[1],"showLabel":[4,"show-label"],"size":[1],"src":[1],"variant":[1],"imageAvailable":[32]}]]],["p-d5227733",[[1,"flip-banner",{"actionLabel":[1,"action-label"],"content":[1],"dismissable":[4],"dismissLabel":[1,"dismiss-label"],"importance":[1],"intent":[1],"showIcon":[4,"show-icon"]}]]],["p-b71da729",[[2,"flip-radio",{"checked":[1032],"description":[1],"disabled":[4],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"invalid":[4],"label":[1],"value":[1]}]]],["p-f7f4d8c0",[[2,"flip-switch",{"checked":[1028],"disabled":[4],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"label":[1],"size":[1],"value":[1]},[[9,"pointerup","onWindowPointerUp"]]]]],["p-bee4c9fb",[[1,"flip-tag",{"intent":[1],"label":[1],"removable":[4],"removalButtonLabel":[1,"removal-button-label"]}]]],["p-168de0f9",[[1,"flip-video-thumbnail",{"durationLabel":[1,"duration-label"],"duration":[1],"label":[1],"src":[1]}]]],["p-ce6f898e",[[1,"flip-action-list"]]],["p-3f71a4fb",[[1,"flip-action-list-item",{"disabled":[4],"description":[1],"icon":[1],"intent":[1],"label":[1],"size":[1],"suffix":[1]}]]],["p-4a0e1a9b",[[1,"flip-action-list-section",{"label":[1]}]]],["p-4b8420aa",[[1,"flip-avatar-group",{"badge":[1]}]]],["p-a74e7ffc",[[1,"flip-badge",{"icon":[1],"intent":[1],"label":[1],"size":[1],"variant":[1]}]]],["p-5c8f54a1",[[1,"flip-card",{"as":[1],"elevated":[4],"interactive":[4],"href":[1],"linkTarget":[1,"link-target"]}]]],["p-d8a18ef0",[[1,"flip-chip",{"avatar":[1],"icon":[1],"intent":[1],"interactive":[4],"label":[1]}]]],["p-4efeac03",[[1,"flip-description-list"]]],["p-631f7b44",[[1,"flip-description-list-item",{"term":[1]}]]],["p-8fec99c3",[[6,"flip-form-group",{"orientation":[1]}]]],["p-ea24f76c",[[1,"flip-icon-add-photo",{"size":[2]}]]],["p-1d32e589",[[1,"flip-icon-admin-panel-settings",{"size":[2]}]]],["p-ee6518ef",[[1,"flip-icon-arrow-back",{"size":[2]}]]],["p-250ff48d",[[1,"flip-icon-arrow-forward",{"size":[2]}]]],["p-c2e52120",[[1,"flip-icon-arrow-right-small",{"size":[2]}]]],["p-d995e868",[[1,"flip-icon-attachment",{"size":[2]}]]],["p-060fb1f6",[[1,"flip-icon-block",{"size":[2]}]]],["p-d77ad92a",[[1,"flip-icon-chat-bubble",{"size":[2]}]]],["p-902c3556",[[1,"flip-icon-check",{"size":[2]}]]],["p-2da9d315",[[1,"flip-icon-check-circle",{"size":[2]}]]],["p-5f95972f",[[1,"flip-icon-chevron-left",{"size":[2]}]]],["p-a8971044",[[1,"flip-icon-chevron-right",{"size":[2]}]]],["p-507a3b94",[[1,"flip-icon-close-small",{"size":[2]}]]],["p-ebad091c",[[1,"flip-icon-comment",{"size":[2]}]]],["p-1e428993",[[1,"flip-icon-copy",{"size":[2]}]]],["p-4cb721ff",[[1,"flip-icon-date-range",{"size":[2]}]]],["p-452c6599",[[1,"flip-icon-delete",{"size":[2]}]]],["p-6131750a",[[1,"flip-icon-description",{"size":[2]}]]],["p-e8350582",[[1,"flip-icon-edit",{"size":[2]}]]],["p-eab9da55",[[1,"flip-icon-emoji-mood",{"size":[2]}]]],["p-9ada969e",[[1,"flip-icon-emoji-satisfied",{"size":[2]}]]],["p-62ac92c4",[[1,"flip-icon-file",{"size":[2]}]]],["p-7c4503c5",[[1,"flip-icon-folder-shared",{"size":[2]}]]],["p-e2e566aa",[[1,"flip-icon-group-assign",{"size":[2]}]]],["p-8933ba02",[[1,"flip-icon-groups",{"size":[2]}]]],["p-cc2d1220",[[1,"flip-icon-groups-custom",{"size":[2]}]]],["p-1e74139c",[[1,"flip-icon-help",{"size":[2]}]]],["p-de7facf8",[[1,"flip-icon-image",{"size":[2]}]]],["p-86dbaf1a",[[1,"flip-icon-info",{"size":[2]}]]],["p-eb9e789f",[[1,"flip-icon-inventory",{"size":[2]}]]],["p-b984416b",[[1,"flip-icon-like",{"size":[2]}]]],["p-2a716203",[[1,"flip-icon-link",{"size":[2]}]]],["p-fcf3c03b",[[1,"flip-icon-lock",{"size":[2]}]]],["p-f65aa65c",[[1,"flip-icon-logout",{"size":[2]}]]],["p-29d6ddd5",[[1,"flip-icon-mail",{"size":[2]}]]],["p-28cb3086",[[1,"flip-icon-manage-accounts",{"size":[2]}]]],["p-12951126",[[1,"flip-icon-mention",{"size":[2]}]]],["p-301788bf",[[1,"flip-icon-menu",{"size":[2]}]]],["p-36362426",[[1,"flip-icon-message",{"size":[2]}]]],["p-83f16a5e",[[1,"flip-icon-more-horizontal",{"size":[2]}]]],["p-280b3cc8",[[1,"flip-icon-more-vertikal",{"size":[2]}]]],["p-dbb08ab0",[[1,"flip-icon-notifications",{"size":[2]}]]],["p-9685ad51",[[1,"flip-icon-notifications-active",{"size":[2]}]]],["p-7a4171cb",[[1,"flip-icon-notifications-off",{"size":[2]}]]],["p-897713f2",[[1,"flip-icon-open-in-new",{"size":[2]}]]],["p-f989263a",[[1,"flip-icon-people-alt",{"size":[2]}]]],["p-27e1f33b",[[1,"flip-icon-person-off",{"size":[2]}]]],["p-f0aaded5",[[1,"flip-icon-phone",{"size":[2]}]]],["p-aea30015",[[1,"flip-icon-poll",{"size":[2]}]]],["p-c46e5bc9",[[1,"flip-icon-print",{"size":[2]}]]],["p-b89e8fac",[[1,"flip-icon-recieved",{"size":[2]}]]],["p-ad671f6b",[[1,"flip-icon-search-strong",{"size":[2]}]]],["p-79c2c1f7",[[1,"flip-icon-send",{"size":[2]}]]],["p-cb3b830c",[[1,"flip-icon-settings",{"size":[2]}]]],["p-0e382683",[[1,"flip-icon-time-filled",{"size":[2]}]]],["p-73b19c89",[[1,"flip-icon-time-outlined",{"size":[2]}]]],["p-df221966",[[1,"flip-icon-user-assign",{"size":[2]}]]],["p-99c36b3a",[[1,"flip-icon-video-camera",{"size":[2]}]]],["p-af271690",[[1,"flip-icon-warning",{"size":[2]}]]],["p-5a113067",[[1,"flip-link",{"href":[1],"label":[1],"target":[1]}]]],["p-6a7d9caa",[[4,"flip-list"]]],["p-1300cc2d",[[1,"flip-option-list-section",{"label":[1]}]]],["p-d5c812c1",[[1,"flip-progress-indicator",{"label":[1],"size":[1],"value":[2],"variant":[1]}]]],["p-3b3c9c2e",[[6,"flip-radio-group",{"flipAriaDescribedby":[1,"flip-aria-describedby"],"value":[1537]}]]],["p-56c64774",[[1,"flip-tab",{"active":[4],"label":[1],"tabId":[1,"tab-id"]}]]],["p-506b35d0",[[6,"flip-tabs",{"initialTab":[1,"initial-tab"],"label":[1],"activeTab":[32],"activateTab":[64]}]]],["p-d5ed5f60",[[6,"flip-theme-provider",{"config":[16],"getActiveTheme":[64],"getPreferredTheme":[64],"setPreferredTheme":[64],"resetPreferredTheme":[64]}]]],["p-39a3bdf7",[[1,"flip-thumbnail",{"alt":[1],"format":[1],"size":[1],"src":[1]}]]],["p-2b35b65a",[[1,"flip-tooltip",{"content":[1],"delay":[2],"position":[1],"actualPosition":[32],"visible":[32]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[9,"resize","onWindowResize"],[9,"scroll","onWindowScroll"]]]]],["p-6898b80c",[[1,"flip-tree-navigation-item",{"active":[4],"icon":[1],"label":[1]}]]],["p-4b3419eb",[[2,"flip-text-input",{"autoComplete":[1,"auto-complete"],"autoFocus":[4,"auto-focus"],"autoSelect":[4,"auto-select"],"clearable":[4],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"disableDynamicWidth":[4,"disable-dynamic-width"],"flipAriaAutocomplete":[1,"flip-aria-autocomplete"],"flipAriaControls":[1,"flip-aria-controls"],"flipAriaDescribedby":[1,"flip-aria-describedby"],"flipAriaExpanded":[1,"flip-aria-expanded"],"flipRole":[1,"flip-role"],"invalid":[4],"maxLength":[2,"max-length"],"max":[2],"min":[2],"mode":[1],"prefixLabel":[1,"prefix-label"],"required":[4],"rows":[2],"showCharacterCounter":[4,"show-character-counter"],"spellCheck":[4,"spell-check"],"suffixLabel":[1,"suffix-label"],"step":[2],"passwordToggleLabel":[1,"password-toggle-label"],"type":[1],"value":[1537],"showPassword":[32]}]]],["p-f52c6b81",[[1,"flip-toast",{"accessibleDismissLabel":[1,"accessible-dismiss-label"],"content":[1],"dismissLabel":[1,"dismiss-label"],"duration":[2],"icon":[1],"intent":[1],"toastId":[1,"toast-id"]}]]],["p-af02457c",[[1,"flip-icon-cloud-upload",{"size":[2]}]]],["p-47a1cad2",[[1,"flip-icon-person",{"size":[2]}]]],["p-e8d80905",[[1,"flip-icon-search",{"size":[2]}]]],["p-5d7619bb",[[1,"flip-button-group",{"orientation":[1],"segmented":[4],"stretch":[4],"wrap":[4]}]]],["p-5b14d410",[[1,"flip-date-picker",{"locale":[16],"maxDate":[16],"minDate":[16],"range":[4],"startDate":[16],"value":[1040]}],[1,"flip-icon-today",{"size":[2]}]]],["p-109c8448",[[1,"flip-icon-arrow-left",{"size":[2]}],[1,"flip-icon-arrow-right",{"size":[2]}],[1,"flip-icon-download",{"size":[2]}]]],["p-851d6744",[[1,"flip-popover",{"animation":[1],"enableFlip":[4,"enable-flip"],"label":[1],"offset":[2],"placement":[1],"popoverId":[1,"popover-id"],"trigger":[1],"useContainerWidth":[8,"use-container-width"],"active":[32],"closing":[32],"position":[32],"close":[64],"open":[64]},[[8,"focusin","onWindowFocusIn"],[8,"click","onWindowClick"]]]]],["p-e8e6243b",[[1,"flip-icon-add",{"size":[2]}],[1,"flip-icon-fullscreen",{"size":[2]}],[1,"flip-icon-fullscreen-exit",{"size":[2]}],[1,"flip-icon-remove",{"size":[2]}]]],["p-a31ea0e5",[[1,"flip-icon-check-strong",{"size":[2]}]]],["p-a1d09ebe",[[1,"flip-stack",{"align":[1],"as":[1],"justify":[1],"orientation":[1],"spacing":[1],"wrap":[4]}]]],["p-119b10ac",[[1,"flip-app-layout",{"appBarMedia":[1,"app-bar-media"],"appName":[1,"app-name"],"backToNavigationViewButtonLabel":[1,"back-to-navigation-view-button-label"],"ctaIcon":[1,"cta-icon"],"ctaLabel":[1,"cta-label"],"heading":[1],"navigationBackButtonLabel":[1,"navigation-back-button-label"],"navigationLabel":[1,"navigation-label"],"showNavigationBackButton":[4,"show-navigation-back-button"],"sidebarCloseButtonLabel":[1,"sidebar-close-button-label"],"sidebarHeading":[1,"sidebar-heading"],"subheading":[1],"transitionStyle":[1,"transition-style"],"hasNavigation":[32],"hasSidebar":[32],"mobileView":[32],"sidebarActive":[32],"sidebarClosing":[32],"transitioningFrom":[32],"transitioningTo":[32],"showSidebar":[64],"hideSidebar":[64],"toggleSidebar":[64],"changeMobileView":[64]}],[1,"flip-empty-state",{"heading":[1],"illustration":[1]}],[1,"flip-resource-list-item",{"checked":[1028],"description":[1],"disabled":[4],"hideDivider":[4,"hide-divider"],"href":[1],"label":[1],"media":[1],"menuTriggerId":[1,"menu-trigger-id"],"menuTriggerLabel":[1,"menu-trigger-label"],"meta":[1],"selectable":[4],"value":[1]}],[1,"flip-resource-list",{"label":[1]}],[1,"flip-box",{"as":[1],"bordered":[4],"centerBlock":[4,"center-block"],"centerInline":[4,"center-inline"],"cover":[4],"padding":[1]}]]],["p-be01e1cd",[[1,"flip-icon-close",{"size":[2]}]]],["p-538575fb",[[1,"flip-icon-expand-more",{"size":[2]}]]],["p-879c7fe0",[[1,"flip-option-list-item",{"context":[1025],"disabled":[4],"icon":[1],"label":[1],"selected":[1028],"value":[1]}],[1,"flip-icon-check-small",{"size":[2]}],[6,"flip-option-list",{"disabled":[4],"label":[1],"optionListId":[1,"option-list-id"],"multiSelect":[4,"multi-select"],"value":[1040]}]]],["p-b2079530",[[1,"flip-text",{"align":[1],"as":[1],"color":[1],"fontStyle":[1,"font-style"],"size":[1],"truncate":[4],"weight":[1]}],[2,"flip-heading",{"align":[1],"as":[1],"headingId":[1,"heading-id"],"level":[2],"text":[1]}]]],["p-29633de8",[[1,"flip-icon-visibility",{"size":[2]}],[1,"flip-icon-visibility-off",{"size":[2]}],[1,"flip-icon-cancel",{"size":[2]}],[1,"flip-icon-expand-less",{"size":[2]}]]],["p-f2cdff8d",[[2,"flip-button",{"disabled":[4],"download":[1],"flipAriaDescribedby":[1,"flip-aria-describedby"],"flipAriaExpanded":[1,"flip-aria-expanded"],"flipAriaLabel":[1,"flip-aria-label"],"form":[1],"hideLabel":[4,"hide-label"],"href":[1],"icon":[1],"iconPosition":[1,"icon-position"],"intent":[1],"label":[1],"name":[1],"size":[1],"target":[1],"type":[1],"value":[1],"variant":[1]}]]],["p-f2d451a7",[[1,"flip-visually-hidden"]]],["p-ec8199f2",[[1,"flip-inline-error",{"message":[1],"size":[1]}],[1,"flip-spinner",{"label":[1],"size":[1]}],[1,"flip-icon-error",{"size":[2]}]]],["p-5ba8364a",[[1,"flip-file-viewer",{"active":[4],"autoplay":[4],"description":[1],"errorMessage":[1,"error-message"],"file":[1],"type":[1],"typeUnsupportedMessage":[1,"type-unsupported-message"],"zoom":[8],"download":[64],"print":[64]}],[1,"flip-file-viewer-csv",{"errorMessage":[1,"error-message"],"file":[1],"data":[32],"error":[32],"loading":[32]}],[1,"flip-file-viewer-image",{"description":[1],"errorMessage":[1,"error-message"],"file":[1],"maxZoom":[2,"max-zoom"],"error":[32],"loading":[32],"getZoom":[64],"resetZoom":[64]}],[1,"flip-file-viewer-pdf",{"errorMessage":[1,"error-message"],"file":[1],"singlePageMode":[4,"single-page-mode"],"zoom":[8],"doc":[32],"error":[32],"loading":[32],"renderedPages":[32],"scrolledDown":[32],"singlePageModePage":[32],"visiblePages":[32],"print":[64],"nextPage":[64],"previousPage":[64],"setPage":[64]},[[9,"resize","onWindowResize"]]],[1,"flip-file-viewer-text",{"errorMessage":[1,"error-message"],"file":[1],"error":[32],"loading":[32],"text":[32]}],[1,"flip-file-viewer-audio",{"autoplay":[4],"file":[1],"type":[1]}],[1,"flip-file-viewer-video",{"autoplay":[4],"file":[1],"type":[1]}]]]]'),e)));
|
|
1
|
+
import{p as e,b as i}from"./p-9fe00e8a.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((e=>i(JSON.parse('[["p-025eef8f",[[1,"file-manager",{"selectedDirectory":[32],"selectedFile":[32]}]]],["p-969d1f43",[[1,"flip-pdf-reader",{"autoZoomLabel":[1,"auto-zoom-label"],"closeButtonLabel":[1,"close-button-label"],"downloadButtonLabel":[1,"download-button-label"],"file":[1],"label":[1],"printButtonLabel":[1,"print-button-label"],"zoomInButtonLabel":[1,"zoom-in-button-label"],"zoomOutButtonLabel":[1,"zoom-out-button-label"],"zoomSelectLabel":[1,"zoom-select-label"],"active":[32],"closing":[32],"downloading":[32],"zoom":[32],"zoomSteps":[32],"open":[64],"close":[64]},[[9,"resize","onWindowResize"]]]]],["p-01aac6a2",[[2,"flip-autocomplete",{"autoSelect":[4,"auto-select"],"clearable":[4],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"flipAriaDescribedby":[1,"flip-aria-describedby"],"generateSuggestions":[1040],"invalid":[4],"maxLength":[2,"max-length"],"menuLabel":[1,"menu-label"],"mode":[1],"required":[4],"spellCheck":[4,"spell-check"],"value":[1537],"active":[32],"loading":[32],"position":[32],"suggestions":[32]},[[8,"click","onWindowClick"]]]]],["p-fc1da155",[[1,"flip-resource-list-file-item",{"description":[1],"errorMessage":[1,"error-message"],"icon":[1],"label":[1],"loading":[4],"removable":[4],"removeButtonLabel":[1,"remove-button-label"]}]]],["p-9483fed0",[[1,"flip-lightbox",{"closeButtonLabel":[1,"close-button-label"],"downloadButtonLabel":[1,"download-button-label"],"label":[1],"nextSlideButtonLabel":[1,"next-slide-button-label"],"previousSlideButtonLabel":[1,"previous-slide-button-label"],"activeSlideIndex":[32],"closing":[32],"slides":[32],"open":[64],"close":[64],"activateSlide":[64]}]]],["p-be8e91cb",[[1,"flip-modal",{"closeButtonLabel":[1,"close-button-label"],"label":[1],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"closing":[32],"scrollable":[32],"scrolled":[32],"scrolledDown":[32],"open":[64],"close":[64]},[[9,"resize","onWindowResize"]]]]],["p-215365c6",[[6,"flip-select",{"disabled":[4],"flipAriaDescribedby":[1,"flip-aria-describedby"],"invalid":[4],"label":[1],"multiSelect":[4,"multi-select"],"required":[4],"value":[1040],"options":[32],"open":[32]},[[8,"focusin","onWindowFocusIn"]]]]],["p-7a637c6f",[[1,"flip-console-layout",{"appName":[1,"app-name"],"backButonLabel":[1,"back-buton-label"],"heading":[1],"helpButonLabel":[1,"help-buton-label"],"hideNavigationButtonLabel":[1,"hide-navigation-button-label"],"logoText":[1,"logo-text"],"showNavigationButtonLabel":[1,"show-navigation-button-label"],"navigationLabel":[1,"navigation-label"],"showBackButton":[4,"show-back-button"],"showHelpButton":[4,"show-help-button"],"subheading":[1],"sidebarActive":[32],"toggleSidebar":[64],"showSidebar":[64],"hideSidebar":[64]},[[9,"resize","onWindowResize"]]]]],["p-9263c183",[[2,"flip-date-input",{"autoFocus":[4,"auto-focus"],"autoSelect":[4,"auto-select"],"datePickerLabel":[1,"date-picker-label"],"disabled":[4],"flipAriaDescribedby":[1,"flip-aria-describedby"],"format":[1],"invalid":[4],"locale":[16],"placeholder":[1],"required":[4],"value":[1537]}]]],["p-1ea161d9",[[1,"flip-dialog",{"hideLabel":[4,"hide-label"],"intent":[1],"label":[1],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"closing":[32],"open":[64],"close":[64]}]]],["p-5f949000",[[1,"flip-pagination",{"accessibleNextButtonLabel":[1,"accessible-next-button-label"],"accessiblePrevButtonLabel":[1,"accessible-prev-button-label"],"nextButtonLabel":[1,"next-button-label"],"pageLabel":[1,"page-label"],"prevButtonLabel":[1,"prev-button-label"],"label":[1],"page":[2],"pages":[2],"pageSelectLabel":[1,"page-select-label"],"variant":[1]}]]],["p-4743c7ae",[[1,"flip-toast-provider",{"globalDuration":[2,"global-duration"],"toasts":[32],"clearAll":[64],"dismiss":[64],"toast":[64]}]]],["p-96c0db13",[[2,"flip-checkbox",{"checked":[1032],"description":[1],"disabled":[4],"flipAriaDescribedby":[1,"flip-aria-describedby"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"invalid":[4],"label":[1],"value":[1]}]]],["p-fd9592ce",[[2,"flip-file-uploader",{"accept":[1],"ctaLabel":[1,"cta-label"],"description":[1],"disabled":[4],"dragDropLabel":[1,"drag-drop-label"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"label":[1],"multiple":[4],"showDropzone":[4,"show-dropzone"],"uploadButtonLabel":[1,"upload-button-label"],"reset":[64]}]]],["p-6b6ccfd4",[[6,"flip-form-control",{"description":[1],"disabled":[4],"errorMessage":[1,"error-message"],"invalid":[4],"label":[1],"hasFocus":[32],"inputValue":[32]},[[8,"click","onWindowClick"]]]]],["p-f0ca5a81",[[2,"flip-search",{"autoFocus":[4,"auto-focus"],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"inputName":[1,"input-name"],"inputId":[1,"input-id"],"label":[1],"placeholder":[1],"value":[1025]},[[8,"keydown","onKeyDown"]]]]],["p-3c94b97a",[[1,"flip-avatar",{"badge":[1],"badgePosition":[1,"badge-position"],"color":[1],"icon":[1],"initials":[1],"interactive":[4],"label":[1],"showLabel":[4,"show-label"],"size":[1],"src":[1],"variant":[1],"imageAvailable":[32]}]]],["p-d5227733",[[1,"flip-banner",{"actionLabel":[1,"action-label"],"content":[1],"dismissable":[4],"dismissLabel":[1,"dismiss-label"],"importance":[1],"intent":[1],"showIcon":[4,"show-icon"]}]]],["p-b71da729",[[2,"flip-radio",{"checked":[1032],"description":[1],"disabled":[4],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"invalid":[4],"label":[1],"value":[1]}]]],["p-f7f4d8c0",[[2,"flip-switch",{"checked":[1028],"disabled":[4],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"label":[1],"size":[1],"value":[1]},[[9,"pointerup","onWindowPointerUp"]]]]],["p-bee4c9fb",[[1,"flip-tag",{"intent":[1],"label":[1],"removable":[4],"removalButtonLabel":[1,"removal-button-label"]}]]],["p-168de0f9",[[1,"flip-video-thumbnail",{"durationLabel":[1,"duration-label"],"duration":[1],"label":[1],"src":[1]}]]],["p-ce6f898e",[[1,"flip-action-list"]]],["p-3f71a4fb",[[1,"flip-action-list-item",{"disabled":[4],"description":[1],"icon":[1],"intent":[1],"label":[1],"size":[1],"suffix":[1]}]]],["p-4a0e1a9b",[[1,"flip-action-list-section",{"label":[1]}]]],["p-4b8420aa",[[1,"flip-avatar-group",{"badge":[1]}]]],["p-a74e7ffc",[[1,"flip-badge",{"icon":[1],"intent":[1],"label":[1],"size":[1],"variant":[1]}]]],["p-5c8f54a1",[[1,"flip-card",{"as":[1],"elevated":[4],"interactive":[4],"href":[1],"linkTarget":[1,"link-target"]}]]],["p-d8a18ef0",[[1,"flip-chip",{"avatar":[1],"icon":[1],"intent":[1],"interactive":[4],"label":[1]}]]],["p-4efeac03",[[1,"flip-description-list"]]],["p-631f7b44",[[1,"flip-description-list-item",{"term":[1]}]]],["p-8fec99c3",[[6,"flip-form-group",{"orientation":[1]}]]],["p-ea24f76c",[[1,"flip-icon-add-photo",{"size":[2]}]]],["p-1d32e589",[[1,"flip-icon-admin-panel-settings",{"size":[2]}]]],["p-ee6518ef",[[1,"flip-icon-arrow-back",{"size":[2]}]]],["p-250ff48d",[[1,"flip-icon-arrow-forward",{"size":[2]}]]],["p-c2e52120",[[1,"flip-icon-arrow-right-small",{"size":[2]}]]],["p-d995e868",[[1,"flip-icon-attachment",{"size":[2]}]]],["p-060fb1f6",[[1,"flip-icon-block",{"size":[2]}]]],["p-d77ad92a",[[1,"flip-icon-chat-bubble",{"size":[2]}]]],["p-902c3556",[[1,"flip-icon-check",{"size":[2]}]]],["p-2da9d315",[[1,"flip-icon-check-circle",{"size":[2]}]]],["p-5f95972f",[[1,"flip-icon-chevron-left",{"size":[2]}]]],["p-a8971044",[[1,"flip-icon-chevron-right",{"size":[2]}]]],["p-507a3b94",[[1,"flip-icon-close-small",{"size":[2]}]]],["p-ebad091c",[[1,"flip-icon-comment",{"size":[2]}]]],["p-1e428993",[[1,"flip-icon-copy",{"size":[2]}]]],["p-4cb721ff",[[1,"flip-icon-date-range",{"size":[2]}]]],["p-452c6599",[[1,"flip-icon-delete",{"size":[2]}]]],["p-6131750a",[[1,"flip-icon-description",{"size":[2]}]]],["p-e8350582",[[1,"flip-icon-edit",{"size":[2]}]]],["p-eab9da55",[[1,"flip-icon-emoji-mood",{"size":[2]}]]],["p-9ada969e",[[1,"flip-icon-emoji-satisfied",{"size":[2]}]]],["p-62ac92c4",[[1,"flip-icon-file",{"size":[2]}]]],["p-7c4503c5",[[1,"flip-icon-folder-shared",{"size":[2]}]]],["p-e2e566aa",[[1,"flip-icon-group-assign",{"size":[2]}]]],["p-8933ba02",[[1,"flip-icon-groups",{"size":[2]}]]],["p-cc2d1220",[[1,"flip-icon-groups-custom",{"size":[2]}]]],["p-1e74139c",[[1,"flip-icon-help",{"size":[2]}]]],["p-de7facf8",[[1,"flip-icon-image",{"size":[2]}]]],["p-86dbaf1a",[[1,"flip-icon-info",{"size":[2]}]]],["p-eb9e789f",[[1,"flip-icon-inventory",{"size":[2]}]]],["p-b984416b",[[1,"flip-icon-like",{"size":[2]}]]],["p-2a716203",[[1,"flip-icon-link",{"size":[2]}]]],["p-fcf3c03b",[[1,"flip-icon-lock",{"size":[2]}]]],["p-f65aa65c",[[1,"flip-icon-logout",{"size":[2]}]]],["p-29d6ddd5",[[1,"flip-icon-mail",{"size":[2]}]]],["p-28cb3086",[[1,"flip-icon-manage-accounts",{"size":[2]}]]],["p-12951126",[[1,"flip-icon-mention",{"size":[2]}]]],["p-301788bf",[[1,"flip-icon-menu",{"size":[2]}]]],["p-36362426",[[1,"flip-icon-message",{"size":[2]}]]],["p-83f16a5e",[[1,"flip-icon-more-horizontal",{"size":[2]}]]],["p-280b3cc8",[[1,"flip-icon-more-vertikal",{"size":[2]}]]],["p-dbb08ab0",[[1,"flip-icon-notifications",{"size":[2]}]]],["p-9685ad51",[[1,"flip-icon-notifications-active",{"size":[2]}]]],["p-7a4171cb",[[1,"flip-icon-notifications-off",{"size":[2]}]]],["p-897713f2",[[1,"flip-icon-open-in-new",{"size":[2]}]]],["p-f989263a",[[1,"flip-icon-people-alt",{"size":[2]}]]],["p-27e1f33b",[[1,"flip-icon-person-off",{"size":[2]}]]],["p-f0aaded5",[[1,"flip-icon-phone",{"size":[2]}]]],["p-aea30015",[[1,"flip-icon-poll",{"size":[2]}]]],["p-c46e5bc9",[[1,"flip-icon-print",{"size":[2]}]]],["p-b89e8fac",[[1,"flip-icon-recieved",{"size":[2]}]]],["p-ad671f6b",[[1,"flip-icon-search-strong",{"size":[2]}]]],["p-79c2c1f7",[[1,"flip-icon-send",{"size":[2]}]]],["p-cb3b830c",[[1,"flip-icon-settings",{"size":[2]}]]],["p-0e382683",[[1,"flip-icon-time-filled",{"size":[2]}]]],["p-73b19c89",[[1,"flip-icon-time-outlined",{"size":[2]}]]],["p-df221966",[[1,"flip-icon-user-assign",{"size":[2]}]]],["p-99c36b3a",[[1,"flip-icon-video-camera",{"size":[2]}]]],["p-af271690",[[1,"flip-icon-warning",{"size":[2]}]]],["p-5a113067",[[1,"flip-link",{"href":[1],"label":[1],"target":[1]}]]],["p-6a7d9caa",[[4,"flip-list"]]],["p-1300cc2d",[[1,"flip-option-list-section",{"label":[1]}]]],["p-d5c812c1",[[1,"flip-progress-indicator",{"label":[1],"size":[1],"value":[2],"variant":[1]}]]],["p-3b3c9c2e",[[6,"flip-radio-group",{"flipAriaDescribedby":[1,"flip-aria-describedby"],"value":[1537]}]]],["p-56c64774",[[1,"flip-tab",{"active":[4],"label":[1],"tabId":[1,"tab-id"]}]]],["p-506b35d0",[[6,"flip-tabs",{"initialTab":[1,"initial-tab"],"label":[1],"activeTab":[32],"activateTab":[64]}]]],["p-31d676d3",[[6,"flip-theme-provider",{"config":[16],"getActiveTheme":[64],"getPreferredTheme":[64],"setPreferredTheme":[64],"resetPreferredTheme":[64]}]]],["p-39a3bdf7",[[1,"flip-thumbnail",{"alt":[1],"format":[1],"size":[1],"src":[1]}]]],["p-2b35b65a",[[1,"flip-tooltip",{"content":[1],"delay":[2],"position":[1],"actualPosition":[32],"visible":[32]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[9,"resize","onWindowResize"],[9,"scroll","onWindowScroll"]]]]],["p-6898b80c",[[1,"flip-tree-navigation-item",{"active":[4],"icon":[1],"label":[1]}]]],["p-4b3419eb",[[2,"flip-text-input",{"autoComplete":[1,"auto-complete"],"autoFocus":[4,"auto-focus"],"autoSelect":[4,"auto-select"],"clearable":[4],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"disableDynamicWidth":[4,"disable-dynamic-width"],"flipAriaAutocomplete":[1,"flip-aria-autocomplete"],"flipAriaControls":[1,"flip-aria-controls"],"flipAriaDescribedby":[1,"flip-aria-describedby"],"flipAriaExpanded":[1,"flip-aria-expanded"],"flipRole":[1,"flip-role"],"invalid":[4],"maxLength":[2,"max-length"],"max":[2],"min":[2],"mode":[1],"prefixLabel":[1,"prefix-label"],"required":[4],"rows":[2],"showCharacterCounter":[4,"show-character-counter"],"spellCheck":[4,"spell-check"],"suffixLabel":[1,"suffix-label"],"step":[2],"passwordToggleLabel":[1,"password-toggle-label"],"type":[1],"value":[1537],"showPassword":[32]}]]],["p-f52c6b81",[[1,"flip-toast",{"accessibleDismissLabel":[1,"accessible-dismiss-label"],"content":[1],"dismissLabel":[1,"dismiss-label"],"duration":[2],"icon":[1],"intent":[1],"toastId":[1,"toast-id"]}]]],["p-af02457c",[[1,"flip-icon-cloud-upload",{"size":[2]}]]],["p-47a1cad2",[[1,"flip-icon-person",{"size":[2]}]]],["p-e8d80905",[[1,"flip-icon-search",{"size":[2]}]]],["p-5d7619bb",[[1,"flip-button-group",{"orientation":[1],"segmented":[4],"stretch":[4],"wrap":[4]}]]],["p-5b14d410",[[1,"flip-date-picker",{"locale":[16],"maxDate":[16],"minDate":[16],"range":[4],"startDate":[16],"value":[1040]}],[1,"flip-icon-today",{"size":[2]}]]],["p-109c8448",[[1,"flip-icon-arrow-left",{"size":[2]}],[1,"flip-icon-arrow-right",{"size":[2]}],[1,"flip-icon-download",{"size":[2]}]]],["p-851d6744",[[1,"flip-popover",{"animation":[1],"enableFlip":[4,"enable-flip"],"label":[1],"offset":[2],"placement":[1],"popoverId":[1,"popover-id"],"trigger":[1],"useContainerWidth":[8,"use-container-width"],"active":[32],"closing":[32],"position":[32],"close":[64],"open":[64]},[[8,"focusin","onWindowFocusIn"],[8,"click","onWindowClick"]]]]],["p-e8e6243b",[[1,"flip-icon-add",{"size":[2]}],[1,"flip-icon-fullscreen",{"size":[2]}],[1,"flip-icon-fullscreen-exit",{"size":[2]}],[1,"flip-icon-remove",{"size":[2]}]]],["p-a31ea0e5",[[1,"flip-icon-check-strong",{"size":[2]}]]],["p-a1d09ebe",[[1,"flip-stack",{"align":[1],"as":[1],"justify":[1],"orientation":[1],"spacing":[1],"wrap":[4]}]]],["p-119b10ac",[[1,"flip-app-layout",{"appBarMedia":[1,"app-bar-media"],"appName":[1,"app-name"],"backToNavigationViewButtonLabel":[1,"back-to-navigation-view-button-label"],"ctaIcon":[1,"cta-icon"],"ctaLabel":[1,"cta-label"],"heading":[1],"navigationBackButtonLabel":[1,"navigation-back-button-label"],"navigationLabel":[1,"navigation-label"],"showNavigationBackButton":[4,"show-navigation-back-button"],"sidebarCloseButtonLabel":[1,"sidebar-close-button-label"],"sidebarHeading":[1,"sidebar-heading"],"subheading":[1],"transitionStyle":[1,"transition-style"],"hasNavigation":[32],"hasSidebar":[32],"mobileView":[32],"sidebarActive":[32],"sidebarClosing":[32],"transitioningFrom":[32],"transitioningTo":[32],"showSidebar":[64],"hideSidebar":[64],"toggleSidebar":[64],"changeMobileView":[64]}],[1,"flip-empty-state",{"heading":[1],"illustration":[1]}],[1,"flip-resource-list-item",{"checked":[1028],"description":[1],"disabled":[4],"hideDivider":[4,"hide-divider"],"href":[1],"label":[1],"media":[1],"menuTriggerId":[1,"menu-trigger-id"],"menuTriggerLabel":[1,"menu-trigger-label"],"meta":[1],"selectable":[4],"value":[1]}],[1,"flip-resource-list",{"label":[1]}],[1,"flip-box",{"as":[1],"bordered":[4],"centerBlock":[4,"center-block"],"centerInline":[4,"center-inline"],"cover":[4],"padding":[1]}]]],["p-be01e1cd",[[1,"flip-icon-close",{"size":[2]}]]],["p-538575fb",[[1,"flip-icon-expand-more",{"size":[2]}]]],["p-879c7fe0",[[1,"flip-option-list-item",{"context":[1025],"disabled":[4],"icon":[1],"label":[1],"selected":[1028],"value":[1]}],[1,"flip-icon-check-small",{"size":[2]}],[6,"flip-option-list",{"disabled":[4],"label":[1],"optionListId":[1,"option-list-id"],"multiSelect":[4,"multi-select"],"value":[1040]}]]],["p-b2079530",[[1,"flip-text",{"align":[1],"as":[1],"color":[1],"fontStyle":[1,"font-style"],"size":[1],"truncate":[4],"weight":[1]}],[2,"flip-heading",{"align":[1],"as":[1],"headingId":[1,"heading-id"],"level":[2],"text":[1]}]]],["p-29633de8",[[1,"flip-icon-visibility",{"size":[2]}],[1,"flip-icon-visibility-off",{"size":[2]}],[1,"flip-icon-cancel",{"size":[2]}],[1,"flip-icon-expand-less",{"size":[2]}]]],["p-f2cdff8d",[[2,"flip-button",{"disabled":[4],"download":[1],"flipAriaDescribedby":[1,"flip-aria-describedby"],"flipAriaExpanded":[1,"flip-aria-expanded"],"flipAriaLabel":[1,"flip-aria-label"],"form":[1],"hideLabel":[4,"hide-label"],"href":[1],"icon":[1],"iconPosition":[1,"icon-position"],"intent":[1],"label":[1],"name":[1],"size":[1],"target":[1],"type":[1],"value":[1],"variant":[1]}]]],["p-f2d451a7",[[1,"flip-visually-hidden"]]],["p-ec8199f2",[[1,"flip-inline-error",{"message":[1],"size":[1]}],[1,"flip-spinner",{"label":[1],"size":[1]}],[1,"flip-icon-error",{"size":[2]}]]],["p-5ba8364a",[[1,"flip-file-viewer",{"active":[4],"autoplay":[4],"description":[1],"errorMessage":[1,"error-message"],"file":[1],"type":[1],"typeUnsupportedMessage":[1,"type-unsupported-message"],"zoom":[8],"download":[64],"print":[64]}],[1,"flip-file-viewer-csv",{"errorMessage":[1,"error-message"],"file":[1],"data":[32],"error":[32],"loading":[32]}],[1,"flip-file-viewer-image",{"description":[1],"errorMessage":[1,"error-message"],"file":[1],"maxZoom":[2,"max-zoom"],"error":[32],"loading":[32],"getZoom":[64],"resetZoom":[64]}],[1,"flip-file-viewer-pdf",{"errorMessage":[1,"error-message"],"file":[1],"singlePageMode":[4,"single-page-mode"],"zoom":[8],"doc":[32],"error":[32],"loading":[32],"renderedPages":[32],"scrolledDown":[32],"singlePageModePage":[32],"visiblePages":[32],"print":[64],"nextPage":[64],"previousPage":[64],"setPage":[64]},[[9,"resize","onWindowResize"]]],[1,"flip-file-viewer-text",{"errorMessage":[1,"error-message"],"file":[1],"error":[32],"loading":[32],"text":[32]}],[1,"flip-file-viewer-audio",{"autoplay":[4],"file":[1],"type":[1]}],[1,"flip-file-viewer-video",{"autoplay":[4],"file":[1],"type":[1]}]]]]'),e)));
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
1
2
|
export declare type FlipTheme = "light" | "dark";
|
|
3
|
+
export declare type FlipThemeChangeEventData = {
|
|
4
|
+
activeTheme: FlipTheme;
|
|
5
|
+
preferredTheme: FlipTheme | undefined;
|
|
6
|
+
};
|
|
2
7
|
export declare type FlipThemeProviderStorage = {
|
|
3
8
|
getItem: (key: string) => string;
|
|
4
9
|
removeItem: (key: string) => void;
|
|
@@ -18,8 +23,10 @@ export declare type FlipThemeProviderConfig = {
|
|
|
18
23
|
};
|
|
19
24
|
export declare class FlipThemeProvider {
|
|
20
25
|
config: FlipThemeProviderConfig;
|
|
26
|
+
themeChange: EventEmitter<FlipThemeChangeEventData>;
|
|
21
27
|
private appTheme;
|
|
22
28
|
private osTheme;
|
|
29
|
+
private recentThemeChangeEventData;
|
|
23
30
|
private resolvedConfig;
|
|
24
31
|
componentWillLoad(): void;
|
|
25
32
|
watchConfig(): void;
|
|
@@ -38,7 +38,7 @@ import { FlipSwitchSize } from "./components/flip-switch/flip-switch";
|
|
|
38
38
|
import { FlipTagIntent } from "./components/flip-tag/flip-tag";
|
|
39
39
|
import { FlipTextAlign, FlipTextColor, FlipTextFontStyle, FlipTextSize, FlipTextWeight } from "./components/flip-text/flip-text";
|
|
40
40
|
import { FlipTextInputMode as FlipTextInputMode1, FlipTextInputType } from "./components/flip-text-input/flip-text-input";
|
|
41
|
-
import { FlipTheme, FlipThemeProviderConfig } from "./components/flip-theme-provider/flip-theme-provider";
|
|
41
|
+
import { FlipTheme, FlipThemeChangeEventData, FlipThemeProviderConfig } from "./components/flip-theme-provider/flip-theme-provider";
|
|
42
42
|
import { FlipThumbnailFormat, FlipThumbnailSize } from "./components/flip-thumbnail/flip-thumbnail";
|
|
43
43
|
import { FlipToastIntent } from "./components/flip-toast/flip-toast";
|
|
44
44
|
import { FlipToastConfig, FlipToastMessage } from "./components/flip-toast-provider/flip-toast-provider";
|
|
@@ -1072,6 +1072,10 @@ export interface FlipTextInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
1072
1072
|
detail: T;
|
|
1073
1073
|
target: HTMLFlipTextInputElement;
|
|
1074
1074
|
}
|
|
1075
|
+
export interface FlipThemeProviderCustomEvent<T> extends CustomEvent<T> {
|
|
1076
|
+
detail: T;
|
|
1077
|
+
target: HTMLFlipThemeProviderElement;
|
|
1078
|
+
}
|
|
1075
1079
|
export interface FlipToastCustomEvent<T> extends CustomEvent<T> {
|
|
1076
1080
|
detail: T;
|
|
1077
1081
|
target: HTMLFlipToastElement;
|
|
@@ -2873,6 +2877,7 @@ declare namespace LocalJSX {
|
|
|
2873
2877
|
}
|
|
2874
2878
|
interface FlipThemeProvider {
|
|
2875
2879
|
"config"?: FlipThemeProviderConfig;
|
|
2880
|
+
"onThemeChange"?: (event: FlipThemeProviderCustomEvent<FlipThemeChangeEventData>) => void;
|
|
2876
2881
|
}
|
|
2877
2882
|
interface FlipThumbnail {
|
|
2878
2883
|
"alt": string;
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Swirl Design System Web Component Library",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@floating-ui/dom": "^1.0.1",
|
|
39
39
|
"@getflip/swirl-icons": "^0.6.0",
|
|
40
|
-
"@getflip/swirl-tokens": "^2.
|
|
40
|
+
"@getflip/swirl-tokens": "^2.2.0",
|
|
41
41
|
"@stencil/core": "^2.13.0",
|
|
42
42
|
"a11y-dialog": "^7.5.2",
|
|
43
43
|
"air-datepicker": "^3.3.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as r}from"./p-9fe00e8a.js";function s(e,t,r){return Math.min(Math.max(e,r),t)}class i extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var n=i;function o(e){if("string"!=typeof e)throw new n(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=u.test(e)?function(e){const t=e.toLowerCase().trim(),r=h[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new n(e);return`#${r}`}(e):e;const r=c.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(_(e,2),16))),parseInt(_(e[3]||"f",2),16)/255]}const i=d.exec(t);if(i){const e=Array.from(i).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=l.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const a=f.exec(t);if(a){const[t,r,i,o]=Array.from(a).slice(1).map(parseFloat);if(s(0,100,r)!==r)throw new n(e);if(s(0,100,i)!==i)throw new n(e);return[...y(t,r,i),o||1]}throw new n(e)}const a=e=>parseInt(e.replace(/_/g,""),36),h="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=a(t.substring(0,3)),s=a(t.substring(3)).toString(16);let i="";for(let e=0;e<6-s.length;e++)i+="0";return e[r]=`${i}${s}`,e}),{}),_=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),c=new RegExp(`^#${_("([a-f0-9])",3)}([a-f0-9])?$`,"i"),d=new RegExp(`^#${_("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),l=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),f=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,u=/^[a-z]+$/i,p=e=>Math.round(255*e),y=(e,t,r)=>{let s=r/100;if(0===t)return[s,s,s].map(p);const i=(e%360+360)%360/60,n=(1-Math.abs(2*s-1))*(t/100),o=n*(1-Math.abs(i%2-1));let a=0,h=0,_=0;i>=0&&i<1?(a=n,h=o):i>=1&&i<2?(a=o,h=n):i>=2&&i<3?(h=n,_=o):i>=3&&i<4?(h=o,_=n):i>=4&&i<5?(a=o,_=n):i>=5&&i<6&&(a=n,_=o);const c=s-n/2;return[a+c,h+c,_+c].map(p)};function g(e){const[t,r,s,i]=o(e).map(((e,t)=>3===t?e:e/255)),n=Math.max(t,r,s),a=Math.min(t,r,s),h=(n+a)/2;if(n===a)return[0,0,h,i];const _=n-a;return[60*(t===n?(r-s)/_+(r<s?6:0):r===n?(s-t)/_+2:(t-r)/_+4),h>.5?_/(2-n-a):_/(n+a),h,i]}function m(e,t,r,i){return`hsla(${(e%360).toFixed()}, ${s(0,100,100*t).toFixed()}%, ${s(0,100,100*r).toFixed()}%, ${parseFloat(s(0,1,i).toFixed(3))})`}function v(e){return function(e,t,r,i){return`rgba(${s(0,255,e).toFixed()}, ${s(0,255,t).toFixed()}, ${s(0,255,r).toFixed()}, ${parseFloat(s(0,1,i).toFixed(3))})`}(...o(e))}const z={"--s-action-primary-default":"primary","--s-action-primary-hovered":"primaryHovered","--s-action-primary-pressed":"primaryPressed","--s-text-on-action-primary":"primaryContrast","--s-icon-on-action-primary":"primaryContrast","--s-surface-highlight-default":"secondary","--s-surface-highlight-hovered":"secondaryHovered","--s-surface-highlight-pressed":"secondaryPressed","--s-on-surface-highlight-default":"secondaryHovered","--s-text-on-surface-highlight":"secondaryContrast","--s-icon-on-surface-highlight":"secondaryContrast","--s-text-highlight":"text","--s-interactive-primary-default":"text","--s-interactive-primary-hovered":"textHovered","--s-interactive-primary-pressed":"textPressed"},w=class{constructor(t){e(this,t)}componentWillLoad(){this.resolveConfig(),this.determineOSTheme(),this.updateAppTheme()}watchConfig(){this.resolveConfig(),this.determineOSTheme(),this.updateAppTheme()}async getActiveTheme(){return this.appTheme}async getPreferredTheme(){if(Boolean(this.resolvedConfig.storage))return this.resolvedConfig.storage.getItem("flip-preferred-theme")}async setPreferredTheme(e){Boolean(this.resolvedConfig.storage)&&(this.resolvedConfig.storage.setItem("flip-preferred-theme",e),this.updateAppTheme())}async resetPreferredTheme(){Boolean(this.resolvedConfig.storage)&&(this.resolvedConfig.storage.removeItem("flip-preferred-theme"),this.updateAppTheme())}resolveConfig(){var e,t;this.resolvedConfig=Object.assign(Object.assign({},this.config||{}),{rootElement:(null===(e=this.config)||void 0===e?void 0:e.rootElement)||document.documentElement,storage:(null===(t=this.config)||void 0===t?void 0:t.storage)||(null===window||void 0===window?void 0:window.localStorage)})}determineOSTheme(){if(!Boolean(window.matchMedia))return void(this.osTheme="light");const e=window.matchMedia("(prefers-color-scheme: dark)");this.osTheme=e.matches?"dark":"light",e.addEventListener("change",(e=>{this.osTheme=e.matches?"dark":"light",this.updateAppTheme()}))}async updateAppTheme(){this.appTheme=await this.getPreferredTheme()||this.osTheme,"dark"===this.appTheme?(document.documentElement.classList.remove("theme-light"),document.documentElement.classList.add("theme-dark")):(document.documentElement.classList.remove("theme-dark"),document.documentElement.classList.add("theme-light")),this.updateTenantVariables()}updateTenantVariables(){var e;const t=null===(e=this.resolvedConfig)||void 0===e?void 0:e.tenantColors;if(!Boolean(t))return void this.resetTenantVariables();const r=this.resolvedConfig.rootElement,s=g(t.primary),i=g(t.secondary),n=g(t.text),o=v(m(s[0],s[1]-.21,s[2]+.09,1)),a=v(m(s[0],s[1]-.2,s[2]+.17,1)),h=v(m(i[0],i[1],i[2]+.07,1)),_=v(m(i[0],i[1],i[2]+.15,1)),c=v(m(n[0],n[1]-.34,n[2]+.1,1)),d=v(m(n[0],n[1]-.48,n[2]+.2,1)),l=Object.assign(Object.assign({},t),{primaryHovered:o,primaryPressed:a,secondaryHovered:h,secondaryPressed:_,textHovered:c,textPressed:d});Object.entries(z).forEach((([e,t])=>r.style.setProperty(e,l[t])))}resetTenantVariables(){const e=this.resolvedConfig.rootElement;[...Object.keys(z),"primaryHovered","primaryPressed","secondaryHovered","secondaryPressed","textHovered","textPressed"].forEach((t=>e.style.removeProperty(t)))}render(){return t(r,null,t("slot",null))}static get watchers(){return{config:["watchConfig"]}}};w.style=".sc-flip-theme-provider-h{display:block}";export{w as flip_theme_provider}
|